/* =========================================
   VARIABLES Y RESET
   ========================================= */
:host, html {
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

:root {
    /* Paleta Neutral */
    --color-neutral-50: oklch(98.5% 0 0);
    --color-neutral-100: oklch(96% 0 0);
    --color-neutral-200: oklch(90% 0 0);
    --color-neutral-400: oklch(70% 0 0);
    --color-neutral-800: oklch(30% 0 0);
    --color-neutral-900: oklch(15% 0 0);
    
    /* Colores Naked City / Visora */
    --nc-blue: #0004eb; 
    --nc-black: #050516;
    
    /* Tipografías y Espaciado */
    --spacing: 0.25rem;
    --font-sans: 'Outfit', Arial, sans-serif;
    --font-serif: 'Times New Roman', Times, serif;

    /* Fondo gris claro como la referencia y texto azul puro */
    --color-neutral-200: #e6e6e6; 
    --nc-blue: #0004eb; 
    --font-serif: 'Times New Roman', Times, serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Detrás de absolutamente todo */
    pointer-events: none;
    opacity: 0.6; /* Sutil para no distraer */
}

body {
    background-color: transparent !important;
    color: var(--color-neutral-900);
    font-family: var(--font-sans);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* =========================================
   CLASES DE UTILIDAD & ANIMACIÓN (GSAP)
   ========================================= */
.reveal-wrap {
    overflow: hidden; 
    display: inline-block;
    vertical-align: top;
}

.reveal-text {
    display: inline-block;
    transform: translateY(100%); 
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* =========================================
   SCREEN SAVER
   ========================================= */
#screen-saver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-width: 100%;
    background-color: var(--nc-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
}

.screen-saver-logo {
    width: 200px;
    color: var(--color-neutral-50);
    opacity: 0; 
}


/* =========================================
   HEADER & NAV OPTIMIZADO (Altura 150px -> 50px)
   ========================================= */
header.nc-header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    height: 150px; /* Altura inicial de 150px */
    display: flex;
    align-items: center; /* Centra la navegación verticalmente sin importar la altura */
    z-index: 100;
    padding: 0 5vw; /* Quitamos el padding vertical, solo dejamos el horizontal */
    background-color: transparent; 
    box-sizing: border-box; 
    pointer-events: none; 
    /* Transición suave para la altura (0.5s) y el fondo */
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.5s ease, 
                box-shadow 0.5s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    pointer-events: auto; 
}

.nav-left, .nav-right { 
    display: flex; 
    gap: 2rem; 
    flex: 1; 
}
a{
    color: var(--nc-blue);
    opacity: 1  !important;
}
.nav-left { justify-content: flex-start;}
.nav-right { justify-content: flex-end; }

/* Enlaces del Nav */
nav a {
    color: var(--nc-blue); /* Azul al inicio */
    text-decoration: none;
    font-size: 1rem; 
    font-weight: 500; 
    letter-spacing: -0.01em; 
    transition: color 0.3s ease, opacity 0.3s ease;
}


.sup-number {
    font-size: 0.6em;
    vertical-align: super;
    margin-left: 2px;
}

/* =========================================
   ESTADO SOBRE FONDOS OSCUROS (Forzar Blanco)
   ========================================= */
header.nc-header.header-light nav a,
header.nc-header.header-light .logo-text,
header.nc-header.header-light {
    color: #ffffff !important;
    transition: color 0.1s ease;
    
}

header.nc-header.header-light .logo-icon {
   filter: brightness(0%) invert(100%)!important;
    transition: color 0.1s ease;
}

/* --- CONTENEDOR DE LOS DOS LOGOS --- */
.logo-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 130px; 
    height: 35px;
    z-index: 10;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Ambos logos súper-centrados */
.logo-text, .logo-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    color: var(--nc-blue); /* Blanco inicial */
    cursor: pointer;
}

/* ESTADO INICIAL (Arriba de la página) */
.logo-text {
    width: 130px; 
    opacity: 1;
    margin-top: 0;
    pointer-events: auto;
    /* Transición de vuelta (espera 0.4s para aparecer cuando subes) */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.4s; 
}

.logo-icon {
    width: 35px; 
    opacity: 0;
    margin-top: 25px; /* Escondido abajo */
    pointer-events: none;
    /* Transición de vuelta (desaparece rápido al subir) */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0s;
}

/* =========================================
   ESTADO SCROLLED (Cambio con Timing Perfecto)
   ========================================= */

/* 1. El header se encoge a 50px y gana fondo blanco */
header.nc-header.is-scrolled {
    height: 50px; 
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
}

/* 2. El contenedor se encoge acercando los links */
header.nc-header.is-scrolled .logo-nav {
    width: 35px; 
}

/* 3. Textos e Íconos cambian a negro (Estilo Mattelsa) */


/* 4. El texto se desvanece hacia arriba (RÁPIDO, sin retraso) */
header.nc-header.is-scrolled .logo-text {
    opacity: 0 !important; 
    margin-top: -20px;     
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0s; 
}

/* 5. El ícono sube y aparece CON RETRASO */
header.nc-header.is-scrolled .logo-icon {
    opacity: 1 !important;
    margin-top: 0;
    pointer-events: auto;
    /* Espera 0.4s (justo cuando el header casi termina de achicarse a 50px) para saltar a la vista */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.4s; 

}


/* --- RESPONSIVE HEADER --- */
@media (max-width: 768px) {
    header.nc-header { height: 80px; padding: 0 5vw; }
    header.nc-header.is-scrolled { height: 50px; }
    .nav-container { display: flex; justify-content: center; }
    .nav-links { display: none; }
    .logo-text{
        width:  80px;
    }

    .logo-icon{
        width: 25px;
    }

    nav a{
        
    }
}

/* =========================================
   HERO SECTION (Dividido en Grid Exacto)
   ========================================= */
.hero-section.no-video {
    height: 100vh; 
    width: 100%;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 0;
    background-color: transparent; /* Deja ver el canvas */
}

/* El contenedor que parte la pantalla por la mitad */
.hero-layout-grid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    padding: 120px 5vw 60px 5vw; /* Espacio arriba para el Nav, y abajo para anclar */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-content: end; /* Ancla todo el contenido a la parte inferior de la pantalla */
    align-items: end; /* Se asegura de que la base del texto esté alineada */
    gap: 20px;
}

/* Lado Derecho (Texto Principal) */
.hero-main-right {
    grid-column: 7 / 13; /* Toma exactamente desde la mitad hasta la derecha */
    padding-bottom: 5vh; /* Ajuste visual respecto al texto inferior */
}

/* Lado Izquierdo (Texto Pequeño) */
.hero-bottom-left {
    grid-column: 1 / 7; /* Toma exactamente la mitad izquierda */
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--nc-blue);
    padding-bottom: 5vh;
}

/* Tipografía masiva de Naked City */
.hero-text-nc {
    font-size: clamp(2rem, 3vw, 68px); 
    font-weight: 500;
    text-transform: none; /* Sin mayúsculas sostenidas */
    line-height: 110%; 
    letter-spacing: -0.04em; /* Muy apretado */
    color: var(--nc-blue);
    margin: 0;
}

/* =========================================
   HIGHLIGHT ESTILO NAKED CITY (El recuadro)
   ========================================= */
.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.highlight-nc-wrapper {
    position: relative;
    display: inline-block;
    isolation: isolate;
    padding: 0 0.15em; 
    margin: 0 2px;
}

.highlight-bg {
    position: absolute;
    inset: 0; 
    background-color: var(--nc-blue);
    z-index: -1;
    transform-origin: left; /* Clave para la animación GSAP */
}

.highlight-text {
    color: var(--color-neutral-50); /* Blanco / Gris de fondo sobre el cuadro azul */
    position: relative;
    z-index: 1;
}

/* --- RESPONSIVE PARA EL HERO --- */
@media (max-width: 1024px) {
    /* Tablet: el texto principal necesita un poco más de espacio */
    .hero-main-right { grid-column: 5 / 13; }
    .hero-bottom-left { grid-column: 1 / 5; }
}

@media (max-width: 768px) {
    /* Móvil: Se apila uno arriba del otro */
    .hero-layout-grid {
        grid-template-columns: 1fr;
        align-content: center; /* En móvil lo centramos */
        gap: 60px;
    }
    .hero-main-right { 
        grid-column: 1 / -1; 
        padding-bottom: 0;
    }
    .hero-bottom-left { 
        grid-column: 1 / -1; 
        padding-bottom: 0;
        font-size: 1rem;
    }
    .hero-text-nc { font-size: clamp(1.8rem, 8vw, 44px); }
}
/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    min-height: 50vh;
    height: 100vh;
    align-items: center;
    padding: calc(var(--spacing) * 8) calc(var(--spacing) * 10);
    display: flex; 
    justify-content: center;
}

.container-narrow { 
    max-width: 1200px; 
    text-align: center; 
}

.about-section p {
    width: 90%;
    font-size: clamp(2rem, 4vw, 4rem); 
    font-weight: 500; 
    line-height: 1.2; 
    letter-spacing: -0.02em;
    color: var(--color-neutral-900);
}

/* =========================================
   MARQUEE SECTION (Texto Deslizante)
   ========================================= */
.marquee-section {
    padding: 10vh 0; 
    background-color: var(--nc-blue);
    color: white; 
    overflow: hidden; 
    white-space: nowrap;
    display: flex; 
    align-items: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.marquee-content {
    display: flex; 
    width: max-content;
}

.marquee-content h2 {
    font-size: clamp(3rem, 8vw, 8rem); 
    font-weight: 500;
    text-transform: uppercase; 
    padding-right: 50px;
}

/* =========================================
   GALERÍA ACORDEÓN DE PROYECTOS
   ========================================= */
.projects-accordion-section {
    padding: 15vh 5vw;
    background-color: #050505; 
    color: var(--color-neutral-50);
    position: relative;
    z-index: 2;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
}

.accordion-container {
    display: flex;
    height: 70vh; 
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 8px; 
}

.fondo-cuiko, .accordion-item {
    position: relative;
    flex: 1; 
    min-width: 0; 
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.fondo-cuiko{
    background-image: url(/img/cuiko.png);
}

.fondo-yummy{
    background-image: url(/img/yummycover.png);
}

.fondo-legend{
    background-image: url(/img/legendcover.png);
}

.fondo-ppp{
    background-image: url(/img/cover\ ppp.png);
}

.fondo-chalet{
    background-image: url(/img/chalet.png);
}

.accordion-item.active { flex: 8; }

.accordion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 60%);
    opacity: 0.9;
    transition: opacity 1 0.7s ease;
}

.accordion-item.active .accordion-overlay { opacity: 0.5; }

.accordion-content {
    position: absolute;
    inset: 0;
    pointer-events: none; 
}

.vertical-title {
    position: absolute;
    bottom: 40px;
    left: 50%;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg); 
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 1, 0.3s ease 0.2s; 
}

.accordion-item.active .vertical-title {
    opacity: 0;
    transition-delay: 0s;
}

.expanded-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 500px; 
    max-width: calc(100% - 80px); 
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0s;
}

.accordion-item.active .expanded-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s; 
    pointer-events: auto; 
}

.expanded-info h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.5rem); /* Título del proyecto */
    line-height: 1;
    margin-bottom: 15px;
    color: white;
}

.expanded-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .accordion-container {
        flex-direction: column; 
        height: 100vh;
    }
    .vertical-title {
        writing-mode: horizontal-tb;
        bottom: 50%;
        left: 30px;
        transform: translateY(50%);
    }
    .accordion-item.active { flex: 4; }
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--nc-blue);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* =========================================
   SERVICIOS
   ========================================= */

.text-services { 
    width: 100%;
    max-width: 1600px; /* Mismo ancho que el .nav-container */
    margin: 0 auto 5vh auto; /* Centrado como el menú */
    padding: 0; 
}

.text-services span{ 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    font-weight: 600; 
    letter-spacing: 0.1em; 
    display: block; 
    margin-bottom: 20px;
}

.text-services p{ 
    font-size: clamp(2rem, 3.5vw, 4rem); 
    line-height: 1.1; 
    font-weight: 500; 
}
.services-general > div {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px; 
    background-color: var(--color-neutral-200);
    border-top: 1px solid var(--color-neutral-200); 
    border-bottom: 1px solid var(--color-neutral-200);
}

/* =========================================
   NUEVA SECCIÓN SERVICIOS (Grid Asimétrico)
   ========================================= */
.services-layout {
    padding: 15vh 5vw;
    background-color: var(--color-neutral-50); /* Fondo blanco base */
    position: relative;
    z-index: 3;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
}

.services-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 4fr 8fr; /* Divide el espacio: 1/3 izq, 2/3 der */
    gap: 20px;
}

/* Tarjeta Izquierda (Oscura con foto) */
.services-intro {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    min-height: 500px;
}

.services-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: grayscale(100%); /* Efecto blanco y negro opcional */
}

.services-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(5, 5, 22, 0.6); /* Capa oscura semitransparente */
    z-index: 1;
}

.services-main-title {
    position: relative;
    z-index: 2;
    color: var(--color-neutral-50);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Tarjetas Derecha (Grises) */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-card {
    background-color: var(--color-neutral-200); /* Gris claro */
    border-radius: 24px;
    padding: 40px 50px;
    display: grid;
    grid-template-columns: 120px 1fr; /* Columna fija para el número */
    gap: 40px;
    align-items: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.01); /* Pequeño hover */
    background-color: #0004eb;
}

.service-card:hover .service-number, .service-card:hover .service-info p, .service-card:hover .service-info h3 {
    color: var(--color-neutral-50); /* Cambia el número a blanco al hacer hover */
}
    
.service-number {
    font-size: clamp(5rem, 8vw, 8rem); /* Número gigante */
    font-weight: 500;
    line-height: 0.8;
    color: var(--nc-blue); /* Azul brutalista */
    letter-spacing: -0.05em;
    margin-top: -10px;
}

.service-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nc-black);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    
}

.service-info p {
    font-size: 1.1rem;
    color: var(--color-neutral-800);
    line-height: 1.5;
    max-width: 80%;
}

/* RESPONSIVE PARA SERVICIOS */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: 1fr; /* Pasa a 1 sola columna */
    }
    .services-intro {
        min-height: 300px;
    }
    .service-card {
        grid-template-columns: 80px 1fr;
        padding: 30px;
        gap: 20px;
    }
    .service-info p {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .service-card {
        grid-template-columns: 1fr; /* El número se apila arriba del texto */
        gap: 15px;
        text-align: center;
        padding: 30px 20px;
    }
    .service-number {
        text-align: left;
    }
    .service-info h3, .service-info p {
        text-align: left;
    }
}

/* =========================================
   CUADRÍCULA DE CLIENTES
   ========================================= */
.clients-section {
    background-color: var(--color-neutral-50);
    padding: 15vh 5vw;
    position: relative;
    z-index: 5;
}

.clients-grid-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--color-neutral-200); 
    border: 1px solid var(--color-neutral-200);
}

.hover-follower {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background-color: var(--nc-black); 
    z-index: 1;
    opacity: 0;
    pointer-events: none; 
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px; 
    position: relative;
    z-index: 2; 
}

.client-cell {
    position: relative;
    background-color: var(--color-neutral-50); 
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: background-color 0.1s; 
}

.client-logo {
    width: 150px;
    height: auto;
    filter: invert(100%);
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s;
}

.client-hover-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    color: white;
    text-align: center;
    pointer-events: none;
}

.client-hover-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.client-hover-info .category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.client-cell.is-hovered { background-color: transparent; }
.client-cell.is-hovered .client-logo {
    transform: scale(0.6) translateY(-100px);
    filter: invert(0) brightness(2); 
}
.client-cell.is-hovered .client-hover-info {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   SECCIÓN REDES (Footer Typográfico)
   ========================================= */
.typographic-links-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto; 
    position: relative;
    z-index: 4;

}

.typo-cta-top {
    background-color: var(--nc-black);
    padding: 12vh 5vw 8vh 5vw;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
}

.cta-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0; 
}

.title-bold {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 500;
    color: var(--color-neutral-100);
    line-height: 0.85; 
    letter-spacing: -0.04em;
    margin: 0 0 2px 0; 
}

.title-italic {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 400;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--nc-black);
    background-color: var(--color-neutral-100);
    padding: 0.05em 0.15em 0.08em 0.15em; 
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0; 
}

.cta-get-in-touch {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-neutral-100); 
    text-decoration: none; 
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-neutral-100); 
    transition: color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 5px; 
}

.cta-get-in-touch .arrow-right {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.cta-get-in-touch:hover {
    color: var(--nc-blue);
    border-color: var(--nc-blue);
}

.cta-get-in-touch:hover .arrow-right { transform: translateX(8px); }
.cta-get-in-touch .arrow-right svg { transition: color 0.3s ease; }

.typo-links-bottom {
    background-color: var(--nc-black); 
    padding: 10vh 5vw;
    display: flex;
    justify-content: flex-end; 
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, auto)); 
    gap: 12px 40px; 
    width: auto; 
    margin-right: 5vw; 
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.typo-link {
    font-size: clamp(2rem, 2vw, 2.5rem); 
    color: var(--nc-blue);
    text-decoration: none;
    font-weight: 600; 
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: flex-start;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ext-arrow {
    display: inline-flex;
    margin-left: 6px;
    margin-top: 8px; 
}

.ext-arrow svg {
    width: 0.45em; 
    height: auto;
    transition: transform 0.3s ease; 
}

.typo-link:hover { opacity: 0.6; }
.typo-link:hover .ext-arrow svg { transform: translate(2px, -2px); }

/* =========================================
   ANIMACIÓN "MADE BY" Y "BACK TO TOP"
   ========================================= */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5vw;
    background-color: var(--color-neutral-50);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-neutral-400);
    font-weight: 500;
}

.made-by-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.made-by-label {
    color: var(--color-neutral-400);
    font-weight: 500;
}

.made-by-mask {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    height: 1.2rem;
    overflow: hidden; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-neutral-900);
}

.guess-text, .visora-text {
    line-height: 1.2rem;
    white-space: nowrap;
}

.visora-text { color: var(--nc-blue); }

.back-to-top {
    display: flex;
    align-items: center;
    gap: 8px; 
    background: none;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-neutral-900);
    cursor: pointer;
}

.arrow-mask {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    height: 1.2rem; 
    overflow: hidden;
}

.arrow-out, .arrow-in {
    line-height: 1.2rem; 
    font-size: 1.1rem; 
}

.arrow-in { color: var(--nc-blue); }

/* =========================================
   MEDIA QUERIES GLOBALES Y FOOTER
   ========================================= */
@media (max-width: 992px) {
    .typo-cta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .typo-links-bottom {
        justify-content: flex-start; 
    }
    .links-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 20px; 
        margin-right: 0;
        width: 100%;
    }
    .link-col {
        display: contents; 
    }
}

@media (max-width: 600px) {
    .typo-cta-top {
        padding: 8vh 5vw 6vh 5vw; 
    }
    .title-bold, .title-italic {
        font-size: 11vw; 
        line-height: 1; 
    }
    .links-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 25px 10px; 
    }
    .typo-link {
        font-size: clamp(1.2rem, 5vw, 1.8rem); 
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        height: 3vh;
        text-align: center;
    }
}
