﻿/* ============================================
   ASESORIA - ESTILOS COMPLETOS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;600;700;800&display=swap');

#linkIniciarOrbita:hover {
    color: var(--space-dark) !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

:root {
    --gold: #f5a623;
    --gold-light: #ffd700;
    --gold-dark: #c47a00;
    --gold-glow: rgba(255, 215, 0, 0.15);
    --dark-bg: #0a0a1a;
    --text-primary: #ffffff;
    --text-secondary: #a4abd4;
    --text-muted: #64748b;
    --glass-bg: rgba(10, 15, 36, 0.75);
    --glass-border: rgba(255, 215, 0, 0.08);
    --neon-cyan: #00f2fe;
    --neon-purple: #b026ff;
    --success: #00ff88;
    --warning: #ffcc00;
    --danger: #ff4d6d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.asesoria-hero {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%), linear-gradient(180deg, #0a0a1a 0%, #141430 50%, #0a0a1a 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}

.asesoria-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 215, 0, 0.05);
    border-radius: 50%;
    animation: rotateRing 30s linear infinite;
}

.orbital-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    border: 1px solid rgba(255, 215, 0, 0.03);
    border-radius: 50%;
    animation: rotateRing 45s linear infinite reverse;
}

@keyframes rotateRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

    .star:nth-child(1) {
        top: 10%;
        left: 5%;
        animation-delay: 0s;
    }

    .star:nth-child(2) {
        top: 20%;
        right: 10%;
        animation-delay: 0.5s;
        width: 3px;
        height: 3px;
    }

    .star:nth-child(3) {
        top: 40%;
        left: 15%;
        animation-delay: 1s;
    }

    .star:nth-child(4) {
        bottom: 30%;
        right: 20%;
        animation-delay: 1.5s;
        width: 4px;
        height: 4px;
        background: var(--gold-light);
    }

    .star:nth-child(5) {
        top: 60%;
        left: 8%;
        animation-delay: 2s;
    }

    .star:nth-child(6) {
        bottom: 10%;
        left: 30%;
        animation-delay: 0.8s;
        width: 3px;
        height: 3px;
        background: var(--gold-light);
    }

    .star:nth-child(7) {
        top: 80%;
        right: 5%;
        animation-delay: 1.8s;
    }

    .star:nth-child(8) {
        top: 30%;
        left: 50%;
        animation-delay: 1.2s;
        width: 5px;
        height: 5px;
        background: var(--gold-light);
    }

    .star:nth-child(9) {
        top: 50%;
        left: 45%;
        animation-delay: 2.5s;
    }

    .star:nth-child(10) {
        bottom: 40%;
        right: 30%;
        animation-delay: 0.3s;
        width: 3px;
        height: 3px;
        background: var(--gold-light);
    }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

    .hero-title span {
        background: linear-gradient(135deg, var(--gold-light), var(--gold));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-title::after {
        content: '';
        display: block;
        margin: 10px auto 0;
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
        border-radius: 2px;
    }

.hero-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 8px auto 0;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   ALERTAS
   ============================================ */
.alert-container {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.alert-warning {
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.15);
    color: #ffd700;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================
   GRID PRINCIPAL
   ============================================ */
.asesoria-section {
    padding: 2rem 0 4rem;
}

.asesoria-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-top: 1rem;
    align-items: start;
}

/* ============================================
   PANEL FORMULARIO
   ============================================ */
.asesoria-form-panel {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 215, 0, 0.06);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.input-group {
    margin-bottom: 1.2rem;
}

    .input-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #cbd5e1;
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 5px;
    }

        .input-group label i {
            font-size: 0.9rem;
        }

.select-espacial,
.space-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .select-espacial:focus,
    .space-textarea:focus {
        outline: none;
        border-color: var(--neon-cyan);
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.08);
    }

    .select-espacial option {
        background: #0a0a1a;
        color: #fff;
    }

.space-textarea {
    resize: vertical;
    min-height: 100px;
}

.input-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ============================================
   PROFESOR DISPLAY
   ============================================ */
.profesor-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profesor-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profesor-info-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.profesor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.profesor-details {
    flex: 1;
}

    .profesor-details .nombre {
        font-weight: 600;
        color: #fff;
        font-size: 0.95rem;
    }

    .profesor-details .especialidad {
        font-size: 0.75rem;
        color: var(--text-muted);
    }

.profesor-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 136, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   BOTÓN RESERVAR
   ============================================ */
.btn-reservar {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
}

    .btn-reservar:hover:not(:disabled) {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 40px rgba(0, 242, 254, 0.3);
    }

    .btn-reservar:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

    .btn-reservar i {
        font-size: 1.1rem;
    }

/* ============================================
   MENSAJE DE RESPUESTA
   ============================================ */
.reserva-mensaje {
    margin-top: 1rem;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

    .reserva-mensaje.success {
        display: block;
        background: rgba(0, 255, 136, 0.1);
        border: 1px solid rgba(0, 255, 136, 0.2);
        color: var(--success);
    }

    .reserva-mensaje.error {
        display: block;
        background: rgba(255, 77, 109, 0.1);
        border: 1px solid rgba(255, 77, 109, 0.2);
        color: var(--danger);
    }

/* ============================================
   PANEL INFORMACIÓN
   ============================================ */
.asesoria-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 215, 0, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

    .info-card h4 {
        font-size: 0.9rem;
        font-weight: 700;
        font-family: 'Space Grotesk', sans-serif;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
    }

/* Beneficios */
.beneficios-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .beneficios-lista li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

        .beneficios-lista li:last-child {
            border-bottom: none;
        }

        .beneficios-lista li i {
            font-size: 1.2rem;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .beneficios-lista li div {
            flex: 1;
        }

        .beneficios-lista li strong {
            display: block;
            color: #fff;
            font-size: 0.85rem;
        }

        .beneficios-lista li span {
            color: var(--text-muted);
            font-size: 0.75rem;
        }

/* Precio */
.precio-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 10px 0;
}

.precio-simbolo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-light);
}

.precio-valor {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--gold-light);
}

.precio-periodo {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Mis reservas */
#misReservasContainer {
    max-height: 300px;
    overflow-y: auto;
}

.reserva-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

    .reserva-item:last-child {
        border-bottom: none;
    }

    .reserva-item .info {
        flex: 1;
    }

    .reserva-item .curso {
        font-size: 0.85rem;
        color: #fff;
        font-weight: 500;
    }

    .reserva-item .fecha {
        font-size: 0.7rem;
        color: var(--text-muted);
    }

    .reserva-item .estado {
        font-size: 0.65rem;
        padding: 2px 10px;
        border-radius: 20px;
        font-weight: 600;
    }

.estado-pendiente {
    background: rgba(255, 204, 0, 0.15);
    color: var(--warning);
}

.estado-realizado {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.estado-cancelado {
    background: rgba(255, 77, 109, 0.15);
    color: var(--danger);
}

.no-reservas {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

    .no-reservas i {
        font-size: 2rem;
        opacity: 0.3;
        display: block;
        margin-bottom: 10px;
    }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .asesoria-grid {
        grid-template-columns: 1fr;
    }

    .asesoria-info-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .asesoria-hero {
        padding: 80px 0 40px;
        min-height: 200px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .asesoria-form-panel {
        padding: 1.5rem;
    }

    .asesoria-info-panel {
        grid-template-columns: 1fr;
    }

    .asesoria-grid {
        gap: 1.5rem;
    }

    .precio-valor {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .asesoria-hero {
        padding: 60px 0 30px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .asesoria-form-panel {
        padding: 1rem;
    }

    .btn-reservar {
        font-size: 0.85rem;
        padding: 12px;
    }
}
