/* ========================================================= */
/* --- ALMA UNIVERSAL - La Creación Final y Completa --- */
/* ========================================================= */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.main-header {
    background-color: #002244;
    color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #FF8C00;
}

/* ========================================================= */
/* --- LAS LEYES DEL EMBLEMA RESPLANDECIENTE --- */
/* ========================================================= */
.site-branding {
    text-align: left;
}

.site-title {
    font-family: 'Segoe UI', 'Arial Black', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    color: #E0E0E0;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow:
        0px 1px 1px rgba(255, 255, 255, 0.3),
        0px -1px 1px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.site-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
    margin: 0;
    margin-left: 3px;
    color: #FF8C00;
    text-shadow: 0 0 5px #FF4500, 0 0 10px #FF8C00;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(255, 140, 0, 0.3);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.main-nav a:hover {
    background-color: #FF8C00;
    border-color: #FF8C00;
    color: #000;
}

.hamburger-btn {
    display: none;
}

.main-content {
    padding: 20px;
}

.video-section {
    max-width: 900px;
    margin: 20px auto 40px auto;
    padding: 20px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.offline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.offline-overlay.visible {
    display: flex;
}

.offline-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

video {
    width: 100%;
    display: block;
}

.event-callout-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px 40px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 51, 0, 0.4);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
}

.event-callout-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

.event-callout {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.event-date-box {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    color: #D2691E;
    padding: 15px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.event-month {
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
}

.event-day {
    font-size: 3em;
    font-weight: 800;
    line-height: 1;
}

.event-details .event-tag {
    font-size: 0.9em;
    font-weight: 700;
    color: #FFDAB9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details .event-title {
    font-size: 2.2em;
    margin: 5px 0;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.event-details .event-sponsor {
    margin: 0;
    color: #FFE4C4;
    font-style: italic;
}

.login-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-form h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #002244;
}

.login-form p {
    margin-bottom: 30px;
    color: #6c757d;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.login-form input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.login-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.login-form button:hover {
    background-color: #0056b3;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.form-footer {
    margin-top: 20px;
    font-size: 0.9em;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.contact-page-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: #002244;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.contact-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 320px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    margin-top: 0;
    color: #002244;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    color: #495057;
}

.contact-info svg {
    flex-shrink: 0;
    color: #007bff;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.form-group-float {
    position: relative;
    margin-bottom: 25px;
}

.form-group-float .form-control {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

.form-group-float label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: #fff;
    padding: 0 5px;
}

.form-group-float .form-control:focus+label,
.form-group-float .form-control:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8em;
    color: #007bff;
}

.form-group-float .form-control:focus {
    outline: none;
    border-color: #80bdff;
}

.modern-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.back-to-event-container {
    margin-bottom: 20px;
}

.button-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.button-secondary:hover {
    background-color: #5a6268;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.logged-in-header {
    background-color: #212529;
}

.logged-in-header .site-tagline {
    color: #FFDAB9;
    text-shadow: 0 0 5px #FF8C00;
}

.main-footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #6c757d;
    background-color: #e9ecef;
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 20px;
    }

    .site-title {
        font-size: 2.2rem;
    }

    .site-tagline {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hamburger-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        z-index: 1001;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #002a53;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        border-top: 1px solid #003366;
    }

    .logged-in-header .main-nav {
        background-color: #2a2f34;
        border-top: 1px solid #FF8C00;
    }

    .main-nav.nav-visible {
        display: flex;
    }

    .main-nav a {
        width: 90%;
        text-align: center;
        border-bottom: 1px solid #495057;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .event-callout {
        flex-direction: column;
        text-align: center;
    }

    .login-container {
        margin: 20px;
        padding: 20px;
    }

    .contact-content {
        flex-direction: column;
    }
}