/*
Theme Name: Seguros de Construcción · Grupo Agento
Theme URI: https://segurosdeconstruccion.com
Author: Grupo Agento
Description: Tema corporativo ligero para Seguros de Construcción, una especialidad de Grupo Agento AXA Seguros.
Version: 1.0.22
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: seguros-construccion-agento
*/

:root {
  --navy: #142a5c;
  --navy-2: #203b76;
  --coral: #e84662;
  --coral-dark: #c9344f;
  --ink: #22242a;
  --muted: #616875;
  --line: #e4e8ef;
  --soft: #f5f7fb;
  --white: #ffffff;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(20, 42, 92, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Campton", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--coral-dark); }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 5.6vw, 5.1rem); margin: 0 0 24px; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin: 0 0 20px; }
h3 { font-size: 1.35rem; margin: 0 0 12px; }
p { margin: 0 0 1.2em; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(228,232,239,.95);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.brand-logo { width: 112px; height: 72px; object-fit: contain; object-position: left center; }
.brand-copy { min-width: 0; }
.brand-title { display: block; color: var(--navy); font-size: 1.07rem; font-weight: 850; line-height: 1.15; }
.brand-subtitle { display: block; color: var(--muted); font-size: .73rem; margin-top: 5px; }
.main-nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 24px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 650; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--coral-dark); }
.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 19px; border-radius: 999px; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 750; }
.header-cta:hover { background: var(--navy-2); color: var(--white); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; color: var(--navy); font-weight: 750; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(232,70,98,.14), transparent 23%),
    radial-gradient(circle at 72% 80%, rgba(20,42,92,.10), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
  padding: 104px 0 86px;
}
.hero-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 66px; align-items: center; }
.hero-copy { max-width: 760px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 23px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 2px solid transparent; }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); color: var(--white); }
.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.hero-trust span::before { content: "✓"; color: var(--coral); font-weight: 900; margin-right: 8px; }
.hero-panel { position: relative; background: var(--navy); border-radius: 34px; padding: 36px; color: var(--white); box-shadow: 0 28px 60px rgba(20,42,92,.22); }
.hero-panel::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; pointer-events: none; }
.hero-panel h2 { color: var(--white); font-size: 2rem; margin-bottom: 22px; }
.hero-panel p { color: rgba(255,255,255,.78); }
.panel-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.panel-list li { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.panel-list b { color: var(--white); }
.panel-num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: var(--white); font-size: .82rem; font-weight: 900; }

.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.intro-stat { padding: 32px; border-left: 5px solid var(--coral); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.intro-stat strong { display: block; color: var(--navy); font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 9px 25px rgba(20,42,92,.045); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(232,70,98,.11); color: var(--coral-dark); font-weight: 900; margin-bottom: 24px; }
.card p { color: var(--muted); }
.card-link { font-weight: 800; text-decoration: none; }

.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.coverage { padding: 26px; background: var(--white); border-radius: 18px; border: 1px solid var(--line); }
.coverage p { margin-bottom: 0; color: var(--muted); font-size: .96rem; }
.coverage h3 { font-size: 1.16rem; }

.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 42px; }
.process-step { position: relative; padding: 28px 22px; border-top: 3px solid var(--navy); background: var(--white); border-radius: 0 0 18px 18px; }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; color: var(--coral); font-weight: 900; font-size: 1.6rem; margin-bottom: 28px; }
.process-step p { color: var(--muted); font-size: .93rem; margin: 0; }

.agento-band { background: var(--navy); color: var(--white); padding: 70px 0; }
.agento-grid { display: grid; grid-template-columns: 260px 1fr auto; gap: 46px; align-items: center; }
.agento-logo { display:block; max-width: 280px; width: 100%; height: auto; background:#fff; padding:14px; border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.14); }
.agento-band h2 { color: var(--white); margin-bottom: 14px; }
.agento-band p { color: rgba(255,255,255,.78); margin-bottom: 0; }
.agento-band .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.65); }
.agento-band .btn-secondary:hover { background: var(--white); color: var(--navy); }

.faq-list { display: grid; gap: 12px; margin-top: 36px; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; background: var(--white); }
summary { cursor: pointer; list-style: none; color: var(--navy); font-weight: 800; padding: 22px 34px 22px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 19px; color: var(--coral); font-size: 1.5rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 22px; }

.contact-section { background: linear-gradient(135deg, var(--navy), #0e1d42); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 58px; align-items: start; }
.contact-section h2 { color: var(--white); }
.contact-section .lead { color: rgba(255,255,255,.76); }
.contact-options { margin-top: 34px; display: grid; gap: 14px; }
.contact-options a { color: var(--white); text-decoration: none; font-weight: 750; }
.contact-options span { color: rgba(255,255,255,.66); display: block; font-size: .88rem; }
.contact-card { background: var(--white); color: var(--ink); padding: 34px; border-radius: 24px; box-shadow: 0 28px 60px rgba(0,0,0,.18); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--navy); font-weight: 750; font-size: .92rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #cfd5df; border-radius: 12px; padding: 12px 13px; background: #fff; color: var(--ink); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(232,70,98,.16); border-color: var(--coral); }
.form-field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.check input { margin-top: 5px; }
.form-submit { border: 0; cursor: pointer; width: 100%; }
.form-notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 700; }
.form-success { background: #eaf8ef; color: #166534; }
.form-error { background: #fff0f2; color: #9f1239; }
.hp-field { position: absolute !important; left: -9999px !important; }

.page-hero { padding: 78px 0 54px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-content { padding: 70px 0 100px; }
.page-content .content-narrow { max-width: 820px; }
.page-content ul { padding-left: 1.3em; }
.page-content li { margin-bottom: .55em; }

 .site-footer { background: #2d2d32; color: rgba(255,255,255,.68); padding: 76px 0 34px; }
.footer-main { max-width: 1360px; }
.footer-grid-expanded { display:grid; grid-template-columns:1.2fr .85fr .9fr 1.05fr; gap:72px; align-items:start; }
.footer-about p { max-width: 360px; margin: 34px 0 24px; color:rgba(255,255,255,.67); font-size:1rem; line-height:1.65; }
.footer-wordmark { display:inline-flex; flex-direction:column; text-decoration:none; color:#fff; line-height:1; }
.footer-wordmark-main { font-size:2rem; font-weight:900; letter-spacing:-.035em; }
.footer-wordmark-sub { margin-top:5px; font-size:.82rem; font-weight:650; letter-spacing:.24em; }
.footer-dots { color:#fff; padding-left:.03em; }
.footer-heading { color:#fff; font-size:1.12rem; font-weight:850; text-transform:uppercase; letter-spacing:.04em; margin:0 0 22px; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:17px; }
.footer-links a { color:rgba(255,255,255,.70); text-decoration:none; transition:color .2s ease; }
.footer-links a:hover { color:#fff; }
.footer-socials { display:flex; gap:14px; }
.footer-socials a { width:44px; height:44px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.08); color:#fff; text-decoration:none; font-weight:850; font-size:.92rem; }
.footer-socials a:hover { background:rgba(255,255,255,.15); }
.footer-contact { list-style:none; padding:0; margin:0; display:grid; gap:16px; }
.footer-contact li { display:grid; grid-template-columns:22px 1fr; gap:13px; align-items:start; }
.footer-contact svg { width:20px; height:20px; fill:none; stroke:rgba(255,255,255,.78); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; margin-top:2px; }
.footer-contact a { color:rgba(255,255,255,.72); text-decoration:none; overflow-wrap:anywhere; }
.footer-contact a:hover { color:#fff; }
.footer-divider { height:1px; background:rgba(255,255,255,.14); margin:68px 0 28px; }
.footer-copyright { color:rgba(255,255,255,.52); font-size:.92rem; }
.footer-legal { display:flex; flex-wrap:wrap; gap:26px; margin-top:28px; }
.footer-legal a { color:rgba(255,255,255,.53); text-decoration:none; font-size:.9rem; }
.footer-legal a:hover { color:#fff; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .main-nav { grid-column: 1 / -1; display: none; padding-bottom: 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: flex-start; flex-direction: column; gap: 12px; }
  .header-cta { display: none; }
  .hero-grid, .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .cards, .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .agento-grid { grid-template-columns: 210px 1fr; }
  .footer-grid-expanded { grid-template-columns:repeat(2, minmax(0,1fr)); gap:50px; }
  .agento-grid .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 70px 0; }
  .header-inner { min-height: 82px; gap: 12px; }
  .brand-logo { width: 82px; height: 54px; }
  .brand-title { font-size: .95rem; }
  .brand-subtitle { display: none; }
  .hero { padding: 72px 0 60px; }
  .hero-panel { padding: 28px 24px; border-radius: 26px; }
  .cards, .coverage-grid, .process, .form-grid, .footer-grid, .agento-grid { grid-template-columns: 1fr; }
  .footer-grid-expanded { grid-template-columns:1fr; gap:40px; }
  .footer-divider { margin-top:46px; }
  .footer-legal { gap:16px 22px; }
  .form-field.full { grid-column: auto; }
  .contact-card { padding: 24px; }
  .footer-bottom { flex-direction: column; }
  .agento-logo { max-width: 230px; }
}

/* Version 1.0.4 — visual content, Grupo Agento form and refined layout */
.section-lead-narrow { max-width: 780px; }
.section-action { margin-top: 34px; }

.hero-with-image {
  padding: 82px 0 76px;
  background:
    radial-gradient(circle at 86% 10%, rgba(232,70,98,.11), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  overflow: hidden;
}
.hero-grid-visual {
  grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr);
  gap: 64px;
  align-items: center;
}
.hero-grid-visual .hero-copy { max-width: 680px; }
.hero-visual {
  position: relative;
  min-height: 545px;
}
.hero-visual > img {
  display: block;
  width: 100%;
  height: 545px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(20,42,92,.18);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px 34px 34px -18px;
  border: 1px solid rgba(20,42,92,.13);
  border-radius: 34px;
  pointer-events: none;
}
.hero-insight {
  position: absolute;
  left: -44px;
  bottom: 30px;
  width: min(390px, calc(100% - 40px));
  padding: 24px 26px;
  background: rgba(20,42,92,.96);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(20,42,92,.28);
  backdrop-filter: blur(8px);
}
.hero-insight-label {
  display: block;
  margin-bottom: 8px;
  color: #ff9aad;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero-insight strong { display: block; font-size: 1.13rem; line-height: 1.35; }
.hero-insight p { margin: 8px 0 0; color: rgba(255,255,255,.74); font-size: .9rem; line-height: 1.5; }

.cards-with-images { align-items: stretch; }
.image-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-image { display: block; height: 238px; overflow: hidden; background: #e8ebf0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.image-card:hover .card-image img { transform: scale(1.035); }
.card-body { padding: 27px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body p { flex: 1; }
.card-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--coral-dark);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.coverage { position: relative; padding-top: 58px; transition: transform .2s ease, box-shadow .2s ease; }
.coverage:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(20,42,92,.08); }
.coverage-number {
  position: absolute;
  top: 22px;
  left: 26px;
  color: var(--coral);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.method-grid { display: grid; grid-template-columns: minmax(390px, .95fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.method-image { position: relative; }
.method-image > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.method-image-note {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  padding: 18px 20px;
  background: rgba(255,255,255,.94);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,.13);
  backdrop-filter: blur(8px);
}
.method-image-note strong { display: block; color: var(--navy); margin-bottom: 3px; }
.method-image-note span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.process-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; }
.process-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list > li > span { color: var(--coral); font-weight: 900; font-size: .9rem; padding-top: 3px; }
.process-list h3 { font-size: 1.05rem; margin: 0 0 4px; }
.process-list p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }

.agento-logo-plate {
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.15);
}
.agento-logo { display: block; width: 100%; max-width: 245px; height: auto; padding: 0; border-radius: 7px; box-shadow: none; background: #fff; }
.agento-kicker { color: #ff8da0; }

.contact-section-light {
  background: #f2f2f4;
  color: var(--ink);
  border-top: 1px solid #e4e4e8;
}
.contact-section-light h2 { color: var(--navy); }
.contact-section-light .lead { color: var(--muted); }
.contact-grid-modern { grid-template-columns: .8fr 1.2fr; gap: 76px; align-items: center; }
.contact-intro { max-width: 480px; }
.contact-promise { display: grid; gap: 11px; margin: 28px 0 34px; }
.contact-promise span { color: var(--navy); font-weight: 750; }
.contact-promise span::before { content: "✓"; color: var(--coral); font-weight: 900; margin-right: 10px; }
.contact-options-light { margin-top: 34px; gap: 18px; }
.contact-options-light a { color: var(--navy); }
.contact-options-light span { color: #7d818b; }
.contact-card-agento {
  padding: 38px;
  border-radius: 18px;
  border: 1px solid #e2e2e6;
  box-shadow: 0 18px 50px rgba(32,34,40,.09);
}
.form-heading { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #e9e9ec; }
.form-heading span { color: var(--navy); font-weight: 900; font-size: 1.2rem; }
.form-heading p { margin: 0; color: #898d96; font-size: .8rem; }
.contact-card-agento .form-grid { gap: 18px 16px; }
.contact-card-agento .form-field { gap: 8px; }
.contact-card-agento .form-field label { color: #34363c; font-size: .86rem; font-weight: 780; }
.contact-card-agento .form-field input,
.contact-card-agento .form-field select,
.contact-card-agento .form-field textarea {
  min-height: 48px;
  border: 1px solid #dcdde2;
  border-radius: 7px;
  padding: 12px 14px;
  background: #f8f8f9;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact-card-agento .form-field textarea { min-height: 120px; }
.contact-card-agento .form-field input:focus,
.contact-card-agento .form-field select:focus,
.contact-card-agento .form-field textarea:focus {
  background: #fff;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,70,98,.10);
  outline: none;
}
.contact-card-agento .check { padding: 5px 0 3px; line-height: 1.45; }
.contact-card-agento .check a { color: var(--navy); }
.contact-card-agento .form-submit { border-radius: 8px; min-height: 52px; font-size: .96rem; }

@media (max-width: 1050px) {
  .hero-grid-visual { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid-visual .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 500px; }
  .hero-visual > img { height: 500px; }
  .hero-insight { left: 28px; }
  .method-grid, .contact-grid-modern { grid-template-columns: 1fr; gap: 48px; }
  .contact-intro { max-width: 760px; }
}

@media (max-width: 700px) {
  .hero-with-image { padding-top: 58px; }
  .hero-visual { min-height: auto; }
  .hero-visual > img { height: 390px; border-radius: 22px; }
  .hero-visual::before { display: none; }
  .hero-insight { position: relative; left: auto; bottom: auto; width: calc(100% - 28px); margin: -72px auto 0; }
  .card-image { height: 220px; }
  .method-image-note { position: relative; left: auto; right: auto; bottom: auto; margin: -35px 16px 0; }
  .agento-logo-plate { max-width: 255px; }
  .form-heading { display: block; }
  .form-heading p { margin-top: 5px; }
  .contact-card-agento { padding: 24px 20px; }
}


/* Version 1.0.6 — tipografía de marca y seguro decenal destacado */
.main-nav a[href*="seguro-decenal"] {
  color: var(--coral-dark);
  font-weight: 850;
}
.main-nav a[href*="seguro-decenal"]::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 5px;
  background: var(--coral);
  border-radius: 999px;
}

.hero-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(232,70,98,.28);
  border-radius: 999px;
  background: rgba(232,70,98,.07);
  color: var(--coral-dark);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 850;
}
.hero-product-badge:hover { background: rgba(232,70,98,.12); color: var(--coral-dark); }

.decenal-spotlight {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(232,70,98,.24), transparent 26%),
    linear-gradient(135deg, #0f214b 0%, var(--navy) 56%, #233f7d 100%);
  color: #fff;
}
.decenal-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  pointer-events: none;
}
.decenal-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 72px;
  align-items: center;
}
.decenal-copy { max-width: 770px; }
.decenal-copy .section-kicker { color: #ff9bad; }
.decenal-copy h2 { color: #fff; max-width: 760px; }
.decenal-copy .lead { color: rgba(255,255,255,.79); max-width: 760px; }
.decenal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.decenal-spotlight .btn-secondary { color: #fff; border-color: rgba(255,255,255,.68); }
.decenal-spotlight .btn-secondary:hover { color: var(--navy); background: #fff; }
.decenal-mark {
  justify-self: end;
  width: min(100%, 360px);
  min-height: 310px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  text-align: center;
}
.decenal-mark strong {
  display: block;
  color: #fff;
  font-size: clamp(6.5rem, 12vw, 9.5rem);
  line-height: .82;
  letter-spacing: -.08em;
}
.decenal-mark span {
  display: block;
  margin-top: 18px;
  color: #ff9bad;
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.decenal-mark p { margin: 12px 0 0; color: rgba(255,255,255,.72); max-width: 230px; }

.coverage-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy), #203f80);
  border-color: transparent;
  color: #fff;
}
.coverage-featured h3 { color: #fff; font-size: 1.45rem; }
.coverage-featured p { color: rgba(255,255,255,.76); max-width: 680px; }
.coverage-featured .coverage-number { color: #ff9bad; }
.coverage-featured .card-link { display: inline-block; margin-top: 14px; color: #fff; }

.page-decenal-note {
  margin: 34px 0;
  padding: 26px 28px;
  border-left: 5px solid var(--coral);
  border-radius: 0 16px 16px 0;
  background: var(--soft);
}

@media (max-width: 1050px) {
  .decenal-grid { grid-template-columns: 1fr; gap: 42px; }
  .decenal-mark { justify-self: start; width: min(100%, 420px); min-height: 270px; }
}
@media (max-width: 700px) {
  .decenal-spotlight { padding: 68px 0; }
  .decenal-mark { min-height: 235px; }
  .coverage-featured { grid-column: auto; }
  .main-nav a[href*="seguro-decenal"]::after { display: none; }
}


/* Version 1.0.7 — acceso flotante permanente a WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 20px 0 16px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px rgba(13, 70, 34, .28);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 850;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: currentColor;
}
.floating-whatsapp:hover {
  transform: translateY(-3px);
  background: #1fbd59;
  color: #fff;
  box-shadow: 0 18px 40px rgba(13, 70, 34, .34);
}
.floating-whatsapp:focus-visible {
  outline: 4px solid rgba(37, 211, 102, .28);
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .floating-whatsapp {
    right: 17px;
    bottom: 17px;
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
  }
  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp { transition: none; }
}


/* Versión 1.0.8: mayor presencia de AXA sin perder la identidad de Grupo Agento. */
.axa-solutions {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.axa-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}
.axa-product-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(20,42,92,.07);
}
.axa-product-card-primary {
  border-color: rgba(232,70,98,.4);
  box-shadow: 0 18px 42px rgba(232,70,98,.11);
}
.axa-product-card::before {
  content: "AXA";
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.axa-product-card-primary::before { background: var(--coral); }
.axa-product-label {
  display: block;
  margin-bottom: 7px;
  color: var(--coral-dark);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.axa-product-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.axa-product-card p { color: var(--muted); }
.axa-product-card .card-link { display: inline-block; margin-top: 8px; }
.axa-solutions-note {
  max-width: 900px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.agento-grid-axa { grid-template-columns: 245px minmax(0, 1fr) auto; }
.agento-support-content h2 { max-width: 730px; }
.support-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 24px;
}
.support-pillars > div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.support-pillars strong { display: block; color: #fff; margin-bottom: 7px; }
.support-pillars p { font-size: .92rem; line-height: 1.5; }
.form-legal-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}
.footer-disclaimer {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  margin-top: 42px;
  padding: 22px 0 4px;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  line-height: 1.55;
}
.footer-disclaimer p { margin: 0; }
.footer-disclaimer strong { color: rgba(255,255,255,.88); }

@media (max-width: 980px) {
  .axa-product-grid { grid-template-columns: 1fr; }
  .agento-grid-axa { grid-template-columns: 210px 1fr; }
  .agento-grid-axa > .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 720px) {
  .support-pillars, .footer-disclaimer { grid-template-columns: 1fr; }
  .agento-grid-axa { grid-template-columns: 1fr; }
  .axa-product-card { padding: 24px; }
}

/* ===== Arquitectura editorial y producto bandera · v1.0.9 ===== */
.breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-bottom:20px; font-size:.84rem; color:var(--muted); }
.breadcrumbs a { text-decoration:none; font-weight:700; }
.content-wide { max-width:1040px; }
.content-wide > .answer-first:first-child { margin-top:-18px; }
.answer-first { margin:0 0 42px; padding:28px 30px; border:1px solid rgba(20,42,92,.14); border-left:5px solid var(--coral); border-radius:18px; background:linear-gradient(135deg,#fff 0%,#f7f9fd 100%); box-shadow:0 16px 40px rgba(20,42,92,.07); }
.answer-first p { margin:8px 0 0; font-size:1.08rem; line-height:1.75; }
.answer-label { display:inline-block; color:var(--coral-dark); font-size:.73rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.answer-first-decenal { border-left-width:7px; }
.page-toc { margin:0 0 50px; padding:26px 28px; border-radius:18px; background:var(--navy); color:#fff; }
.page-toc > strong { display:block; margin-bottom:15px; font-size:1.1rem; }
.toc-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px 18px; }
.toc-grid a { color:rgba(255,255,255,.88); text-decoration:none; font-size:.9rem; }
.toc-grid a:hover { color:#fff; text-decoration:underline; }
.content-section { scroll-margin-top:110px; padding:0 0 42px; margin:0 0 42px; border-bottom:1px solid var(--line); }
.content-section:last-of-type { border-bottom:0; }
.content-section h2 { margin-top:0; font-size:clamp(1.65rem,2.4vw,2.25rem); }
.content-section p { max-width:900px; }
.content-callout { margin:28px 0 0; padding:22px 24px; border-radius:14px; background:#fff3f5; border:1px solid rgba(232,70,98,.2); }
.check-list { list-style:none; padding:0 !important; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.check-list li { position:relative; margin:0 !important; padding:14px 14px 14px 42px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.check-list li::before { content:'✓'; position:absolute; left:15px; top:13px; color:var(--coral); font-weight:900; }
.two-column-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.two-column-list ul { margin:0; padding:20px 22px 20px 42px; border-radius:14px; background:var(--soft); }
.feature-chips { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0; }
.feature-chips span { padding:9px 13px; border-radius:999px; background:#eef2fa; color:var(--navy); font-size:.86rem; font-weight:800; }
.comparison-table { margin:28px 0; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.comparison-row { display:grid; grid-template-columns:.8fr 1.25fr 1.25fr; }
.comparison-row > * { padding:15px 17px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.comparison-row > *:last-child { border-right:0; }
.comparison-row:last-child > * { border-bottom:0; }
.comparison-head { background:var(--navy); color:#fff; font-weight:800; }
.sources-box { margin:44px 0; padding:27px 30px; border-radius:18px; background:#f2f5fa; border:1px solid var(--line); }
.sources-box h2 { margin-top:0; font-size:1.35rem; }
.sources-box p:last-child { margin-bottom:0; }
.product-link-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:26px 0 40px; }
.product-link-grid > div { padding:22px; border:1px solid var(--line); border-radius:15px; background:#fff; box-shadow:0 12px 28px rgba(20,42,92,.06); }
.product-link-grid h3 { margin:0 0 8px; }
.product-stack { display:grid; gap:12px; margin:28px 0 42px; }
.product-stack > a { display:grid; grid-template-columns:minmax(240px,.8fr) 1.4fr; gap:20px; padding:20px 22px; border:1px solid var(--line); border-radius:14px; background:#fff; text-decoration:none; box-shadow:0 10px 25px rgba(20,42,92,.05); transition:.2s ease; }
.product-stack > a:hover { transform:translateY(-2px); border-color:rgba(20,42,92,.3); box-shadow:0 16px 35px rgba(20,42,92,.1); }
.product-stack strong { color:var(--navy); }
.product-stack span { color:var(--muted); }
.decenal-form-section { display:grid; grid-template-columns:.75fr 1.25fr; gap:42px; align-items:start; margin-top:64px; padding:42px; border-radius:24px; background:var(--navy); color:#fff; }
.decenal-form-intro h2 { color:#fff; margin-top:0; }
.decenal-form-intro p { color:rgba(255,255,255,.8); }
.decenal-form-card { padding:30px; }
.author-review-box { display:flex; gap:17px; align-items:flex-start; margin-top:50px; padding:24px 26px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#fafbfc; }
.author-mark { display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; border-radius:50%; background:var(--navy); color:#fff; font-weight:800; }
.author-review-box p { margin:4px 0; color:var(--muted); font-size:.93rem; }
.author-review-box small { color:#7a808b; }
.library-hero { background:linear-gradient(135deg,#f3f6fb 0%,#fff 70%); }
.library-hero-lead { max-width:720px; margin-top:18px; font-size:1.12rem; color:var(--muted); }
.library-intro { margin-bottom:38px; }
.library-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.library-card { padding:26px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 14px 35px rgba(20,42,92,.07); }
.library-card h2 { margin:10px 0 13px; font-size:1.3rem; line-height:1.25; }
.library-card h2 a { text-decoration:none; }
.library-card p { color:var(--muted); font-size:.94rem; }
.library-card-label { color:var(--coral-dark); font-size:.72rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.library-editorial-note { max-width:760px; margin:42px 0 0; padding:24px 26px; border-radius:16px; background:var(--navy); color:#fff; }
.library-editorial-note p { margin:5px 0 0; color:rgba(255,255,255,.76); }
.section-action { margin-top:32px; }

@media (max-width: 920px) {
  .toc-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .decenal-form-section { grid-template-columns:1fr; padding:30px; }
}
@media (max-width: 680px) {
  .content-wide { max-width:100%; }
  .answer-first { padding:22px 20px; }
  .page-toc { padding:22px 20px; }
  .toc-grid, .check-list, .two-column-list, .product-link-grid, .library-grid { grid-template-columns:1fr; }
  .comparison-row { grid-template-columns:1fr; border-bottom:1px solid var(--line); }
  .comparison-row > * { border-right:0; }
  .comparison-head { display:none; }
  .comparison-row > strong { background:#eef2fa; }
  .product-stack > a { grid-template-columns:1fr; gap:5px; }
  .decenal-form-section { padding:24px 18px; margin-left:-8px; margin-right:-8px; }
}


/* Individual blog entries */
.single-entry .content-narrow {
  max-width: 900px;
}
.imagen-destacada {
  margin: 0 0 42px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--soft);
}
.imagen-destacada img {
  display: block;
  width: 100%;
  height: auto;
}
.contenido-entrada > :first-child {
  margin-top: 0;
}
.contenido-entrada h2 {
  margin-top: 2.2em;
}
.contenido-entrada h3 {
  margin-top: 1.8em;
}
.contenido-entrada img {
  border-radius: 14px;
}
.page-links {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .imagen-destacada {
    margin-bottom: 28px;
    border-radius: 16px;
  }
}


/* Author byline and professional author card */
.autor-entrada {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .98rem;
}
.autor-entrada strong { color: var(--navy); }
.ficha-autor {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr);
  gap: 22px;
  align-items: start;
  margin-top: 58px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: 18px;
  background: linear-gradient(135deg,#fff 0%,#f6f8fc 100%);
  box-shadow: 0 14px 34px rgba(20,42,92,.07);
}
.ficha-autor-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
}
.ficha-autor-etiqueta {
  margin: 0 0 4px;
  color: var(--coral-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ficha-autor h2 { margin: 0 0 8px; font-size: 1.4rem; }
.ficha-autor-nombre { margin: 0 0 10px; color: var(--navy); }
.ficha-autor-biografia { margin: 0; color: var(--muted); }
@media (max-width: 620px) {
  .ficha-autor { grid-template-columns: 1fr; padding: 24px 22px; }
  .ficha-autor-avatar { width: 56px; height: 56px; font-size: 1.25rem; }
}


/* Version 1.0.12 — canonical links and reinforced responsive behaviour */
html, body { max-width: 100%; overflow-x: clip; }
main, .site-header, .site-footer, .wrap, .content-wide, .content-narrow { min-width: 0; }
.contenido-entrada, .page-content, .content-section { overflow-wrap: anywhere; word-break: normal; }
.contenido-entrada iframe, .contenido-entrada video, .page-content iframe, .page-content video { max-width: 100%; }
.contenido-entrada table, .page-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 1050px) {
  .main-nav.is-open { width: 100%; }
  .main-nav.is-open ul { width: 100%; }
  .main-nav.is-open li { width: 100%; }
  .main-nav.is-open a { display: block; width: 100%; padding: 10px 0; }
}

@media (max-width: 700px) {
  .page-hero { padding: 48px 0 34px; }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.05; overflow-wrap: anywhere; }
  .page-content { padding: 46px 0 72px; }
  .content-section { scroll-margin-top: 90px; }
  .btn, .hero-actions .btn, .decenal-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
  .breadcrumbs { line-height: 1.45; }
  .comparison-table { overflow: visible; }
  .floating-whatsapp { bottom: max(17px, env(safe-area-inset-bottom)); right: max(17px, env(safe-area-inset-right)); }
}


/* Version 1.0.13 — mobile-safe product pages and links */
.product-link-grid > div,
.product-stack > a,
.coverage,
.axa-product-card,
.library-card,
.card { min-width: 0; }

.page-content a,
.contenido-entrada a,
.footer-column a,
.coverage a,
.axa-product-card a,
.product-stack a { overflow-wrap: anywhere; }

@media (max-width: 840px) {
  .header-inner {
    grid-template-columns: minmax(0,1fr) auto;
    min-height: 78px;
  }
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 8px 0 18px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a[href*="seguro-decenal"]::after { display: none; }
}

@media (max-width: 720px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; }
  .wrap { width: min(calc(100% - 30px), var(--max)); }
  .brand { gap: 10px; }
  .brand-logo { width: 68px; height: 46px; }
  .brand-title { font-size: .9rem; line-height: 1.18; }
  .page-hero { padding: 38px 0 28px; }
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    line-height: 1.08;
    hyphens: auto;
  }
  .page-content { padding: 38px 0 68px; }
  .answer-first,
  .content-callout,
  .sources-box,
  .author-review-box,
  .ficha-autor { max-width: 100%; }
  .answer-first { margin-bottom: 30px; }
  .product-link-grid,
  .product-stack,
  .coverage-grid,
  .axa-product-grid,
  .library-grid { width: 100%; }
  .product-stack > a,
  .coverage,
  .axa-product-card,
  .library-card,
  .card { padding-left: 20px; padding-right: 20px; }
  .btn,
  .card-link,
  .product-stack > a {
    min-height: 48px;
    touch-action: manipulation;
  }
  .card-link { display: inline-flex; align-items: center; }
  .footer-grid-expanded { grid-template-columns: 1fr; }
  .footer-column ul { margin-bottom: 0; }
  .footer-column a { display: inline-block; padding: 5px 0; }
  .floating-whatsapp {
    z-index: 10000;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }
}


/* Version 1.0.14 — iconographic mobile menu and WhatsApp contact access */
.menu-toggle {
  position: relative;
  flex: 0 0 auto;
}
.menu-toggle-icon {
  display: inline-flex;
  width: 25px;
  height: 19px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.menu-toggle-icon > span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(1) {
  transform: translateY(8.25px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(3) {
  transform: translateY(-8.25px) rotate(-45deg);
}
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.contact-whatsapp-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 58px;
}
.contact-whatsapp-icon {
  display: block;
  width: 31px;
  height: 31px;
  margin-top: 3px;
  fill: #25d366;
  transition: transform .18s ease, fill .18s ease;
}
.contact-whatsapp-link:hover .contact-whatsapp-icon,
.contact-whatsapp-link:focus-visible .contact-whatsapp-icon {
  fill: #1fbd59;
  transform: scale(1.06);
}
@media (max-width: 840px) {
  .menu-toggle {
    color: var(--navy);
  }
}
@media (max-width: 700px) {
  .contact-options-light {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .contact-options-light > a {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .contact-whatsapp-link {
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .contact-options-light {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle-icon > span,
  .contact-whatsapp-icon { transition: none; }
}


/* Biblioteca: listado automático de entradas publicadas */
.library-articles,
.library-questions { margin-top: 54px; }
.library-section-heading { max-width: 820px; margin-bottom: 28px; }
.library-section-heading h2 { margin: 0 0 10px; }
.library-section-heading > p:last-child { margin: 0; color: var(--muted); }
.library-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.library-post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 34px rgba(20,42,92,.07); }
.library-post-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.library-post-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.library-post-card:hover .library-post-image img { transform: scale(1.02); }
.library-post-body { padding: 24px; }
.library-post-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; color: var(--muted); font-size: .86rem; }
.library-post-card h3 { margin: 0 0 12px; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.25; }
.library-post-card h3 a { color: var(--navy); text-decoration: none; }
.library-post-card h3 a:hover { color: var(--coral-dark); }
.library-post-card p { margin: 0 0 18px; color: var(--muted); }
.library-pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.library-pagination .page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.library-pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.library-empty { padding: 22px; border: 1px dashed var(--line); border-radius: 14px; background: var(--soft); }

@media (max-width: 980px) {
  .library-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .library-articles, .library-questions { margin-top: 38px; }
  .library-post-grid { grid-template-columns: 1fr; gap: 18px; }
  .library-post-body { padding: 20px; }
  .library-post-card h3 { font-size: 1.28rem; }
}


/* Biblioteca v1.0.20: contenido primero, explicación editorial después */
.library-page { padding-top: 58px; }
.library-page .library-articles { margin-top: 0; }
.library-page .library-about { margin-top: 58px; }
.library-page .library-about .answer-first { margin: 0; }
.library-page .library-about .answer-label { display: inline-block; }
.library-page .library-editorial-note { margin-top: 24px; }
@media (max-width: 720px) {
  .library-page { padding-top: 38px; }
  .library-page .library-about { margin-top: 38px; }
}


/* Biblioteca v1.0.22: CTA de lectura visible y sin bloque explicativo redundante */
.library-post-body { display: flex; flex-direction: column; align-items: flex-start; }
.library-post-card .library-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 0 4px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.library-post-card .library-read-more:hover { color: var(--coral-dark); }
.library-post-card .library-read-more:focus-visible { outline: 3px solid rgba(232,70,98,.28); outline-offset: 4px; border-radius: 4px; }
.library-page .library-editorial-note { margin-top: 56px; }
@media (max-width: 720px) {
  .library-post-card .library-read-more { margin-top: 6px; padding-top: 8px; }
  .library-page .library-editorial-note { margin-top: 38px; }
}
