/* ============================================================
   ESTILOS TECHCORE AI - CORRECCIÓN GLASSMORPHISM Y NEÓN
   ============================================================ */

/* 1. VARIABLES DE COLOR Y EFECTOS EXACTOS */
:root {
    /* Fondo Profundo con degradado sutil */
    --bg-dark: #05080f; /* Un gris carbón muy oscuro, no negro puro */
    --bg-gradient: radial-gradient(circle at 70% 30%, rgba(0, 242, 255, 0.1), transparent 50%),
                    radial-gradient(circle at 30% 70%, rgba(255, 106, 0, 0.05), transparent 50%);

    /* Vidrio Translúcido Real (Glassmorphism) */
    --glass-bg: rgba(20, 30, 50, 0.65); /* Fondo oscuro pero translúcido */
    --glass-border: rgba(255, 255, 255, 0.1); /* Borde sutil */
    --glass-blur: blur(15px); /* ESTO ES CLAVE: El desenfoque de fondo */

    /* Acentos Neón (Los bordes glow) */
    --neon-cyan: #00f2ff;
    --neon-orange: #ff6a00;

    /* Texto */
    --text-white: #ffffff;
    --text-gray: #aab2c0; /* Texto secundario más suave como en la imagen */
    --fuente: 'Poppins', sans-serif; /* Usaremos Poppins, es más geométrica y moderna */
}

/* 2. RESET Y FONDO GLOBAL CON GRID */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    position: relative;
    z-index: 1;
    animation: pageRise 0.9s ease both;
}

/* El truco del fondo: degradados radiales y grid decorativo sutil */
.page-bg {
    position: fixed;
    inset: 0;
    background-image:
        url('/techcoreAI/img/fondo.png'),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: cover, 40px 40px, 40px 40px;
    background-position: center, center, center;
    background-repeat: no-repeat, repeat, repeat;
    z-index: -1;
    animation: backgroundFloat 24s ease-in-out infinite alternate;
}

/* 3. CLASE MAESTRA GLASSMORPHISM (Aplicar a todos los paneles) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur); /* Efecto cristal real */
    -webkit-backdrop-filter: var(--glass-blur); /* Compatibilidad */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    transition: 0.3s ease;
    animation: panelEnter 0.9s ease both;
}

/* 4. EFECTOS GLOW (Resplandor de borde neón) */
.glow-cyan {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3); /* Resplandor cyan sutil */
}

.glow-orange {
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.3); /* Resplandor naranja sutil */
}

/* 5. LAYOUT PRINCIPAL */
.container {
    width: min(1300px, 92%);
    margin: 0 auto;
    padding: 40px 0;
}

/* 6. ENCABEZADO (Navbar) */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 35px;
    margin-bottom: 50px;
    border-radius: 50px; /* Borde muy redondeado en la imagen */
    animation-delay: 0.05s;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    width: 35px;
    height: 35px;
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    font-family: var(--fuente); /* Asegurar que la 'T' se vea moderna */
    animation: iconPulse 2.8s ease-in-out infinite;
}

.menu-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 18px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.menu-links a:hover {
    color: var(--neon-cyan);
}

.menu-links a {
    position: relative;
}

.menu-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.menu-links a:hover::after {
    transform: scaleX(1);
}

.menu-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-btn {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 9px 24px;
    border-radius: 14px;
    transition: 0.3s;
    background-size: 200% 200%;
}

.action-register {
    border: 1px solid var(--neon-orange);
    color: var(--text-white);
    box-shadow: 0 0 12px rgba(255, 106, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 154, 106, 0.18), rgba(255, 106, 61, 0.28));
    animation: buttonGlowOrange 2.8s ease-in-out infinite;
}

.action-register:hover {
    background: rgba(255, 106, 0, 0.1);
}

.action-login {
    color: var(--text-white);
    padding: 9px 10px; /* Menos padding para el login simple */
    border: 1px solid var(--neon-cyan);
    background: linear-gradient(135deg, rgba(84, 245, 255, 0.16), rgba(8, 223, 255, 0.26));
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.24);
    animation: buttonGlowCyan 2.8s ease-in-out infinite;
}

/* 7. HERO SECTION (Layout) */
.hero-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.hero-left {
    padding-right: 20px;
    animation: fadeSlideLeft 0.9s ease both;
}

.eyebrow {
    color: var(--neon-cyan);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 35px;
}

.hero-cta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    animation: softFloat 3.5s ease-in-out infinite;
}

.cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
}

.cta-btn:hover::before {
    transform: translateX(120%);
}

.cta-orange {
    background: linear-gradient(180deg, #ff9b6a 0%, #ff7a49 55%, #ff6a3d 100%);
    color: #1e0f0a;
    box-shadow: 0 0 18px rgba(255, 122, 73, 0.45), 0 10px 28px rgba(255, 106, 61, 0.22);
}

.cta-orange:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(255, 122, 73, 0.7), 0 12px 30px rgba(255, 106, 61, 0.28);
}

.cta-cyan {
    background: linear-gradient(180deg, #54f5ff 0%, #23e8ff 55%, #08dfff 100%);
    color: #08161f;
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.45), 0 10px 28px rgba(8, 223, 255, 0.22);
}

.cta-cyan:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(0, 242, 255, 0.72), 0 12px 30px rgba(8, 223, 255, 0.28);
}

/* Columna Derecha (Páneles) */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeSlideRight 0.9s ease both;
}

/* 8. PANELES ESPECÍFICOS */
.info-box {
    display: flex;
    justify-content: space-between;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.info-box:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 242, 255, 0.9);
    box-shadow: 0 0 26px rgba(0, 242, 255, 0.48), 0 16px 30px rgba(0, 0, 0, 0.3);
}

.info-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.info-content ul {
    list-style: none;
    color: var(--text-gray);
    display: grid;
    gap: 10px;
}

.info-content li {
    position: relative;
    padding-left: 20px;
}

.info-content li::before {
    content: "•";
    color: var(--neon-cyan);
    position: absolute;
    left: 0;
    font-weight: 900;
}

/* Columna de iconos de la tarjeta de ruta */
.info-icons {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    margin-left: 20px;
}

.info-icons span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 242, 255, 0.1);
    display: grid;
    place-items: center;
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.info-icons .mini-icon svg,
.advisor-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-icons .mini-icon {
    color: var(--neon-cyan);
}

/* Fila de Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-box {
    text-align: center;
    padding: 20px 10px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 242, 255, 0.95);
    box-shadow: 0 0 24px rgba(0, 242, 255, 0.45), 0 16px 30px rgba(0, 0, 0, 0.3);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}

.stat-box p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.3;
}

/* Tarjeta IA Advisor */
.advisor-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.advisor-box:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 242, 255, 0.9);
    box-shadow: 0 0 26px rgba(0, 242, 255, 0.46), 0 16px 30px rgba(0, 0, 0, 0.3);
}

.advisor-box h2 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.advisor-box p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.advisor-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: #ff72c6;
    filter: drop-shadow(0 0 16px rgba(255, 114, 198, 0.85));
}

.advisor-icon svg {
    width: 56px;
    height: 56px;
    stroke: #ff72c6;
}

/* 9. FOOTER */
.bottom-footer {
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    animation: footerGlow 3.8s ease-in-out infinite;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

.bottom-footer p {
    font-size: 0.85rem;
    color: var(--text-gray);
    opacity: 0.8;
}

/* 10. RESPONSIVO HÍBRIDO (Móvil) */
@media (max-width: 900px) {
    .top-nav {
        border-radius: 20px;
        padding: 15px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .brand {
        width: 100%;
        justify-content: flex-start;
    }

    .menu-links {
        display: none; /* En móvil usarías un menú hamburguesa real */
    }

    .menu-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .action-btn {
        flex: 1 1 0;
        text-align: center;
    }

    .hero-board {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-left {
        padding-right: 0;
    }

    .hero-text {
        margin: 0 auto 30px;
    }
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-cta .cta-btn {
        width: 100%;
        max-width: 320px;
    }

    .info-box {
        flex-direction: column;
        gap: 20px;
    }
    .info-icons {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        justify-content: center;
        margin: 0;
    }

    .info-icons span {
        width: 42px;
        height: 42px;
        margin-inline: auto;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .advisor-box {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .bottom-footer {
        margin-bottom: 20px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer-links a {
        margin: 0;
    }
}

@keyframes backgroundFloat {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.05) translate3d(-12px, -10px, 0);
    }
}

@keyframes pageRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideRight {
    from {
        opacity: 0;
        transform: translateX(22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes softFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes iconPulse {
    0%,
    100% {
        box-shadow: 0 0 10px var(--neon-cyan);
    }
    50% {
        box-shadow: 0 0 18px var(--neon-cyan);
    }
}

@keyframes buttonGlowOrange {
    0%,
    100% {
        box-shadow: 0 0 18px rgba(255, 122, 73, 0.45), 0 10px 28px rgba(255, 106, 61, 0.22);
    }
    50% {
        box-shadow: 0 0 24px rgba(255, 122, 73, 0.7), 0 12px 32px rgba(255, 106, 61, 0.3);
    }
}

@keyframes buttonGlowCyan {
    0%,
    100% {
        box-shadow: 0 0 18px rgba(0, 242, 255, 0.45), 0 10px 28px rgba(8, 223, 255, 0.22);
    }
    50% {
        box-shadow: 0 0 24px rgba(0, 242, 255, 0.75), 0 12px 32px rgba(8, 223, 255, 0.3);
    }
}

@keyframes footerGlow {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 24px rgba(0, 242, 255, 0.45);
    }
}
