/* ==========================================================
   Sistema de Reservas — Landing pública
   Paleta: charcoal + oro + rojo barbería (referencia al poste
   de barbero, sin ser literal). Tipografía condensada de
   letrero + sans geométrica + mono para etiquetas/datos.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
    --bg: #14171c;
    --bg-panel: #1b1f26;
    --gold: #c9a227;
    --maroon: #7a2436;
    --cream: #f3eee4;
    --muted: #9aa0a8;
    --line: rgba(243, 238, 228, 0.12);
}

* { box-sizing: border-box; }

body.landing {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(201,162,39,.10), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 10%, rgba(122,36,54,.14), transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='0.05' stroke-width='2'%3E%3Cpath d='M20 20 L50 50 M50 20 L20 50'/%3E%3Ccircle cx='18' cy='18' r='5'/%3E%3Ccircle cx='52' cy='52' r='5'/%3E%3Cpath d='M95 90 h28 M95 97 h28 M95 104 h28 M95 111 h28'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--cream);
    font-family: 'Work Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.landing a { color: inherit; }

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

/* --- Header --- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: relative;
    z-index: 10;
}
.site-header__marca {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-header__logo {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--gold);
}
.site-header__nombre {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.04em;
}
.site-header__cta {
    display: none;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    background: radial-gradient(ellipse 700px 500px at 30% 20%, rgba(201,162,39,.16), transparent 60%), linear-gradient(180deg, rgba(20,23,28,0.35) 0%, rgba(20,23,28,0.55) 55%, var(--bg) 96%), var(--bg);
    background-size: cover;
    background-position: center;
    padding: 40px 20px 48px;
}
.hero__contenido { max-width: 640px; }
.hero__titulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin: 10px 0 12px;
}
.hero__desc {
    color: var(--cream);
    opacity: 0.85;
    font-size: 15px;
    max-width: 46ch;
    margin: 0 0 22px;
}
.btn-cta {
    display: inline-block;
    background: var(--gold);
    color: #1a1305;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn-cta:hover { background: #d9b23c; transform: translateY(-1px); }

/* --- Franja diagonal (elemento de firma) --- */
.stripe-divider {
    height: 14px;
    background: repeating-linear-gradient(
        -45deg,
        var(--gold) 0px, var(--gold) 18px,
        var(--maroon) 18px, var(--maroon) 36px,
        var(--cream) 36px, var(--cream) 40px,
        var(--maroon) 40px, var(--maroon) 58px
    );
}

/* --- Info del negocio --- */
.info-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 20px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
}
.info-strip__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.info-strip__item .icono {
    font-size: 18px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    flex-shrink: 0;
}
.info-strip__item strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}
.info-strip__item span { font-size: 14px; }

.social-row {
    display: flex;
    gap: 14px;
    padding: 0 20px 28px;
    background: var(--bg-panel);
}
.social-row a {
    text-decoration: none;
    font-size: 13px;
    color: var(--gold);
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 999px;
}

/* --- Placeholder de logo (sin foto subida: iniciales sobre fondo oro) --- */
.site-header__logo-placeholder {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--gold);
    color: #1a1305;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    flex-shrink: 0;
}

/* --- Placeholder de banner (sin foto: patrón sutil de franjas) --- */
.hero--sin-banner {
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(201,162,39,0.06) 0px, rgba(201,162,39,0.06) 40px,
        transparent 40px, transparent 80px
    ) !important;
}

/* --- Servicios (en la landing) --- */
.servicios-section { padding: 40px 20px 8px; }
.servicios-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    letter-spacing: 0.02em;
    margin: 4px 0 20px;
}
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.servicio-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--cream);
    display: flex;
    flex-direction: column;
}
.servicio-card img {
    width: 100%; height: 160px; object-fit: cover;
}
.servicio-card__cuerpo { padding: 16px; }
.servicio-card__cuerpo h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}
.servicio-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.servicio-card__precio {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold);
    font-size: 14px;
}
.servicio-card__duracion {
    font-size: 12px;
    color: var(--muted);
}
.servicio-card__btn {
    margin-top: 12px;
    display: block;
    text-align: center;
    background: var(--gold);
    color: #1a1305;
    font-weight: 700;
    padding: 10px;
    border-radius: 999px;
    font-size: 13px;
}

/* --- Mapa --- */
.mapa-section { padding: 40px 20px; }
.mapa-section iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 12px;
    filter: grayscale(0.3) contrast(1.05);
}

/* --- WhatsApp flotante --- */
.whatsapp-flotante {
    position: fixed;
    right: 18px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    z-index: 21;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.25);
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
}
.whatsapp-flotante svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-flotante:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37,211,102,.6), 0 2px 8px rgba(0,0,0,.3); }
.whatsapp-flotante::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37,211,102,.55);
    animation: whatsapp-pulso 2.4s ease-out infinite;
}
@keyframes whatsapp-pulso {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* --- Animaciones al hacer scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Galería --- */
.galeria-section { padding: 40px 20px 20px; }
.galeria-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    letter-spacing: 0.02em;
    margin: 4px 0 20px;
}
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.galeria-grid a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}
.galeria-grid img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.galeria-grid a:hover img { transform: scale(1.05); }

/* --- Footer completo (info institucional) --- */
.site-footer-completo {
    background: var(--bg-panel);
    border-top: 1px solid var(--line);
    padding: 44px 20px 24px;
}
.site-footer-completo__marca { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.site-footer-completo__marca .nombre { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: .02em; }

.site-footer-completo__grid {
    display: grid; grid-template-columns: 1fr; gap: 32px;
    padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.site-footer-completo__grid h4 {
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
    color: var(--gold); margin: 0 0 16px; font-weight: 500;
}

.footer-linea {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13.5px; color: var(--cream); opacity: .85;
    text-decoration: none;
}
.footer-linea:hover { opacity: 1; color: var(--gold); }
.footer-linea .icono-badge {
    width: 26px; height: 26px; border-radius: 50%; background: rgba(201,162,39,.10);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-linea .icono-badge svg { width: 13px; height: 13px; color: var(--gold); }

.footer-horario { font-size: 13px; }
.footer-horario__fila { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; opacity: .85; border-bottom: 1px dashed rgba(255,255,255,.06); }
.footer-horario__fila:last-child { border-bottom: none; }
.footer-horario__fila .dia { color: var(--cream); }
.footer-horario__fila .rango { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.footer-horario__fila.hoy .dia { color: var(--gold); font-weight: 600; }

.site-footer-completo__redes { display: flex; gap: 10px; }
.site-footer-completo__redes a {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    color: var(--cream); transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.site-footer-completo__redes a svg { width: 16px; height: 16px; }
.site-footer-completo__redes a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.site-footer-completo__copy { font-size: 11.5px; color: var(--muted); margin: 0; text-align: center; }

/* --- Lightbox de galería --- */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(10,11,14,.92);
    display: none; align-items: center; justify-content: center;
    padding: 20px; animation: lightbox-fade .2s ease;
}
.lightbox-overlay.abierto { display: flex; }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img {
    max-width: 100%; max-height: 85vh; border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: lightbox-zoom .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes lightbox-zoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-cerrar, .lightbox-flecha {
    position: fixed; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.lightbox-cerrar:hover, .lightbox-flecha:hover { background: rgba(255,255,255,.18); }
.lightbox-cerrar { top: 18px; right: 18px; width: 40px; height: 40px; z-index: 2; }
.lightbox-cerrar svg { width: 18px; height: 18px; }
.lightbox-flecha { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; z-index: 2; }
.lightbox-flecha svg { width: 20px; height: 20px; }
.lightbox-flecha.anterior { left: 16px; }
.lightbox-flecha.siguiente { right: 16px; }
@media (max-width: 640px) {
    .lightbox-flecha { width: 38px; height: 38px; }
}

/* --- Footer simple (legado, ya no se usa en home.php pero se deja por compatibilidad) --- */
.site-footer {
    padding: 28px 20px 100px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}
.site-footer strong { color: var(--cream); }

/* --- CTA flotante móvil --- */
.mobile-cta {
    position: fixed;
    left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
}
.mobile-cta .btn-cta {
    display: block;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* --- Escritorio --- */
@media (min-width: 768px) {
    .site-header { padding: 24px 48px; }
    .site-header__cta { display: inline-block; }
    .hero { padding: 60px 48px 64px; align-items: center; min-height: 86vh; }
    .hero__titulo { font-size: 76px; }
    .hero__desc { font-size: 17px; }
    .info-strip { grid-template-columns: repeat(3, 1fr); padding: 40px 48px; }
    .social-row { padding: 0 48px 36px; }
    .galeria-section { padding: 56px 48px 32px; }
    .galeria-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .mobile-cta { display: none; }
    .servicios-section { padding: 56px 48px 8px; }
    .servicios-grid { grid-template-columns: repeat(3, 1fr); }
    .mapa-section { padding: 56px 48px; }
    .whatsapp-flotante { bottom: 28px; }
    .site-footer-completo { padding: 56px 48px 32px; }
    .site-footer-completo__grid { grid-template-columns: repeat(3, 1fr); }
}
