:root {
    --primary: #003366;
    --secondary: #004a99;
    --white: #ffffff;
    --gray-bg: #003366;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-open: #22c55e;
    --accent-closed: #ef4444;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- PANTALLA DE CARGA (LOADER) --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transform: translateY(100%);
    animation: slideUpIn 0.8s forwards ease-out;
}

@keyframes slideUpIn {
    to {
        transform: translateY(0);
    }
}

#loader.fade-out {
    animation: slideUpOut 0.8s forwards ease-in;
}

@keyframes slideUpOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

.loader-logo {
    width: 180px;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* --- HERO SECTION --- */
header {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 24px;
    padding-bottom: 40px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
    z-index: 20;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('image_3a54e9.png') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 51, 102, 0.7) 100%);
    z-index: -1;
}

.hero-logo {
    width: 130px;
    margin-bottom: 24px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 320px;
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary);
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    position: relative;
    z-index: 25;
}

.cta-button:active {
    transform: scale(0.95);
}

/* --- CONTENIDO --- */
.content {
    padding: 0 20px;
    margin-top: 20px;
    padding-bottom: 40px;
    position: relative;
    z-index: 10;
}

.section-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
    color: var(--text-main);
}

.section-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--primary);
    background: transparent;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- HORARIOS --- */
.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: 0.3s;
}

.schedule-item.today {
    background: rgba(0, 51, 102, 0.05);
    border: 1px solid rgba(0, 51, 102, 0.1);
}

.schedule-item.today .day {
    color: var(--primary);
    font-weight: 700;
}

.status-badge {
    font-size: 0.75rem;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 700;
    text-transform: uppercase;
    display: none;
}

.status-badge.open {
    background-color: var(--accent-open);
    display: inline-block;
}

.status-badge.closed {
    background-color: var(--accent-closed);
    display: inline-block;
}

.day {
    font-weight: 500;
    color: var(--text-muted);
}

.time {
    font-weight: 600;
    color: var(--text-main);
}

/* --- CONTACTO --- */
.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-main);
    padding: 18px;
    background: #f1f5f9;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.contact-link:hover {
    background: #e2e8f0;
}

.contact-link i {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

/* Corrección del icono de teléfono */
.fa-phone-alt {
    transform: scaleX(-1);
}

.contact-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-info strong {
    display: block;
    font-size: 1.05rem;
}

/* --- MAPA --- */
.map-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

footer {
    text-align: center;
    padding: 60px 24px;
    background: rgba(0, 0, 0, 0.2);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.6rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}