/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-accent: #184ddc;
    --font-main: 'Poppins', sans-serif;
    --color-border: rgba(0, 0, 0, 0.2);
    --menu-bg-color: #f0f0f0;
    --color-bg-alt: #f8f8f8;
    --color-bg-dark: #1a1a1a;
    --menu-bg-color: #ffffff;
}

[data-theme="dark"] {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-border: rgba(255, 255, 255, 0.25);
    --menu-bg-color: rgba(255, 255, 255, 0.2);
    --color-bg-alt: #121212;
    --color-bg-dark: #0a0a0a;
    --menu-bg-color: #1a1a1a;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    margin: 0;
    font-weight: 300;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ==========================================================================
   2. UI NAVEGACIÓN (Top Bar & Buttons)
   ========================================================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

.nav-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.btn-menu .outer-ring {
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-menu:hover .outer-ring,
.btn-menu.is-active .outer-ring {
    transform: scale(0.55);
}

[data-theme="light"] .btn-theme .theme-circle {
    fill: #000000;
}

[data-theme="dark"] .btn-theme .theme-circle {
    fill: #ffffff;
}

/* ==========================================================================
   3. MENU POPUP SYSTEM
   ========================================================================== */
.menu-popup {
    margin-top: 15px !important;
    position: fixed;
    background-color: var(--menu-bg-color);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10000;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    width: 0;
    height: 0;
    opacity: 0;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.3s ease;
}

.menu-popup.is-open {
    opacity: 1;
}

.menu-content {
    opacity: 0;
    padding: 5px 10px;
    display: block;
    width: max-content;
    min-width: 160px;
    transition: opacity 0.3s ease;
}

.menu-content.show {
    opacity: 1;
    transition-delay: 0.3s;
}

/* ==========================================================================
   4. NAV LINKS & SUBMENUS
   ========================================================================== */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links>li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-links>li.show {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    width: 100%;
    transition: opacity 0.3s ease;
}

.nav-links a span,
.nav-icon,
.chevron-icon {
    pointer-events: none;
}

.nav-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    flex-shrink: 0;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: transform 0.4s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Submenu Styling */
.submenu {
    list-style: none;
    padding-left: 30px;
    border-left: 1px solid var(--color-border);
    margin-left: 9px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.submenu.is-active {
    opacity: 1;
    margin-top: 8px;
    margin-bottom: 8px;
}

.submenu a {
    font-size: .7rem;
    padding: 6px 0;
    opacity: 0.8;
}

/* ==========================================================================
   5. INTRO HERO (VlasLabs)
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    opacity: 0;
    animation: fadeInDown 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes logo-shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-8deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.logo-wrapper {
    margin-bottom: 35px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 20;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-wrapper:hover {
    animation: logo-shake 0.4s ease-in-out;
}

.labs-flask-unified {
    stroke-width: 1.5;
    stroke: var(--color-text);
    fill: none;
    opacity: 0.15;
    transition: stroke 0.5s ease, opacity 0.5s ease;
}

.logo-wrapper:hover .labs-flask-unified {
    opacity: 1;
    stroke: var(--color-accent);
}

.word-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: gap 0.5s cubic-bezier(0.68, -0.8, 0.265, 1.95);
}

.index-letter {
    display: inline-block;
    font-size: clamp(3rem, 8vw, 10vw);
    font-weight: 200;
    color: var(--color-text);
    padding-inline: 2px;
    line-height: .95;
    transition: transform 0.3s ease, font-weight 0.3s ease, margin 0.8s ease;
    min-width: 0.6em;
    text-align: center;

}

.index-letter:hover {
    font-weight: 800;
    padding-inline: 16px;
    transform: scale(1.1);
    color: var(--color-accent);
}

/* ==========================================================================
   6. GREETINGS ENGINE
   ========================================================================== */
.grettings {
    margin-top: -5px;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    width: 100%;
}

.grettingsDinamic {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2rem;
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 10px;
    color: var(--color-text);
    white-space: nowrap;
}

.grettingsDinamic span {
    display: inline-block;
    min-width: 0.3em;
}

/* ==========================================================================
   7. SCROLL INDICATOR
   ========================================================================== */
.scroll-dot {
    position: fixed;
    left: 50%;
    bottom: 30px;
    width: 20px;
    height: 20px;
    z-index: 9999;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--color-text);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease, visibility 0.4s;
    will-change: transform, opacity;
}

.scroll-dot.is-visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.scroll-dot.is-idle {
    opacity: 0.3;
    transition: opacity 1.5s ease;
}

.scroll-dot.is-visible:not(.is-idle) {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-dot.is-visible.moving-down {
    transform: translateX(-50%) translateY(0) scaleY(1.3) scaleX(0.85);
}

.scroll-dot.is-visible.moving-up {
    transform: translateX(-50%) translateY(0) scaleY(1.3) scaleX(0.85) rotate(180deg);
}

/* ==========================================================================
   8. MEDIA QUERIES (Responsive)
   ========================================================================== */

/* --- HIGH-RES & TV (1921px+) --- */
@media (min-width: 1921px) {
    .top-nav {
        height: 80px;
        padding: 0 40px;
    }

    .nav-btn svg {
        width: 40px;
        height: 40px;
    }

    .nav-links li a {
        font-size: 1.5rem;
        letter-spacing: 2px;
        font-weight: 300;
    }

    .nav-icon {
        width: 30px;
        height: 30px;
    }

    .grettingsDinamic {
        font-size: 2.5rem;
    }

    .logo-wrapper {
        margin-bottom: 35px;
        width: 190px;
        height: 190px;
    }

}

/* --- ULTRA HD (2560px+) --- */
@media (min-width: 2560px) {
    .nav-links a {
        font-size: 2.5rem;
    }
}


/* =============================================================
   MEDIA QUERY: TABLET (768px)
   ============================================================= */
@media screen and (max-width: 768px) {

    /* 1. Ajuste del Contenedor Principal */
    .hero-container {
        padding: 0 40px;
    }

    .top-nav {
        height: 70px;
        padding: 0 40px;
    }

    .nav-btn svg {
        width: 30px;
        height: 30px;
    }

    /* 2. Redimensionar el Logo y su margen */
    .logo-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 25px;
    }

    /* 3. Ajuste de la marca VlasLabs */
    .word-wrapper {
        gap: 1.5px;
        /* Un poco más cerrado para pantallas pequeñas */
    }

    .index-letter {
        font-size: 3rem;
        /* Bajamos el tamaño de fuente (ajusta según tu base) */
        letter-spacing: -1px;
    }

    /* 4. El Saludo Dinámico */
    .grettingsDinamic {
        font-size: 1.2rem;
        margin-top: 15px;
        letter-spacing: 3px;
    }

    /* 5. Ajustes del Menú Popup para Tablet */
    #menu-popup {
        /* Evitamos que el menú sea demasiado ancho en tablets */
        max-width: 280px;
    }

    .nav-links li a {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* 6. Scroll Indicator (Punto elástico) */



    /* 3. Evitamos que cualquier otro elemento interno genere un segundo punto */
    #scroll-indicator div,
    #scroll-indicator span {
        display: none;
    }
}



/* =============================================================
   MEDIA QUERY: MOBILE (480px)
   ============================================================= */
@media screen and (max-width: 480px) {
    .top-nav {
        padding: 0 20px;
    }

    #menu-toggle {
        top: auto !important;
        bottom: 30px;
        right: 30px;
        position: fixed;
        z-index: 10001;
        background-color: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: 50%;

        /* Reemplazamos box-shadow por drop-shadow */
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
        transition: filter 0.3s ease, transform 0.3s ease;
    }

    /* 2. El Popup nace desde el botón */
    #menu-popup {
        position: fixed;
        bottom: 35px !important;
        right: 35px !important;
        left: auto !important;
        top: auto !important;
        width: 0;
        height: 0;
        border-radius: 25px;
        transform-origin: bottom right;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: var(--menu-bg-color);
        border: 1px solid var(--color-border);
        backdrop-filter: blur(15px);

        /* Aplicamos también aquí para evitar el cuadro blanco */
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    }

    #menu-popup.is-open {
        width: 280px !important;
        height: auto !important;
        min-height: 300px;
        border-radius: 12px;
        padding: 20px 0;
    }

    /* 3. Ajuste del Scroll Indicator */
    #scroll-indicator {
        bottom: 40px;
        left: 40px;
    }
}

/* ==========================================================================
   9. Blog - Escenarios (VlasLabs)
   ========================================================================== */

#blog {
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: row;
    background: var(--bg-color);
    overflow: hidden;
    position: relative;
    transition: background 0.5s ease;
}

/* --- COLUMNA IZQUIERDA: IMAGEN Y PÁRPADO (RESTAURADO) --- */
.container-img {
    width: 50vw;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portada-fija {
    width: 100%;
    height: 100%;
    display: block;
    visibility: hidden;
    /* Se activa con .visible vía JS */
}

.portada-fija.visible {
    visibility: visible !important;
}

.portada-fija img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.curtain-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 101%;
    /* Pequeño overlap para evitar líneas blancas */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#curtain-path {
    fill: var(--color-accent);
}

#curtain-shadow {
    fill: rgba(0, 0, 0, 0.2);
}

/* --- COLUMNA DERECHA: CONTENIDO --- */
.container-article {
    width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8% 5% 4% 5%;
    box-sizing: border-box;
    background: transparent;

    /* Animación de entrada */
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-30px);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

.container-article.active {
    opacity: 1 !important;
    filter: blur(0px) !important;
    transform: translateY(0) !important;
}

.blog-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 200;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.blog-title:hover {
    color: var(--color-accent) !important;
}

.blog-excerpt {
    font-size: 1.15rem;
    color: var(--text-color);
    opacity: 0.7;
    max-width: 480px;
}

/* --- BOTÓN ELÁSTICO CON TOOLTIP CONTRASTADO --- */
.btn-more-interactive {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    align-self: flex-end;
    margin-right: 5%;
    text-decoration: none;
}

/* Tooltip con lógica de inversión de VlasLabs */
.btn-more-interactive::after {
    content: attr(data-tooltip);
    position: absolute;
    width: auto;
    bottom: 140%;
    right: 5px;
    /* Alineado para que el pico coincida con el círculo */
    padding: 8px 16px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;

    /* Tu radio específico: 0 en la esquina inferior derecha para crear el pico */
    border-radius: 100px 100px 0 100px;

    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* Animación que nace desde el punto */
    transform: translateY(10px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Theme Light: Tooltip Negro / Letras Blancas */
[data-theme="light"] .btn-more-interactive::after {
    background-color: #000000;
    color: #ffffff;
}

/* Theme Dark: Tooltip Blanco / Letras Negras */
[data-theme="dark"] .btn-more-interactive::after {
    background-color: #ffffff;
    color: #000000;
}

.btn-more-interactive:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Colores del punto aprobados */
[data-theme="light"] .btn-circle {
    background-color: #000000 !important;
}

[data-theme="light"] .btn-arrows {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-circle {
    background-color: #ffffff !important;
}

[data-theme="dark"] .btn-arrows {
    color: #000000 !important;
}

.btn-more-interactive:hover .btn-circle {
    width: 85px;
    background-color: var(--color-accent) !important;
}

.btn-more-interactive:hover .btn-arrows {
    color: #ffffff !important;
}

.btn-arrows {
    font-size: .9rem;
    line-height: 1;
}

.btn-arrows a {
    text-decoration: none;
}

/* --- NAVEGACIÓN CENTRADA AL FONDO --- */
.nav-arrows {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 3rem;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.arrow:hover {
    opacity: 1;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ==========================================================================
   Adaptabilidad - TV / 4K / Ultra-Wide (> 1920px)
   ========================================================================== */

@media (min-width: 1921px) {

    /* 1. Escalamos el Título */
    .blog-title {
        font-size: clamp(4rem, 8vw, 7rem);
        /* Título mucho más grande y dramático */
        max-width: 1200px;
        margin-bottom: 2.5rem;
    }

    /* 2. Escalamos el Texto Descriptivo */
    .blog-excerpt {
        font-size: 1.8rem;
        /* Legibilidad a distancia */
        max-width: 800px;
        line-height: 1.6;
        opacity: 0.8;
    }

    /* 3. Tamaño y Ubicación del Botón Leer Más */
    .btn-more-interactive {
        margin-top: 4rem;
        transform: scale(1.5);
        /* Escalamos el botón completo un 50% */
        transform-origin: right center;
        /* Para que crezca hacia la izquierda y no se salga */
        margin-right: 8%;
    }

    /* Ajuste del Tooltip para que no se vea minúsculo */
    .btn-more-interactive::after {
        font-size: .5rem;
        padding: 8px 20px;
        bottom: 150%;
        letter-spacing: 3px;
    }

    /* 4. Flechas de navegación */
    .arrow {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}


/* ==========================================================================
   Adaptabilidad - Tablet (768px a 1024px)
   ========================================================================== */

@media (max-width: 1024px) and (min-width: 769px) {

    /* Ajustamos proporciones: un poco menos de imagen, un poco más de texto */
    .container-img {
        width: 40vw;
    }

    .container-article {
        width: 60vw;
        padding: 5% 6%;
        /* Reducimos padding para ganar ancho de lectura */
    }

    .blog-title {
        font-size: 2.8rem;
        /* Tamaño intermedio */
        line-height: 1.1;
    }

    .blog-excerpt {
        font-size: 1.1rem;
        max-width: 100%;
        /* Que use todo el ancho de su columna */
    }

    /* Las flechas pueden ser un poco más pequeñas para no estorbar */
    .arrow {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Adaptabilidad - Mobile (Hasta 768px)
   ========================================================================== */

@media (max-width: 768px) {
    #blog {
        flex-direction: column;
        /* Apilamos: Imagen arriba, Texto abajo */
        height: auto;
        /* Permitimos que la sección crezca si es necesario */
        min-height: 100dvh;
    }

    /* 1. Ajuste de la Imagen */
    .container-img {
        width: 100%;
        height: 45vh;
        /* Ocupa casi la mitad superior */
    }

    /* 2. Ajuste del Contenido */
    .container-article {
        width: 100%;
        height: 55vh;
        /* El resto para el texto y navegación */
        padding: 10% 8%;
        justify-content: flex-start;
        /* Alineamos arriba para que sea natural */
        background: var(--bg-color);
    }

    /* 3. Tipografía en móvil */
    .blog-title {
        font-size: 1.8rem;
        /* Escala legible para mano */
        margin-bottom: 1rem;
        text-align: center;
    }

    .blog-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 100%;
        text-align: center;
    }

    /* 4. Botón y Navegación */
    .btn-more-interactive {
        margin-top: 3.5rem;
        align-self: center;
        /* En móvil, centrar el botón suele ser más cómodo */
        margin-right: 0;
    }

    .nav-arrows {
        padding-top: 2rem;
        gap: 30px;
        /* Más espacio entre flechas para evitar toques accidentales */
    }
}


/* ==========================================================================
   SECCIÓN 10: ABOUT (VlasLabs)
   ========================================================================== */

#about {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    overflow: hidden;
}

/* --- Texto de la sección About --- */
.about-text-interactive {
    max-width: 1100px;
    text-wrap: balance;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    line-height: 1.5;
    /* Usamos tu variable de borde para el gris tenue inicial */
    color: var(--color-border);
    transition: color 0.3s ease;
}

/* Letras individuales */
.about-char {
    display: inline;
    transition: color 0.3s ease;
}

/* Al leerse, pasa al color de texto principal (Negro o Blanco) */
.about-char.active {
    color: var(--color-text);
}

/* Palabras clave (Tus Spans) */
.keyword {
    display: inline;
    white-space: nowrap;
    /* Evita que se rompan a mitad de frase */
    color: rgba(0, 0, 0, 0.1);
    color: var(--color-border) !important;
    transition: color 0.3s ease;
}

.keyword.active {
    color: var(--color-accent) !important;
    position: relative;
    transition: .3s all ease-in-out;
}

.keyword.active:hover {
    font-weight: 800;
}

/* Subrayado sutil que aparece al activarse */
.keyword.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(1);
}

/* --- El Punto SVG --- */
#interactive-dot {
    position: absolute;
    z-index: 9999;
    cursor: pointer;
    display: none;
    touch-action: none;
    /* El círculo siempre será el opuesto al fondo actual */
    fill: var(--color-text);
    transition: fill 0.3s ease;
}

#interactive-dot.touched {
    fill: var(--color-accent) !important;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

#dot-counter {
    /* Usamos el color de fondo para que el número "perfore" el círculo */
    fill: var(--color-bg);
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-main);
    pointer-events: none;
}

#interactive-dot:active {
    cursor: grabbing;
}

/* ==========================================================================
   ADAPTABILIDAD: TV (GRAN FORMATO)
   ========================================================================== */

@media (min-width: 1921px) {

    /* Escalamos el texto para que la lectura a distancia sea cómoda */
    .about-text-interactive {
        /* 1. Mantenemos tus tamaños */
        font-size: 6rem;
        max-width: 1600px;

        /* 2. El truco del centrado: márgenes automáticos a los lados */
        margin-left: auto;
        margin-right: auto;

        /* 3. Centrado del texto dentro del bloque */
        text-align: left;

        /* 4. Evita palabras huérfanas y equilibra el peso visual */
        text-wrap: balance;
    }

    #interactive-dot {
        position: absolute;
        /* Crucial */
        z-index: 9999;
        display: none;
        /* JS lo activará */
        left: 50%;
        /* Centrado inicial */
        top: -100px;
        /* Fuera de pantalla arriba */
        touch-action: none;
        pointer-events: auto;
    }

    /* El contador también crece en proporción */
    #dot-counter {
        font-size: 32px;
    }
}

/* ==========================================================================
   ADAPTABILIDAD: TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .about-text-interactive {
        font-size: 2.1rem;
        /* Un poco más pequeño que en desktop */
        max-width: 80%;
        text-wrap: balance;
        margin-inline: auto;
        /* Dejamos aire a los lados */
        line-height: 1.4;
    }

    /* El punto de 60px es perfecto para tablets (tamaño de dedo) */
    #interactive-dot {
        width: 70px;
        height: 70px;
    }

    #dot-counter {
        font-size: 20px;
    }
}


/* ==========================================================================
   ADAPTABILIDAD: MOBILE
   ========================================================================== */

@media (max-width: 480px) {
    .about-text-interactive {
        font-size: 1.5rem;
        /* Tamaño optimizado para móviles */
        max-width: 95%;
        line-height: 1.3;
        text-align: center;
    }

    /* Punto ligeramente más pequeño para no tapar todo el texto,
       pero manteniendo un área de toque cómoda (44px-50px es el estándar) */
    #interactive-dot {
        width: 50px;
        height: 50px;
    }

    #dot-counter {
        font-size: 16px;
    }
}

/* ==========================================================================
   9. TEMPORAL SECTIONS (Development)
   ========================================================================== */

#about,
#services,
#contact {
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
