/* ====== Componentes UI — Control de Plagas en Granada ======
   Estilo limpio: retículas alineadas, jerarquía clara, CTA repartidos. */

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: .2px;
}

.btn-primary { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0, 159, 77, .8); }

.btn-secondary { background: var(--secondary-color); color: #fff; border-color: var(--secondary-color); }
.btn-secondary:hover { background: var(--secondary-hover); border-color: var(--secondary-hover); color: #fff; transform: translateY(-2px); }

.btn-urgency { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.btn-urgency:hover { background: var(--accent-red-hover); border-color: var(--accent-red-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(230, 57, 70, .85); }

.btn-outline { background: transparent; color: var(--secondary-color); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); background: var(--primary-light); }

/* Botón contorno discontinuo (estilo de referencia) */
.btn-ghost {
    background: transparent; color: #fff;
    border: 2px dashed rgba(255, 255, 255, .7);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--secondary-color); border: 2px dashed #C7D2E0; }
.btn-ghost-dark:hover { color: var(--primary-color); border-color: var(--primary-color); background: var(--primary-light); }

.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn-lg { padding: 17px 36px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header & Navegación ---------- */
.top-bar {
    background: var(--secondary-color);
    color: #CBD5E1;
    padding: 9px 0;
    font-size: .85rem;
}
.top-bar a { color: #fff; font-weight: 700; }
.top-bar a:hover { color: #4ade80; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.site-header {
    background: #fff;
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 14px var(--gutter); max-width: var(--max-width); margin: 0 auto;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 52px; width: auto; object-fit: contain; }

.main-nav ul { display: flex; gap: 26px; align-items: center; list-style: none; padding: 0; margin: 0; }
.main-nav li { margin: 0; }
.main-nav a {
    color: var(--secondary-color); font-weight: 700; padding: 10px 0;
    position: relative; font-size: .98rem; display: inline-block;
}
.main-nav a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: 2px;
    width: 100%; height: 2px; background: var(--primary-color);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.active:not(.btn)::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

/* CTA único de cabecera */
.main-nav a.btn { color: #fff; padding: 13px 24px; font-size: .92rem; text-transform: uppercase; letter-spacing: .5px; }
.nav-cta { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.nav-cta:hover { background: var(--accent-red-hover); border-color: var(--accent-red-hover); color: #fff; transform: translateY(-2px); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { padding-right: 16px; }
.has-dropdown > a::before {
    content: ''; position: absolute; right: 0; top: 50%; width: 10px; height: 10px;
    transform: translateY(-50%); pointer-events: none; background: var(--primary-color);
    -webkit-mask: var(--i-chevron) center / contain no-repeat; mask: var(--i-chevron) center / contain no-repeat;
}
.main-nav ul.dropdown-menu, .dropdown-menu {
    position: absolute; top: calc(100% + 4px); left: -14px; background: #fff;
    min-width: 236px; box-shadow: var(--shadow-lg); border-radius: var(--radius);
    border-top: 3px solid var(--primary-color);
    visibility: hidden; opacity: 0; transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 1001; display: flex; flex-direction: column; gap: 0; padding: 4px 0; list-style: none;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-menu li { width: 100%; margin: 0; }
.dropdown-menu a { padding: 6px 22px !important; display: block !important; width: 100%; font-size: .92rem; font-weight: 600; line-height: 1.3; border-left: 3px solid transparent; }
.dropdown-menu a:not(.btn)::after { display: none; }
.dropdown-menu a:hover { background: var(--primary-light); border-left-color: var(--primary-color); }
/* Acceso directo a la página índice de la sección */
.dropdown-menu .dropdown-all a {
    display: flex !important; align-items: center; gap: 6px;
    margin-bottom: 4px; padding-bottom: 8px !important;
    font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
    color: var(--primary-color); border-bottom: 1px solid var(--border-color);
}
.dropdown-menu .dropdown-all a::after { content: '\2192'; display: inline !important; transition: transform .2s ease; }
.dropdown-menu .dropdown-all a:hover { background: var(--primary-light); }
.dropdown-menu .dropdown-all a:hover::after { transform: translateX(3px); }

/* Mobile toggle */
.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; }
.hamburger { width: 26px; height: 3px; background: var(--secondary-color); position: relative; transition: var(--transition); border-radius: 3px; display: block; }
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; width: 26px; height: 3px; background: var(--secondary-color);
    left: 0; transition: var(--transition); border-radius: 3px;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ---------- Retículas (siempre alineadas) ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: stretch; }

/* ---------- Hero principal (split: mensaje + formulario) ---------- */
.hero {
    position: relative;
    background: #0C2A1B;
    color: #fff;
    padding: clamp(56px, 5vw, 90px) 0;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(105deg, rgba(6, 43, 26, .93) 0%, rgba(0, 87, 43, .88) 55%, rgba(0, 120, 58, .80) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }

/* Titular de hero: interiores por defecto, versión grande en el hero partido */
.hero-title {
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
    font-weight: 900; color: #fff; line-height: 1.12; letter-spacing: -.025em; margin-bottom: 18px;
}
.hero-title span { color: #6EE7A2; }
.hero-subtitle {
    font-size: var(--fs-lead); font-weight: 600; color: #DCF3E7; line-height: 1.6; margin-bottom: 24px; max-width: 720px;
}

.hero-split {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 4vw, 60px);
    align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-eyebrow {
    display: block; color: #A7F3C6; font-weight: 700; font-size: 1.02rem;
    margin-bottom: 12px; letter-spacing: .2px;
}
.hero-split .hero-title {
    font-size: var(--fs-h1);
    text-transform: uppercase; line-height: 1.02; letter-spacing: -.03em;
    margin-bottom: 20px;
}
.hero-split .hero-subtitle {
    font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
    font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 18px;
}
.hero-tags {
    font-size: 1rem; color: #D6F5E3; font-weight: 600; margin-bottom: 28px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero de páginas interiores */
.hero-inner { padding: clamp(48px, 4vw, 72px) 0; }
.hero-inner .hero-content { max-width: 800px; text-align: left; }
.hero-inner .hero-title { text-transform: none; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1.12; }
.hero-inner .hero-subtitle { font-weight: 600; font-size: var(--fs-lead); color: #DCF3E7; max-width: 720px; }

/* ---------- Tarjeta de formulario (lead) ---------- */
.lead-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(26px, 2.5vw, 38px);
    box-shadow: var(--shadow-card);
    color: var(--text-body);
}
.lead-card h2, .lead-card h3 { font-size: 1.5rem; margin-bottom: 6px; color: var(--secondary-color); }
.lead-card > p.lead-card-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label,
.lead-card label { display: block; font-weight: 700; font-size: .88rem; color: var(--secondary-color); margin-bottom: 6px; }
.form-group .req { color: var(--accent-red); }

.lead-form-field,
.form-control {
    width: 100%;
    padding: 13px 14px;
    font-family: var(--font-sans);
    font-size: .98rem;
    color: var(--text-dark);
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.lead-form-field:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 159, 77, .14);
}
textarea.lead-form-field { resize: vertical; min-height: 110px; }
select.lead-form-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009F4D' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
    padding-right: 40px;
}

.form-consent {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .85rem; color: var(--text-muted); margin: 6px 0 18px;
}
.form-consent input { margin-top: 4px; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--primary-color); }
.form-consent label { font-weight: 600; font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.lead-card-foot {
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 14px;
}
.lead-card-foot .foot-icon {
    width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.lead-card-foot p { margin: 0; font-size: .9rem; color: var(--text-muted); min-width: 0; overflow-wrap: anywhere; }
.lead-card-foot strong { color: var(--secondary-color); display: block; }

/* ---------- Section Header ---------- */
.section-header { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-header.align-left { text-align: left; margin-left: 0; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: var(--fs-lead); margin: 0; }
.section-header.align-left .eyebrow::before,
.section-header.align-left > span.text-primary::before { display: inline-block; }
.section-header:not(.align-left) .eyebrow,
.section-header:not(.align-left) > span.text-primary { justify-content: center; }

/* ---------- Bloque partido texto + imagen (alterno) ---------- */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
}
.split + .split { margin-top: clamp(48px, 5vw, 80px); }
.split-media picture { display: block; height: 100%; }
.split-media img {
    width: 100%; height: 100%; max-height: 420px; object-fit: cover;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.split-body h2 { margin-bottom: 16px; }
.split-body p { color: var(--text-body); }
.split-body .btn { margin-top: 22px; }
.split.split-reverse .split-media { order: 2; }
.split.split-reverse .split-body { order: 1; }

/* ---------- Tarjetas de servicio ---------- */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #D8E3EF; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-light); }
.card-media img, .card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-img { height: 220px; }
.card:hover .card-media img, .card:hover .card-img { transform: scale(1.05); }
.card-content { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--secondary-color); }
.card-content p { color: var(--text-muted); font-size: .96rem; }
.card-content a.font-bold {
    display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px;
    font-weight: 800; font-size: .95rem;
}
.card-content a.font-bold:hover { gap: 10px; }

/* ---------- Feature cards (ventajas) ---------- */
.feature-card {
    padding: 34px 28px; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: var(--transition);
    height: 100%; display: flex; flex-direction: column; border: 1px solid var(--border-color);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
    font-size: 1.7rem; margin: 0 0 20px; display: inline-flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; border-radius: var(--radius); background: var(--primary-light);
}
.feature-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--secondary-color); }
.feature-text { color: var(--text-muted); font-size: .96rem; margin: 0; }
a.feature-card { color: inherit; }
a.feature-card:hover h3 { color: var(--primary-color); }

/* Variante centrada */
.feature-card.is-centered { text-align: center; align-items: center; }
.feature-card.is-centered .feature-icon { margin-inline: auto; }

/* ---------- Proceso: título + pasos numerados ---------- */
.steps-layout {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 4vw, 70px); align-items: start;
}
.steps-list { list-style: none; padding: 0; margin: 0; }
.steps-list li {
    display: grid; grid-template-columns: 48px 1fr; gap: 20px;
    padding: 24px 0; border-bottom: 1px solid var(--border-color); margin: 0;
}
.steps-list li:first-child { padding-top: 0; }
.steps-list li:last-child { border-bottom: none; padding-bottom: 0; }
.steps-list .step-num {
    width: 44px; height: 44px; border-radius: 50%; background: var(--primary-color); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.05rem;
}
.steps-list h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--primary-color); }
.steps-list p { color: var(--text-muted); font-size: .96rem; margin: 0; }

/* ---------- Process Steps (retícula clásica, páginas interiores) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; align-items: stretch; }
.process-step {
    padding: 30px 26px; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
    transition: var(--transition); height: 100%;
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-number {
    width: 46px; height: 46px; background: var(--primary-color); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; margin-bottom: 18px;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--secondary-color); }
.process-step p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Retícula de plagas ---------- */
.pest-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.pest-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 18px 14px 20px; text-align: center; color: inherit;
    display: flex; flex-direction: column; align-items: center; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
a.pest-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); color: inherit; }
.pest-card img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm);
    margin-bottom: 14px; background: var(--bg-light);
}
.pest-card picture { display: block; width: 100%; }
.pest-card h3 { font-size: 1rem; margin-bottom: 4px; color: var(--secondary-color); line-height: 1.25; }
.pest-card span { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
a.pest-card:hover h3 { color: var(--primary-color); }

/* Celda final: CTA al catálogo completo */
.pest-card.pest-cta { background: var(--primary-light); border-style: dashed; border-color: var(--primary-color); justify-content: center; }
.pest-card.pest-cta .pest-cta-icon {
    width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; font-weight: 900; color: var(--primary-color);
    background: #fff; border-radius: var(--radius-sm); margin-bottom: 14px;
}
.pest-card.pest-cta h3 { color: var(--primary-color); }

/* ---------- Franja de confianza (hero) ---------- */
.trust-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 22px;
    padding: 16px 0 0; margin: 28px 0 0;
}
.trust-item { font-weight: 800; font-size: .93rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.trust-item::before {
    content: ''; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    background: #6EE7A2 var(--i-check-dark) center / 12px no-repeat;
}

/* ---------- Sellos ---------- */
.badges-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }
.badge-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff;
    border: 1px solid var(--border-color); border-radius: var(--radius-pill); font-weight: 700;
    font-size: .85rem; color: var(--secondary-color); transition: var(--transition);
}
.badge-pill:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* ---------- CTA Visual ---------- */
.cta-visual {
    position: relative; background-color: #0C2A1B;
    background-image: url('../img/hero.webp'); background-size: cover; background-position: center;
    color: #fff; padding: clamp(64px, 5vw, 96px) 0; overflow: hidden;
}
.cta-visual::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(6, 43, 26, .94) 0%, rgba(0, 100, 48, .86) 100%); z-index: 1;
}
.cta-content { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; }
.cta-content h2 { color: #fff; }
.cta-content p { color: #D6F5E3; font-size: var(--fs-lead); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- CTA Intermedio ---------- */
.mid-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
    background: var(--secondary-color); color: #fff;
    padding: 32px 40px; border-radius: var(--radius-lg);
}
.mid-cta-text { display: flex; align-items: center; gap: 18px; }
.mid-cta-icon {
    font-size: 1.6rem; flex-shrink: 0; width: 54px; height: 54px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center;
}
.mid-cta h3 { color: #fff; margin-bottom: 4px; font-size: 1.25rem; }
.mid-cta p { color: rgba(255, 255, 255, .85); margin: 0; font-size: .96rem; }
.mid-cta .btn { flex-shrink: 0; background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.mid-cta .btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.mid-cta.mid-cta-urgency { background: var(--accent-red); }
.mid-cta.mid-cta-urgency .btn { background: #fff; border-color: #fff; color: var(--accent-red); }
.mid-cta.mid-cta-urgency .btn:hover { background: #fff; color: var(--accent-red-hover); }
.mid-cta.mid-cta-dark { background: var(--secondary-color); }

/* ---------- Franja de Estadísticas ---------- */
.stats-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    margin-top: 40px; background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item { text-align: center; padding: 22px 14px; border-right: 1px solid rgba(255, 255, 255, .14); }
.stat-item:last-child { border-right: none; }
.stat-number {
    font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 900; line-height: 1;
    display: block; margin-bottom: 6px; color: #6EE7A2;
}
.stat-label { color: #D6F5E3; font-size: .86rem; font-weight: 700; }
.stats-strip.stats-light {
    background: var(--bg-light); border-color: var(--border-color);
}
.stats-strip.stats-light .stat-item { border-right-color: var(--border-color); }
.stats-strip.stats-light .stat-number { color: var(--primary-color); }
.stats-strip.stats-light .stat-label { color: var(--text-muted); }

/* ---------- Comparativa ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 40px; align-items: stretch; }
.compare-card { border-radius: var(--radius-lg); padding: 34px 30px; border: 1px solid var(--border-color); background: #fff; height: 100%; }
.compare-card.compare-bad { background: #FEF4F4; border-color: #F6D3D3; }
.compare-card.compare-good { background: var(--primary-light); border-color: #BCE7CE; position: relative; }
.compare-card.compare-good::before {
    content: 'Recomendado'; position: absolute; top: -13px; right: 24px;
    background: var(--primary-color); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .5px;
    padding: 6px 14px; border-radius: var(--radius-sm); text-transform: uppercase;
}
.compare-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 4px; }
.compare-list { list-style: none; margin-top: 18px; padding: 0; }
.compare-list li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: .95rem; color: var(--text-muted); }
.compare-list li::before {
    content: ''; position: absolute; left: 0; top: .3em; width: 16px; height: 16px;
    -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.compare-bad .compare-list li::before { background: #DC2626; -webkit-mask-image: var(--i-x); mask-image: var(--i-x); }
.compare-good .compare-list li::before { background: var(--primary-color); }

/* ---------- Listas ---------- */
.check-list { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; font-weight: 600; color: var(--text-body); }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary-color) var(--i-check-white) center / 13px no-repeat;
}

/* ---------- FAQ ---------- */
.faq-section, .faq-container { max-width: 840px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); }
.faq-item.active { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }
.faq-question {
    width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background: none; border: none; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 800;
    color: var(--secondary-color); cursor: pointer; text-align: left;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary-color); transition: transform .3s ease; flex-shrink: 0; line-height: 1; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s ease; padding: 0 24px; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 700px; padding-bottom: 22px; }

/* ---------- Mapa ---------- */
.map-container { width: 100%; height: 420px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav { background: var(--bg-light); border-bottom: 1px solid var(--border-color); padding: 12px 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; font-size: .85rem; color: var(--text-muted); padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb a { color: var(--primary-color); font-weight: 600; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: #94A3B8; }
.breadcrumb li:last-child { color: var(--text-dark); font-weight: 700; }

/* ---------- Fondo con matices ---------- */
.section-mesh {
    background-color: var(--bg-light);
    background-image:
        radial-gradient(circle at 10% 15%, rgba(0, 159, 77, .06), transparent 45%),
        radial-gradient(circle at 92% 85%, rgba(29, 53, 87, .05), transparent 45%);
}

/* ---------- Scroll reveal ---------- */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: .06s; }
.stagger-2 { transition-delay: .14s; }
.stagger-3 { transition-delay: .22s; }
.stagger-4 { transition-delay: .30s; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--secondary-color); color: #CBD5E1;
    padding: 70px 0 24px; position: relative;
}
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-bottom: 46px; }
.site-footer p { color: #94A3B8; font-size: .95rem; }
.footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 48px; height: 3px; background: var(--primary-color); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #CBD5E1; display: inline-block; font-size: .95rem; }
.footer-links a:hover { color: #6EE7A2; padding-left: 6px; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: #94A3B8; font-size: .88rem; }
.footer-bottom a { color: #94A3B8; margin: 0 10px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Botones flotantes ---------- */
.whatsapp-float, .email-float, .email-float__btn {
    position: fixed; bottom: 25px; right: 25px; z-index: 1000; text-decoration: none;
    width: 56px; height: 56px; background: var(--primary-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: var(--shadow-lg); transition: transform .3s;
}
.email-float:has(.email-float__btn) { background: none; box-shadow: none; width: auto; height: auto; }
.email-float__btn { position: static; }
.whatsapp-float:hover, .email-float:hover, .email-float:hover .email-float__btn { transform: scale(1.08); color: #fff; }
.whatsapp-float svg, .email-float svg, .email-float__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cookie consent ---------- */
#cpg-cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--secondary-color); color: #E2E8F0; z-index: 9998; padding: 1rem 1.5rem; box-shadow: 0 -4px 20px rgba(0,0,0,.28); }
.cpg-cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cpg-cookie-inner p { margin: 0; flex: 1; font-size: .85rem; line-height: 1.5; color: #CBD5E1; }
.cpg-cookie-inner a { color: #6EE7A2; text-decoration: underline; }
.cpg-cookie-btns { display: flex; gap: .625rem; flex-shrink: 0; }
.cpg-cookie-btns button { padding: .6rem 1.4rem; border: none; border-radius: var(--radius-sm); font-family: var(--font-sans); font-weight: 800; cursor: pointer; font-size: .85rem; transition: var(--transition); }
#cpg-accept { background: var(--primary-color); color: #fff; }
#cpg-accept:hover { background: var(--primary-hover); }
#cpg-reject { background: transparent; color: #94A3B8; border: 1px solid #475569 !important; }
#cpg-reject:hover { color: #E2E8F0; }

/* ================= Media Queries ================= */
@media (max-width: 1080px) {
    .pest-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .hero-copy { max-width: none; }
    .steps-layout { grid-template-columns: 1fr; gap: 32px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .pest-grid { grid-template-columns: repeat(3, 1fr); }
    .split, .split.split-reverse { grid-template-columns: 1fr; }
    .split.split-reverse .split-media, .split.split-reverse .split-body { order: 0; }
    .split-media img { max-height: 320px; }

    .whatsapp-float, .email-float { display: none; }
}

@media (max-width: 700px) {
    .pest-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2n) { border-right: none; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
    .stats-strip.stats-light .stat-item:nth-child(-n+2) { border-bottom-color: var(--border-color); }
    .mid-cta { flex-direction: column; align-items: flex-start; text-align: left; padding: 28px 24px; }
    .mid-cta .btn { width: 100%; }
    .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .map-container { height: 320px; }
    .section-header { margin-bottom: 36px; }
}

/* ---------- Auditoría 2026-10-02 ---------- */
.service-card__perks { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service-card__perks li { font-size: .8rem; font-weight: 700; color: var(--secondary-color); background: var(--primary-light); padding: 4px 10px; border-radius: 999px; }
.service-card .card-content a.font-bold { margin-top: auto; }
.related-guide { background: var(--primary-light); border-left: 4px solid var(--primary-color); border-radius: var(--radius); padding: 18px 22px; margin: 0; color: var(--text-dark); font-weight: 600; }
.related-guide a { text-decoration: underline; }
.testimonials-note { text-align: center; font-size: .85rem; color: var(--text-muted); margin: 22px auto 0; max-width: 720px; }

/* ---------- Ronda 4 (2026-10-02) ---------- */
#servicios { scroll-margin-top: 90px; }
.pest-grid--static { display: flex; flex-wrap: wrap; justify-content: center; }
.pest-grid--static .pest-card { flex: 0 1 calc((100% - 80px) / 5); }
@media (max-width: 1080px) { .pest-grid--static .pest-card { flex-basis: calc((100% - 60px) / 4); } }
@media (max-width: 900px) { .pest-grid--static .pest-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 600px) { .pest-grid--static .pest-card { flex-basis: calc((100% - 20px) / 2); } }
.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #94A3B8; background: repeating-linear-gradient(45deg, #EEF2F7 0 12px, #F6F8FB 12px 24px); border-bottom: 1px dashed #CBD5E1; }
.img-placeholder span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.case-zone { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--primary-color); margin-bottom: 6px; }

/* ---------- Ronda 5 (2026-10-02): identificación por foto + calendario ---------- */
.id-panel {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: center;
    background: linear-gradient(135deg, #F2FBF6 0%, #fff 60%); border: 1px solid #CFEBDB;
    border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 56px); box-shadow: var(--shadow-sm);
}
.id-panel__body > p { margin-bottom: 22px; }
.id-panel__subtitle { font-size: 1.05rem; margin-bottom: 12px; }
.id-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.id-tips li { position: relative; padding-left: 30px; color: var(--text-dark); font-size: .97rem; line-height: 1.55; }
.id-tips li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.id-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: idstep; }
.id-step {
    counter-increment: idstep; position: relative; display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.id-step::after {
    content: counter(idstep); position: absolute; top: 12px; right: 16px; font-size: 1.6rem; font-weight: 900; line-height: 1; color: var(--primary-light);
}
.id-step__icon {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-color); color: #fff;
}
.id-step h3 { font-size: 1.02rem; margin: 2px 0 4px; padding-right: 28px; }
.id-step p { margin: 0; font-size: .92rem; color: var(--text-muted); line-height: 1.5; }
.id-steps__cta { display: grid; gap: 8px; text-align: center; margin-top: 4px; }
.id-steps__cta small { color: var(--text-muted); font-size: .85rem; }

.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season-card {
    background: #fff; border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color);
    border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.season-card__tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--primary-color); margin-bottom: 6px; }
.season-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.season-card p { font-size: .94rem; color: var(--text-body); margin-bottom: 14px; }
.season-card .service-card__perks { margin: auto 0 0; }
.season-note { max-width: 820px; margin-inline: auto; color: var(--text-muted); font-size: .95rem; }

@media (max-width: 1080px) { .season-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .id-panel { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .season-grid { grid-template-columns: 1fr; }
    .id-panel { padding: 24px 18px; }
    .id-step { padding: 16px; gap: 14px; }
    .id-step__icon { flex-basis: 42px; width: 42px; height: 42px; }
    .lead-card { padding: 22px 18px; }
    .trust-bar { gap: 10px 18px; margin-top: 20px; }
}

/* ---------- Plagas con ficha (home) ---------- */
.pest-grid--detail { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pest-grid--detail .pest-card { text-align: left; align-items: stretch; padding: 16px 16px 22px; }
.pest-grid--detail .pest-card img { aspect-ratio: 16 / 10; }
.pest-grid--detail .pest-card h3 { font-size: 1.12rem; }
.pest-grid--detail .pest-card > span { display: block; margin-bottom: 10px; }
.pest-card__desc { font-size: .93rem; color: var(--text-body); line-height: 1.6; margin: 0 0 12px; }
.pest-card__risk {
    font-size: .88rem; line-height: 1.55; margin: 0 0 16px; padding: 10px 12px;
    background: #FEF2F2; border-left: 3px solid var(--accent-red); border-radius: var(--radius-sm); color: var(--text-dark);
}
.pest-card__risk strong { color: var(--accent-red); }
.pest-card__link { margin-top: auto; font-weight: 800; font-size: .94rem; }
.pest-note { max-width: 820px; margin: 32px auto 0; text-align: center; color: var(--text-muted); }
@media (max-width: 1080px) { .pest-grid--detail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pest-grid--detail { grid-template-columns: 1fr; } }

/* ---------- Artículos del blog: índice y tablas ---------- */
.post-toc { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 36px; }
.post-toc strong { display: block; color: var(--secondary-color); margin-bottom: 8px; }
.post-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.post-toc a { font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--border-color); border-radius: var(--radius); }
.post-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.post-table th, .post-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color); }
.post-table th { background: var(--secondary-color); color: #fff; font-weight: 800; }
.post-table tr:last-child td { border-bottom: 0; }
.post-table tbody tr:nth-child(even) { background: var(--bg-light); }

/* =====================================================================
   v6 (2026-10-16) — iconos SVG, menú móvil, secciones texto-imagen,
   zonas con foto y pulido móvil. Mantenido junto a tools/_cpg_v6.py
   ===================================================================== */
:root {
    --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
    --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --i-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --i-check-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306301C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Iconos SVG en línea (sustituyen a los emojis) */
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: -.2em; }
.btn .ico { width: 1.2em; height: 1.2em; }
.site-footer p > .ico:first-child { color: #6EE7A2; margin-right: .55em; }
.mid-cta-icon .ico, .feature-icon .ico { width: 26px; height: 26px; }
.mid-cta-icon { color: #fff; }
.feature-icon { color: var(--primary-color); }
.lead-card-foot .foot-icon { color: var(--primary-color); }
.lead-card-foot .foot-icon .ico { width: 22px; height: 22px; }
.badge-pill .ico { color: var(--primary-color); width: 18px; height: 18px; }
.compare-card h3 .ico { width: 26px; height: 26px; }
.compare-bad h3 .ico { color: #DC2626; }
.compare-good h3 .ico { color: var(--primary-color); }
.check-list li:has(> .ico:first-child) { padding-left: 0; display: flex; gap: 12px; align-items: flex-start; }
.check-list li:has(> .ico:first-child)::before { display: none; }
.check-list li > .ico:first-child { color: var(--primary-color); margin-top: .25em; }
.related-guide { display: flex; gap: 12px; align-items: flex-start; }
.related-guide > .ico { color: var(--primary-color); margin-top: .2em; }
.ico-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ico-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.ico-list li > .ico { color: var(--primary-color); margin-top: .25em; }
h3 > .ico:first-child { color: var(--primary-color); margin-right: .35em; }
main .ico { color: var(--primary-color); }
main .btn .ico, main .mid-cta-icon .ico, main .hero .ico { color: currentColor; }
.card-media > picture { display: contents; }
.card.p-4 h3 a { color: var(--secondary-color); }
.card.p-4 h3 a:hover { color: var(--primary-color); }
.post-figure { margin: 28px 0 32px; }
.post-figure img { width: 100%; height: auto; max-height: 440px; object-fit: cover; border-radius: 12px; }
.post-figure--lead { margin: 0 0 40px; }
.post-checklist { margin: 16px 0 24px; }
.post-meta-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Secciones texto-imagen v6 ---------- */
.split-v6 .split-media { margin: 0; }
.split-v6 .split-media picture { height: auto; }
.split-v6 .split-media img { aspect-ratio: 4 / 3; max-height: none; height: auto; }
.split-v6 .split-media figcaption { font-size: .85rem; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
.split-v6 .split-body h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.2rem); }
.split-v6 .split-body p { max-width: 64ch; }
.split-v6 .ico-list { margin: 18px 0 4px; }

/* ---------- Cards de zona con foto ---------- */
.zone-card .card-media img { aspect-ratio: 16 / 10; }
.zone-card .card-title a, .zone-near h3 a { color: var(--secondary-color); }
.zone-card .card-title a:hover, .zone-near h3 a:hover { color: var(--primary-color); }
.zone-near { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.zone-near .card { text-align: left; }

/* ---------- Pie: legales táctiles ---------- */
.footer-bottom div { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; color: #475569; }
.footer-bottom div a { display: inline-block; padding: 8px 6px; margin: 0; }

/* ---------- Menú: escritorio ---------- */
.submenu-toggle { display: none; }

/* ---------- Menú móvil v6 (≤1080 px) ---------- */
@media (max-width: 1080px) {
    .top-bar { display: none; }
    .nav-container { padding: 12px var(--gutter); }
    .logo-img { height: 46px; }
    .menu-toggle {
        display: inline-flex; align-items: center; justify-content: center; gap: 10px;
        min-width: 48px; height: 48px; padding: 0 14px; border-radius: var(--radius);
        border: 1px solid var(--border-color); background: #fff; z-index: 1002;
        font: 800 .9rem/1 var(--font-sans); color: var(--secondary-color);
    }
    .menu-toggle::after { content: 'Menú'; }
    .menu-toggle[aria-expanded="true"]::after { content: 'Cerrar'; }
    .menu-toggle[aria-expanded="true"] { border-color: var(--primary-color); }
    .hamburger, .hamburger::before, .hamburger::after { width: 22px; height: 2.5px; }
    .hamburger::before { top: -7px; }
    .hamburger::after { top: 7px; }

    .main-nav {
        position: fixed; top: var(--hdr-h, 72px); left: 0; right: 0; bottom: 0; width: auto;
        display: none; background: #fff; border-top: 1px solid var(--border-color);
        padding: 8px 0 calc(28px + env(safe-area-inset-bottom)); max-height: none;
        overflow-y: auto; overscroll-behavior: contain; box-shadow: none;
    }
    .main-nav.is-open { display: block; animation: navIn .22s ease-out; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter); }
    .main-nav > ul > li { border-bottom: 1px solid var(--border-color); position: relative; margin: 0; }
    .main-nav > ul > li:last-child { border-bottom: 0; }
    .main-nav a { display: flex; align-items: center; min-height: 54px; padding: 12px 4px; font-size: 1.08rem; }
    .main-nav a:not(.btn)::after { display: none; }
    .has-dropdown > a { padding-right: 60px; }
    .has-dropdown > a::before { display: none; }
    .submenu-toggle {
        display: flex; align-items: center; justify-content: center; position: absolute; top: 5px; right: 0;
        width: 44px; height: 44px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
        background: var(--bg-light); color: var(--secondary-color); cursor: pointer;
    }
    .submenu-toggle .ico { width: 20px; height: 20px; transition: transform .2s ease; }
    .submenu-toggle[aria-expanded="true"] { background: var(--primary-light); border-color: var(--primary-color); color: var(--primary-color); }
    .submenu-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
    .main-nav ul.dropdown-menu, .dropdown-menu {
        position: static; display: none; visibility: visible; opacity: 1; transform: none;
        box-shadow: none; border: 0; border-radius: var(--radius); min-width: 0;
        background: var(--bg-light); padding: 6px; margin: 0 0 12px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px;
    }
    .has-dropdown.is-expanded > .dropdown-menu { display: grid; }
    .dropdown-menu a { min-height: 44px; padding: 10px 12px !important; font-size: .98rem; border-left: 0; border-radius: var(--radius-sm); }
    .dropdown-menu a:hover, .dropdown-menu a[aria-current="page"] { background: #fff; color: var(--primary-color); }
    .dropdown-menu .dropdown-all { grid-column: 1 / -1; }
    .dropdown-menu .dropdown-all a { border-bottom: 0; margin: 0; padding: 10px 12px !important; }
    .main-nav a.btn { margin: 18px 0 6px; width: 100%; justify-content: center; min-height: 54px; }
    body.nav-open { overflow: hidden; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Pulido móvil general ---------- */
@media (max-width: 600px) {
    :root { --gutter: 18px; }
    .card-content { padding: 22px 20px; }
    .feature-card { padding: 26px 22px; }
    .compare-card { padding: 28px 20px; }
    .mid-cta-text { align-items: flex-start; }
    .stat-item { padding: 18px 10px; }
    .hero-actions { flex-direction: column; }
    .faq-question { padding: 18px; font-size: 1rem; }
    .faq-answer { padding: 0 18px; }
    .breadcrumb { font-size: .82rem; }
}
