/* =========================================
   VARIABLES GLOBALES (Paleta Unificada)
   ========================================= */
:root {
    /* Identidad Jäger */
    --primary: #ff7a00;
    --primary-variant: #ff9500;
    --primary-light: rgba(255, 122, 0, 0.12);
    --primary-shadow: rgba(255, 122, 0, 0.25);
    --primary-shadow-hover: rgba(255, 122, 0, 0.35);

    /* Neutros Claros */
    --bg-light: #fdfdfd;
    --surface-light: #ffffff;
    --text-dark: #111111;
    --text-muted: #666666;

    /* Neutros Oscuros (Secciones Dark / Carrusel WODs / Podcast) */
    --bg-dark: #17151a;
    --surface-dark: #211f24;
    --text-light: #ebebeb;
    --text-light-muted: #cac4d0;
}

/* =========================================
   RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =========================================
   HEADER
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 122, 0, 0.4);
}

.header-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 34px;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.desktop-nav {
    display: flex;
    gap: 34px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: .3s;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: .3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-variant));
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    border: none;
    box-shadow: 0 10px 30px var(--primary-shadow);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px var(--primary-shadow-hover);
    color: #fff;
}

.btn-secondary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    transition: .3s;
    background: var(--surface-light);
}

.btn-secondary-custom:hover {
    opacity: 0.8;
}

/* =========================================
   HERO
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../images/hero-image.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 122, 0, .2), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 122, 0, .2);
}

.hero-title {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 900;
    color: #fff;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light-muted);
    margin-bottom: 42px;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
    padding: 120px 0;
}

.dark-section {
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

.section-subtitle.light {
    color: var(--primary);
}

.section-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--text-dark);
}

.section-title.light {
    color: #fff;
}

/* =========================================
   CARDS (BENEFICIOS)
   ========================================= */
.glass-card {
    background: var(--surface-light);
    border-radius: 28px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: .4s;
    border: 1px solid rgba(255, 122, 0, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 122, 0, .12);
}

.card-icon {
    font-size: 60px !important;
    color: var(--primary);
    margin-bottom: 22px;
}

.glass-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.glass-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* =========================================
   STATS
   ========================================= */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-variant));
}

.stat-item h2 {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
}

.stat-item p {
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    margin-top: 10px;
}

/* =========================================
   TRAINERS
   ========================================= */
.trainer-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .3s ease;
}

.trainer-card:hover {
    transform: translateY(-8px);
}

.trainer-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.trainer-info {
    padding: 24px;
    text-align: center;
}

.trainer-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.trainer-info span {
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
}

/* HEAD COACH SPECIAL */
.featured-trainer {
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px rgba(255, 122, 0, 0.2);
}

.featured-badge {
    display: inline-block;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-variant));
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-variant));
    border-radius: 40px;
    padding: 80px;
    text-align: center;
    color: #fff;
    box-shadow: 0 25px 60px var(--primary-shadow);
}

.cta-box h2 {
    font-size: 58px;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 20px;
    margin-bottom: 34px;
    opacity: .95;
}

/* =========================================
   WODS SECTION (CARRUSEL)
   ========================================= */
.schedule-carousel {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 30px 0;
    scroll-snap-type: x mandatory;
}

.schedule-carousel::-webkit-scrollbar {
    height: 8px;
}

.schedule-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 999px;
}

.wod-card {
    width: 360px;
    flex: 0 0 360px;
    min-height: 340px;
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 28px;
    padding: 32px;
    color: var(--text-light);
    scroll-snap-align: start;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wod-content {
    flex: 1;
}

@media(max-width: 768px) {
    .wod-card {
        width: 88%;
        flex: 0 0 88%;
    }
}

.wod-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    background: rgba(255, 122, 0, .12);
    border-radius: 50%;
}

.wod-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 0, .45);
}

.wod-day {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.wod-type {
    /* display: inline-block;
    color: #ffb066;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px; */

    display: block;                  /* Cambiamos de inline-block a block para que ocupe el ancho y maneje bien el texto */
    color: #ffb066;                  /* El color de texto claro que ya tenías */
    font-size: 13px;
    line-height: 1.5;                /* Le damos entrelineado para que si se va a dos renglones no se pegue */
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 24px;
    word-wrap: break-word;           /* Fuerza a cortar la palabra si es más larga que la tarjeta */
    overflow: hidden;                /* Evita cualquier desborde visual extraño */
}

.wod-content p {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.wod-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.wod-content li {
    margin-bottom: 10px;
    color: var(--text-light-muted);
    font-size: 15px;
}

.wod-content small {
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--primary);
}

/* =========================================
   CONTACT
   ========================================= */
.contact-info-box {
    background: var(--surface-light);
    border-radius: 28px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item span {
    font-size: 34px !important;
    color: var(--primary);
}

.contact-item p {
    margin: 0;
    font-size: 18px;
    color: #444;
}

.contact-form-custom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-custom input,
.contact-form-custom textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--surface-light);
    padding: 20px;
    border-radius: 18px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .04);
    transition: .3s;
}

.contact-form-custom input:focus,
.contact-form-custom textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, .2);
}
.contact-form-custom select {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--surface-light);
    padding: 20px;
    border-radius: 18px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.04);
    transition: .3s;
    appearance: none;
}

.contact-form-custom select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,122,0,.2);
}
/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background: var(--surface-light);
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, .06);
    text-align: center;
}

.main-footer p {
    color: var(--text-muted);
    margin: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media(max-width: 991px) {
    .desktop-nav {
        display: none;
    }

    .hero-title {
        font-size: 52px;
    }

    .section-title {
        font-size: 40px;
    }

    .cta-box {
        padding: 50px 30px;
    }

    .cta-box h2 {
        font-size: 42px;
    }
}

@media(max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .section {
        padding: 90px 0;
    }

    .section-title {
        font-size: 34px;
    }

    .stat-item {
        margin-bottom: 30px;
    }

    .cta-box h2 {
        font-size: 34px;
    }
}

/* ==========================================================================
   SISTEMA AUTOADMINISTRABLE - ACCESOS Y PANEL DE CONTROL
   ========================================================================== */

/* --- Ajustes Generales y Helpers --- */
.text-right {
    text-align: right;
}

/* --- Vista de Login (login.php) --- */
/* ===== LOGIN ===== */

.login-body {

    margin: 0;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle at top left, #ff7b00 0%, transparent 25%),
        radial-gradient(circle at bottom right, #ff9900 0%, transparent 20%),
        #0e0b14;

    font-family: 'Roboto', sans-serif;

    overflow: hidden;
    position: relative;
}

.bg-blur {

    position: absolute;

    width: 500px;
    height: 500px;

    background: #ff8800;

    filter: blur(180px);
    opacity: .12;

    border-radius: 50%;
}

.login-card {

    width: 100%;
    max-width: 430px;

    padding: 50px 40px;

    background: rgba(22, 18, 30, 0.82);

    border: 1px solid rgba(255, 255, 255, .06);

    border-radius: 28px;

    backdrop-filter: blur(18px);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .45),
        0 0 30px rgba(255, 136, 0, .08);

    position: relative;
    z-index: 2;
}

.login-header {

    text-align: center;
    margin-bottom: 35px;
}

.logo-circle {

    width: 85px;
    height: 85px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: linear-gradient(135deg, #ff7b00, #ff9d00);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 10px 25px rgba(255, 136, 0, .35);
}

.logo-circle .material-symbols-outlined {

    font-size: 42px;
    color: white;
}

.login-header h1 {

    color: white;
    font-size: 34px;
    font-weight: 900;

    margin-bottom: 8px;
}

.login-header p {

    color: #aaa;
    margin: 0;
}

.form-group {

    margin-bottom: 24px;
}

.form-label {

    display: block;

    margin-bottom: 10px;

    color: #ddd;
    font-size: 14px;
    font-weight: 500;
}

.input-wrapper {

    position: relative;
}

.input-wrapper .material-symbols-outlined {

    position: absolute;

    top: 50%;
    left: 14px;

    transform: translateY(-50%);

    color: #888;
    font-size: 22px;
}

.form-control-custom {

    width: 100%;
    height: 58px;

    border: 1px solid rgba(255, 255, 255, .08);

    background: rgba(255, 255, 255, .04);

    border-radius: 16px;

    padding: 0 18px 0 52px;

    color: white;
    font-size: 15px;

    transition: .25s ease;
}

.form-control-custom:focus {

    outline: none;

    border-color: #ff8800;

    background: rgba(255, 255, 255, .06);

    box-shadow:
        0 0 0 4px rgba(255, 136, 0, .12);
}

.form-control-custom::placeholder {

    color: #777;
}

.btn-login {

    width: 100%;
    height: 58px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(135deg, #ff7b00, #ff9900);

    color: white;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition: .25s ease;

    margin-top: 10px;

    box-shadow:
        0 10px 25px rgba(255, 136, 0, .25);
}

.btn-login:hover {

    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(255, 136, 0, .35);
}

.alert-danger-custom {

    background: rgba(255, 0, 0, .12);

    border: 1px solid rgba(255, 0, 0, .2);

    color: #ffb4b4;

    padding: 14px 16px;

    border-radius: 14px;

    margin-bottom: 22px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
}

/* =========================
   ADMIN MODERNO
========================= */

.admin-body {

    min-height: 100vh;

    background:
        radial-gradient(circle at top left, #ff7b00 0%, transparent 25%),
        radial-gradient(circle at bottom right, #ff9900 0%, transparent 20%),
        #0d0b14;

    font-family: 'Roboto', sans-serif;

    padding: 40px 0;

    position: relative;

    overflow-x: hidden;
}

.bg-glow {

    position: fixed;

    width: 700px;
    height: 700px;

    background: #ff8800;

    filter: blur(220px);

    opacity: .08;

    top: -200px;
    right: -150px;

    border-radius: 50%;

    z-index: 0;
}

.container {

    position: relative;
    z-index: 2;
}

/* =========================
   BOX
========================= */

.admin-box {

    max-width: 1100px;

    margin: auto;

    padding: 40px;

    border-radius: 32px;

    background: rgba(20, 18, 28, .82);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, .05);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .45),
        0 0 40px rgba(255, 136, 0, .06);
}

/* =========================
   HEADER
========================= */

.welcome-header {

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 35px;

    gap: 20px;
}

.welcome-header h1 {

    margin: 0;

    color: white;

    font-size: 38px;
    font-weight: 900;
}

.welcome-header small {

    color: #8d8a94 !important;

    font-size: 15px;
}

.glass-effect {

    background: rgba(255, 255, 255, .03);

    padding: 25px 30px;

    border-radius: 24px;

    border: 1px solid rgba(255, 255, 255, .04);
}

/* =========================
   LOGOUT
========================= */

.btn-logout {

    height: 54px;

    padding: 0 22px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;

    color: white;

    background: rgba(255, 255, 255, .05);

    transition: .25s ease;
}

.btn-logout:hover {

    background: rgba(255, 255, 255, .08);

    transform: translateY(-2px);
}

/* =========================
   ALERTS
========================= */

.alert-custom {

    padding: 16px 20px;

    border-radius: 18px;

    margin-bottom: 24px;

    font-weight: 500;
}

.alert-success-custom {

    background: rgba(0, 255, 120, .08);

    border: 1px solid rgba(0, 255, 120, .15);

    color: #9ff3c2;
}

.alert-error-custom {

    background: rgba(255, 0, 0, .08);

    border: 1px solid rgba(255, 0, 0, .15);

    color: #ffb4b4;
}

/* =========================
   DAYS
========================= */

.days-container {

    display: flex;

    gap: 14px;

    flex-wrap: wrap;

    margin-bottom: 35px;
}

.btn-day {

    height: 58px;

    padding: 0 22px;

    border: none;

    border-radius: 18px;

    background: rgba(255, 255, 255, .05);

    color: #aaa;

    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    transition: .25s ease;

    font-weight: 600;
}

.btn-day:hover {

    background: rgba(255, 255, 255, .08);

    transform: translateY(-2px);
}

.btn-day.active {

    background: linear-gradient(135deg, #ff7b00, #ff9900);

    color: white;

    box-shadow:
        0 12px 30px rgba(255, 136, 0, .25);
}

/* =========================
   FORM
========================= */

.form-group {

    margin-bottom: 28px;
}

.form-label-custom {

    display: block;

    margin-bottom: 12px;

    color: #ddd;

    font-weight: 600;

    font-size: 15px;
}

.input-custom {

    width: 100%;

    height: 60px;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, .08);

    background: rgba(255, 255, 255, .04);

    padding: 0 18px;

    color: white;

    font-size: 15px;

    transition: .25s ease;
}

.input-custom:focus {

    outline: none;

    border-color: #ff8800;

    box-shadow:
        0 0 0 4px rgba(255, 136, 0, .12);
}

.input-custom::placeholder {

    color: #777;
}

/* =========================
   BUTTON SAVE
========================= */

.btn-save {

    height: 58px;

    padding: 0 28px;

    border: none;

    border-radius: 18px;

    background: linear-gradient(135deg, #ff7b00, #ff9900);

    color: white;

    font-size: 15px;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    transition: .25s ease;

    box-shadow:
        0 10px 25px rgba(255, 136, 0, .2);
}

.btn-save:hover {

    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(255, 136, 0, .3);
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .admin-box {

        padding: 25px;
    }

    .welcome-header {

        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-header h1 {

        font-size: 28px;
    }

    .days-container {

        gap: 10px;
    }

    .btn-day {

        width: 100%;
        justify-content: center;
    }

    .btn-save {

        width: 100%;
        justify-content: center;
    }
}

/* =========================
   SUNEDITOR DARK MODE FIX
========================= */

.sun-editor {

    border: 1px solid rgba(255, 255, 255, .08) !important;

    background: rgba(255, 255, 255, .03) !important;

    border-radius: 22px !important;

    overflow: hidden;
}

.se-toolbar {

    background: rgba(22, 18, 30, .95) !important;

    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;

    padding: 10px !important;
}

.se-toolbar button {

    color: white !important;

    border-radius: 12px !important;

    transition: .2s ease;
}

.se-toolbar button:hover {

    background: rgba(255, 136, 0, .12) !important;
}

.se-toolbar svg {

    fill: white !important;
}

.se-btn:enabled:focus {

    background: rgba(255, 136, 0, .18) !important;
}

.se-wrapper {

    background: transparent !important;
}

.se-wrapper-inner {

    background: transparent !important;

    color: white !important;

    font-size: 15px !important;

    padding: 20px !important;

    min-height: 220px !important;
}

/* TEXTO DEL EDITOR */

.se-wrapper-inner * {

    color: white !important;
}

/* PLACEHOLDER */

.se-placeholder {

    color: #777 !important;
}

/* BARRA SUPERIOR */

.sun-editor .se-btn-module-border {

    border-color: rgba(255, 255, 255, .08) !important;
}

/* DROPDOWNS */

.se-list-layer,
.se-dialog {

    background: #1a1724 !important;

    color: white !important;

    border: 1px solid rgba(255, 255, 255, .08) !important;
}