/* ─────────────────────────────────────────────────────────────────────────
   Imperquimia Centro — Estilos modernos (Fase 3 del rediseño 2026)
   Se carga DESPUÉS de style.css para sobrescribir lo viejo.
   Mobile-first. Usa tokens.css.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Base ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink-700);
    background: var(--white);
    margin: 0;
}

/* Prevenir overflow por palabras largas en cualquier elemento de texto */
h1, h2, h3, h4, h5, h6, p, li, a, span {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink-900);
    line-height: 1.2;
    margin: 0 0 var(--space-4);
    font-weight: 700;
    letter-spacing: 0;
}

p {
    margin: 0 0 var(--space-4);
}

a {
    color: var(--brand-green);
    transition: color var(--duration-fast) var(--ease-out);
}

img, picture {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Botón accesible: focus visible para teclado */
:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

/* ── Botones modernos ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--duration-base) var(--ease-out),
                background-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
    max-width: 100%;
    min-width: 0;
    text-align: center;
    white-space: normal;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--brand-orange);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(238, 118, 36, 0.35);
}
.btn--primary:hover {
    background: var(--brand-orange-dark);
    box-shadow: 0 8px 24px rgba(238, 118, 36, 0.45);
}

.btn--green {
    background: var(--brand-green);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(74, 139, 44, 0.35);
}
.btn--green:hover {
    background: var(--brand-green-dark);
    box-shadow: 0 8px 24px rgba(74, 139, 44, 0.45);
}

.btn--outline {
    background: transparent;
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}
.btn--outline:hover {
    background: var(--brand-orange);
    color: var(--white);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn--whatsapp {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.btn--whatsapp:hover {
    background: #1ebe5d;
}

/* ── Top banner (teléfono + redes) ─────────────────────────────────────── */
.topbar {
    background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green));
    color: var(--white);
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
}

.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

.topbar a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: opacity var(--duration-fast);
}

.topbar a:hover { opacity: 0.85; }

.topbar__social {
    display: inline-flex;
    gap: var(--space-3);
    align-items: center;
}

.topbar__social a {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    justify-content: center;
}
.topbar__social a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Navegación principal ──────────────────────────────────────────────── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--ink-100);
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.92);
}

.nav__inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: var(--space-3) var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--ink-900);
}

.nav__brand img {
    height: 44px;
    width: auto;
}

.nav__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav__brand-text strong {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-green);
}

.nav__brand-text span {
    font-size: var(--text-xs);
    color: var(--ink-500);
}

.nav__menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
    align-items: center;
}

.nav__menu > li {
    position: relative;
}

.nav__menu > li > a {
    color: var(--ink-900);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-2) 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.nav__menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-orange);
    transition: width var(--duration-base) var(--ease-out);
}

.nav__menu > li > a:hover::after,
.nav__menu > li:hover > a::after {
    width: 100%;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    list-style: none;
    margin: var(--space-2) 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out),
                visibility var(--duration-base);
}

.nav__menu > li:hover > .nav__dropdown,
.nav__menu > li:focus-within > .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--ink-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    transition: background var(--duration-fast), color var(--duration-fast);
}

.nav__dropdown li a:hover {
    background: var(--ink-100);
    color: var(--brand-green);
}

.nav__cta {
    display: none;
}

/* Menú móvil — botón hamburguesa */
.nav__toggle {
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-900);
    font-size: var(--text-xl);
}

/* Backdrop semi-transparente detrás del menú móvil — clic para cerrar */
.nav__mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-base) var(--ease-out),
                visibility var(--duration-base);
}

.nav__mobile-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.nav__mobile {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(88vw, 360px);
    max-width: 100vw;
    background: var(--white);
    z-index: var(--z-modal);
    /* Padding compacto: el área scrollable comienza justo bajo el botón cerrar */
    padding: 0;
    transition: clip-path var(--duration-slow) var(--ease-out),
                visibility var(--duration-slow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* clip-path en vez de transform: NO contribuye al scrollWidth */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.nav__mobile.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
}

/* Header sticky del menú con marca + cerrar */
.nav__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--ink-100);
    background: var(--white);
    flex-shrink: 0;
}

.nav__mobile-header strong {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-green);
    font-size: var(--text-base);
}

.nav__mobile-close {
    position: static;
    background: var(--ink-100);
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: var(--text-lg);
    cursor: pointer;
    color: var(--ink-700);
    display: grid;
    place-items: center;
    transition: background var(--duration-fast), color var(--duration-fast);
}

.nav__mobile-close:hover {
    background: var(--brand-orange);
    color: var(--white);
}

/* Contenido scrolleable con fade gradient al bottom */
.nav__mobile-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-4) var(--space-5) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Sombra/fade abajo cuando hay scroll = indica "hay más contenido" */
.nav__mobile-body::after {
    content: '';
    position: sticky;
    bottom: -1px;
    display: block;
    height: 24px;
    margin-top: auto;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    pointer-events: none;
    flex-shrink: 0;
}

.nav__mobile a {
    color: var(--ink-900);
    text-decoration: none;
    font-size: var(--text-base);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--ink-100);
    font-weight: 500;
    display: block;
}

.nav__mobile a:hover,
.nav__mobile a:active { color: var(--brand-green); }

.nav__mobile-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-500);
    margin-top: var(--space-4);
    margin-bottom: var(--space-1);
    font-weight: 700;
}

.nav__mobile-sub {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-2);
}

.nav__mobile-sub a {
    padding-left: var(--space-4);
    font-size: 0.95rem;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

/* CTA WhatsApp pegado al bottom del menú móvil — siempre visible */
.nav__mobile-footer {
    padding: var(--space-3) var(--space-5) var(--space-4);
    border-top: 1px solid var(--ink-100);
    background: var(--white);
    flex-shrink: 0;
}

.nav__mobile-footer .btn {
    width: 100%;
}

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    isolation: isolate;
    width: 100%;
    max-width: 100vw;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media picture,
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(54, 117, 25, 0.85) 0%,
        rgba(26, 51, 12, 0.7) 60%,
        rgba(238, 118, 36, 0.65) 100%
    );
    z-index: -1;
}

.hero__inner {
    max-width: var(--max-width);
    width: 100%;
    padding: var(--space-16) var(--container-px);
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero__eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--brand-orange);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 4px rgba(238, 118, 36, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(238, 118, 36, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(238, 118, 36, 0); }
}

.hero h1 {
    color: var(--white);
    font-size: var(--text-hero);
    margin-bottom: var(--space-5);
    max-width: 900px;
    margin-inline: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    letter-spacing: -0.02em;
}

/* Mobile pequeño: reducir hero para que "Impermeabilizantes" quepa */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; letter-spacing: -0.03em; }
    .page-hero h1 { font-size: 1.6rem; letter-spacing: -0.02em; }
    .hero__subtitle, .page-hero p { font-size: var(--text-base); }
    .hero__eyebrow { font-size: 0.65rem; padding: 0.4rem 0.8rem; }
    .breadcrumb { font-size: 0.75rem; }
}

.hero__inner {
    min-width: 0;
}

.hero h1 .hero__highlight {
    color: var(--brand-orange-light);
}

.hero__h1-line {
    display: block;
    color: inherit;
}

.hero__subtitle {
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto var(--space-8);
    opacity: 0.95;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.hero__trust {
    margin-top: var(--space-10);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    justify-content: center;
    font-size: var(--text-sm);
    opacity: 0.92;
}

.hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.hero__trust i {
    color: var(--brand-orange-light);
}

/* ── Sección genérica ──────────────────────────────────────────────────── */
.section {
    padding: var(--space-20) 0;
}

.section--alt {
    background: var(--ink-50);
}

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-12);
}

.section__eyebrow {
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: var(--text-xs);
    margin-bottom: var(--space-3);
}

.section__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.section__lead {
    font-size: var(--text-lg);
    color: var(--ink-500);
}

/* ── Beneficios (3 columnas) ───────────────────────────────────────────── */
.benefits {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

.benefit {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                border-color var(--duration-base);
}

.benefit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.benefit__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-light));
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: var(--text-xl);
    margin-bottom: var(--space-5);
}

.benefit:nth-child(2) .benefit__icon {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
}

.benefit h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.benefit p {
    color: var(--ink-500);
    margin: 0;
}

/* ── Cards de productos ────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-green);
}

.product-card:nth-child(even)::before {
    background: var(--brand-orange);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--brand-green);
    background: rgba(74, 139, 44, 0.1);
}

.product-card:nth-child(even) .product-card__icon {
    color: var(--brand-orange);
    background: rgba(238, 118, 36, 0.1);
}

.product-card h2,
.product-card h3 {
    font-size: var(--text-xl);
    margin: 0;
}

.product-card p {
    color: var(--ink-500);
    margin: 0;
    flex-grow: 1;
}

.product-card__link {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
    transition: gap var(--duration-base) var(--ease-out);
}

.product-card:nth-child(even) .product-card__link {
    color: var(--brand-orange);
}

.product-card__link:hover { gap: var(--space-3); }

.product-card__link i {
    transition: transform var(--duration-base) var(--ease-out);
}

.product-card:hover .product-card__link i {
    transform: translateX(4px);
}

/* ── Sección de servicios (split layout) ───────────────────────────────── */
.service {
    display: grid;
    gap: var(--space-10);
    align-items: center;
    margin-bottom: var(--space-16);
    grid-template-columns: 1fr;
}

.service:last-child { margin-bottom: 0; }

.service__media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.service__media picture,
.service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.service:hover .service__media img,
.service:hover .service__media picture img {
    transform: scale(1.04);
}

.service__content h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.service__content p {
    margin-bottom: var(--space-6);
}

.service__eyebrow {
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: var(--text-xs);
    display: block;
    margin-bottom: var(--space-2);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
    max-width: 840px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--ink-100);
}

.faq__item summary {
    cursor: pointer;
    padding: var(--space-5) 0;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--ink-900);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    transition: color var(--duration-fast);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: '+';
    font-size: var(--text-2xl);
    color: var(--brand-orange);
    transition: transform var(--duration-base) var(--ease-out);
    flex-shrink: 0;
}

.faq__item[open] summary::after {
    transform: rotate(45deg);
}

.faq__item summary:hover { color: var(--brand-green); }

.faq__item p {
    padding: 0 0 var(--space-5);
    color: var(--ink-500);
    margin: 0;
}

/* ── CTA final ─────────────────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: var(--white);
    padding: var(--space-16) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding-inline: var(--container-px);
}

.cta-band h2 {
    color: var(--white);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.cta-band p {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
}

.cta-band__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

/* ── Footer rediseñado ─────────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, #2d4d1a 0%, #1a2f0e 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-16) 0 var(--space-4);
    font-size: var(--text-sm);
    display: block;
    text-align: left;
}

.site-footer__grid {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--container-px);
    display: grid;
    gap: var(--space-10);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-12);
}

.site-footer__grid,
.site-footer__grid > *,
.site-footer__bottom {
    grid-column: auto !important;
    margin-top: 0 !important;
}

.site-footer__brand img {
    height: 56px;
    width: auto;
    margin-bottom: var(--space-4);
}

.site-footer h3 {
    color: var(--white);
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--duration-fast), padding-left var(--duration-fast);
}

.site-footer a:hover {
    color: var(--white);
    padding-left: var(--space-1);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-4) var(--container-px) 0;
    max-width: var(--max-width);
    margin-inline: auto;
    text-align: center;
    font-size: var(--text-xs);
    opacity: 0.7;
}

.site-footer__bottom a { color: rgba(255, 255, 255, 0.85); }

/* ── WhatsApp flotante con animación ───────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: var(--z-float);
    font-size: 1.8rem;
    text-decoration: none;
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base);
    animation: float-pulse 3s ease-in-out infinite;
}

.wa-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ── Servicio destacado: APLICACIÓN PROFESIONAL ──────────────────────── */
.application-feature {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3a0a 0%, #2d4d1a 50%, #4a8b2c 100%);
    color: var(--white);
    isolation: isolate;
}

.application-feature::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 118, 36, 0.25), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    z-index: -1;
}

.application-feature::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 118, 36, 0.15), transparent 70%);
    bottom: -200px;
    left: -200px;
    pointer-events: none;
    z-index: -1;
}

.application-feature__inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: var(--space-20) var(--container-px);
    display: grid;
    gap: var(--space-12);
    grid-template-columns: 1fr;
    align-items: center;
}

.application-feature__media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4 / 3;
}

.application-feature__media picture,
.application-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-feature__badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--brand-orange);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 14px rgba(238, 118, 36, 0.5);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.application-feature__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse-white 2s ease-in-out infinite;
}

@keyframes pulse-white {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.application-feature__content h2 {
    color: var(--white);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.application-feature__content h2 span {
    color: var(--brand-orange-light);
}

.application-feature__eyebrow {
    display: inline-block;
    color: var(--brand-orange-light);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-3);
}

.application-feature__lead {
    font-size: var(--text-lg);
    opacity: 0.95;
    margin-bottom: var(--space-6);
}

.application-feature__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-8);
    display: grid;
    gap: var(--space-3);
}

.application-feature__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
}

.application-feature__list i {
    width: 24px;
    height: 24px;
    background: rgba(238, 118, 36, 0.2);
    color: var(--brand-orange-light);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    margin-top: 4px;
}

.application-feature__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* Proceso 1-2-3-4 */
.process-steps {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    margin-top: var(--space-8);
    counter-reset: step;
}

.process-step {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    counter-increment: step;
    transition: transform var(--duration-base) var(--ease-out),
                background var(--duration-base);
}

.process-step:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.process-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: var(--space-4);
    right: var(--space-5);
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-orange);
    opacity: 0.4;
    line-height: 1;
}

.process-step__icon {
    width: 48px;
    height: 48px;
    background: var(--brand-orange);
    color: var(--white);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: var(--space-3);
}

.process-step h4 {
    color: var(--white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.process-step p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    margin: 0;
    line-height: 1.5;
}

/* Tipos de proyectos atendidos */
.application-feature__projects {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
}

.project-tag i {
    color: var(--brand-orange-light);
}

@media (min-width: 900px) {
    .application-feature__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
        padding: var(--space-24) var(--container-px);
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .application-feature__content h2 {
        font-size: var(--text-4xl);
    }
}

/* ── Galería/Carrusel rediseñado ───────────────────────────────────────── */
.gallery__section {
    position: relative;
}

.gallery__section .carousel-cell {
    width: 100%;
    height: clamp(280px, 50vh, 540px);
    overflow: hidden;
}

.gallery__section .carousel-cell img,
.gallery__section .carousel-cell picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__section .trapezoid {
    display: none; /* Ocultamos el trapezoide legacy; el branding va en nav */
}

/* ── Scroll reveal animations ──────────────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Page hero (compacto, no fullscreen) ───────────────────────────────── */
.page-hero {
    position: relative;
    padding: var(--space-16) 0 var(--space-12);
    color: var(--white);
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero__media picture,
.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(54, 117, 25, 0.92) 0%,
        rgba(238, 118, 36, 0.75) 100%
    );
    z-index: -1;
}

.page-hero__inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 0 var(--container-px);
}

.page-hero h1 {
    color: var(--white);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.page-hero__inner {
    min-width: 0;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--text-lg);
    max-width: 720px;
    margin-inline: auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    opacity: 0.9;
    justify-content: center;
    max-width: 100%;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb i { font-size: 0.6rem; }

/* ── Listado de productos (productos/<categoría>/) ─────────────────────── */
.product-list {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
}

.product-row {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base);
}

.product-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-green-light);
}

.product-row__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(74, 139, 44, 0.1);
    color: var(--brand-green);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.product-row:nth-child(even) .product-row__icon {
    background: rgba(238, 118, 36, 0.1);
    color: var(--brand-orange);
}

.product-row__info h2 {
    font-size: var(--text-lg);
    margin: 0 0 var(--space-1);
    font-family: var(--font-display);
}

.product-row__info p {
    color: var(--ink-500);
    margin: 0;
    font-size: var(--text-sm);
}

.product-row__cta {
    align-self: flex-start;
}

@media (min-width: 768px) {
    .product-row {
        flex-direction: row;
        align-items: center;
    }
    .product-row__info {
        flex-grow: 1;
        padding-inline: var(--space-4);
    }
    .product-row__cta {
        align-self: center;
    }
}

/* ── Ficha de producto individual ──────────────────────────────────────── */
.product-detail {
    display: grid;
    gap: var(--space-10);
    grid-template-columns: 1fr;
    max-width: var(--max-width);
    margin-inline: auto;
}

.product-detail__gallery {
    background: var(--ink-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.product-detail__gallery .carousel-cell {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.product-detail__gallery .carousel-cell img,
.product-detail__gallery .carousel-cell picture {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail__info h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.product-detail__info h2 {
    font-size: var(--text-xl);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--brand-green);
}

.product-detail__info ul {
    padding-left: var(--space-6);
}

.product-detail__info li {
    margin-bottom: var(--space-2);
}

.product-detail__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--ink-100);
}

@media (min-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr 1.3fr;
        gap: var(--space-16);
    }
}

/* ── Contacto rediseñado ───────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    gap: var(--space-10);
    grid-template-columns: 1fr;
    max-width: var(--max-width);
    margin-inline: auto;
}

.contact-info__item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--ink-100);
}

.contact-info__item:last-child { border: 0; }

.contact-info__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(74, 139, 44, 0.1);
    color: var(--brand-green);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info__item h3 {
    font-size: var(--text-base);
    margin: 0 0 var(--space-1);
}

.contact-info__item a,
.contact-info__item span {
    color: var(--ink-500);
    text-decoration: none;
    font-size: var(--text-sm);
}

.contact-info__item a:hover { color: var(--brand-green); }

.contact-form {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--ink-700);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    display: block;
    width: 100%;
    border: 1px solid var(--ink-300);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--ink-900);
    background: var(--white);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(74, 139, 44, 0.15);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    background: var(--brand-orange);
    color: var(--white);
    border: 0;
    border-radius: var(--radius-full);
    padding: var(--space-4) var(--space-6);
    font-weight: 700;
    font-size: var(--text-base);
    cursor: pointer;
    transition: background var(--duration-base), transform var(--duration-base);
    box-shadow: 0 4px 14px rgba(238, 118, 36, 0.35);
}

.contact-form button:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

#result {
    margin-top: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: var(--text-sm);
}

#result:empty {
    display: none;
}

#result.is-success {
    background: rgba(74, 139, 44, 0.1);
    color: var(--brand-green-dark);
}

#result.is-error {
    background: rgba(238, 118, 36, 0.15);
    color: var(--brand-orange-dark);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.3fr;
        gap: var(--space-16);
    }
}

/* ── Map embed responsivo ──────────────────────────────────────────────── */
.map-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-8);
    border: 1px solid var(--ink-100);
    box-shadow: var(--shadow-sm);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Oculta el legacy .banner__section / .main__nav viejos cuando se cargan
   las plantillas nuevas — evita el "doble banner/menú" en transición.
   (Las páginas nuevas usan .topbar y .nav y no las viejas.) */
.banner__section,
.main__nav,
.bar,
.list__section .box,
.solutions__section,
.contact__section,
.product-item__section {
    /* Mantenemos por compatibilidad legacy; el nuevo markup no las usa */
}

/* ── Responsive: tablet ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .topbar__inner {
        justify-content: center;
        text-align: center;
    }

    .topbar__social {
        display: none;
    }

    .nav__inner {
        gap: var(--space-3);
    }

    .nav__brand {
        min-width: 0;
    }

    .nav__brand img {
        height: 38px;
    }

    .nav__brand-text strong {
        font-size: 0.95rem;
    }

    .hero {
        min-height: auto;
    }

    .hero__inner {
        padding: var(--space-12) var(--container-px);
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero__cta,
    .cta-band__buttons,
    .product-detail__cta {
        align-items: stretch;
        flex-direction: column;
    }

    .hero__cta .btn,
    .cta-band__buttons .btn,
    .product-row__cta,
    .product-row__cta .btn,
    .product-detail__cta .btn,
    .contact-form button {
        width: 100%;
    }

    .hero__trust {
        align-items: center;
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero__trust span {
        justify-content: center;
        max-width: 100%;
        text-align: center;
    }

    .page-hero {
        padding: var(--space-12) 0 var(--space-10);
    }

    .section {
        padding: var(--space-12) 0;
    }

    .benefit,
    .product-card,
    .product-row,
    .contact-form {
        padding: var(--space-5);
    }

    .service {
        gap: var(--space-6);
        margin-bottom: var(--space-10);
    }

    .wa-float {
        width: 52px;
        height: 52px;
        right: var(--space-4);
        bottom: var(--space-4);
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .nav__menu { display: flex; }
    .nav__toggle { display: none; }
    .nav__cta { display: inline-flex; }

    .benefits { grid-template-columns: repeat(3, 1fr); }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }

    .service--reverse .service__media {
        order: 2;
    }

    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .hero__inner {
        text-align: left;
    }

    .hero__cta,
    .hero__trust {
        justify-content: flex-start;
    }

    .hero h1, .hero__subtitle {
        margin-inline: 0;
    }
}

/* ── Responsive: desktop ───────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .hero { min-height: 88vh; }
}
