/* =====================================================
   PLAYAS DEL RÍO - Estilos generales
   ===================================================== */
:root {
    --playa-azul:       #0E2A66;
    --playa-azul-claro: #1A3E82;
    --playa-celeste:    #17B6E8;
    --playa-amarillo:   #F5A623;
    --playa-rojo:       #E63946;
    --playa-crema:      #FDF8F0;
    --playa-gris:       #E8ECF1;
    --playa-texto:      #1B1B1B;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--playa-texto);
    background: var(--playa-crema);
    margin: 0;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn-playa {
    display: inline-block;
    background: var(--playa-celeste);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.btn-playa:hover { background: var(--playa-azul); color: #fff !important; }

.btn-playa-outline {
    display: inline-block;
    background: transparent;
    color: var(--playa-azul) !important;
    border: 2px solid var(--playa-azul);
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.btn-playa-outline:hover { background: var(--playa-azul); color: #fff !important; }

.btn-playa-danger {
    display: inline-block;
    background: var(--playa-rojo);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn-playa-danger:hover { background: #b52b36; color: #fff !important; }

.btn-playa-warning {
    display: inline-block;
    background: var(--playa-amarillo);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn-playa-warning:hover { background: #d18b12; color: #fff !important; }

/* =====================================================
   CARDS
   ===================================================== */
.card-playa {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(14,42,102,.08);
    padding: 24px;
    border: none;
}
.card-playa-header {
    border-bottom: 2px solid var(--playa-gris);
    padding-bottom: 12px;
    margin-bottom: 18px;
    color: var(--playa-azul);
    font-weight: 700;
    font-size: 16px;
}

/* =====================================================
   PANEL ADMIN
   ===================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: var(--playa-azul);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
    overflow-y: auto;
}
.admin-sidebar .brand {
    text-align: center;
    padding: 0 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .brand img {
    max-height: 70px;
    max-width: 100%;
}
.admin-sidebar .brand small {
    display: block;
    color: var(--playa-celeste);
    font-weight: 600;
    margin-top: 8px;
    font-size: 12px;
}
.admin-sidebar a {
    display: block;
    color: #cfd8e6 !important;
    text-decoration: none;
    padding: 10px 22px;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(23,182,232,.15);
    color: #fff !important;
    border-left-color: var(--playa-celeste);
}
.admin-sidebar .grupo {
    padding: 14px 22px 6px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--playa-amarillo);
    letter-spacing: 1px;
    font-weight: 700;
}
.admin-main {
    flex: 1;
    padding: 28px 32px;
    background: var(--playa-crema);
    overflow-x: auto;
}
.admin-topbar {
    background: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.admin-topbar h4 {
    margin: 0;
    color: var(--playa-azul);
}
.admin-topbar .user {
    color: var(--playa-azul);
    font-weight: 600;
    font-size: 14px;
}

/* =====================================================
   TABLAS
   ===================================================== */
.tabla-playa {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    border-collapse: collapse;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.tabla-playa th {
    background: var(--playa-azul);
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
.tabla-playa td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--playa-gris);
    font-size: 14px;
    vertical-align: middle;
}
.tabla-playa tr:hover td { background: #F4F8FC; }

/* =====================================================
   LOGIN
   ===================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--playa-azul), var(--playa-celeste));
    padding: 20px;
}
.login-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
    text-align: center;
}
.login-card img {
    max-height: 90px;
    max-width: 100%;
    margin-bottom: 16px;
}
.login-card h4 {
    color: var(--playa-azul);
    margin-bottom: 6px;
}
.login-card p.sub {
    color: #8895a7;
    font-size: 13px;
    margin-bottom: 20px;
}

/* =====================================================
   BADGES DE ESTADO
   ===================================================== */
.badge-pagado,
.badge-pendiente,
.badge-usado,
.badge-anulado {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.badge-pagado    { background: #2ecc71; }
.badge-pendiente { background: var(--playa-amarillo); }
.badge-usado     { background: var(--playa-azul); }
.badge-anulado   { background: var(--playa-rojo); }

/* =====================================================
   MÉTRICAS (DASHBOARD)
   ===================================================== */
.metric-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(14,42,102,.07);
    border-left: 5px solid var(--playa-celeste);
    height: 100%;
}
.metric-card .label {
    color: #6b7a8f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.metric-card .value {
    font-size: 30px;
    font-weight: 700;
    color: var(--playa-azul);
    margin-top: 6px;
}
.metric-card small {
    display: block;
    color: #8895a7;
    font-size: 12px;
    margin-top: 4px;
}
.metric-card.amarillo { border-left-color: var(--playa-amarillo); }
.metric-card.rojo     { border-left-color: var(--playa-rojo); }
.metric-card.azul     { border-left-color: var(--playa-azul); }

/* =====================================================
   HEADER PÚBLICO
   ===================================================== */
.header-publico {
    background: var(--playa-azul);
    padding: 12px 0;
    color: #fff;
}
.header-publico .logo { max-height: 70px; }
.header-publico a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background .2s;
}
.header-publico a:hover { background: var(--playa-celeste); }

/* =====================================================
   SITIO PÚBLICO
   ===================================================== */

.hero {
    position: relative;
    min-height: 520px;
    background: linear-gradient(135deg, #0E2A66 0%, #17B6E8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 320px;
    height: 320px;
    background: rgba(245,166,35,.15);
    border-radius: 50%;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}
.hero p.lead {
    font-size: 1.15rem;
    margin-bottom: 28px;
    opacity: .95;
}
.hero .badge-since {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.hero .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 70px 0; }
.section-title {
    text-align: center;
    margin-bottom: 45px;
}
.section-title h2 {
    color: var(--playa-azul);
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.section-title p {
    color: #6b7a8f;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}
.section-alt { background: #fff; }

.card-actividad {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(14,42,102,.08);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-actividad:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(14,42,102,.15);
}
.card-actividad .img-wrap {
    height: 200px;
    background: linear-gradient(135deg, var(--playa-celeste), var(--playa-azul));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    overflow: hidden;
}
.card-actividad .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-actividad .body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-actividad .cat {
    display: inline-block;
    background: var(--playa-gris);
    color: var(--playa-azul);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.card-actividad h3 {
    color: var(--playa-azul);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.card-actividad p {
    color: #6b7a8f;
    font-size: 14px;
    flex: 1;
    margin-bottom: 14px;
}
.card-actividad .precio {
    color: var(--playa-celeste);
    font-size: 1.4rem;
    font-weight: 800;
}
.card-actividad .precio small {
    color: #8895a7;
    font-size: 12px;
    font-weight: 500;
}

.cat-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #fff;
    color: var(--playa-azul);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid var(--playa-gris);
    margin: 4px;
    transition: all .2s;
}
.cat-pill:hover,
.cat-pill.active {
    background: var(--playa-celeste);
    color: #fff;
    border-color: var(--playa-celeste);
}

.footer-publico {
    background: var(--playa-azul);
    color: #cfd8e6;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-publico h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-publico a {
    color: #cfd8e6;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 14px;
}
.footer-publico a:hover { color: var(--playa-celeste); }
.footer-publico .bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
}

.detalle-hero {
    background: linear-gradient(135deg, var(--playa-azul), var(--playa-celeste));
    color: #fff;

    padding: 60px 0 40px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}
.detalle-hero h1 { font-weight: 800; font-size: 2.4rem; }
.detalle-hero .cat-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tabla-precios {
    width: 100%;
    border-collapse: collapse;
}
.tabla-precios th,
.tabla-precios td {
    padding: 12px;
    border-bottom: 1px solid var(--playa-gris);
    text-align: left;
}
.tabla-precios th {
    background: var(--playa-gris);
    color: var(--playa-azul);
    font-weight: 700;
    font-size: 13px;
}
.tabla-precios td.precio {
    color: var(--playa-celeste);
    font-weight: 800;
    font-size: 1.1rem;
    text-align: right;
}

/* =====================================================
   MENÚ MÓVIL (Hamburguesa deslizante)
   ===================================================== */

/* Botón hamburguesa — oculto en desktop */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    color: var(--playa-azul);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
    transition: background .2s;
}
.menu-toggle:hover,
.menu-toggle:active {
    background: var(--playa-gris);
}

/* Botón cerrar dentro del sidebar — oculto en desktop */
.sidebar-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    line-height: 1;
    z-index: 10;
}
.sidebar-close:hover {
    background: rgba(255,255,255,.2);
}

/* Overlay oscuro detrás del menú */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.55);
    z-index: 999;
    animation: fadeIn .2s;
}
.sidebar-overlay.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {

    /* Mostrar botón hamburguesa */
    .menu-toggle { display: inline-block; }
    .sidebar-close { display: block; }

    /* El layout deja de ser flex para no dejar espacio arriba */
    .admin-layout {
        display: block;
    }

    /* Sidebar como overlay deslizante */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -290px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left .28s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,.2);
        overflow-y: auto;
        padding-top: 20px;
    }
    .admin-sidebar.open {
        left: 0;
    }

    /* Contenido principal ocupa todo el ancho */
    .admin-main {
        width: 100%;
        padding: 14px;
        min-height: 100vh;
    }

    /* Topbar más compacto */
    .admin-topbar {
        padding: 12px 14px;
        gap: 8px;
    }
    .admin-topbar h4 {
        font-size: 16px;
        margin: 0;
    }
    .admin-topbar .user {
        font-size: 12px;
    }

    /* Métricas más chicas */
    .metric-card {
        padding: 16px;
    }
    .metric-card .value {
        font-size: 22px;
    }
    .metric-card .label {
        font-size: 11px;
    }

    /* Tablas más compactas */
    .tabla-playa th,
    .tabla-playa td {
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Cards más compactas */
    .card-playa {
        padding: 16px;
    }
    .card-playa-header {
        font-size: 15px;
        margin-bottom: 14px;
    }

    /* Botones más grandes para dedos */
    .btn-playa,
    .btn-playa-outline,
    .btn-playa-warning,
    .btn-playa-danger {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Hero del sitio público */
    .hero h1 { font-size: 2rem; }
    .section-title h2 { font-size: 1.6rem; }
}