:root {
    /* Paleta Futurista "Cyber-Med" */
    --primary: #0ea5e9;       /* Cyan brillante */
    --primary-dark: #0284c7;
    --header-bg: #0f172a;     /* Azul nocturno profundo */
    --accent: #6366f1;        /* Violeta eléctrico */
    --bg-body: #f8fafc;       /* Fondo claro técnico */
    --glass-card: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-light: #64748b;
    --radius: 16px;
    --shadow-neon: 0 0 20px rgba(14, 165, 233, 0.15);
    --anim-speed: 0.4s;
}

body {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* --- FONDO ANIMADO "PULSO VITAL" --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Malla de puntos */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    opacity: 0.5;
    mask-image: linear-gradient(to bottom, transparent, black);
    -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 90%);
}

/* Ondas de fondo */
body::after {
    content: "";
    position: fixed;
    top: 50%; left: 50%;
    width: 200vw; height: 200vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.03) 0%, rgba(99, 102, 241, 0.03) 30%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulseWave 10s infinite alternate;
    pointer-events: none;
}

@keyframes pulseWave {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* =========================================
   1. HEADER "NAVY CYBER" (AZUL OSCURO)
   ========================================= */
.portal-header-custom {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
    transition: transform 0.3s;
}
.logo:hover img { transform: scale(1.1); }

.portal-title h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #f8fafc;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-left: 15px;
    border-left: 2px solid var(--primary);
    line-height: 1;
}

/* =========================================
   2. VISTAS Y TRANSICIONES
   ========================================= */
.view-section {
    width: 100%;
    min-height: calc(100vh - 75px);
    padding-bottom: 40px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.view-enter { animation-name: slideUpFade; }
.view-exit { display: none; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================
   3. HOME (LISTA HOLOGRÁFICA)
   ========================================= */
.hero-turnera {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero-turnera h1 {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.hero-turnera p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.contenedor-practicas {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjeta Item (Glass Effect) */
.practica-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Borde brillante al hover */
.practica-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.practica-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.2);
    border-color: var(--primary);
}

.practica-item:hover::before { opacity: 1; }

.practica-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--primary-dark);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-right: 25px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.practica-item:hover .practica-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary);
}

.practica-info { flex-grow: 1; }
.practica-info h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text-main); }
.practica-info p { margin: 5px 0 0; font-size: 0.95rem; color: var(--text-light); }

.practica-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
}

.practica-item:hover .practica-arrow {
    background: var(--text-main);
    color: white;
    transform: translateX(5px);
}

/* =========================================
   4. WIZARD (ASISTENTE MODERNO)
   ========================================= */
.wizard-container {
    max-width: 950px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    min-height: 650px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Header Asistente */
.wizard-header {
    padding: 25px 40px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.btn-icon-back {
    width: 45px; height: 45px;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    background: white;
    color: var(--text-main);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.btn-icon-back:hover { border-color: var(--text-main); background: var(--text-main); color: white; }

.wizard-title { text-align: center; }
.wizard-subtitle { font-size: 0.75rem; text-transform: uppercase; color: var(--primary); letter-spacing: 2px; font-weight: 800; display: block; }
.wizard-title h2 { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--text-main); }

.step-indicator {
    font-size: 0.9rem; font-weight: 700;
    color: var(--text-main);
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 30px;
}

.progress-bar-container { height: 4px; background: #f1f5f9; width: 100%; }
.progress-bar-fill { 
    height: 100%; 
    background: var(--primary); 
    width: 33%; 
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary);
}

/* Body */
.wizard-body { padding: 40px; flex-grow: 1; overflow-y: auto; position: relative; }
.wizard-step { animation: fadeInRight 0.5s ease-out; }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* Inputs Tech */
.input-label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.input-field {
    width: 100%; padding: 16px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--text-main);
}
.input-field:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* Calendario Tech */
.calendario-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 30px; }
.card-calendario { 
    background: white; border: 1px solid #f1f5f9; 
    border-radius: 20px; padding: 25px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.calendario-header { display: flex; justify-content: space-between; margin-bottom: 20px; font-weight: 800; color: var(--text-main); font-size: 1.1rem; }
.nav-btn { 
    background: #f1f5f9; border: none; 
    cursor: pointer; color: var(--text-main); 
    width: 36px; height: 36px; border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.2s;
}
.nav-btn:hover { background: var(--text-main); color: white; }

.calendario-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.dia-semana { font-size: 0.8rem; color: var(--text-light); font-weight: 700; margin-bottom: 5px; }
.dia-numero {
    padding: 12px 0; border-radius: 12px; cursor: default; color: #cbd5e1; font-size: 0.95rem; font-weight: 600; transition: 0.2s;
}
.dia-numero.disponible { cursor: pointer; color: var(--text-main); background: #f1f5f9; }
.dia-numero.disponible:hover { background: #e0f2fe; color: var(--primary); }
.dia-numero.seleccionado { 
    background: var(--text-main); color: white; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); transform: scale(1.1); 
}

/* Horarios */
.lista-horarios {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px;
    max-height: 350px; overflow-y: auto; padding-right: 5px;
}
.boton-horario {
    background: white; border: 2px solid #f1f5f9; padding: 12px; border-radius: 12px;
    cursor: pointer; font-weight: 600; color: var(--text-main); transition: 0.2s; text-align: center;
}
.boton-horario:hover { border-color: var(--text-main); }
.boton-horario.selected { 
    background: var(--text-main); color: white; border-color: var(--text-main); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.empty-state-horarios {
    grid-column: 1 / -1; text-align: center; padding: 50px 20px;
    color: var(--text-light); border: 2px dashed #e2e8f0; border-radius: 20px; background: #fbfbfb;
}
.empty-state-horarios i { font-size: 2.5rem; margin-bottom: 15px; display: block; opacity: 0.3; }

/* Form Grid */
.form-container-limitado { max-width: 600px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }

/* Confirmación */
.confirmation-card {
    background: white; border: 1px solid #f1f5f9; border-radius: 20px;
    padding: 30px; max-width: 550px; margin: 0 auto; box-shadow: var(--shadow-lg);
}
.confirmation-details .detail-item {
    display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #f1f5f9;
}
.detail-item .label { color: var(--text-light); font-weight: 500; }
.detail-item .value { font-weight: 700; color: var(--text-main); text-align: right; }
.detail-item.highlight {
    background: #f0f9ff; padding: 20px; border-radius: 16px;
    border: none; color: var(--primary-dark); margin: 15px 0;
}

/* Éxito */
.success-container { text-align: center; padding: 60px 20px; }
.success-icon {
    width: 100px; height: 100px; background: #d1fae5; color: #10b981;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; margin: 0 auto 25px; animation: popIn 0.6s;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}
@keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Footer */
.wizard-footer {
    padding: 25px 40px; border-top: 1px solid #f1f5f9; background: white;
    display: flex; justify-content: space-between; align-items: center;
}

.btn-primary {
    background: var(--text-main);
    color: white; border: none; padding: 16px 45px;
    border-radius: 16px; font-weight: 700; font-size: 1.05rem; cursor: pointer;
    transition: 0.3s; box-shadow: 0 8px 20px rgba(30, 41, 59, 0.2);
}
.btn-primary:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; opacity: 0.7; }
.btn-primary:hover:not(:disabled) {
    transform: translateY(-4px);
    background: #0f172a;
    box-shadow: 0 12px 30px rgba(30, 41, 59, 0.3);
}

.btn-secondary {
    background: transparent; border: none; color: var(--text-light);
    font-weight: 700; cursor: pointer; padding: 12px 30px; transition: 0.2s;
}
.btn-secondary:hover { color: var(--text-main); background: #f8fafc; border-radius: 12px; }

/* Responsive */
@media (max-width: 768px) {
    .wizard-container { margin: 0; border-radius: 0; min-height: 100vh; border: none; }
    .calendario-layout { display: flex; flex-direction: column; }
    .horarios-wrapper { border-top: 1px solid #f1f5f9; padding-top: 25px; }
    .wizard-footer { position: sticky; bottom: 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); background: white; z-index: 100; }
    .btn-primary { width: 100%; }
    .btn-secondary { display: none; }
}

/* --- ESTILOS PARA PRÁCTICAS "PRÓXIMAMENTE" (WHATSAPP) --- */

/* Badge Neon para Próximamente */
.badge-proximamente {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f59e0b; /* Ámbar Neón */
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
    margin-left: auto;
    white-space: nowrap;
}

/* Variación de Tarjeta para WhatsApp */
.practica-item.item-whatsapp {
    border-color: rgba(245, 158, 11, 0.2);
}

.practica-item.item-whatsapp:hover {
    border-color: #f59e0b; /* Borde dorado al hover */
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

/* Icono Verde WhatsApp al Hover */
.practica-item.item-whatsapp:hover .practica-arrow {
    background: #25d366;
    color: white;
    transform: scale(1.2) rotate(-10deg);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

/* Icono principal dorado */
.practica-item.item-whatsapp .practica-icon {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
}