/* --- 0. Comportamiento de Navegación Global --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Evita que la barra de navegación fija tape los títulos al hacer clic */
}
/* --- 1. Configuración General --- */

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400; /* Regular por defecto para lectura cómoda */
    overflow-x: hidden;
    background-color: #000;
    color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Work Sans', sans-serif;
    color: #ffffff !important;
}

/* --- 2. Capas de Fondo (Hero) --- */
.hero-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -2;
    background: url('../img/fondo1.png') no-repeat center center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in;
}

.hero-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 1.2s ease-in;
}

.bg-visible { opacity: 1 !important; }

/* --- 3. Sección Hero y Contenedor Maestro --- */
.hero-section {
    min-height: 120vh;
    position: relative;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    background: transparent;
    width: 100%;
}

.display-1 {
    font-weight: 900 !important; /* Work Sans Black para el nombre principal */
}

/* --- Estilos para el Logo Principal Rotativo --- */
.logo-rotativo {
    max-width: 320px; /* Tamaño ideal en pantallas de escritorio */
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.impact-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* --- 4. Foto de Flavio --- */
.profile-wrapper {
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: auto;
    text-align: center;
}

.profile-img {
    max-height: 800px;
    width: auto;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.9));
    pointer-events: none;
    display: block;
}

/* --- 5. Frases Zig-Zag y Subtítulos con Tickets --- */
.phrase-box { 
    position: absolute; 
    z-index: 3; 
    white-space: nowrap; 
}

.p-izq-arriba { top: 10%; left: 0%; }
.p-izq-medio  { top: 45%; left: 5%; }
.p-izq-abajo  { top: 75%; left: 5%; }

.impact-text {
    font-size: 1.6rem;
    font-weight: 600; /* Work Sans Semi Bold */
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    color: #ffffff !important;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    margin-bottom: 0;
}

.impact-text::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0; width: 0; height: 3px;
    background-color: #0d6efd; 
    transition: width 0.8s ease-in-out;
}

.phrase-box.active .impact-text::after { 
    width: 100%; 
    transition-delay: 0.8s; 
}

/* Nuevos Subtítulos descriptivos para rellenar espacio de pantalla PC */
.impact-subtext {
    font-size: 1.05rem;
    font-weight: 300; /* Work Sans Light */
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 6px;
    white-space: normal; /* Permite salto de línea en bloques */
    max-width: 380px;    /* Equilibrio perfecto de lectura */
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.9);
}

/* Forzar color azul en el primer caracter (el ticket '✓') */
.impact-subtext::first-letter {
    color: #0d6efd;
    font-weight: 700;
}

/* --- 6. SECCIÓN SERVICIOS --- */
.services-2026 {
    background: radial-gradient(circle at top right, #1a1a1a, #000);
    padding: 100px 0;
}

.services-2026 h2 {
    font-weight: 700 !important; /* Work Sans Bold */
}

.services-2026 .lead {
    font-weight: 300; /* Work Sans Light para bajadas elegantes */
}

.service-card-2026, 
.service-card-2026 h3, 
.service-card-2026 p, 
.service-card-2026 li,
.service-card-2026 div {
    color: #ffffff !important;
    opacity: 1 !important; 
}

.service-card-2026 h3 {
    font-weight: 700 !important; /* Work Sans Bold */
}

.service-card-2026 p {
    font-weight: 300; /* Work Sans Light */
}

.service-card-2026 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.service-card-2026:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #0d6efd; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.card-list { list-style: none; padding: 0; margin-top: 20px; }
.card-list li { font-weight: 400; /* Work Sans Regular */ }
.card-list li::before {
    content: '→';
    color: #0d6efd; 
    font-weight: bold;
    margin-right: 12px;
}

/* --- 7. Estados Iniciales para Anime.js --- */
.reveal-up, .reveal-left, .reveal-right, .reveal-up-delay, .reveal-up-late, .stat-number, .reveal-left-stack, .reveal-signature {
    opacity: 0;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

/* --- 8. Navegación y Contacto --- */
.navbar-nav .nav-link {
    font-weight: 400; /* Work Sans Regular */
}

#contacto h2 {
    font-weight: 700 !important; /* Work Sans Bold */
}

#contacto p.lead {
    font-weight: 300; /* Work Sans Light */
}

#contacto .card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: #111 !important;
}

.btn-primary {
    font-weight: 600; /* Work Sans Semi Bold para acciones claras */
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* --- 9. Adaptación Móvil --- */
@media (max-width: 992px) {
    .logo-rotativo { max-width: 240px; } /* Ajuste de tamaño en móviles */
    .impact-container { height: auto; display: flex; flex-direction: column; align-items: center; }
    .profile-wrapper { position: relative; left: 0; transform: none; margin-bottom: 30px; }
    .phrase-box { position: static; margin: 15px 0; text-align: center; width: 100%; }
    .impact-text { font-size: 1.3rem; }
    .impact-subtext { max-width: 100%; text-align: center; padding: 0 15px; }
    .service-card-2026 { margin-bottom: 20px; padding: 30px; }
}

/* --- 10. FOOTER PREMIUM 2026 --- */
.footer-2026 {
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.footer-logo { max-width: 200px; height: auto; filter: brightness(1.2); }

.footer-description { 
    color: #ffffff !important; 
    opacity: 0.8; 
    line-height: 1.7; 
    font-size: 0.95rem; 
    font-weight: 200; /* Work Sans Extra Light */
}

.footer-title { 
    font-family: 'Work Sans', sans-serif; 
    font-size: 1.4rem; 
    margin-bottom: 30px; 
    position: relative; 
    color: #ffffff !important; 
    font-weight: 700 !important; /* Work Sans Bold */
}

.footer-title::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 40px; height: 2px; background-color: #0d6efd; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links li a { color: #ffffff !important; text-decoration: none; opacity: 0.7; transition: all 0.3s ease; display: flex; align-items: center; font-weight: 400; }
.footer-links li a::before { content: '▪'; color: #0d6efd; margin-right: 10px; }
.footer-links li a:hover { opacity: 1; transform: translateX(8px); color: #0d6efd !important; }
.contact-info p { margin-bottom: 12px; opacity: 0.9; font-size: 0.95rem; color: #ffffff !important; font-weight: 300; /* Work Sans Light */ }
.footer-divider { border-color: rgba(255, 255, 255, 0.1); margin: 50px 0 30px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; opacity: 0.6; font-weight: 300; }

.developer-tag { 
    font-style: italic; 
    font-weight: 200; /* Work Sans Extra Light */
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}

/* --- 11. SECCIÓN ESTADÍSTICAS --- */
.stats-section { background: #000; padding: 80px 0; }
.stat-card { background: rgba(255, 255, 255, 0.03); border-radius: 20px; padding: 40px 20px; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); border-color: #0d6efd; }

.stat-number { 
    font-size: 3.5rem; 
    font-weight: 900 !important; /* Work Sans Black */
    color: #ffffff !important; 
    margin-bottom: 10px; 
    font-family: 'Work Sans', sans-serif; 
}

.stat-number::after { content: '+'; color: #0d6efd; font-size: 2rem; margin-left: 5px; }

.stat-text { 
    color: #ffffff !important; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.9rem; 
    font-weight: 600; /* Work Sans Semi Bold */
    opacity: 0.8; 
}

/* --- 12. SECCIÓN SOCIOS / CLIENTES --- */
.partners-section { background: #000; padding-bottom: 100px; }
.partners-section h4 { font-weight: 700 !important; /* Work Sans Bold */ }
.partner-logo { filter: grayscale(1) brightness(2); transition: all 0.4s ease; max-height: 60px; display: block; margin: 0 auto; }
.partner-logo:hover { filter: grayscale(0) brightness(1); transform: scale(1.1); }

/* --- 13. SECCIÓN BIOGRAFÍA & PERFIL PREMIUM --- */
.profile-section-2026 {
    background: linear-gradient(180deg, #000000 0%, #0d0d0d 100%);
    position: relative;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-intro {
    font-size: 1.2rem;
    line-height: 1.8;
}

.bio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s ease;
}

.bio-card:hover {
    border-color: #0d6efd;
    background: rgba(255, 255, 255, 0.04);
}

.bio-card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.bio-card h4 {
    font-size: 1.3rem;
    font-weight: 700 !important;
    margin-bottom: 20px;
}

.bio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bio-list li {
    font-weight: 300;
    font-size: 0.98rem;
    margin-bottom: 12px;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
    text-align: left;
    color: #ffffff !important;
}

.bio-list li::before {
    content: '▪';
    color: #0d6efd;
    position: absolute;
    left: 5px;
    top: 0;
}

/* --- Área de Firma Agrandada y Estable --- */
.signature-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    max-width: 380px; /* Tamaño más grande para una excelente visualización */
    width: 0;         /* Se inicializa colapsado para la animación de trazo horizontal en JS */
}

.signature-img {
    max-height: 140px; /* Aumentada la altura máxima proporcionalmente */
    width: auto;
    filter: brightness(0) invert(1); /* Convierte firmas oscuras a blanco puro impecable */
    display: block;
    margin: 0 auto;
}

.signature-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0d6efd, transparent);
    margin: 15px auto 0;
    max-width: 420px;
}

/* --- 14. SECCIÓN HISTORIA Y FOTO EQUIPO --- */
.team-section-2026 {
    background: #0d0d0d;
    padding-bottom: 110px;
}

.max-w-800 {
    max-width: 850px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.history-text {
    line-height: 2;
    font-size: 1.1rem;
    text-align: justify;
    color: rgba(255, 255, 255, 0.75) !important;
}

.team-image-container {
    max-width: 1000px;
    margin: 40px auto 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-img-centered {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-image-container:hover .team-img-centered {
    transform: scale(1.02); /* Efecto sutil al pasar el cursor */
}