:root {
    --color-primary: #3b0d5c;
    /* Deep Violet - placeholder for corporate TL color */
    --color-bg-light: #f8f7fa;
    /* Light lavender gray */
    --color-accent-main: #ffb703;
    /* Amber */
    --color-accent-main-hover: #e09f00;
    --color-accent-secondary: #00ca72;
    /* Mint */
    --color-text-dark: #1f1f2e;
    --color-text-light: #ffffff;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure all full sections snap perfectly to the top of the viewport */
section,
.content-block {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
}

.btn-amber {
    background-color: var(--color-accent-main);
    color: #000;
    box-shadow: 0 4px 6px rgba(255, 183, 3, 0.2);
}

.btn-amber:hover {
    background-color: var(--color-accent-main-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 183, 3, 0.3);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #322b3f;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.logo img {
    height: 40px;
    /* Adjust height to fit header nicely */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.08);
}

.home-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-left: 0.8rem;
    transition: color 0.3s ease;
}

.logo:hover .home-text {
    color: #d1b3ff;
}

.logo-sphere {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), #63239a);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.nav a:not(.nav-segui):not(.nav-clientes):hover {
    color: #d1b3ff; /* Violeta claro al pasar el ratón */
    transform: scale(1.08); /* Magnificación sutil */
}

.nav a.nav-segui:hover, .nav a.nav-clientes:hover {
    transform: scale(1.08);
}

.nav a.active-link {
    color: #d1b3ff !important;
}

.nav-segui {
    color: #ffb300 !important;
}

.nav-clientes {
    background-color: #00bfa5;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    color: #ffffff !important;
    border: none;
    font-weight: 700;
}

.nav-clientes:hover {
    background-color: #009d88;
}

/* ==========================================================================
   WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

/* ==========================================================================
   HERO OBLIQUE TRAPEZOIDS
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.hero-wrapper {
    display: flex;
    width: calc(100vw + 150px);
    /* Just enough overflow to cover the 8 degree slant */
    margin-left: -75px;
    height: 100%;
}

.trapezoid {
    position: relative;
    height: 100%;
    flex: 3;
    /* Increased base width to fit horizontal text nicely */
    overflow: hidden;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: skewX(-8deg);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Reverse skew for content inside */
.trap-content {
    transform: skewX(8deg);
    transform-origin: bottom center;
    /* Un-skews from the baseline so horizontal width at the bottom precisely bounds within the sloped flex item without geometric clipping! */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    opacity: 0.8;
    transition: opacity 0.6s ease;
    color: white;
    width: 100%;
    margin: auto;
    max-width: 800px;
}

.trapezoid.active .trap-content {
    opacity: 1;
}

.trap-content h1 {
    position: absolute;
    top: 5rem;
    left: calc(4rem + 75px);
    /* Push right by 75px to center in screen real estate */
    text-align: left;
    color: white;
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    display: none;
    /* Only show active h1 */
    letter-spacing: -1px;
    line-height: 1.1;
    white-space: nowrap;
    /* We control breaks via html */
}

.trap-content h3 {
    position: absolute;
    bottom: 85px;
    /* Shifted up to avoid the WhatsApp button at bottom right (60px + 30px offset) */
    left: 0;
    width: 100%;
    padding: 0 10%;
    /* Tightly pad inside the column so it doesn't hit slant */
    transform: none;
    /* Let text-align do the work */
    color: white;
    font-size: 0.85rem;
    /* Smaller to fit the slice */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: center;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.8);
    display: block;
    margin-bottom: 0;
    transition: all 0.6s ease;
    z-index: 20;
    opacity: 1 !important;
    /* Force visibility */
}

.trap-content .btn {
    position: absolute;
    bottom: -100px;
    /* Hidden offscreen by default */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.6s ease;
}

#trap-1.active .trap-content h1,
.trapezoid.active .trap-content .btn {
    display: inline-block;
    /* Show H1 and Button when active */
    bottom: 10%;
    /* Move button up when active */
    opacity: 1;
}

.trapezoid.active .trap-content h3 {
    display: block;
    font-size: 3rem;
    top: 5rem;
    left: calc(4rem + 75px);
    bottom: auto;
    text-align: left;
    transform: none;
    width: auto;
    padding: 0;
}

#trap-1.active .trap-content h3 {
    display: none;
    /* Trap-1 uses H1, not H3 */
}

.trapezoid:not(.active) .trap-content .btn {
    display: none !important;
}

.trap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 5;
    transition: background 0.6s ease;
}

.trapezoid.active .trap-overlay {
    background: rgba(0, 0, 0, 0.1);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(8deg);
    /* Dimensiones justas para cubrir el trapezoide sin un zoom extremo de la resolución original */
    width: calc(100% + 30vh);
    height: 110%;
    object-fit: cover;
    z-index: 1;
    filter: grayscale(100%);
    transition: filter 0.8s ease;
    /* Suavizado de bordes y mejora de render en pantallas para evitar parpadeos */
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.trapezoid.active .hero-video {
    filter: grayscale(0%);
}

.trapezoid.active {
    flex: 10;
}

/* Fix ends */
#trap-1 {
    border-left: none;
}

#trap-4 {
    border-right: none;
}

/* Offset the inner text to clear the hidden bounding sections */
#trap-1 .trap-content h3 {
    padding-left: calc(10% + 75px);
}

#trap-4 .trap-content h3 {
    padding-right: calc(10% + 75px);
}

/* ==========================================================================
   CONTENT BLOCKS (50/50 Layout)
   ========================================================================== */
.content-block {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    background-color: var(--color-bg-light);
    position: relative;
}

.block-text {
    width: 50%;
    /* Take up half the screen for text */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 8vw, 8rem) clamp(3rem, 6vw, 6rem);
    z-index: 2;
    position: relative;
}

.block-text .btn {
    align-self: flex-start;
}

.layout-text-left {
    justify-content: flex-start;
}

.layout-text-right {
    justify-content: flex-end;
}

.block-text h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.block-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.block-text p {
    font-size: 1.25rem;
    color: #4a4a5a;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.block-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Gradient Fadings natively removed as raw images provide custom alpha-blur masks */

/* Generic Image Placeholders */
.img-1 {
    background-image: url("../Recursos/Home/1.TRANSPORTE LÍDER EN E-COMMERCE.jpg");
}

.img-2 {
    background-image: url("../Recursos/Home/2.TECNOLOGÍA DE PUNTA.jpg");
}

.img-3 {
    background-image: url("../Recursos/Home/3.EL COSTO MÁS BAJO DEL MERCADO.jpg");
}

.img-4 {
    background-image: url("../Recursos/Home/4.INTEGRACIÓN CON TIENDA NUBE.jpg");
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .trap-content h1 {
        font-size: 2.2rem;
        /* Shrunk for smaller landscape screens */
        white-space: normal;
        /* Allow natural wrap */
        left: 2rem;
        width: calc(100% - 4rem);
    }

    .trapezoid.active .trap-content h3 {
        font-size: 2rem;
        left: 2rem;
    }

    #trap-1 .trap-content h3,
    #trap-4 .trap-content h3 {
        padding-left: 10%;
        padding-right: 10%;
    }

    .block-text {
        padding: 4rem;
    }

    .block-text h2 {
        font-size: 2.5rem;
    }

    .hero-wrapper {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        height: 120%;
        margin-top: -10%;
    }

    .trapezoid {
        transform: skewY(-5deg);
        width: 100%;
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    .trap-content {
        transform: skewY(5deg);
        padding: 1rem;
    }

    .hero-video {
        transform: translate(-50%, -50%) skewY(5deg);
    }

    #trap-1 {
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    #trap-4 {
        border-bottom: none;
    }

    .content-block {
        align-items: center;
        justify-content: center;
    }

    .block-text {
        width: 100%;
        padding: 3rem 2rem;
        align-items: center;
        text-align: center;
    }

    .block-text h2 {
        font-size: 2rem;
    }

    .nav {
        display: none;
        /* Add mobile menu later if needed */
    }
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.global-footer {
    background-color: #1a0b2e;
    /* Darkest violet from brand palette */
    color: #ffffff;
    padding: 4rem 4%;
    width: 100%;
    font-family: var(--font-body);
    scroll-snap-align: end;
    scroll-snap-stop: always;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Column 1: Location */
.map-container {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-address {
    text-align: center;
    font-weight: 400;
}

/* Column 2: Navigation */
.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-style: normal;
}

.footer-nav-links a:hover {
    color: var(--color-accent-secondary);
    /* Mint #00bfa5 */
}

/* Column 3: Contact */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--color-accent-secondary);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 36px;
    height: 36px;
}

.contact-details p {
    font-weight: 400;
}

/* Column 4: Legales */
.legal-links {
    margin-bottom: 1.5rem;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--color-accent-secondary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.legal-links a:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 0.85rem !important;
    color: #9aa0a6;
    /* Slightly dimmed white for tertiary text */
    margin-top: 1.5rem;
}

.author-signature {
    font-size: 0.85rem !important;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-col h3 {
        text-align: center;
    }

    .footer-nav-links {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ==========================================================================
   NOSOTROS PAGE STYLES
   ========================================================================== */

.nosotros-split {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    background-color: var(--color-bg-light);
    position: relative;
    padding-top: 80px; /* Offset for fixed header */
}

.nosotros-split:not(:first-of-type) {
    padding-top: 0;
}

.nosotros-split.layout-reverse {
    justify-content: flex-end;
}

.nosotros-split .block-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem);
    z-index: 2;
    background-color: transparent;
    position: relative;
}

.nosotros-split .block-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.nosotros-split .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nosotros-h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.nosotros-h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-heading);
}

/* Block 2: Visión y Tecnología (Centralized) */
.nosotros-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background-color: var(--color-primary); /* Fallback */
    background-image: url('Recursos/Nosotros/ParallaxImg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color-text-light);
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

/* Oscurecimiento violeta para mantener legibilidad sobre la foto Parallax */
.nosotros-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(59, 13, 92, 0.7); /* Deep violet semitransparente */
    z-index: -1;
}

.nosotros-center-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.nosotros-center .nosotros-h2 {
    color: var(--color-text-light);
}

.nosotros-center p {
    color: var(--color-text-light);
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Mobile Adjustments for Nosotros */
@media (max-width: 1024px) {
    .nosotros-split {
        flex-direction: column;
        min-height: auto;
        padding-top: 80px;
    }
    
    .nosotros-split:not(:first-of-type) {
        padding-top: 0;
    }

    .nosotros-split.layout-reverse {
        flex-direction: column-reverse; /* Text top, Image bottom */
    }

    .nosotros-split .block-text {
        width: 100%;
        min-height: 50vh;
        padding: 4rem 2rem;
        text-align: center;
    }

    .nosotros-split .block-image-container {
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .nosotros-h1 {
        font-size: 2.2rem;
    }
    
    .nosotros-h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   NO-SNAP UTILITY FOR NOSOTROS PAGE
   ========================================================================== */
html.no-snap {
    scroll-snap-type: none !important;
}

html.no-snap section,
html.no-snap .global-footer,
html.no-snap .content-block,
html.no-snap .nosotros-center,
html.no-snap .nosotros-split {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* ==========================================================================
   SERVICIOS PAGE STYLES (MINIMALIST & SCROLLYTELLING)
   ========================================================================== */

body.servicios-page {
    background-color: #ffffff;
    color: var(--color-text-dark);
}

body.servicios-page section {
    scroll-snap-align: none !important; 
}

.scrolly-container {
    position: relative;
    height: 400vh; /* 4 cards = 400vh scrollable space */
    width: 100%;
}

.scrolly-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

/* Ambient Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    transition: background-color 0.6s ease;
}
.glow-1 {
    width: 60vh;
    height: 60vh;
    background-color: var(--color-primary); 
    top: -10vh;
    left: -10vw;
}
.glow-2 {
    width: 50vh;
    height: 50vh;
    background-color: var(--color-accent-main); 
    bottom: -10vh;
    right: 5vw;
}

/* Dot Indicators */
.scrolly-indicators {
    position: absolute;
    left: 3vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}
.dot.active {
    background-color: var(--card-color); 
    transform: scale(1.4);
    box-shadow: 0 0 12px var(--card-color);
}

.btn-custom {
    background-color: var(--card-color);
    color: var(--btn-text);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-custom:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--card-color);
}

/* Cards Wrapper */
.scrolly-cards-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 480px; 
    z-index: 10;
    perspective: 1000px;
}

.service-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo responsivo a imagenes CSS directas */
    background-color: rgba(255, 255, 255, 0.90); 
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(0,0,0,0.05); 
    border-radius: 20px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 50px rgba(59, 13, 92, 0.08); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    pointer-events: none;
}

.service-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.service-card.active:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 35px 70px rgba(59, 13, 92, 0.2);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.25);
}

.service-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #222;
    font-weight: 500;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

/* INFRAESTRUCTURA SECTION */
.infra-section {
    padding: 8rem 4%;
    background-color: #faf9fb; 
    border-top: 1px solid rgba(0,0,0,0.03);
}

.infra-container {
    max-width: 1000px;
    margin: 0 auto;
}

.infra-title {
    text-align: center;
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 4rem;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.infra-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.infra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.infra-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.infra-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.badge-proximamente {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--color-accent-secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 202, 114, 0.3);
}

/* FINAL CTA */
.final-cta {
    padding: 8rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.final-cta h2 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .scrolly-cards-wrapper {
        max-width: 90%;
        height: auto;
        min-height: 480px;
    }
    
    .scrolly-indicators {
        left: 10px;
    }

    .infra-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONTACTO SECTION STYLES
   ========================================================================== */
.contacto-section {
    padding: 8rem 5%;
    background-color: var(--color-bg-light); /* Lavanda casi blanco */
    display: flex;
    justify-content: center;
}

.contacto-wrapper {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 20px;
    padding: 5rem 4rem;
    box-shadow: 0 40px 100px rgba(59, 13, 92, 0.05); /* Sombra difusa premium */
}

.contacto-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contacto-header h2 {
    font-size: 3.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.contacto-header p {
    font-size: 1.15rem;
    color: #666;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
}

.contacto-info h3 {
    font-size: 0.9rem;
    color: #a0a0a0;
    letter-spacing: 2.5px;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.info-item.location-item {
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background-color: rgba(0, 187, 249, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00bbf9; /* Accent Cyan */
}

.info-icon svg {
    width: 22px;
    height: 22px;
}

.info-text a, .info-text span {
    font-size: 1.05rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.info-text a:hover {
    color: var(--color-primary);
}

.info-map-container {
    margin-top: 3rem;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* Efecto Mágico sobre Iframes de Maps */
.info-map-container iframe {
    filter: grayscale(100%) opacity(0.85) sepia(10%) hue-rotate(200deg);
    transition: filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.info-map-container iframe:hover {
    filter: grayscale(40%) opacity(1) hue-rotate(180deg);
}

/* Form Styles */
.contacto-form-container {
    background: #fafafc; /* Minimal Lavanda Claro */
    padding: 3.5rem;
    border-radius: 16px;
    border: 1px solid rgba(59, 13, 92, 0.03);
}

.form-group {
    margin-bottom: 2.2rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contacto-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 1.5px;
}

.contacto-form input,
.contacto-form select {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid rgba(59, 13, 92, 0.15);
    background: transparent;
    font-size: 1rem;
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 400;
}

.contacto-form textarea::placeholder {
    font-style: italic; /* Como pidió texto en gris tenue como sugerencia */
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-bottom-color: #00bbf9;
}

.contacto-form textarea {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid rgba(59, 13, 92, 0.15);
    background: transparent;
    font-size: 1rem;
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-top: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.error-msg {
    color: #f15bb5; /* Magenta error matching palette */
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Select Styling */
.contacto-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%233b0d5c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0 top 50%;
    background-size: 0.7rem auto;
    color: #666;
}

.btn-submit-contacto {
    width: 100%;
    padding: 1.4rem;
    margin-top: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #00bbf9 0%, var(--color-primary) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    box-shadow: 0 10px 25px rgba(59, 13, 92, 0.15);
}

.btn-submit-contacto:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 187, 249, 0.25);
}

@media (max-width: 1024px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contacto-wrapper {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contacto-header h2 {
        font-size: 2.3rem;
    }
}

/* ==========================================================================
   COBERTURA PAGE STYLES
   ========================================================================== */

.cobertura-hero {
    min-height: 100vh;
    padding: 120px 5% 60px; /* Offset for header */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-light); /* Lavanda casi blanco */
    overflow: hidden;
}

.cobertura-header-content {
    text-align: center;
    max-width: 1200px;
    margin-bottom: 3rem;
    z-index: 10;
}

.cobertura-header-content h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #3b0d5c, #9059ff, #f15bb5, #00bbf9);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cobertura-header-content h1 { white-space: normal; font-size: 2.2rem; }
}

.cobertura-header-content p {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Contenedor del Mapa */
.map-container-svg {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 75vh;
    min-height: 700px;
    background-color: rgba(59, 13, 92, 0.02); /* Lavanda translúcido */
    border-radius: 24px;
    border: 1px solid rgba(59, 13, 92, 0.05);
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(59, 13, 92, 0.03);
}

#svg-cobertura {
    width: 90%;
    height: 90%;
    overflow: visible;
}

/* Polígonos SVG */
.map-zona {
    fill: rgba(59, 13, 92, 0.04) !important; /* Líneas de agua semitransparentes */
    stroke: rgba(59, 13, 92, 0.15) !important; /* Trazos ultra finos */
    stroke-width: 1.5px !important;
    stroke-linejoin: round;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    pointer-events: auto !important; /* Requerido por Leaflet origin */
}

/* Atenuación periférica */
#svg-cobertura:hover .map-zona {
    fill: rgba(59, 13, 92, 0.01) !important;
    stroke: rgba(59, 13, 92, 0.08) !important;
}

/* Colores específicos de hover mapeados por clases algorítmicas */
#svg-cobertura .map-zona.is-caba:hover {
    fill: rgba(144, 89, 255, 0.4) !important; 
    stroke: rgba(144, 89, 255, 0.8) !important;
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 20px rgba(144, 89, 255, 0.3));
}

#svg-cobertura .map-zona.is-norte:hover {
    fill: rgba(0, 119, 182, 0.3) !important; /* Azul Océano vibrante */
    stroke: rgba(0, 119, 182, 0.8) !important;
    transform: translateY(-2px) translateX(-2px);
    filter: drop-shadow(0 10px 20px rgba(0, 119, 182, 0.2));
}

#svg-cobertura .map-zona.is-oeste:hover {
    fill: rgba(0, 202, 114, 0.3) !important; /* Verde Esmeralda */
    stroke: rgba(0, 202, 114, 0.8) !important;
    transform: translateY(2px) translateX(-2px);
    filter: drop-shadow(0 10px 20px rgba(0, 202, 114, 0.2));
}

#svg-cobertura .map-zona.is-sur:hover {
    fill: rgba(241, 91, 181, 0.3) !important; 
    stroke: rgba(241, 91, 181, 0.8) !important;
    transform: translateY(2px) translateX(2px);
    filter: drop-shadow(0 10px 20px rgba(241, 91, 181, 0.2));
}

/* Tooltip Flotante */
.floating-tooltip {
    position: fixed;
    top: -200px; 
    left: -200px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    pointer-events: none; 
    opacity: 0;
    transition: opacity 0.3s ease; 
    transform: translate(-50%, -120%); 
    z-index: 2000;
    min-width: 220px;
    text-align: center;
}

.floating-tooltip.visible {
    opacity: 1;
}

.floating-tooltip .t-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.floating-tooltip .t-desc {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Footer Cards de Cobertura */
.cobertura-cards {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    flex-wrap: wrap;
}

.cob-card {
    flex: 1;
    min-width: 280px;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(59, 13, 92, 0.04);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.cob-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(59, 13, 92, 0.08);
}

.card-cyan-lavender {
    background: linear-gradient(135deg, #dcf8f5 0%, #e6dcfa 100%);
}

.card-amber-magenta {
    background: linear-gradient(135deg, #ffb703 0%, #f15bb5 100%);
}

.card-amber-magenta h3,
.card-amber-magenta p {
    color: #ffffff !important;
}

.cob-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.cob-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.card-amber-magenta .cob-subtitle {
    color: #ffffff;
}

.cob-card p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

.cob-btn-violet {
    background-color: var(--color-primary);
    color: #ffffff !important;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5rem;
    align-self: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 13, 92, 0.2);
    border: none;
}

.cob-btn-violet:hover {
    background-color: #270840;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 13, 92, 0.3);
}

@media (max-width: 768px) {
    .cobertura-header-content h1 {
        font-size: 2.5rem;
    }
    .cobertura-cards {
        flex-direction: column;
    }
}

/* ==========================================================================
   LEGALES PAGE
   ========================================================================== */
.legales-page {
    background-color: #faf9fc; /* Lavanda ultra pálido */
    color: #4a4559; /* Violeta oscuro/grisáceo */
    line-height: 1.7;
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 2rem;
}

.legales-container {
    max-width: 900px; /* Mantiene el bloque contenido al centro (como un max-w-4xl) */
    margin: 0 auto;
    padding: 3rem 4rem;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(59, 13, 92, 0.05);
    border-radius: 12px;
    margin-bottom: 4rem;
}

.legales-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(59, 13, 92, 0.1);
}

.legales-header h1 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.legales-header p.last-updated {
    font-size: 0.95rem;
    color: #888399; /* Text desaturado */
}

.legales-content h2 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

.legales-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.legales-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legales-content li {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .legales-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem 3rem 1rem;
    }
    .legales-header h1 {
        font-size: 1.8rem;
    }
}

/* Disable scroll snap on reading pages to prevent top-cutoff */
html:has(body.legales-page),
html:has(body.contacto-page),
html:has(body.nosotros-page),
html:has(body.cobertura-page) {
    scroll-snap-type: none;
}

/* ===================== SEGUIMIENTO CUSTOM LAYOUT ===================== */
/* Asegura que la sección de seguimiento muestre texto a la izquierda e imagen a la derecha en desktop */
.content-block.layout-text-left {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
}

.content-block.layout-text-left .block-text {
    width: 50%;
    min-width: 320px;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 8vw, 8rem) clamp(3rem, 6vw, 6rem);
    background: transparent;
}

.content-block.layout-text-left .block-image {
    position: relative;
    width: 50%;
    min-width: 320px;
    height: auto;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

@media (max-width: 1024px) {
    .content-block.layout-text-left {
        flex-direction: column;
        align-items: center;
    }
    .content-block.layout-text-left .block-text,
    .content-block.layout-text-left .block-image {
        width: 100%;
        min-width: 0;
        padding: 2rem 1rem;
    }
    .content-block.layout-text-left .block-image {
        height: 250px;
    }
}