/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --bg-base: #fdfdfc;
    --primary: #536B4D;
    --primary-light: #6a8263;
    --secondary: #8c8275;
    --text-dark: #1f211e;
    --text-muted: #60645f;
    --white: #ffffff;
    --card-bg: #f5f4f0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --bezier-premium: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    --bezier-fast: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1%;
}

img,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: var(--bezier-premium);
}
.scroll-reveal.fade-up { transform: translateY(50px); }
.scroll-reveal.reveal-left { transform: translateX(-60px); }
.scroll-reveal.reveal-right { transform: translateX(60px); }
.scroll-reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    background-color: rgba(253, 253, 252, 0.96);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(83, 107, 77, 0.08);
    backdrop-filter: blur(12px);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.logo img {
    display: block;
    height: 40px;
    width: auto;
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger .line {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    padding: 8px 0;
    margin: 0 10px;
    position: relative;
    transition: var(--bezier-fast);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}
.arrow {
    font-size: 8px;
    vertical-align: middle;
    opacity: 0.5;
}
.btn-nav {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    border-radius: 4px;
}
.btn-nav:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

/* MEGA MENÚ */
.has-mega { position: static !important; }
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 24px 48px rgba(0,0,0,0.03);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--bezier-fast);
    border-top: 1px solid rgba(0,0,0,0.02);
}
.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 30px;
}
.mega-col h4 {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 18px;
    text-transform: uppercase;
}
.mega-col a {
    display: block;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    text-decoration: none;
}
.mega-col a::after { display: none; }
.mega-col a:hover {
    color: var(--text-dark);
    transform: translateX(5px);
}
.mega-featured img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 6px;
}
.mega-featured p {
    font-size: 12px;
    color: var(--secondary);
    font-style: italic;
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.slide.active { opacity: 1; }
.slide-content {
    max-width: 580px;
    padding: 0 5%;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
@media (prefers-reduced-motion: no-preference) {
    .slide-content .subtitle,
    .slide-content h1,
    .slide-content p,
    .slide-content .btn {
        opacity: 0;
        transform: translateY(22px);
        animation: heroRise .9s cubic-bezier(0.16,1,0.3,1) forwards;
    }
    .slide:not(.active) .slide-content * { animation: none; opacity: 0; }
    .slide-content .subtitle { animation-delay: .15s; }
    .slide-content h1 { animation-delay: .28s; }
    .slide-content p { animation-delay: .42s; }
    .slide-content .btn { animation-delay: .56s; }
}
@keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
}
.slide-content .subtitle {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.8);
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
}
.slide-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 400;
}
.slide-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 35px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}
.slide-content .btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--bezier-fast);
    border: none;
    border-radius: 4px;
    display: inline-block;
}
.slide-content .btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(83, 107, 77, 0.4);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Indicador de scroll del hero */
.scroll-cue {
    position: absolute;
    right: 5%;
    bottom: 34px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.scroll-cue .cue-line {
    width: 1px;
    height: 34px;
    background: rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}
.scroll-cue .cue-line::after {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: var(--white);
    animation: cueDrip 1.8s ease-in-out infinite;
}
@keyframes cueDrip {
    0% { top: -100%; }
    60% { top: 100%; }
    100% { top: 100%; }
}
@media (max-width: 992px) { .scroll-cue { display: none; } }

/* ==========================================================================
   FRANJA DE MATERIALES — elemento de firma del sitio
   Cada muestra representa físicamente el material de esa categoría:
   listones (persianas), duela (pisos), hiladas de muro (muros), pasto (exterior)
   ========================================================================== */
.material-strip {
    background: var(--text-dark);
    padding: 0;
}
.material-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.material-swatch {
    position: relative;
    height: 190px;
    overflow: hidden;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}
.material-swatch:last-child { border-right: none; }
.material-swatch .swatch-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.85;
    transition: background-size 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.material-swatch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16,17,15,0.92) 0%, rgba(16,17,15,0.35) 55%, rgba(16,17,15,0.15) 100%);
    z-index: 1;
}
.material-swatch .swatch-label {
    position: relative;
    z-index: 2;
    padding: 22px 24px;
    color: var(--white);
    width: 100%;
}
.material-swatch .swatch-icon {
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 10px;
    transition: var(--bezier-fast);
}
.material-swatch h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 4px;
    transition: transform .5s cubic-bezier(0.16,1,0.3,1);
}
.material-swatch .swatch-cta {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    opacity: 0;
    transform: translateY(6px);
    transition: var(--bezier-fast);
    display: block;
}
.material-swatch:hover .swatch-cta { opacity: 1; transform: translateY(0); }
.material-swatch:hover .swatch-icon { color: var(--white); transform: translateY(-3px); }
.material-swatch:hover .swatch-pattern { transform: scale(1.08); }

/* Persianas: listones horizontales que "se abren" al hover */
.swatch-persianas .swatch-pattern {
    background: repeating-linear-gradient(0deg, #6a8263 0px, #6a8263 10px, #536B4D 10px, #536B4D 12px);
    background-size: 100% 12px;
}
.swatch-persianas:hover .swatch-pattern { background-size: 100% 20px; }

/* Pisos: duelas verticales con juntas */
.swatch-pisos .swatch-pattern {
    background: repeating-linear-gradient(90deg, #8a6a45 0px, #a8825a 46px, #7c5c3a 48px, #8a6a45 50px);
}
.swatch-pisos:hover .swatch-pattern { background-size: 60px 100%; }

/* Muros: hiladas de ladrillo/panel a trabe */
.swatch-muros .swatch-pattern {
    background:
        repeating-linear-gradient(0deg, transparent 0px, transparent 38px, rgba(0,0,0,0.25) 38px, rgba(0,0,0,0.25) 40px),
        repeating-linear-gradient(90deg, #6b5c4a 0px, #7d6c58 78px, #5c4e3e 80px);
    background-position: 0 0, 0 0;
}
.swatch-muros:nth-of-type(even) .swatch-pattern { background-position: 0 0, 40px 40px; }

/* Exteriores: textura de pasto */
.swatch-exteriores .swatch-pattern {
    background:
        repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0px, transparent 2px, transparent 9px),
        repeating-linear-gradient(65deg, rgba(0,0,0,0.08) 0px, transparent 2px, transparent 9px),
        linear-gradient(160deg, #4d6b3f, #365029);
}

@media (max-width: 768px) {
    .material-grid { grid-template-columns: repeat(2, 1fr); }
    .material-swatch { height: 150px; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ==========================================================================
   HERO DE PÁGINAS INTERNAS — reveal cinético + breadcrumb de categoría
   (Aplica automáticamente a todas las páginas de producto)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .page-hero-content .subtitle,
    .page-hero-content h1,
    .page-hero-content p,
    .page-hero-content .btn,
    .page-hero-content .hero-breadcrumb {
        opacity: 0;
        transform: translateY(20px);
        animation: heroRise .9s cubic-bezier(0.16,1,0.3,1) forwards;
    }
    .page-hero-content .hero-breadcrumb { animation-delay: .05s; }
    .page-hero-content .subtitle { animation-delay: .18s; }
    .page-hero-content h1 { animation-delay: .3s; }
    .page-hero-content p { animation-delay: .44s; }
    .page-hero-content .btn { animation-delay: .58s; }
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 14px;
}
.hero-breadcrumb .icon-svg { width: 15px; height: 15px; }
.hero-breadcrumb .crumb-sep { opacity: .45; font-weight: 400; }
.hero-breadcrumb .crumb-muted { color: var(--text-muted); font-weight: 400; letter-spacing: 1px; }

/* Barra visual de especificación (usa los datos reales ya listados en spec-list) */
.spec-visual { margin: 4px 0 22px; }
.spec-visual .spec-visual-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.spec-visual .spec-visual-label b { color: var(--text-dark); font-weight: 600; }
.opacity-bar {
    height: 5px;
    background: rgba(83,107,77,0.12);
    border-radius: 3px;
    overflow: hidden;
}
.opacity-bar span {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transform-origin: left;
    transform: scaleX(0);
    animation: barGrow 1.3s cubic-bezier(0.16,1,0.3,1) forwards;
    animation-delay: .3s;
}
@keyframes barGrow { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .opacity-bar span { transform: scaleX(1); animation: none; }
}
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--bezier-fast);
    border: none;
    border-radius: 4px;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(83, 107, 77, 0.2);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}
.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   MARCAS
   ========================================================================== */
.brands-bar {
    padding: 30px 0;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.02);
}
.brands-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.brands-flex p {
    font-size: 13px;
    color: var(--secondary);
}
.brand-item {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #bcba8b;
    opacity: 0.75;
}

/* ==========================================================================
   SHOWCASE CARRUSEL
   ========================================================================== */
.products-showcase {
    padding: 60px 0;
    background-color: var(--bg-base);
}
.showcase-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.showcase-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.showcase-slide {
    min-width: 100%;
    min-height: 300px;
    padding: 10%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}
.showcase-slide-content {
    max-width: 500px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: left;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.showcase-slide.active .showcase-slide-content {
    opacity: 1;
    transform: translateX(0);
}
.showcase-slide.exiting .showcase-slide-content {
    opacity: 0;
    transform: translateX(-40px);
}
.showcase-slide.entering .showcase-slide-content {
    opacity: 0;
    transform: translateX(40px);
}
.showcase-slide.active.entering .showcase-slide-content {
    opacity: 1;
    transform: translateX(0);
}
.showcase-slide-content .showcase-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 18px;
}
.showcase-slide-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 12px;
}
.showcase-slide-content p {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    margin-bottom: 25px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}
.showcase-slide-content .btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--bezier-fast);
    border: none;
    border-radius: 4px;
    display: inline-block;
}
.showcase-slide-content .btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(83, 107, 77, 0.4);
}
.showcase-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.showcase-dot.active {
    background-color: var(--white);
    transform: scale(1.25);
}

/* ==========================================================================
   CATÁLOGO (TARJETAS)
   ========================================================================== */
.products-section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.section-header span::before,
.section-header span::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--secondary);
    opacity: .6;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.section-header p {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 25px;
}
.product-card {
    background-color: transparent;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}
.product-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--card-bg);
    overflow: hidden;
}
.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
    will-change: transform;
    transition: transform 0.12s ease-out;
}
.product-info {
    padding: 20px 12px 12px;
}
.brand-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.product-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 10px;
    font-weight: 400;
    transition: var(--bezier-fast);
}
.product-card:hover h3 { color: var(--primary); }
.product-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   MARCAS SHOWCASE
   ========================================================================== */
.brands-showcase {
    padding: 60px 0;
    background-color: var(--card-bg);
}
.brands-showcase-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.brand-showcase-item img {
    max-width: 160px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--bezier-fast);
}
.brand-showcase-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   VALORES
   ========================================================================== */
.features {
    padding: 70px 0;
    background-color: var(--card-bg);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-icon {
    font-size: 34px;
    display: block;
    margin-bottom: 15px;
}
.feature-item h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    margin-bottom: 10px;
    font-weight: 400;
}
.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   NOSOTROS
   ========================================================================== */
.about {
    padding: 80px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}
.about-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    transition: transform 1.6s cubic-bezier(0.25,1,0.5,1);
    transform: scale(1.05);
}
.about-grid:hover .about-image { transform: scale(1.0); }
.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.2;
}
.about-content p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.65;
}
.about-content p strong { color: var(--text-dark); }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact {
    padding: 80px 0;
    background-color: var(--card-bg);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
}
.contact-form {
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.01);
    border-radius: 12px;
}
.contact-form-container h2,
.contact-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: 15px;
    font-weight: 400;
}
.form-group { margin-bottom: 22px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--secondary);
    font-weight: 600;
}
input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e6e2dd;
    background-color: var(--bg-base);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--bezier-fast);
    border-radius: 4px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
}
.location-text {
    color: var(--text-muted);
    margin-bottom: 25px;
}
.map-container {
    box-shadow: 0 25px 50px rgba(0,0,0,0.03);
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
}
.map-container iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #171816;
    color: #878b86;
    padding: 40px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.02);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.brand-credits { color: var(--secondary); letter-spacing: 0.5px; }

/* ==========================================================================
   BOTONES FLOTANTES
   ========================================================================== */
.call-float, .whatsapp-float {
    position: fixed;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    z-index: 999;
    transition: var(--bezier-fast);
    text-decoration: none;
}
.call-float { bottom: 100px; background-color: #4CAF50; }
.call-float:hover { transform: scale(1.08) translateY(-4px); box-shadow: 0 14px 32px rgba(76,175,80,0.35); }
.whatsapp-float { bottom: 30px; background-color: #25d366; }
.whatsapp-float:hover { transform: scale(1.08) translateY(-4px); box-shadow: 0 14px 32px rgba(37,211,102,0.35); }
.call-icon { width: 26px; height: 26px; }
.whatsapp-icon { width: 30px; height: 30px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(253,253,252,0.98);
        backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
        padding: 2rem;
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .nav-links a {
        font-size: 18px;
        margin: 0;
    }
    .btn-nav {
        border: none;
        background-color: var(--primary);
        color: var(--white) !important;
        padding: 12px 32px !important;
    }
    .btn-nav:hover { background-color: var(--primary-light); }
    .has-mega .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 15px 0;
        border-top: none;
        background: transparent;
        display: none;
    }
    /* Cambiamos el :hover en móvil por una clase .active controlada por JS */
    .has-mega.active .mega-menu { 
        display: block !important; 
    }
    .mega-featured { display: none; }
    .hero-slider { height: 70vh; min-height: 400px; }
    .slide-content h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .about-grid, .contact-grid, .features-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .showcase-slide { min-height: 250px; padding: 8%; }
    .showcase-slide-content h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
    .call-float, .whatsapp-float { width: 50px; height: 50px; right: 15px; }
    .call-float { bottom: 90px; }
    .call-icon { width: 22px; height: 22px; }
    .whatsapp-icon { width: 26px; height: 26px; }
}

@media (max-width: 600px) {
    .container { width: 96%; padding: 0 2%; }
    .hero-slider { height: 60vh; min-height: 350px; }
    .slide-content h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .slide-content p { font-size: 0.9rem; margin-bottom: 25px; }
    .slide-content .btn { padding: 10px 20px; font-size: 12px; }
    .products-grid { grid-template-columns: 1fr; gap: 35px; }
    .contact-form { padding: 25px 15px; }
    .brands-flex { flex-direction: column; align-items: flex-start; }
    .brands-showcase-grid { gap: 25px; }
    .brand-showcase-item img { max-width: 120px; }
    .showcase-slide { min-height: 220px; padding: 6%; }
    .showcase-slide-content .showcase-icon { font-size: 32px; }
    .showcase-slide-content h3 { font-size: 1.4rem; }
    .showcase-slide-content p { font-size: 0.85rem; margin-bottom: 18px; }
    .showcase-slide-content .btn { padding: 8px 18px; font-size: 11px; }
    .showcase-dot { width: 10px; height: 10px; }
    .showcase-controls { gap: 10px; bottom: 12px; }
    .slider-controls { bottom: 20px; gap: 10px; }
    .slider-dot { width: 10px; height: 10px; }
    .map-container iframe { aspect-ratio: 4 / 3; }
    .call-float, .whatsapp-float { width: 44px; height: 44px; right: 12px; }
    .call-float { bottom: 80px; }
    .call-icon { width: 18px; height: 18px; }
    .whatsapp-icon { width: 22px; height: 22px; }
}

/* ==========================================================================
   SISTEMA DE ICONOS (sustituye emojis por SVG de línea, hereda color)
   ========================================================================== */
/* Acento de marca por defecto en wrappers de ícono que no definían su propio color
   (antes lo daba el emoji a todo color; ahora el SVG usa currentColor) */
.feature-icon,
.solution-icon,
.info-icon,
.attribute-icon {
    color: var(--primary);
}

.icon-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.location-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.location-text .pin-icon {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--primary);
    stroke-width: 1.7;
}
.location-text span { flex: 1; }

/* ==========================================================================
   MICRO-INTERACCIONES Y ACABADOS PREMIUM
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

    /* Reveal escalonado para grids de tarjetas: cada hijo se retrasa un poco */
    .products-grid.scroll-reveal.active > *,
    .info-grid.scroll-reveal.active > *,
    .solutions-grid.scroll-reveal.active > *,
    .benefits-grid.scroll-reveal.active > * {
        animation: itemRise .8s cubic-bezier(0.16,1,0.3,1) backwards;
    }
    .products-grid > *:nth-child(1), .info-grid > *:nth-child(1), .solutions-grid > *:nth-child(1), .benefits-grid > *:nth-child(1) { animation-delay: .05s; }
    .products-grid > *:nth-child(2), .info-grid > *:nth-child(2), .solutions-grid > *:nth-child(2), .benefits-grid > *:nth-child(2) { animation-delay: .12s; }
    .products-grid > *:nth-child(3), .info-grid > *:nth-child(3), .solutions-grid > *:nth-child(3), .benefits-grid > *:nth-child(3) { animation-delay: .19s; }
    .products-grid > *:nth-child(4), .info-grid > *:nth-child(4), .solutions-grid > *:nth-child(4), .benefits-grid > *:nth-child(4) { animation-delay: .26s; }
    .products-grid > *:nth-child(5), .info-grid > *:nth-child(5), .solutions-grid > *:nth-child(5), .benefits-grid > *:nth-child(5) { animation-delay: .33s; }
    .products-grid > *:nth-child(6), .info-grid > *:nth-child(6), .solutions-grid > *:nth-child(6), .benefits-grid > *:nth-child(6) { animation-delay: .40s; }
}

@keyframes itemRise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes iconPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.15) rotate(-4deg); }
    100% { transform: scale(1); }
}

/* Los íconos dentro de tarjetas "laten" suavemente al pasar el cursor por la tarjeta */
.info-card:hover .icon-svg,
.solution-item:hover .icon-svg,
.benefit-item:hover .icon-svg,
[class*="benefit"]:hover .icon-svg,
[class*="info-icon"]:hover,
.showcase-icon.icon-svg {
    animation: iconPop .5s cubic-bezier(0.34,1.56,0.64,1);
}

/* Botones: leve “respiración” + brillo direccional al pasar el cursor */
.btn { position: relative; overflow: hidden; }
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left .7s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(-1px) scale(0.98); }

/* Subrayado animado para enlaces de texto dentro de contenido */
.link-underline {
    position: relative;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size .4s cubic-bezier(0.16,1,0.3,1);
}
.link-underline:hover { background-size: 100% 1px; }

/* Zoom de imagen sutil dentro de contenedores con overflow oculto */
.img-zoom { overflow: hidden; }
.img-zoom img,
.img-zoom { transition: transform 1.1s cubic-bezier(0.16,1,0.3,1); }
.img-zoom:hover img { transform: scale(1.06); }

/* Foco visible accesible y consistente con la marca */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Selección de texto acorde a la paleta */
::selection { background: var(--primary); color: var(--white); }

/* Barra de desplazamiento discreta acorde a la marca (navegadores WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
