@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* =======================
   TIPOGRAFÍAS
   ======================= */
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Regular.woff2') format('woff2'),
       url('fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Bold.woff2') format('woff2'),
       url('fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
}

/* Títulos con Impact + fallback */
h1,
.xtnd-title,
.gaming-text,
.about-section h1,
.services-section h1,
.contact-section h1 {
  font-family: 'Anton', 'Space Grotesk', sans-serif;
}

/* =======================
   ESTRUCTURA
   ======================= */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

.gradient-canvas canvas {
  display: block;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover;
}

body{
    margin: 0;
    padding: 0;
    background-color: #060A27; 
    scroll-behavior: smooth;
}

.container {
    font-family: Arial, Helvetica, sans-serif;
    color: #FFFFFF;
    display: block; /* Cambiado de flex para evitar el centrado forzado */
    position: relative;
    width: 100%;
}

/* NAVBAR */ 
header{
    position: fixed;                  
    top: 20px;                        
    left: 50%;                        
    transform: translateX(-50%);      
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    width: 80%;
    border-radius: 50px;              
    background: rgba(6, 10, 39, 0.6);   
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 1000;                    
    max-width: 1200px;                
}

.logo img{
    height: 50px;
    width: auto;
    display: block;
}

.head-left{
    display: flex;
    align-items: center;
}

.head-left img{
    width: 40px;
    height: 40px;
    margin-right: 20px;
}

.head-left button{
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(90deg, #ADFF2F, #920CF2);
    color: #060A27;
    transition: all 0.3s ease;
}

.head-left button:hover{
    color: #fff;
    background: transparent;
    border: 2px solid #ADFF2F;
}

.head-right{
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: flex-end;
}

.head-right p{
    margin: 0;
}

.head-right a{
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.head-right a:hover{
    color: #ADFF2F;
}

.head-right a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ADFF2F;
    transition: width 0.3s ease;
}

.head-right a:hover::after{
    width: 100%;
}

.head-right a:active{
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/*HERO*/
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;
}

.gradient-canvas {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1;
}

.gradient-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.hero-main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    max-width: 1400px;
    text-align: center;
    z-index: 20;
    pointer-events: none;
    box-sizing: border-box;
    padding: 0 5vw;
}

.hero-line {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-line.left {
    transform: translateX(-20%);
    font-size: clamp(60px, 10vw, 120px);
}

.hero-line.middle {
    transform: translateX(0);
    font-size: clamp(60px, 10vw, 120px);
    color: #FFFFFF;
}

.hero-line.right {
    transform: translateX(17%);
    font-size: clamp(60px, 10vw, 120px);
}

/* Móvil – FIX: desfasaje sutil, texto sin corte, degradé full */
@media (max-width: 768px) {
    .hero-main-title {
        width: 100vw !important;
        max-width: none !important;
        padding: 0 1vw;
        top: 48%;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow: visible !important;
    }
    
    .hero-line {
        font-size: clamp(26px, 6.5vw, 50px);
        white-space: nowrap;
        overflow: visible !important; 
        text-overflow: clip !important; 
        margin: 1px 0;
        letter-spacing: -3.5px;
        line-height: 0.75;
    }
    
    .hero-line.left {
        transform: translateX(-5%);
    }
    
    .hero-line.right {
        transform: translateX(4%);
    }

    .hero-section {
        overflow: visible !important;
    }
}

/* PROYECTOS */ 
.about-section h1{
    font-weight: 900;
    white-space: normal; 
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    text-align: center;
    margin: 25px 0;
    text-transform: uppercase;
    background: linear-gradient(to right, #ADFF2F, #920CF2, #FFFFFF);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

/* XTND LAB */ 
.xtnd-lab{ position: relative; }

.xtnd-title{
    position: relative;
    z-index: 20;
    font-weight: 900;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: center;
    margin: 40px auto 20px auto;
    text-transform: uppercase;
    background: linear-gradient(to right, #ADFF2F, #920CF2, #FFFFFF);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

.scroll-text{ position: relative; z-index: 1; }

#xtnd-lab .autoBlur{
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.xtnd-lab p {
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 2px;       
    color: #CCCCCC;               
    margin: 60px 0 0 0;                
    text-align: center;        
}

.scroll-text {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.scroll-text .inner {
    display: inline-block;
    animation: scroll 25s linear infinite;
    animation-delay: 0s;
}

.scroll-text span {
    font-family: 'Space Grotesk', sans-serif;
    display: inline-block;
    margin: 0 25px;
    font-size: clamp(24px, 6vw, 40px); /* ← Tamaño responsive: pequeño en móvil */
    font-weight: 600;
    color: #FFFFFF;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .scroll-text {
        height: 50px; /* Altura fija para que quepa bien */
        overflow: hidden;
    }
    
    .scroll-text span {
        font-size: clamp(18px, 5vw, 28px); /* Más chico en celular */
        margin: 0 15px; /* Menos espacio entre palabras */
    }
    
    /* Velocidad más lenta en móvil para que se lea mejor */
    .scroll-text .inner {
        animation-duration: 35s; /* Más lento para que no vuele */
    }
    
    .line2 .inner {
        animation-duration: 35s;
    }
}

@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.gaming-text{
    font-size: clamp(24px, 6vw, 80px);
    margin: 0;
    position: absolute;
    right: 20px;
    bottom: 30px;
}

.about-section{
    width: 100%;
    height: 100%;
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #FFFFFF;  
}

.image-box{
    width: 360px;
    height: 510px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;  
    border-radius: 50px;
}

.image-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000; 
}

.about-section p,
.xtnd-lab p,
.services-section p {
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #CCCCCC;
    margin: 60px 0 0 0;          
    text-align: center;
}

.about-section h1{
    font-weight: 900;
    max-width: 100%;
    white-space: normal; 
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
    margin: 25px 0;
    text-transform: uppercase;
    background: linear-gradient(to right, #ADFF2F, #920CF2, #FFFFFF);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient{
    to{
        background-position: 200%;
    }
}

.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centra el h3 y el p de arriba */
    width: 90%;             /* O el ancho que prefieras */
    max-width: 1200px;      /* Para que no se estire infinito en monitores grandes */
    margin: 100px auto;     /* El 'auto' a los costados es la clave */
}

.info-section p {
    text-align: left;     
    margin-left: auto;
    margin-right: auto;
}

.info-section h3{
    margin-bottom: 0;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas iguales */
    gap: 30px;
    width: 100%;
    margin-top: 50px;
    justify-content: center; /* Centra las columnas si sobran espacios */
}

/* Para que la primera card (que ocupa 2 columnas) esté prolija */
.card:nth-child(1) {
    grid-column: span 2;
}

.card {
    position: relative;
    width: auto;
    height: 40vh;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: 0.5s;
}

/* 🔹 Video como fondo */
.card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 🔹 Contenedor de texto encima del video */
.card-text {
    position: absolute;
    top: 20px;
    left: 5%;
    z-index: 2;
}

/* 🔹 Título dentro de la tarjeta */
.card-text h1 {
    margin: 0 0 10px 0; 
    font-family: 'Space Grotesk', sans-serif; 
    font-weight: 900;
    background: linear-gradient(to right, #ADFF2F, #920CF2, #FFFFFF);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
    white-space: normal; 
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.card-text p {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif; 
    max-width: 300px;
    color: #E0E0E0;
    font-size: 20px;
}

/* 🔹 Botón (opcional) */
.card button {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif; 
    bottom: 20px;
    left: 5%;
    padding: 10px 25px;
    border: 1px solid #ADFF2F;
    background-color: #060A27;
    color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 0 5px #920CF2;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover {
    background-color: #ADFF2F;
    color: #060A27;
    box-shadow: 0 0 15px #920CF2;
    opacity: 0.9;
}

/* Hover en la tarjeta */
.card:hover {
    box-shadow: 0 0 15px #ADFF2F;
}

/* Layout especial para primeras cards */
.card:nth-child(1) {
    grid-column: span 2;
}

.card:nth-child(2) {
    grid-row: span 2;
    height: 83vh;
}

/* SERVICIOS - LIMPIO Y CORREGIDO */ 
.services-section {
    width: 100%;
    padding: 100px 0;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.services-list {
    position: relative !important;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.service-item {
    font-family: 'Anton', 'Impact', sans-serif;
    font-size: clamp(2.5rem, 8vw, 7rem); 
    font-weight: 900;
    text-transform: uppercase;
    color: #FFFFFF;
    cursor: pointer;
    padding: 20px 5%; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left;
    display: block;
}

.service-item:hover {
    color: #ADFF2F;
    padding-left: 7%;
    background: rgba(173, 255, 47, 0.03); 
}

/* CONTENEDOR DE PREVIEWS */
.service-preview-multi {
    position: fixed;
    right: 5%;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    display: flex;
    flex-direction: row; /* Horizontal */
    gap: 30px;           /* MUCHO AIRE entre imágenes */
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-50%) scale(0.8); /* Empieza pequeño */
}

.service-preview-multi.visible {
    opacity: 1;
    transform: translateY(-50%) scale(1); /* Crece al aparecer */
}

.service-preview-media {
    width: 320px;        /* Ancho de cada foto */
    height: 180px;       /* Alto de cada foto */
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;      /* Evita que se aplasten */
}

/* CONTACTO – VERSIÓN FINAL 100% FUNCIONAL */
.contact-section {
    min-height: 100vh; /* Cambiamos height por min-height para que respire */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
    background: #060A27;
}

.contact-title {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espacio fijo entre líneas – no más negativos */
    z-index: 10;
}

.contact-title-top,
.contact-title-bottom {
    font-family: 'Anton', sans-serif;
    font-size: clamp(5rem, 14vw, 18rem); /* Reducimos tamaño máximo */
    font-weight: 900;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 0 100px rgba(0,0,0,1), 0 30px 80px rgba(0,0,0,0.9);
    letter-spacing: 2px;
    line-height: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-title {
        gap: 25px;
    }
    
    .contact-title-top,
    .contact-title-bottom {
        font-size: clamp(3.2rem, 10vw, 7.5rem); /* Aún más controlado */
    }
    
    .btn-contact {
        margin-top: 50px;
        padding: 20px 60px;
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
}

/* Botón CONTACTANOS */
.btn-contact {
    margin-top: 40px;
    padding: 30px 100px;
    background: #ADFF2F;
    color: #000;
    text-decoration: none;
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    border-radius: 100px;
    transition: all 0.5s ease;
    box-shadow: 0 0 80px rgba(173,255,47,0.9);
    z-index: 10;
}

.btn-contact:hover {
    transform: scale(1.35);
    box-shadow: 0 0 150px #ADFF2F;
    background: #920CF2;
    color: #FFFFFF;
}

/* Imágenes flotantes */
.contact-section img {
    position: absolute;
    width: clamp(200px, 35vw, 400px);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.35;
    filter: grayscale(100%);
    transition: all 0.8s ease;
    pointer-events: none;
}

.contact-section img:hover {
    opacity: 0.7;
    filter: grayscale(0%);
    transform: scale(1.25);
}

.contact-section .img1 { top: 5%; left: 2%; transform: rotate(-22deg); }
.contact-section .img2 { top: 8%; right: 3%; transform: rotate(22deg); }
.contact-section .img3 { bottom: 5%; left: 4%; transform: rotate(14deg); }
.contact-section .img4 { bottom: 10%; right: 2%; transform: rotate(-18deg); }

/* Responsive móvil */
@media (max-width: 768px) {
    .contact-title {
        gap: 20px; /* Espacio mínimo entre líneas */
    }
    
    .contact-title-top,
    .contact-title-bottom {
        font-size: clamp(3.5rem, 11vw, 8rem); /* Mucho más chico */
        line-height: 1;
        margin: 0;
    }
    
    .contact-title-bottom {
        margin-top: -20px; /* Solo un pequeño acercamiento */
    }
    
    .btn-contact {
        margin-top: 40px;
        padding: 18px 50px;
    }
}

/* CV */
.cv-showcase {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px;
    gap: 60px;
    box-sizing: border-box;
    background: rgba(6, 10, 39, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(173, 255, 47, 0.1);
    display: flex;
    align-items: flex-start;
    flex-direction: row;
}

.cv-photo {
    flex-shrink: 0;
}

.cv-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ADFF2F;
    box-shadow: 0 0 30px rgba(173, 255, 47, 0.5);
}

.cv-info {
    flex: 1;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    text-align: left;
}

.cv-info h2 {
    margin: 0 0 12px 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    color: #ADFF2F;
    letter-spacing: 1px;
    line-height: 1.1;
}

.cv-info > p:not(.cv-desc) {
    margin: 0 0 20px 0;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #E0E0E0;
    text-align: left;
    line-height: 1.4;
}

.cv-desc {
    margin: 0 0 30px 0;
    font-size: clamp(1rem, 3vw, 1.2rem); 
    text-transform: lowercase !important;
    font-weight: 400;
    color: #BBBBBB;
    text-align: left;
    line-height: 1.6;
    max-width: 90%;
    text-transform: none; 
    opacity: 0.9;
}

.cv-desc::first-letter {
    text-transform: uppercase !important;
    font-size: 1.0em; 
}

.cv-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    width: 100%;
}

.cv-toggle {
    background: #ADFF2F;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #060A27;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cv-toggle:hover {
    color: #fff;
    background: #920CF2;
}

.cv-toggle.open {
    transform: rotate(180deg);
}

.cv-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(90deg, #ADFF2F, #920CF2);
    color: #060A27;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cv-btn:hover {
    color: #fff;
    background: transparent;
    border: 2px solid #ADFF2F;
}

.cv-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    background: #ADFF2F;
    color: #060A27;
    font-size: 26px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cv-linkedin:hover {
    background: transparent;
    color: #ADFF2F;
    border: 2px solid #ADFF2F;
    transform: scale(1.1);
}

/* Móvil – columna y centrado */
@media (max-width: 768px) {
    .cv-showcase {
        width: 95%;
        padding: 30px 15px;
        gap: 30px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 60px auto;
    }

    .cv-photo img {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }

    .cv-info {
        text-align: center;
    }

    .cv-desc {
        text-align: center;
    }

    .cv-actions {
        flex-direction: column;
        gap: 20px;
    }

    .cv-toggle, .cv-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Extra y bloques */
.cv-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s ease;
}

.cv-extra.open {
    max-height: 1200px;
    opacity: 1;
    margin-top: 30px;
}

.cv-block {
    text-align: center;
    margin-bottom: 50px;
}

.cv-section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px 0;
    font-family: 'Space Grotesk', sans-serif;
    color: #ADFF2F;
}

.cv-block img {
    max-width: 240px;
    height: 240px;
    border-radius: 12px;
    margin: 12px;
    box-shadow: 0 0 12px rgba(146, 12, 242, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
}

.cv-block img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(173, 255, 47, 0.6);
}

.cv-block p {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #ccc;
    text-align: center;
    line-height: 1.5;
}

/* Logros – Versión corregida y perfecta con + visible */
/* Logros – Versión FINAL: sin corte, sin superposición, con Space Grotesk */
.cv-achievements {
    text-align: center;
    margin: 60px auto 80px auto !important; /* Más margen abajo para empujar SERVICIOS */
    max-width: 1000px;
    padding: 0 15px;
    font-family: 'Space Grotesk', sans-serif !important;
    position: relative; /* Asegura que sea parte del flujo normal */
    z-index: 1; /* No tape nada */
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px !important;
    justify-content: center;
    width: 100%;
}

.achievement {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 35px 25px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto !important;
    text-align: center;
    box-sizing: border-box;
    overflow: visible !important;
    font-family: 'Space Grotesk', sans-serif !important;
    position: relative; /* Flujo normal */
    z-index: 1;
}

.count-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: clamp(2.8rem, 7vw, 4rem) !important;
    font-weight: 900;
    color: #ADFF2F;
    margin-bottom: 10px;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

.plus {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-right: 8px;
    color: #ADFF2F;
}

.count {
    font-size: clamp(3.5rem, 9vw, 5rem);
    line-height: 1;
    font-weight: 900;
    color: #ADFF2F;
}

.achievement p {
    margin: 0;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: #ccc;
    line-height: 1.5;
    max-width: 100%;
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Refuerzo: Empuja contenido de abajo y rompe recortes */
@media (max-width: 768px) {
    .cv-achievements {
        margin-bottom: 100px !important; /* Más espacio abajo para que SERVICIOS baje */
    }

    .achievement {
        padding: 40px 30px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important; /* Centrado perfecto */
    }

    .count-wrapper {
        padding: 0 20px !important;
        min-width: 100% !important;
    }

    /* Rompe cualquier overflow hidden */
    .cv-achievements,
    .achievements-grid,
    .achievement,
    .count-wrapper,
    .cv-showcase,
    .info-section,
    body,
    .container {
        overflow: visible !important;
        overflow-x: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

.tools-slider { 
  position: relative;
  overflow: hidden;
  width: 100%; 
  height: 160px; 
  display: flex;
  align-items: center;
}

.slide-track {
  display: flex;
  gap: 40px;
  width: calc(160px * 20);
  animation: scrollTools 30s linear infinite;
}

.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px; 
}

.tool img {
  width: 80px;  
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.tool img:hover {
  filter: grayscale(0%); 
  opacity: 1;
  transform: scale(1.1);
}

.tool p {
  margin-top: 8px;
  font-size: 10px;
  color: #fff;
  font-weight: 500;
  text-align: center;
}

@keyframes scrollTools {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* BLUR EFFECT ANIMATION */
.autoBlur{
    animation: autoBlurAnimation linear both;
    animation-timeline: view();
}

@keyframes autoBlurAnimation{
    0%{
        filter: blur(40px);
    }
    40%,60%{
        filter: blur(0);
        transform: translateY(0px);
        opacity: 1;
    }
    100%{
        filter: blur(40px);
        transform: translateY(-200px);
        opacity: 0;
    }
}

/* FULL SCREEN ANIMATION */
.autoTakeFull{
    animation: autoTakeFullAnimation both;
    animation-timeline: view(70% 65%);
}

@keyframes autoTakeFullAnimation{
    to{
        width: 100%;
        height: 100vh;
        border-radius: 0;
        margin-bottom: 100px;
    }
}

/* AUTO DISPLAY ANIMATION */
.autoDisplay{
    animation: autoDisplayAnimation both;
    animation-timeline: view(70% 5%);
}

@keyframes autoDisplayAnimation{
    from{
        opacity: 0;
        transform: translateY(200px) scale(0.3);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =======================
   WIDGET IDIOMAS
   ======================= */

.lang-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
}

.lang-toggle {
  background: #ADFF2F;
  border: none;
  font-size: 20px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: #920CF2;
  color: #fff;
  transform: scale(1.1);
}

.lang-options {
  display: none;
  position: absolute;
  bottom: 55px;
  right: 0;
  background: rgba(6, 10, 39, 0.95);
  border: 1px solid #ADFF2F;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.lang-options.open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-options button {
  background: none;
  border: none;
  color: white;
  font-size: 12px;            
  margin: 4px 0;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; 
  font-weight: 400;           
  text-transform: uppercase;  
  transition: transform 0.2s, color 0.2s;
}

.lang-options button:hover {
  transform: scale(1.2);
}

.hero-info h1,
.xtnd-title,
.about-section h1,
.services-section h1,
.contact-section h1 {
  font-size: clamp(32px, 8vw, 100px);
}

/* =======================
   RESPONSIVE
   ======================= */

/* --- Tablets & celulares grandes --- */
@media (max-width: 900px) {
  /* Footer en columna */
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px;
  }

  /* Info-cards en una columna */
 .info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 50px;
}

/* Solo en desktop aplicamos el diseño especial */
@media (min-width: 1025px) {
    .card:nth-child(1) { grid-column: span 2; }
    .card:nth-child(2) { grid-row: span 2; height: 100%; }
}

  .card {
    height: auto;
    min-height: 250px;
  }
  .card:nth-child(1),
  .card:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }
}

/* --- Menú, servicios y CV en mobile --- */
@media (max-width: 768px) {
  /* Navbar hamburguesa */
  .menu-toggle {
    display: block;
  }
  .head-right {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: rgba(6, 10, 39, 0.95);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 20px;
    border-radius: 12px;
  }
  .head-right.active {
    display: flex;
  }

  /* Servicios: previews abajo en vez de fixed */
  .service-preview-multi {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    opacity: 1;
    pointer-events: auto;
  }

  /* CV en columna */
  .cv-showcase {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  .cv-photo img {
    width: 140px;
    height: 140px;
  }
  .cv-info {
    text-align: center;
  }
  .cv-info p {
    text-align: center;
  }
}

/* --- Celulares chicos --- */
@media (max-width: 820px) {
  /* HERO */
  .hero-info {
    display: block !important;
    z-index: 10 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    text-align: center;
    margin: 60px auto 20px auto;
    padding: 0 20px;
    max-width: 90%;
  }

.hero-info h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 10vw, 110px); /* Tamaño masivo */
  line-height: 0.85; /* Letras más pegadas verticalmente */
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: -2px; /* Un toque de estilo pro */
}

  .hero-info p {
    font-size: 14px;
    margin: 12px auto;
    max-width: 95%;
    text-align: center;
  }

  .hero-info button {
    margin: 20px auto 0 auto;
    display: block;
  }

  .gaming-text {
    right: 5px;
    bottom: 5px;
  }

  /* FOOTER */
  .footer p {
    display: none;
  }
  .footer ul {
    margin-left: 0;
    justify-content: center;
  }

  /* CARDS */
  .card:nth-child(2) {
    min-height: 60vh;
    height: auto;
  }
}

/* REFUERZO RESPONSIVE */
@media (max-width: 1024px) {
  .gradient-canvas {
    background: transparent !important;
    position: absolute !important;
    z-index: 0 !important;
  }

  .hero-info {
    position: relative !important;
    z-index: 10 !important;
    text-align: center !important;
    margin: 40px auto !important;
    max-width: 95% !important;
  }

  .contact-section .img1,
  .contact-section .img2,
  .contact-section .img3,
  .contact-section .img4 {
    display: none !important;
  }

  .contact-section {
    margin-top: 40px !important;
    padding: 0 20px !important;
    text-align: center !important;
  }
}

/* TÍTULO PRINCIPAL EN EL HERO – VERSIÓN FINAL */
.hero-main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    pointer-events: none;
    width: 90%;
    max-width: 1200px;
    animation: fadeInTitle 2.5s ease-out forwards;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.title-main {
    font-family: 'Anton', sans-serif;
    font-size: clamp(60px, 12vw, 160px);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0;
    color: #FFFFFF;
    letter-spacing: 3px;
    text-shadow: 
        0 0 20px rgba(0,0,0,0.8),
        0 5px 15px rgba(0,0,0,0.6);
}

.title-subtitle {
    font-family: 'Anton', sans-serif;
    font-size: clamp(28px, 6vw, 70px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 15px 0 0 0;
    color: #ADFF2F;
    letter-spacing: 4px;
    text-shadow: 
        0 0 20px rgba(173,255,47,0.6),
        0 3px 10px rgba(0,0,0,0.8);
}

/* Responsive fino */
@media (max-width: 768px) {
    .title-main {
        font-size: clamp(50px, 12vw, 100px);
        letter-spacing: 1px;
    }
    .title-subtitle {
        font-size: clamp(22px, 5vw, 45px);
    }
}

/* MEJORAS RESPONSIVE PARA MÓVIL – HERO TÍTULO */
@media (max-width: 768px) {
    .hero-main-title {
        width: 98vw;
        padding: 0 3vw;
        top: 48%; /* Un toque más arriba para aire */
    }

    .hero-line {
        font-size: clamp(40px, 8.8vw, 72px); /* Tamaño más controlado */
        white-space: nowrap;
        overflow: visible !important; /* ← Permite que salga sin cortar */
        text-overflow: clip; /* Sin puntos suspensivos */
        margin: 4px 0;
        letter-spacing: -0.5px; /* Un toque más compacto */
    }

    .hero-line.left {
        transform: translateX(-10%);
    }
    
    .hero-line.right {
        transform: translateX(8%);
    }
}
    

@media (max-width: 480px) {
    .title-main {
        font-size: clamp(40px, 12vw, 70px) !important;
    }
    .title-subtitle {
        font-size: clamp(18px, 5vw, 32px) !important;
    }

    /* Navbar: logo más chico y menú más compacto */
    header {
        padding: 10px 20px;
        width: 95%;
    }

    .logo img {
        height: 40px;
    }

    .head-right a {
        font-size: 14px;
        gap: 15px;
    }
}

/* Evita que el título interfiera con el touch del fluido */
.hero-main-title {
    pointer-events: none; /* Ya lo tenías, pero lo reforzamos */
}

/* Mejora general: videos en cards más livianos en móvil */
@media (max-width: 768px) {
    .card video {
        object-fit: cover;
    }
}

/* FOOTER – BONITO Y CENTRADO */
.footer {
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 40px auto;
    padding: 40px 40px;
    background: rgba(6, 10, 39, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    color: #CCCCCC;
    font-size: 14px;
}

.footer p {
    margin: 0;
}

.footer p a {
    color: #CCCCCC;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: 0.3s;
}

.footer p a:hover {
    color: #ADFF2F;
    border-color: #ADFF2F;
}

.footer ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #FFFFFF;
    font-size: 24px;
    transition: all 0.4s ease;
}

.footer ul li a:hover {
    background: #ADFF2F;
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 30px rgba(173,255,47,0.6);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        margin: 80px 20px 40px 20px;
        padding: 35px 25px;
        border-radius: 30px;
    }

    .footer ul {
        gap: 20px;
    }

    .footer ul li a {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

/* HACEMOS QUE PROYECTOS Y CV SE SIENTAN MÁS ANCHOS Y CONSISTENTES CON EL RESTO */
.info-section,
.cv-showcase {
    width: 90%;              /* Más ancho, como el hero y contacto */
    max-width: 1600px;       /* Límite más generoso para pantallas grandes */
    margin: 100px auto;      /* Centrado con espacio arriba/abajo */
    padding: 0 20px;         /* Padding lateral para móvil */
    box-sizing: border-box;
}

/* Las cards dentro de proyectos ahora ocupan más espacio */
.info-cards {
    gap: 40px;               /* Más aire entre cards */
}

/* CV showcase más ancho y equilibrado */
.cv-showcase {
    gap: 60px;
    padding: 40px;
    border-radius: 40px;
}

/* En móvil mantenemos control */
@media (max-width: 768px) {
    .info-section,
    .cv-showcase {
        width: 95%;
        padding: 0 15px;
    }
    
    .info-cards {
        gap: 20px;
    }
    
    .cv-showcase {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
}

/* CV – VERSIÓN MÁS CHICA, SUTIL Y COMPACTA */
.cv-showcase {
    gap: 40px;               /* Menos espacio entre foto y texto */
    padding: 40px;           /* Menos aire interno */
    max-width: 1100px;       /* Un toque más angosto */
    margin: 80px auto;       /* Menos separación con las secciones de arriba/abajo */
}

.cv-photo img {
    width: 160px !important;     /* Foto más chica */
    height: 160px !important;
    border: 2px solid #ADFF2F !important; /* Borde más fino */
}

/* Nombre más discreto */
.cv-info h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    margin-bottom: 15px !important;
}

/* Títulos "Fundadora | Lic | etc." más chicos */
.cv-info > p:not(.cv-desc) {
    font-size: clamp(1rem, 2vw, 1.3rem) !important;
    margin: 10px 0 !important;
    opacity: 0.8 !important;
}

/* Descripción "Apasionada..." bien chica y sutil */
.cv-desc {
    font-size: clamp(1rem, 4vw, 1.3rem) !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    margin: 20px auto !important;
    text-align: left !important;
    color: #BBBBBB !important;
    font-style: normal !important;
    opacity: 0.8 !important;
}
/* Botones y acciones más finos */
.cv-actions {
    margin-top: 30px !important;
    gap: 20px !important;
}

.cv-toggle,
.cv-btn {
    padding: 10px 25px !important;
    font-size: 1.2rem !important;
    border-radius: 30px !important;
}

.cv-linkedin {
    width: 40px !important;
    height: 40px !important;
    font-size: 22px !important;
}

/* En móvil todo aún más compacto */
@media (max-width: 768px) {
    .cv-showcase {
        gap: 30px;
        padding: 30px 20px;
        margin: 60px auto;
    }
    .cv-photo img {
        width: 130px !important;
        height: 130px !important;
    }
    .cv-info h2 {
        font-size: 2.5rem !important;
    }
    .cv-desc {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem) !important; 
        font-style: normal !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        margin: 15px 0 25px 0 !important;
        text-align: left !important;
        padding-left: 0;
    }
}

/* NAVBAR RESPONSIVE – hamburguesa en móvil */
/* Botón hamburguesa: OCULTO en desktop, VISIBLE solo en móvil */
.menu-hamburguesa {
    display: none; /* ← Esto lo oculta siempre por defecto */
    background: none;
    border: none;
    font-size: 50px;
    color: #ADFF2F;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 100000;
}

/* Solo en móvil: aparece el botón */
@media (max-width: 768px) {
    .menu-hamburguesa {
        display: block !important;
        position: absolute;
        right: 4vw;
        top: 50%;
        transform: translateY(-50%);
        font-size: 50px;
        color: #ADFF2F;
        background: rgba(0,0,0,0.3);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        line-height: 60px;
        text-align: center;
    }
    
    /* Ajuste de padding para que no se superponga */
    header {
        padding-right: 80px !important;
    }
    
    /* Menú que abre */
    .head-right {
        display: none !important;
        position: fixed;
        top: 90px;
        right: 3vw;
        width: 94vw;
        flex-direction: column;
        background: rgba(6, 10, 39, 0.98);
        backdrop-filter: blur(25px);
        padding: 40px 30px;
        border-radius: 24px;
        gap: 35px;
        border: 2px solid rgba(173,255,47,0.5);
        box-shadow: 0 30px 80px rgba(0,0,0,0.8);
        z-index: 99999;
        overflow-y: auto;
        max-height: 80vh;
    }
    
    .head-right.active {
        display: flex !important;
    }
    
    .head-right a {
        font-size: 1.5rem;
        font-weight: 600;
        padding: 20px 0;
        text-align: center;
        width: 100%;
        color: white;
        text-decoration: none;
    }
    
    .head-right a:hover {
        color: #ADFF2F;
    }
}

/* FIX NUCLEAR PARA CONTADORES EN MOBILE – rompe TODO recorte */
@media (max-width: 768px) {
    /* Fuerza visible en TODOS los niveles posibles */
    body,
    .container,
    .cv-showcase,
    .cv-extra,
    .info-section,
    .cv-achievements,
    .achievements-grid,
    .achievement,
    .count-wrapper,
    .plus,
    .count {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    /* Asegura espacio y ancho completo */
    .achievement {
        min-height: auto !important;
        padding: 35px 30px !important; /* MUCHÍSIMO más aire lateral */
        width: 100vw !important; /* Usa todo el viewport si hace falta */
        max-width: none !important;
        margin: 0 -15px !important; /* Compensación negativa si hay padding global */
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .count-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 20px !important; /* Espacio extra a los lados */
        box-sizing: border-box !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        font-size: clamp(2.8rem, 8vw, 4rem) !important; /* Tamaño razonable */
    }

    .count {
        font-size: clamp(3.5rem, 10vw, 5rem) !important;
    }

    /* Si hay algún wrapper global, fuerza */
    main,
    section,
    div[style*="overflow"] {
        overflow: visible !important;
    }
}