/* =========================================
   Complejo F5 - Frontend Styles
   ========================================= */

:root {
    --verde: #1e6fd9;
    --verde-dark: #1451a6;
    --verde-light: #eaf6ff;
    --acento-precio: #1e7f3b;
    --acento-precio-dark: #16632f;
    --acento-precio-light: #e9f7ee;
    --gris: #f5f5f5;
    --oscuro: #333;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--oscuro);
}

/* Container (sin Bootstrap) */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== NAVBAR ===== */
.navbar-custom-top {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-custom-top .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-custom-top .logo img { height: 50px; }
.navbar-custom-top .logo span {
    font-weight: 700;
    font-size: 20px;
    color: var(--verde);
    margin-left: 10px;
}

.navbar-custom-top .nav-links { display: flex; align-items: center; gap: 25px; }
.navbar-custom-top .nav-links a {
    text-decoration: none;
    color: var(--oscuro);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}
.navbar-custom-top .nav-links a:hover { color: var(--verde); }
.navbar-custom-top .nav-links a.active {
    color: var(--verde);
    border-bottom: 2px solid var(--verde);
    padding-bottom: 5px;
}

.nav-btns { display: flex; gap: 10px; }
.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.btn-login {
    background: var(--verde);
    color: #fff;
    border: 2px solid var(--verde);
}
.btn-login:hover { background: var(--verde-dark); color: #fff; }
.btn-register {
    background: transparent;
    color: var(--verde);
    border: 2px solid var(--verde);
}
.btn-register:hover { background: var(--verde); color: #fff; }

/* Hamburger menu */
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
    margin-top: 0;
    padding-top: 100px;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../img/hero/hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
    position: relative;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--verde);
    max-width: 700px;
    line-height: 1.2;
    -webkit-text-stroke: 0.8px #fff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.7),
        0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin: 20px 0 30px;
    max-width: 600px;
}

.hero-btns { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 500px; }
.btn-hero {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid var(--verde);
}
.btn-hero-primary { background: var(--verde); color: #fff; }
.btn-hero-primary:hover { background: var(--verde-dark); color: #fff; }
.btn-hero-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-hero-outline:hover { background: #fff; color: var(--oscuro); }

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--verde);
    font-size: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== SECCIONES ===== */
.section { padding: 60px 20px; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--verde);
    margin-bottom: 40px;
}

/* ===== PRECIOS ===== */
.precios-section { background: var(--acento-precio-light); }
.precios-container {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: stretch;
}
.precio-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    display: grid;
    grid-template-columns: 270px 1fr;
    grid-template-areas:
        "media title"
        "media desc"
        "media prices";
    column-gap: 22px;
    row-gap: 8px;
    text-align: left;
    transition: transform 0.3s;
}
.precio-card:hover { transform: translateY(-5px); }
.precio-card img {
    grid-area: media;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}
.precio-card .precio-img-placeholder {
    grid-area: media;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, var(--acento-precio), var(--acento-precio-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}
.precio-card h3 {
    grid-area: title;
    color: var(--acento-precio);
    font-size: 1.5rem;
    margin: 20px 20px 0 0;
    font-weight: 700;
}
.precio-card .precio-desc {
    grid-area: desc;
    color: #666;
    padding: 0;
    margin: 0;
}
.precio-valor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--acento-precio);
    margin: 0;
    line-height: 1;
}
.precio-valor i { font-size: 1.12rem; margin-left: 0; color: #ffc107; line-height: 1; }
.precio-valor.noche i { color: #6c757d; }
.precio-card .precios-lista {
    grid-area: prices;
    padding: 0 20px 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

/* ===== TURNOS HOY ===== */
.turnos-section { background: var(--gris); }
.turnos-container { max-width: 1200px; margin: 0 auto; overflow-x: auto; }
.turnos-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.turnos-table th {
    background: #fff;
    padding: 15px;
    font-weight: 700;
    color: var(--oscuro);
    border-bottom: 2px solid #eee;
}
.turnos-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #f0f0f0;
}
.turno-disponible {
    background: #c8f7c5;
    color: #1e7f3b;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.turno-disponible:hover { background: #1e7f3b; color: #fff; }
.turno-reservado {
    background: #fce4ec;
    color: #c62828;
    font-weight: 600;
    border-radius: 5px;
}

/* ===== CONTACTO ===== */
.contacto-section { background: var(--gris); padding: 60px 20px; text-align: center; }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-whatsapp:hover { background: #1EBE5D; color: #fff; transform: scale(1.05); }
.btn-whatsapp i { font-size: 24px; }

/* ===== FOOTER ===== */
.footer-main {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 30px 20px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 40px; }
.footer-logo span { font-weight: 700; color: var(--verde); font-size: 18px; }
.footer-info { color: #666; }
.footer-info a { color: #666; text-decoration: none; }
.footer-info a:hover { color: var(--verde); }
.footer-social { display: flex; gap: 15px; }
.footer-social a {
    color: var(--oscuro);
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-social a:hover { color: var(--verde); }
.footer-copyright {
    text-align: center;
    padding: 15px;
    background: #f8f8f8;
    color: #999;
    font-size: 14px;
}

/* ===== WIZARD MODAL ===== */
.wizard-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}
.wizard-overlay.active { display: flex; }
.wizard-modal {
    background: #fff;
    border-radius: 18px;
    width: min(94vw, 560px);
    height: min(92vh, 760px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}
.wizard-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.wizard-header h3 { font-size: 17px; font-weight: 700; }
.wizard-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}
.wizard-header-spacer {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

/* Progress Steps */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    gap: 0;
}
.wizard-step-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    transition: all 0.3s;
}
.wizard-step-icon.active { background: var(--oscuro); color: #fff; }
.wizard-step-icon.completed { background: var(--verde); color: #fff; }
.wizard-step-line {
    width: 50px; height: 3px;
    background: #e0e0e0;
    transition: background 0.3s;
}
.wizard-step-line.active { background: var(--oscuro); }

.wizard-body {
    padding: 14px 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.wizard-body--calendar {
    display: flex;
    align-items: center;
    justify-content: center;
}
.wizard-body--calendar .calendar {
    width: 100%;
    max-width: 420px;
    margin: 0;
}
.wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.btn-wizard {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}
.btn-wizard-next { background: var(--verde); color: #fff; }
.btn-wizard-next:hover { background: var(--verde-dark); }
.btn-wizard-prev { background: #fff; color: var(--oscuro); border: 1px solid #ddd; }
.btn-wizard-prev:hover { background: #f5f5f5; }
.btn-wizard-cancel { background: #ef4444; color: #fff; }
.btn-wizard-cancel:hover { background: #dc2626; }

/* Calendar */
.calendar { max-width: 400px; margin: 0 auto; }
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.calendar-header span { font-weight: 700; color: var(--verde); font-size: 18px; }
.calendar-header button {
    background: none; border: none;
    font-size: 20px; cursor: pointer; color: var(--verde);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}
.calendar-day-name { font-weight: 600; font-size: 14px; color: #999; padding: 5px; }
.calendar-day {
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f9ff;
}
.calendar-day:hover { background: #dff0ff; }
.calendar-day.selected { background: #2d86e8; color: #fff; }
.calendar-day.disabled { color: #ccc; cursor: not-allowed; }
.calendar-day.disabled:hover { background: transparent; }
.calendar-day.today { border: 2px solid var(--verde); }

/* Horarios Grid */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.horario-btn {
    padding: 12px;
    border: 2px solid var(--verde);
    border-radius: 8px;
    background: var(--verde);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.horario-btn:hover { background: var(--verde-dark); }
.horario-btn.selected {
    background: linear-gradient(180deg, #2d86e8 0%, #1451a6 100%);
    border-color: #11448a;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25), 0 8px 18px rgba(20, 90, 36, 0.28);
    transform: translateY(-1px);
}
.horario-btn.selected:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.35), 0 10px 22px rgba(20, 90, 36, 0.32);
}
.horario-btn.disabled {
    background: #e0e0e0;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}
.horario-btn.reservado {
    background: #fbe7e7;
    border-color: #d93025;
    color: #d93025;
    cursor: not-allowed;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.horario-btn.reservado small {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Canchas List */
.canchas-list { display: flex; flex-direction: column; gap: 10px; }
.cancha-btn {
    padding: 15px 20px;
    border: 2px solid var(--verde);
    border-radius: 8px;
    background: #fff;
    color: var(--oscuro);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}
.cancha-btn:hover { background: var(--verde-light); }
.cancha-btn.selected { background: var(--verde); color: #fff; }

/* Resumen */
.resumen-card {
    background: var(--verde-light);
    border-radius: 10px;
    padding: 10px;
}
.resumen-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}
.resumen-item i { color: var(--verde); font-size: 20px; width: 25px; }
.resumen-item strong { font-weight: 700; }

.datos-cliente {
    margin-top: 18px;
    padding: 14px 14px 10px;
    border: 1px solid #d8e9fb;
    border-radius: 10px;
    background: #f5fbff;
}
.datos-cliente-titulo {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1451a6;
    letter-spacing: 0.2px;
}
.campo-detalle label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1f3858;
    margin-bottom: 6px;
}

.input-telefono {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 12px;
}
.input-telefono:focus { border-color: var(--verde); outline: none; }

.btn-reservar-final {
    width: 100%;
    padding: 12px;
    background: #3f51b5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}
.btn-reservar-final:hover { background: #303f9f; }

/* Custom alert */
.custom-alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.custom-alert-overlay.active { display: flex; }
.custom-alert-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.custom-alert-modal h4 {
    margin: 0 0 10px;
    color: var(--oscuro);
    font-size: 18px;
}
.custom-alert-modal p {
    margin: 0;
    white-space: pre-line;
    line-height: 1.5;
    color: #333;
}
.custom-alert-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.btn-custom-alert {
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.btn-custom-alert-ok {
    background: var(--verde);
    color: #fff;
}
.btn-custom-alert-ok:hover { background: var(--verde-dark); }
.btn-custom-alert-cancel {
    background: #f1f1f1;
    color: #333;
}
.btn-custom-alert-cancel:hover { background: #e5e5e5; }

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--verde);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--verde-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .hero { padding-top: 80px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .hero { height: 80vh; padding-top: 80px; }
    .precios-container { grid-template-columns: 1fr; }
    .precio-card {
        display: block;
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
    .precio-card img,
    .precio-card .precio-img-placeholder {
        height: 200px;
        min-height: 200px;
    }
    .precio-card h3 {
        margin: 20px 0 10px;
        text-align: center;
    }
    .precio-card .precio-desc {
        padding: 0 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    .precio-card .precios-lista {
        padding: 0 20px 20px;
        display: block;
    }
    .precio-valor { margin: 10px 0; }
    .horarios-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 40px 15px; }
    .section-title { font-size: 2rem; }
    .wizard-overlay { padding: 10px; }
    .wizard-body { padding: 12px; }
    .wizard-body--calendar .calendar {
        max-width: 100%;
        padding-right: 2px;
    }
    .calendar-grid { gap: 4px; }
    .calendar-day-name { padding: 4px 2px; font-size: 12px; }
    .calendar-day { padding: 8px; font-size: 14px; }

    /* Turnos tabla compacta en móvil */
    .turnos-table th {
        padding: 8px 5px;
        font-size: 11px;
    }
    .turnos-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    .turno-disponible,
    .turno-reservado {
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { gap: 10px; }
    .btn-hero { padding: 12px 25px; font-size: 16px; }
    .wizard-overlay { padding: 8px; }
    .wizard-modal { width: 100%; max-width: 100%; height: min(92vh, 760px); border-radius: 14px; }
    .wizard-step { height: 100%; }
    .wizard-header h3 { font-size: 16px; }
    .wizard-step-icon { width: 32px; height: 32px; font-size: 12px; }
    .wizard-step-line { width: 34px; }
    .btn-wizard { font-size: 13px; padding: 9px 12px; }
    .wizard-body { padding: 10px; }
    .wizard-body--calendar .calendar { padding-right: 1px; }
    .calendar-grid { gap: 3px; }
    .calendar-day-name { font-size: 11px; padding: 3px 1px; }
    .calendar-day { padding: 7px; font-size: 13px; }
    .horarios-grid { grid-template-columns: repeat(2, 1fr); }

    /* Turnos aún más compacta en pantallas pequeñas */
    .turnos-table th {
        padding: 6px 3px;
        font-size: 10px;
    }
    .turnos-table td {
        padding: 4px 3px;
        font-size: 10px;
        line-height: 1.2;
    }
}
