/* ==========================================================
   public/assets/css/style.css
   CSS COMPLETO CON GSAP, PARALLAX, HERO Y TODOS LOS ESTILOS
   ========================================================== */

/* ==========================================================
   1) VARIABLES Y RESET GLOBAL
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #0056b3;
    --secondary: #00a8e8;
    --accent: #00d4ff;
    --dark: #1a1a2e;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 10px 40px rgba(0, 0, 0, .15);
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f0f4f8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================
   2) HEADER FIJO
   ========================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, .08);
    z-index: 1000;
    padding: .8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .3s;
}
.header.scrolled {
    padding: .5rem 2rem;
    box-shadow: 0 4px 40px rgba(0, 0, 0, .12);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}
.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    animation: latido 2.5s ease-in-out infinite;
}
@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.nav-menu {
    display: flex;
    gap: .5rem;
    list-style: none;
}
.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: .6rem 1.2rem;
    border-radius: 25px;
    transition: .3s;
    font-size: .95rem;
}
.nav-menu a:hover {
    background: rgba(0, 86, 179, .08);
    color: var(--primary);
}
.user-area {
    display: flex;
    align-items: center;
    gap: .8rem;
}

/* ==========================================================
   3) BOTONES GENERALES
   ========================================================== */
.btn {
    padding: .7rem 1.6rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0066d6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 86, 179, .3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, .4);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}
.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
}
.btn-sm {
    padding: .5rem 1rem;
    font-size: .8rem;
}
.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .5);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}
.btn-success {
    background: var(--success);
    color: #fff;
}

/* ==========================================================
   4) HERO (portada principal)
   ========================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 80px;
    background: linear-gradient(160deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, transparent 60%);
    animation: heroGlow 15s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(5%, 5%) rotate(180deg); }
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    padding: .5rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .3);
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .2);
}
.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 2.5rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================================
   5) SECCIONES PARALLAX - EXACTAMENTE COMO TU HTML ORIGINAL
   ========================================================== */
.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 4rem;
}
.parallax-section:nth-of-type(even) {
    background: linear-gradient(180deg, #f0f4f8, #e8f0fe);
}
.parallax-img-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}
.parallax-img {
    width: min(85vw, 1100px);
    height: min(70vh, 650px);
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: scale(.7);
    will-change: transform, opacity;
}
.parallax-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 28px;
    max-width: 550px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .8);
}
.parallax-card.left {
    margin-right: auto;
}
.parallax-card.right {
    margin-left: auto;
}
.parallax-card.center {
    margin: 0 auto;
}
.parallax-card h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.parallax-card p {
    color: #333;
    font-size: 1.05rem;
}
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}
.feature-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    padding: .8rem;
    background: rgba(0, 86, 179, .04);
    border-radius: 12px;
    transition: .3s;
}
.feature-list li:hover {
    background: rgba(0, 86, 179, .08);
    transform: translateX(5px);
}
.feature-list li i {
    color: var(--success);
    font-size: 1.2rem;
    margin-top: 2px;
}

/* ==========================================================
   6) SECCIONES DE CONTENIDO
   ========================================================== */
.content-section {
    padding: 100px 2rem;
    max-width: 1300px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 1rem;
}
.section-header p {
    color: #666;
    font-size: 1.1rem;
}
.citas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}
.cita-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transition: .4s;
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}
.cita-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform .4s;
}
.cita-card:hover::before {
    transform: scaleX(1);
}
.cita-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
}
.cita-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}
.cita-fecha {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.cita-status {
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pendiente {
    background: #fff3cd;
    color: #856404;
}
.status-asistio {
    background: #d4edda;
    color: #155724;
}
.status-no-asistio {
    background: #f8d7da;
    color: #721c24;
}
.cita-info {
    display: grid;
    gap: .8rem;
}
.cita-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
}
.cita-info-row i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* ==========================================================
   7) FORMULARIOS
   ========================================================== */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 600;
    font-size: .92rem;
}
.form-group label i {
    color: var(--primary);
    margin-right: 8px;
}
.form-control {
    width: 100%;
    padding: .85rem 1.1rem;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    font-size: 1rem;
    transition: .3s;
    background: #fafafa;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, .1);
}
.form-control:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
}

/* ==========================================================
   8) MODALES
   ========================================================== */
.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}
.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding: 1.5rem 2rem;
}
.modal-header .modal-title {
    color: var(--primary);
    font-weight: 700;
}
.modal-body {
    padding: 2rem;
}
.modal-footer {
    border-top: 2px solid #f0f0f0;
    padding: 1.5rem 2rem;
}

/* ==========================================================
   9) ALERTAS, SPINNER, ESTADÍSTICAS, FOOTER
   ========================================================== */
.alert {
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: alertIn .3s ease;
}
@keyframes alertIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; }
}
.alert-success {
    background: #d4edda;
    color: #155724;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
}
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}
.alert-warning {
    background: #fff3cd;
    color: #856404;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e8e8e8;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2.5rem auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.stats-bar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4rem 2rem;
    color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
}

.footer {
    background: var(--dark);
    color: #fff;
    padding: 4rem 2rem 2rem;
    text-align: center;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}
.footer-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    transition: .3s;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* ==========================================================
   10) RESPONSIVE
   ========================================================== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .parallax-card {
        padding: 2rem;
        max-width: 100%;
    }
    .parallax-section {
        padding: 60px 1.5rem;
    }
    .citas-grid {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 1.8rem;
    }
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero-buttons .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .user-area .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-item h3 {
        font-size: 2rem;
    }
    .header {
        padding: 0.5rem 1rem;
    }
    .logo {
        font-size: 1rem;
    }
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}