/* Estilos para la Landing Page de Intedii Online */

/* Variables de Diseño Corporativo Premium */
:root {
    --primary: #1e3a8a;
    /* Azul Profundo */
    --primary-light: #3b82f6;
    --secondary: #b8860b;
    /* Dorado Oscuro Corporate */
    --gold: #d4af37;
    /* Dorado Clásico */
    --dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 240, 0.5);
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow-blue {
    color: #ffffff; /* Centro blanco para máximo brillo */
    text-shadow: 
        0 0 7px #60a5fa,
        0 0 10px #60a5fa,
        0 0 21px #60a5fa,
        0 0 42px #3b82f6,
        0 0 82px #3b82f6;
    animation: pulse-glow 3s ease-in-out infinite alternate !important;
}

@keyframes pulse-glow {
    from { 
        text-shadow: 0 0 10px #60a5fa, 0 0 20px #3b82f6; 
    }
    to { 
        text-shadow: 0 0 20px #60a5fa, 0 0 40px #3b82f6, 0 0 80px #1e3a8a; 
    }
}

.text-glow-gold {
    color: var(--gold);
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.6),
        0 0 20px rgba(212, 175, 55, 0.4);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: shine 8s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

body {
    background-color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    color: #0f172a;
    position: relative;
    line-height: 1.6;
}

/* Contenedor Local para el Hero Elite */
.hero-presentation-wrapper {
    position: relative;
    background: #0f172a;
    color: #ffffff;
    overflow: hidden;
    z-index: 1;
    height: 100vh; /* Ocupamos toda la pantalla como un bloque sólido */
}

.hero-main-layout {
    display: grid;
    grid-template-rows: 1fr auto; /* Fila 1: Hero, Fila 2: Cinta (Suelo) */
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* Ajuste de la sección interna para Hero Rectangular */
section.min-h-\[60vh\] {
    grid-row: 1;
    min-height: 0 !important; /* El grid controla la altura */
    padding-top: 5.5rem; /* Ajustado para el nuevo menú más pequeño */
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
}

/* Ajuste para que la imagen no empuje el diseño */
.md\:w-2\/5.relative.reveal-init {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animación de Malla Dinámica (LOCAL) */
.premium-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #0f172a;
}

.mesh-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        radial-gradient(at 10% 10%, rgba(30, 58, 138, 0.4) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(184, 134, 11, 0.2) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(30, 58, 138, 0.3) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(184, 134, 11, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 1) 0px, transparent 100%);
    /* Rotación eliminada para evitar lag masivo */
    opacity: 0.8;
}

/* mesh-rotate keyframes eliminados internamente */

/* Elementos Flotantes de Cristal (LOCAL) */
.glass-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Reducido para performance */
    z-index: 2;
    opacity: 0.3;
    pointer-events: none;
    animation: float-blobs 20s ease-in-out infinite alternate;
    will-change: transform;
    transform: translateZ(0);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #1e3a8a;
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #d4af37;
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
}

@keyframes float-blobs {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Glow Icons */
/* Glow Circles Architecture */
@keyframes glowFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

.glow-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}

.glow-circle.active {
    animation: glowFadeIn 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glow-blue { 
    top: 5%; 
    right: 10%; 
    background: radial-gradient(circle, rgba(96, 165, 250, 0.6) 0%, transparent 70%); 
}

.glow-gold { 
    bottom: 15%; 
    right: -5%; 
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%); 
}

/* --- Estilo para el Círculo de Luz Trasero (Glow Blob) --- */
.glow-behind-image {
    position: absolute;
    width: 600px; 
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.35) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0; 
    pointer-events: none; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow-pulse-background 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse-background {
    from { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}

.glow-icon {
    color: rgba(212, 175, 55, 0.5);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.1));
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-icon:hover {
    color: var(--gold);
    filter: drop-shadow(0 0 30px var(--gold)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.5));
    transform: scale(1.25) rotate(15deg);
    opacity: 1 !important;
}

@keyframes glow-pulse-gold {
    0% {
        opacity: 0.3;
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2));
    }
    100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    }
}

/* VIP Badge */
.vip-badge {
    background: rgba(34, 197, 94, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    animation: pulse-green 3s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
    }
}

.stat-card-dark {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card-dark:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Cinta con Movimiento (Ticker) */
.ticker-container {
    grid-row: 2; /* Siempre al final, imposible de traslapar */
    width: 100%;
    overflow: hidden;
    background: #0a0f1d;
    padding: 15px 0;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 20;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
}

.ticker-item i {
    color: var(--gold);
    margin-right: 12px;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Limitar tamaño de imágenes en dispositivos */
.md\:w-2\/5 .scale-110 {
    transform: scale(0.9) !important;
}

/* Animaciones Premium */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tarjetas SaaS de Lujo */
.course-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.course-card:hover {
    transform: translateY(-12px);
    border-color: var(--gold);
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.1),
        0 10px 20px -10px rgba(15, 23, 42, 0.05);
}

.benefit-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.03);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--primary);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--secondary));
    color: var(--dark) !important;
    border: none;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.4s;
}

.btn-premium:hover::after {
    left: 100%;
}

/* Estilo del Buscador */
.search-container {
    box-shadow: 0 4px 25px rgba(30, 58, 138, 0.06);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.search-container:focus-within {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.12);
}

/* Carrusel Hero */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Elite Enhancements */
@media (max-width: 768px) {
    .glass-blob {
        filter: blur(40px);
        opacity: 0.5;
        display: block !important;
    }
    
    .blob-1 {
        width: 300px;
        height: 300px;
        top: 0;
        left: -20%;
        background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
    }
    
    .blob-2 {
        width: 250px;
        height: 250px;
        bottom: 20%;
        right: -10%;
        background: radial-gradient(circle, #d4af37 0%, transparent 70%);
    }

    .hero-presentation-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40%;
        background: linear-gradient(to top, #0f172a 0%, transparent 100%);
        z-index: 5;
    }

    .text-glow-blue {
        text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }

    .text-glow-gold {
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    }
    
    .search-container {
        transform: scale(0.95);
        margin-top: -1rem;
    }
}

/* Navbar Mobile Premium */
#mobile-menu {
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    background: rgba(255,255,255,0.05);
}

/* Scroll Animation classes */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Elements for Mobile */
@keyframes float-mobile {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -15px) rotate(2deg); }
    66% { transform: translate(-5px, 10px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.premium-bg-container img {
    /* Animación manejada por JS Parallax interactivo para efecto Hover */
    transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1s ease;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }
    
    .search-container {
        padding: 0.5rem !important;
        border-radius: 1.5rem !important;
    }

    .search-container input {
        padding-left: 3rem !important;
        font-size: 0.8rem !important;
    }

    .search-container button {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.7rem !important;
    }

    .stat-card-dark p {
        font-size: 0.8rem !important;
    }
}