/* Zona R · Header + footer + botón flotante de WhatsApp compartidos por TODO el sitio público
   (includes/header.php e includes/footer.php) — usado por index.php, reserva/form.php y
   cliente/panel.php. Antes vivía duplicado (una versión completa en css/style.css solo para
   index.php, y una versión distinta/más simple en site-header.css para el resto); ahora es
   una sola fuente de verdad para que el header y el footer se vean igual en todo el sitio.
   Cada página ya define sus propias variables de color en su :root, así que este archivo
   solo usa esas variables (o valores fijos para blanco puro). */

/* --- Header --- */
.header {
    background: var(--verde-oscuro);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.status-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--amarillo-cta);
    color: var(--amarillo-texto);
    border: 1px solid var(--amarillo-cta);
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(255, 212, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 212, 0, 0.4);
}

.admin-link i { font-size: 18px; }

.cliente-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 700;
    font-size: 13px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cliente-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.cliente-link i { font-size: 16px; }

.logo {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i { color: var(--amarillo-cta); font-size: 24px; }

.badge-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.badge-cerrado {
    background: var(--gris-neutro);
    color: var(--gris-texto);
}

.entorno-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 212, 0, 0.16);
    color: var(--amarillo-cta);
    border: 1px solid rgba(255, 212, 0, 0.4);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

.punto-pulso {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulso 1.8s ease-in-out infinite;
}

@keyframes pulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(76, 175, 80, 0); }
}

.franjas-fina {
    height: 6px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--amarillo-cta) 0 16px,
        var(--verde-primario) 16px 32px
    );
}

/* --- Footer --- */
.footer {
    background: linear-gradient(180deg, #0A3D22 0%, #062818 100%);
    padding: 56px 20px 0;
    color: #CDE4D4;
}

.footer-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    margin-bottom: 14px;
}

.footer-logo i { color: var(--amarillo-cta); }

.footer-brand p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #9FBDA8;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.footer-col a,
.footer-col span {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: #CDE4D4;
    text-decoration: none;
    line-height: 1.5;
}

.footer-col a:hover { color: var(--amarillo-cta); }

.footer-col i {
    color: #4CAF50;
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 12.5px;
    color: #7FA38C;
}

.footer-bottom a {
    color: #CDE4D4;
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom a:hover { color: var(--amarillo-cta); }

/* --- Botón flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2.5px solid #25D366;
    animation: whatsapp-ring 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsapp-ring {
    0% { transform: scale(0.9); opacity: 0.9; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { opacity: 0; }
}

.whatsapp-float i {
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
}

/* --- Ajustes para móviles --- */
@media (max-width: 480px) {
    .header-inner { padding: 12px 16px; gap: 10px; }
    .header-meta { gap: 8px; }
    .logo { font-size: 19px; }
    .logo i { font-size: 21px; }
    .cliente-link { padding: 8px 12px 8px 10px; font-size: 12px; }
    .admin-link { width: 34px; height: 34px; }
    .badge-estado, .entorno-badge-header { font-size: 11px; padding: 5px 10px; }

    .whatsapp-float { width: 58px; height: 58px; right: 14px; bottom: 14px; border-width: 4px; }
    .whatsapp-float i { font-size: 28px; }
}
