:root {
    /* Slate Industrial — Oil & Gas */
    --bg:           #f0f2f4;
    --bg-soft:      #e8ebed;
    --bg-mid:       #dde0e3;
    --border:       #c8cdd2;
    --border-soft:  #d4d8dc;

    --ink:          #1e2530;
    --ink-mid:      #374151;
    --ink-soft:     #5a6475;
    --ink-faint:    #8a95a3;

    --azure:        #0096b4;
    --azure-dark:   #007a94;
    --azure-light:  #22aecb;
    --azure-glow:   rgba(0, 150, 180, 0.12);
    --azure-subtle: rgba(0, 150, 180, 0.07);

    --white:        #f0f2f4;
    --black-deep:   #1e2530;

    /* Legacy aliases (kept for JS references) */
    --gray-dark:    #dde0e3;
    --gray-mid:     #c8cdd2;
    --gray-text:    #5a6475;
    --white-soft:   #374151;
    --black-soft:   #e8ebed;
    --petroleum:    #e8ebed;

    --map-bg: url('../images/mapa-vm.png');
    --font-display: 'Bebas Neue', sans-serif;
    --font-serif:   'Instrument Serif', serif;
    --font-body:    'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   CURSOR PERSONALIZADO
   ============================================ */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--azure);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--azure);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Noise overlay — muy sutil en light */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 4rem;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: rgba(232, 235, 237, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 38px;
    width: auto;
}

.logo::after {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--azure);
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-chat-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--ink-soft);
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-chat-btn:hover,
.nav-chat-btn.active {
    border-color: var(--azure);
    color: var(--azure);
    background: var(--azure-subtle);
}

/* Acceder — minimalista, solo texto */
.nav-login {
    color: rgba(30, 37, 48, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(30, 37, 48, 0.2);
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.nav-login:hover {
    color: var(--ink);
    border-color: rgba(30, 37, 48, 0.4);
}

/* Directorio — CTA principal, destaca */
.nav-cta-dir {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-cta-dir:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.nav-cta-dir svg {
    opacity: 0.7;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100svh; /* fix iOS/Android browser bar bounce */
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    padding-top: 68px;
}

/* Contenedor del video de fondo */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Ambos videos apilados, crossfade con opacity */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

/* Overlay: izquierda con texto legible, derecha casi transparente para ver el video */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(240, 242, 244, 0.72) 0%,
        rgba(240, 242, 244, 0.48) 30%,
        rgba(240, 242, 244, 0.14) 55%,
        rgba(240, 242, 244, 0.02) 100%
    );
    z-index: 1;
}

/* Sin cuadriculado */
.hero::before {
    display: none;
}

.hero-content {
    padding: 6rem 4rem 4rem 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-tag::before {
    content: '';
    width: 32px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-title span {
    display: block;
    color: #ffffff;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.75);
    max-width: 460px;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.btn-primary {
    padding: 0.85rem 2.25rem;
    background: var(--azure);
    border: 1px solid var(--azure);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.4s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--azure-dark);
    border-color: var(--azure-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 163, 197, 0.25);
}

.btn-secondary {
    padding: 0.85rem 2.25rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    border-color: var(--ink-mid);
    background: var(--bg-soft);
}

/* ---- Hero visual (anillos) ---- */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--azure-glow) 0%, transparent 65%);
    animation: pulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.08); }
}

.hero-graphic {
    width: 500px;
    height: 500px;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

/* ---- Anillos: pausa por defecto, giran solo al hover sobre .hero-graphic ---- */

/* Anillo exterior */
.circle-services {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotateServicesRing 60s linear infinite;
    animation-play-state: paused;
}

@keyframes rotateServicesRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Anillo medio */
.circle-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    animation: rotateRing 30s linear infinite;
    animation-play-state: paused;
}

.circle-middle::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.30);
    border-radius: 50%;
}

/* Anillo interno */
.circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45%;
    height: 45%;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    animation: rotateRingReverse 20s linear infinite;
    animation-play-state: paused;
}

/* Al hover → todos giran */
.hero-graphic:hover .circle-services,
.hero-graphic:hover .circle-middle,
.hero-graphic:hover .circle-inner {
    animation-play-state: running;
}

@keyframes rotateRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateRingReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to   { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Centro — partículas Three.js — fondo transparente */
.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
    z-index: 10;
}

.logo-center img {
    width: 85%;
    height: auto;
    object-fit: contain;
}

/* Burbujas de servicios — glass */
.service-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 24px rgba(255, 255, 255, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    z-index: 5;
    animation: float 3s ease-in-out infinite;
}

.service-bubble:nth-child(even) {
    animation-delay: 1.5s;
}

.service-bubble:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 
        0 8px 32px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.service-bubble svg {
    width: 50%;
    height: 50%;
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1.5;
    fill: none;
}

.service-bubble.large  { width: 65px; height: 65px; }
.service-bubble.medium { width: 55px; height: 55px; }
.service-bubble.small  { width: 45px; height: 45px; }

.service-bubble:nth-child(1)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(0deg)   translateY(-250px) rotate(0deg);    }
.service-bubble:nth-child(2)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(30deg)  translateY(-250px) rotate(-30deg);  }
.service-bubble:nth-child(3)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(60deg)  translateY(-250px) rotate(-60deg);  }
.service-bubble:nth-child(4)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(90deg)  translateY(-250px) rotate(-90deg);  }
.service-bubble:nth-child(5)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(120deg) translateY(-250px) rotate(-120deg); }
.service-bubble:nth-child(6)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(150deg) translateY(-250px) rotate(-150deg); }
.service-bubble:nth-child(7)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(180deg) translateY(-250px) rotate(-180deg); }
.service-bubble:nth-child(8)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(210deg) translateY(-250px) rotate(-210deg); }
.service-bubble:nth-child(9)  { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(240deg) translateY(-250px) rotate(-240deg); }
.service-bubble:nth-child(10) { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(270deg) translateY(-250px) rotate(-270deg); }
.service-bubble:nth-child(11) { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(300deg) translateY(-250px) rotate(-300deg); }
.service-bubble:nth-child(12) { top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(330deg) translateY(-250px) rotate(-330deg); }

.service-bubble::after {
    content: attr(data-service);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.service-bubble:hover::after {
    opacity: 1;
}

@keyframes float {
    0%,100% { filter: drop-shadow(0 2px 8px rgba(0,163,197,0.2)); }
    50%      { filter: drop-shadow(0 6px 20px rgba(0,163,197,0.35)); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--azure), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top center;
    will-change: transform, opacity;
}

@keyframes scrollPulse {
    0%,100% { opacity: 1; transform: scaleY(1); }
    50%      { opacity: 0.4; transform: scaleY(0.64); }
}

/* ============================================
   STATS
   ============================================ */
.stats {
    padding: 5rem 8rem;
    background: var(--bg-soft);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: var(--border);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--azure);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 9rem 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
}

/* 27.png desde R2 — background sección about */
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://pub-cc6f9056e50f4f82a94a7381c6a83333.r2.dev/27.png');
    background-size: cover;
    background-position: left center;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.about-content,
.about-visual {
    position: relative;
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 1;
}

.section-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--azure);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--azure);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin-bottom: 1.75rem;
}

.section-title span {
    color: var(--azure);
}

.section-text {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-visual {
    position: relative;
    z-index: 1;
}

.map-container {
    aspect-ratio: 1;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* About visual — imagen 27.png */
.about-img-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    aspect-ratio: 4/3;
}
.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}
.about-img-container:hover .about-img {
    transform: scale(1.03);
}
.about-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(10,15,30,0.85) 0%, transparent 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.about-img-label span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
}
.about-img-coords {
    font-family: var(--font-body) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.12em !important;
    color: var(--azure) !important;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.map-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
    background-image: var(--map-bg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 216/298;
    opacity: 0.35;
    /* Slate: invertir y ajustar tono para fondo gris acero */
    filter: invert(0.85) hue-rotate(185deg) saturate(0.7);
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
}

.map-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: var(--azure);
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    animation: pinPulse 2s ease-in-out infinite;
}

.map-point::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 2px solid var(--azure);
    border-radius: 50%;
    animation: pinRing 2s ease-in-out infinite;
}

.map-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
}

.map-point:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

@keyframes pinPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(0, 163, 197, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(0, 163, 197, 0); }
}

@keyframes pinRing {
    0%,100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50%      { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.map-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.map-label span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

.map-coords {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--azure);
    letter-spacing: 0.08em;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 9rem 8rem;
    background-color: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}

/* Asegurar z-index en contenido sobre ::before */
.features-header,
.features-grid,
.how-it-works > .reveal {
    position: relative;
    z-index: 1;
}

/* 26.png — background de la sección features */
.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/26.png');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.features-header,
.features-grid {
    position: relative;
    z-index: 1;
}

.features-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--azure);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--azure);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--azure);
    stroke-width: 1.25;
    fill: none;
}

.feature-number {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--bg-mid);
    line-height: 1;
    user-select: none;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 9rem 8rem;
    background-color: var(--bg);
    border-top: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    /* Posicionar en el gap entre el menú (left 1fr) y el box (right 2fr) */
    left: 20%;
    width: 28%;
    height: 100%;
    background-image: url('../images/28.png');
    background-size: cover;
    background-position: center top;
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step {
    padding: 1.75rem 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    background: rgba(240, 242, 244, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.step:first-child {
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.step:hover {
    background: rgba(240, 242, 244, 0.90);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.step.active {
    background: rgba(240, 242, 244, 0.96);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.step.active .step-number,
.step:hover .step-number {
    color: var(--azure);
}

.step.active .step-title,
.step:hover .step-title {
    color: var(--ink);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.step-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--border);
    transition: color 0.25s ease;
    line-height: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    transition: color 0.25s ease;
}

.how-visual {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 460px;
}

.search-demo {
    width: 80%;
    max-width: 480px;
}

.search-bar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px 6px 0 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0;
    box-shadow: 0 1px 0 var(--border);
}

.search-bar svg {
    width: 18px;
    height: 18px;
    stroke: var(--azure);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--ink-faint);
}

.search-results {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.search-result {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: var(--azure-subtle);
}

.result-info h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.result-info span {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.result-distance {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--azure);
}

/* ============================================
   HOW IT WORKS — estilos extendidos para demo interactiva
   ============================================ */

.how-intro {
    color: var(--ink-soft);
    font-size: 1rem;
    margin-top: 0.75rem;
    max-width: 540px;
}

.step-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--ink-soft);
    line-height: 1.55;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.step.active .step-desc {
    max-height: 80px;
    opacity: 1;
}

/* Paneles de demo */
.demo-panel {
    display: none;
    width: 100%;
    animation: demoPanelIn 0.4s ease;
}

.demo-panel.active {
    display: block;
}

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

.demo-chrome {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.demo-chrome-bar {
    background: var(--bg-mid);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.chrome-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.chrome-dot.red    { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green  { background: #28c840; }

.chrome-url {
    margin-left: 0.5rem;
    font-size: 0.72rem;
    color: var(--ink-faint);
    font-family: var(--font-body);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.2rem 0.75rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-content {
    background: var(--bg-soft);
    padding: 1.5rem;
}

/* Demo: resultados con fade-in escalonado */
.demo-results-fade .search-result {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.demo-panel.active .demo-results-fade .search-result:nth-child(1) { opacity:1; transform:none; transition-delay:0.1s; }
.demo-panel.active .demo-results-fade .search-result:nth-child(2) { opacity:1; transform:none; transition-delay:0.25s; }
.demo-panel.active .demo-results-fade .search-result:nth-child(3) { opacity:1; transform:none; transition-delay:0.4s; }

.demo-search-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--azure);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: default;
}

/* Demo: Perfil empresa */
.demo-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.demo-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--azure);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-profile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.demo-profile-cat {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.demo-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink-soft);
}

.demo-badge.verified {
    background: rgba(0, 150, 180, 0.1);
    border-color: var(--azure);
    color: var(--azure);
}

.demo-profile-desc {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.demo-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.demo-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--ink-mid);
}

.demo-profile-certs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.demo-cert {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 150, 180, 0.08);
    border: 1px solid rgba(0, 150, 180, 0.3);
    border-radius: 4px;
    color: var(--azure-dark);
}

/* Demo: Formulario presupuesto */
.demo-quote-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.demo-quote-to {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
}

.demo-quote-label {
    color: var(--ink-faint);
}

.demo-quote-company {
    font-weight: 600;
    color: var(--azure);
}

.demo-form-row {
    margin-bottom: 0.6rem;
}

.demo-form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.demo-form-field {
    padding: 0.6rem 0.875rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--ink);
}

.demo-form-field.textarea {
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    font-size: 0.78rem;
    color: var(--ink-mid);
}

.demo-quote-actions {
    margin-top: 1rem;
}

.demo-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.5rem;
    background: var(--azure);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: default;
}

/* Demo: Dashboard */
.demo-dash-header {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.demo-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.demo-stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.demo-stat-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--azure);
    line-height: 1;
}

.demo-stat-lbl {
    font-size: 0.68rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.demo-quotes-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.demo-quote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.875rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.78rem;
    gap: 0.5rem;
}

.demo-q-name {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.demo-q-service {
    color: var(--ink-soft);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.demo-q-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    background: var(--bg-soft);
    color: var(--ink-faint);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.demo-q-status.pending {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.4);
    color: #b45309;
}

.demo-q-status.accepted {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
    color: #166534;
}

/* ============================================
   DIRECTORIO CTA — sección simplificada en landing
   ============================================ */
.directorio-cta {
    padding: 7rem 2rem 6rem;
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.directorio-cta-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.directorio-cta-inner .section-text {
    color: var(--ink-soft);
    max-width: 500px;
    margin: 1rem auto 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.65;
}

.directorio-cta-stats {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.dir-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.dir-stat strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azure);
    line-height: 1;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.dir-stat span {
    font-size: 0.75rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ============================================
   DIRECTORIO (legacy — estilos anteriores)
   ============================================ */
.directorio {
    padding: 8rem 2rem 6rem;
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    position: relative;
}

.directorio-header {
    max-width: 1100px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0.75rem auto 2rem;
    line-height: 1.6;
}

/* Filtros */
.dir-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.dir-filter {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.dir-filter:hover {
    border-color: var(--azure);
    color: var(--azure);
}

.dir-filter.active {
    background: var(--azure);
    border-color: var(--azure);
    color: #fff;
}

/* Grid */
.dir-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.dir-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ink-faint);
    font-family: var(--font-body);
    padding: 3rem 0;
}

/* Buscador */
.directorio-main {
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
}

.dir-search-bar {
    position: relative;
    margin-bottom: 1.25rem;
}

.dir-search-bar input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink);
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.dir-search-bar input:focus {
    border-color: var(--azure);
    box-shadow: 0 0 0 3px var(--azure-subtle);
}

.dir-search-bar input::placeholder {
    color: var(--ink-faint);
}

.dir-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-faint);
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Tarjeta empresa */
.dir-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.dir-card:hover {
    border-color: var(--azure);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.dir-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.dir-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--bg-mid);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--azure);
    flex-shrink: 0;
    overflow: hidden;
}

.dir-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dir-card-info {
    flex: 1;
    min-width: 0;
}

.dir-card-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-card-location {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--ink-faint);
    margin-top: 0.15rem;
}

.dir-card-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.dir-badge {
    font-size: 0.68rem;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.dir-badge-category {
    background: var(--azure-subtle);
    color: var(--azure-dark);
    border: 1px solid rgba(0, 163, 197, 0.2);
}

.dir-badge-verified {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.dir-card-description {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--ink-soft);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dir-card-services {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dir-service-tag {
    font-size: 0.68rem;
    font-family: var(--font-body);
    background: var(--bg-mid);
    color: var(--ink-mid);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
}

.dir-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   MODAL PROVEEDOR
   ============================================ */
.provider-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.provider-modal-overlay.open {
    display: flex;
}

.provider-modal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    scrollbar-width: thin;
}

.provider-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-mid);
    border: none;
    color: var(--ink-mid);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.provider-modal-close:hover {
    background: var(--azure);
    color: #fff;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}

.modal-avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--bg-mid);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--azure);
    flex-shrink: 0;
    overflow: hidden;
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-title {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.35rem;
}

.modal-location {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.modal-description {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.modal-section {
    margin-bottom: 1.25rem;
}

.modal-section-title {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    margin-bottom: 0.6rem;
}

.modal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.modal-chip {
    background: var(--bg-mid);
    color: var(--ink-mid);
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
}

.modal-contact {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-contact-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.modal-contact-row a {
    color: var(--azure);
    text-decoration: none;
}

.modal-contact-row a:hover {
    text-decoration: underline;
}

/* ============================================
   ECOSISTEMA PATAGÓNICO
   ============================================ */
.ecosistema {
    padding: 9rem 8rem;
    background-color: var(--bg);
    border-top: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}

/* Imagen patagónica de fondo — Lenga */
.ecosistema::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/lenga.jpeg');
    background-size: cover;
    background-position: center 20%;
    background-attachment: fixed;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.ecosistema-header,
.ecosistema-grid {
    position: relative;
    z-index: 1;
}

.ecosistema-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.ecosistema-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.eco-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.eco-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--azure);
}

.eco-card-img {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg);
}

.eco-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.5s ease;
    padding: 0.5rem;
}

.eco-card:hover .eco-card-img img {
    transform: scale(1.04);
}

/* Sin overlay — las imágenes ya tienen su propio fondo difuminado */
.eco-card-overlay {
    display: none;
}

.eco-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.eco-animal-tag {
    font-size: 0.65rem;
    font-style: italic;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.eco-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.eco-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.875rem;
}

.eco-attrs span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--azure-dark);
    background: var(--azure-subtle);
    border: 1px solid rgba(0, 150, 180, 0.18);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.eco-card-text {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* Card placeholder (sin foto aún) */
.eco-card--coming {
    opacity: 0.75;
}

.eco-card-img--placeholder {
    background: var(--bg-mid);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.eco-card-img--placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--ink-faint);
}

.eco-coming-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* Responsive ecosistema */
@media (max-width: 1100px) {
    .ecosistema-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ecosistema {
        padding: 5rem 1.5rem 4rem;
    }
    .ecosistema-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    .eco-card-img {
        height: 200px;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 10rem 8rem;
    text-align: center;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

/* Imagen 5.png de fondo con opacidad visible */
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/5.png');
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
}

/* Gradiente radial azul encima de la imagen */
.cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,163,197,0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 1.25rem;
    color: #fff;
}

.cta-title span {
    color: var(--azure);
}

.cta-subtitle {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2.5rem;
}

/* Botones en CTA dark */
.cta .btn-secondary {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
}

.cta .btn-secondary:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 4rem 8rem;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

/* Logo negativo ya es blanco, no necesita filter en footer dark */
.footer-brand .logo img {
    filter: none;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.9);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.65rem;
}

.footer-col a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-links a:hover {
    border-color: var(--azure);
    background: var(--azure);
}

.social-links a:hover svg {
    stroke: #fff;
}

.social-links svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255,255,255,0.45);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s ease;
}

/* ============================================
   CHAT NAV BUTTON
   ============================================ */
@media (max-width: 768px) {
    .nav-chat-btn span { display: none; }
    .nav-chat-btn { padding: 0.45rem 0.6rem; }
}

/* ============================================
   DIRECTORIO — LAYOUT 2 COLUMNAS
   ============================================ */
.directorio-layout {
    display: flex;
    gap: 0;
    max-width: 1300px;
    margin: 0 auto;
    align-items: flex-start;
    position: relative;
}

.directorio-chat-col {
    width: 380px;
    min-width: 280px;
    max-width: 520px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    flex-direction: row;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.dir-chat-resize-handle {
    width: 5px;
    background: transparent;
    cursor: ew-resize;
    flex-shrink: 0;
    transition: background 0.2s;
    order: -1;
}

.dir-chat-resize-handle:hover,
.dir-chat-resize-handle.resizing {
    background: var(--azure);
}

.dir-chat-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dir-chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
    background: var(--bg-soft);
}

.dir-chat-title {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.dir-chat-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--ink-faint);
    margin-top: 0.1rem;
}

.dir-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
    background: var(--bg);
}

.dir-chat-messages::-webkit-scrollbar { width: 4px; }
.dir-chat-messages::-webkit-scrollbar-track { background: transparent; }
.dir-chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.dir-chat-msg {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.55;
    padding: 0.65rem 0.875rem;
    border-radius: 10px;
    max-width: 90%;
}

.dir-chat-msg--ai {
    background: var(--bg-soft);
    color: var(--ink-soft);
    border: 1px solid var(--border-soft);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.dir-chat-msg--user {
    background: var(--azure);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.dir-chat-msg--typing {
    background: var(--bg-soft);
    color: var(--ink-faint);
    border: 1px solid var(--border-soft);
    align-self: flex-start;
    font-style: italic;
}

.dir-chat-form {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    background: var(--bg-soft);
}

.dir-chat-form input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink);
    padding: 0.6rem 0.875rem;
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

.dir-chat-form input:focus {
    border-color: var(--azure);
}

.dir-chat-form input::placeholder {
    color: var(--ink-faint);
}

.dir-chat-form button {
    background: var(--azure);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.dir-chat-form button:hover {
    background: var(--azure-dark);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    nav { padding: 0 2rem; }
    .hero-content { padding: 6rem 2rem 4rem 4rem; }
    .stats, .about, .features, .how-it-works, .cta, footer {
        padding-left: 4rem;
        padding-right: 4rem;
    }
    .scroll-indicator { left: 4rem; }
}

@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual {
        display: flex;
        justify-content: center;
        padding: 2rem 0;
        order: -1;
    }
    .hero-content { padding: 2rem 2rem 5rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
    .about { grid-template-columns: 1fr; gap: 4rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }

    .hero {
        min-height: auto;
        padding-top: 68px;
    }

    .hero-visual {
        display: flex !important;
        justify-content: center;
        padding: 2rem 0 1rem;
        order: -1;
    }

    .hero-content {
        padding: 1rem 1.5rem 4rem;
        text-align: center;
        align-items: center;
    }

    .hero-tag { justify-content: center; }

    .hero-title { font-size: 3.25rem; text-align: center; }

    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }

    .btn-primary, .btn-secondary { width: 100%; justify-content: center; text-align: center; }

    .stats { grid-template-columns: 1fr 1fr; }
    .stat-item::after { display: none; }
    .section-title { font-size: 2.25rem; }
    .cta-title { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1.25rem; text-align: center; }

    .directorio { padding: 5rem 1rem 4rem; }
    .dir-grid { grid-template-columns: 1fr; }

    /* Hero gráfico mobile */
    .hero-graphic {
        width: min(90vw, 400px);
        height: min(90vw, 400px);
        max-width: 400px;
        max-height: 400px;
    }

    .hero-visual::before {
        width: min(90vw, 400px);
        height: min(90vw, 400px);
    }

    .circle-services { border-width: 1px; }
    .logo-center { width: 120px; height: 120px; border-width: 1px; }
    .logo-center canvas { max-width: 100% !important; max-height: 100% !important; width: 120px !important; height: 120px !important; }

    .service-bubble.large  { width: 45px; height: 45px; }
    .service-bubble.medium { width: 38px; height: 38px; }
    .service-bubble.small  { width: 32px; height: 32px; }

    .service-bubble:nth-child(1)  { transform: translate(-50%,-50%) rotate(0deg)   translateY(-200px) rotate(0deg);    }
    .service-bubble:nth-child(2)  { transform: translate(-50%,-50%) rotate(30deg)  translateY(-200px) rotate(-30deg);  }
    .service-bubble:nth-child(3)  { transform: translate(-50%,-50%) rotate(60deg)  translateY(-200px) rotate(-60deg);  }
    .service-bubble:nth-child(4)  { transform: translate(-50%,-50%) rotate(90deg)  translateY(-200px) rotate(-90deg);  }
    .service-bubble:nth-child(5)  { transform: translate(-50%,-50%) rotate(120deg) translateY(-200px) rotate(-120deg); }
    .service-bubble:nth-child(6)  { transform: translate(-50%,-50%) rotate(150deg) translateY(-200px) rotate(-150deg); }
    .service-bubble:nth-child(7)  { transform: translate(-50%,-50%) rotate(180deg) translateY(-200px) rotate(-180deg); }
    .service-bubble:nth-child(8)  { transform: translate(-50%,-50%) rotate(210deg) translateY(-200px) rotate(-210deg); }
    .service-bubble:nth-child(9)  { transform: translate(-50%,-50%) rotate(240deg) translateY(-200px) rotate(-240deg); }
    .service-bubble:nth-child(10) { transform: translate(-50%,-50%) rotate(270deg) translateY(-200px) rotate(-270deg); }
    .service-bubble:nth-child(11) { transform: translate(-50%,-50%) rotate(300deg) translateY(-200px) rotate(-300deg); }
    .service-bubble:nth-child(12) { transform: translate(-50%,-50%) rotate(330deg) translateY(-200px) rotate(-330deg); }
}

@media (max-width: 480px) {
    .hero-graphic {
        width: min(85vw, 320px);
        height: min(85vw, 320px);
        max-width: 320px;
        max-height: 320px;
    }
    .logo-center { width: 100px; height: 100px; }
    .logo-center canvas { width: 100px !important; height: 100px !important; }

    .service-bubble.large  { width: 38px; height: 38px; }
    .service-bubble.medium { width: 32px; height: 32px; }
    .service-bubble.small  { width: 28px; height: 28px; }

    .service-bubble:nth-child(1)  { transform: translate(-50%,-50%) rotate(0deg)   translateY(-160px) rotate(0deg);    }
    .service-bubble:nth-child(2)  { transform: translate(-50%,-50%) rotate(30deg)  translateY(-160px) rotate(-30deg);  }
    .service-bubble:nth-child(3)  { transform: translate(-50%,-50%) rotate(60deg)  translateY(-160px) rotate(-60deg);  }
    .service-bubble:nth-child(4)  { transform: translate(-50%,-50%) rotate(90deg)  translateY(-160px) rotate(-90deg);  }
    .service-bubble:nth-child(5)  { transform: translate(-50%,-50%) rotate(120deg) translateY(-160px) rotate(-120deg); }
    .service-bubble:nth-child(6)  { transform: translate(-50%,-50%) rotate(150deg) translateY(-160px) rotate(-150deg); }
    .service-bubble:nth-child(7)  { transform: translate(-50%,-50%) rotate(180deg) translateY(-160px) rotate(-180deg); }
    .service-bubble:nth-child(8)  { transform: translate(-50%,-50%) rotate(210deg) translateY(-160px) rotate(-210deg); }
    .service-bubble:nth-child(9)  { transform: translate(-50%,-50%) rotate(240deg) translateY(-160px) rotate(-240deg); }
    .service-bubble:nth-child(10) { transform: translate(-50%,-50%) rotate(270deg) translateY(-160px) rotate(-270deg); }
    .service-bubble:nth-child(11) { transform: translate(-50%,-50%) rotate(300deg) translateY(-160px) rotate(-300deg); }
    .service-bubble:nth-child(12) { transform: translate(-50%,-50%) rotate(330deg) translateY(-160px) rotate(-330deg); }

    .service-bubble::after { font-size: 0.55rem; padding: 3px 8px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-graphic {
        width: min(80vw, 450px);
        height: min(80vw, 450px);
    }
    .logo-center { width: 140px; height: 140px; }
    .logo-center canvas { width: 140px !important; height: 140px !important; }

    .service-bubble:nth-child(1)  { transform: translate(-50%,-50%) rotate(0deg)   translateY(-225px) rotate(0deg);    }
    .service-bubble:nth-child(2)  { transform: translate(-50%,-50%) rotate(30deg)  translateY(-225px) rotate(-30deg);  }
    .service-bubble:nth-child(3)  { transform: translate(-50%,-50%) rotate(60deg)  translateY(-225px) rotate(-60deg);  }
    .service-bubble:nth-child(4)  { transform: translate(-50%,-50%) rotate(90deg)  translateY(-225px) rotate(-90deg);  }
    .service-bubble:nth-child(5)  { transform: translate(-50%,-50%) rotate(120deg) translateY(-225px) rotate(-120deg); }
    .service-bubble:nth-child(6)  { transform: translate(-50%,-50%) rotate(150deg) translateY(-225px) rotate(-150deg); }
    .service-bubble:nth-child(7)  { transform: translate(-50%,-50%) rotate(180deg) translateY(-225px) rotate(-180deg); }
    .service-bubble:nth-child(8)  { transform: translate(-50%,-50%) rotate(210deg) translateY(-225px) rotate(-210deg); }
    .service-bubble:nth-child(9)  { transform: translate(-50%,-50%) rotate(240deg) translateY(-225px) rotate(-240deg); }
    .service-bubble:nth-child(10) { transform: translate(-50%,-50%) rotate(270deg) translateY(-225px) rotate(-270deg); }
    .service-bubble:nth-child(11) { transform: translate(-50%,-50%) rotate(300deg) translateY(-225px) rotate(-300deg); }
    .service-bubble:nth-child(12) { transform: translate(-50%,-50%) rotate(330deg) translateY(-225px) rotate(-330deg); }
}

@media (max-height: 600px) and (orientation: landscape) {
    .hero-graphic { width: min(50vh, 300px); height: min(50vh, 300px); }
    .logo-center { width: 90px; height: 90px; }
    .logo-center canvas { width: 90px !important; height: 90px !important; }
}

/* Mobile: columna única en directorio */
@media (max-width: 1024px) {
    .directorio-layout { flex-direction: column; }
    .directorio-main { padding-right: 0; }
    .directorio-chat-col {
        width: 100% !important;
        min-width: unset;
        height: 420px;
        position: static;
    }
    .dir-chat-resize-handle { display: none; }
}

/* ============================================
   MOBILE RESPONSIVE — backgrounds + how-it-works
   ============================================ */
@media (max-width: 768px) {

    /* ── Ocultar todos los ::before de imagen de fondo en mobile ── */
    .about::before,
    .features::before,
    .how-it-works::before,
    .cta::before {
        display: none;
    }

    /* ── Padding reducido en secciones ── */
    .about,
    .features,
    .how-it-works {
        padding: 5rem 1.5rem;
    }

    /* ── About: columna única ── */
    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
        background-image: none;
    }

    /* ── Features: sin background image ── */
    .features {
        background-image: none;
    }

    /* ── How-it-works: layout mobile ── */
    .how-it-works {
        background-image: none;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Steps en mobile: sin backdrop-filter (performance), fondo sólido */
    .step {
        background: var(--bg-soft);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 1.25rem 1rem;
    }
    .step:hover,
    .step.active {
        background: var(--bg);
        box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    }

    /* Box de demo: ocultar en mobile, mostrar solo steps */
    .how-visual {
        display: none;
    }

    /* Intro text de how-it-works */
    .how-intro {
        font-size: 0.95rem;
    }

    /* CTA padding mobile */
    .cta {
        padding: 6rem 1.5rem;
    }

    /* ── Ecosistema ── */
    .ecosistema-grid {
        grid-template-columns: 1fr;
    }

    /* ── Sección about visual (mapa) ── */
    .about-visual {
        display: none;
    }

    /* ── Scroll indicator: ocultar en mobile para evitar reflow ── */
    .scroll-indicator {
        display: none;
    }
}
