/* ═══════════════════════════════════════════════════════
   ROOM 26 HAIR CONCEPT — Hoja de estilos de lujo
   Paleta: Crema #FAF9F6 · Zinc #18181b · Oro #b45309
   ═══════════════════════════════════════════════════════ */

:root {
    --crema:    #FAF9F6;
    --cremaAlt: #F3EFE6;
    --ink:      #18181b;
    --oro:      #b45309;
    --oroClaro: #d4a017;
    --oroSuave: #e6c98f;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--crema);
    color: var(--ink);
}

::selection {
    background: var(--oro);
    color: var(--crema);
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cremaAlt); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--oro), var(--oroClaro));
    border-radius: 0;
}

/* ═══════════ LOGO ═══════════ */
.logo-mark {
    letter-spacing: 0.02em;
    transition: opacity .4s ease, transform .4s ease;
}
.logo-mark:hover { opacity: .85; }

/* Logo premium en la HERO */
.hero-logo {
    width: auto;
    height: 180px;
    margin: 0 auto 2.5rem;
    display: block;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.45)) drop-shadow(0 0 25px rgba(212,160,23,0.25));
    animation: heroLogoIn 1.4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes heroLogoIn {
    from { opacity: 0; transform: translateY(-25px) scale(.92); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 8px 30px rgba(0,0,0,0.45)) drop-shadow(0 0 25px rgba(212,160,23,0.25)); }
}
@media (max-width: 640px) {
    .hero-logo { height: 130px; margin-bottom: 2rem; }
}

/* Logo premium en el FOOTER */
.footer-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
    transition: transform .5s ease, filter .5s ease;
}
.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(212,160,23,0.4));
}

/* ═══════════ NAVBAR ═══════════ */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(180, 83, 9, 0.12), 0 10px 30px -15px rgba(24, 24, 27, 0.15);
}
#navbar.scrolled .logo-mark,
#navbar.scrolled .nav-link { color: var(--ink); }
#navbar.scrolled #burger { color: var(--ink); }

.nav-link {
    position: relative;
    color: var(--ink);
    padding-bottom: 4px;
    transition: color .4s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--oro);
    transition: width .4s ease;
}
.nav-link:hover { color: var(--oro); }
.nav-link:hover::after { width: 100%; }

.mobile-link { color: var(--ink); transition: color .3s; }
.mobile-link:hover { color: var(--oro); }

/* ═══════════ GRADIENTE DORADO ANIMADO ═══════════ */
.gold-shine {
    background: linear-gradient(
        100deg,
        var(--oro) 0%,
        var(--oroClaro) 25%,
        var(--oroSuave) 50%,
        var(--oroClaro) 75%,
        var(--oro) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shine 5s linear infinite;
}

/* Variante de mayor contraste para fondos oscuros/video */
.gold-shine-hero {
    background: linear-gradient(
        100deg,
        #f59e0b 0%,
        #fbbf24 20%,
        #fde68a 45%,
        #fbbf24 70%,
        #f59e0b 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shine 5s linear infinite;
    /* Sombra de texto dorada para dar cuerpo sobre fondo oscuro */
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.35));
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* ═══════════ BOTÓN LÍQUIDO ═══════════ */
.btn-liquid {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--crema);
    border: 1px solid var(--ink);
    cursor: pointer;
    isolation: isolate;
    transition: color .5s ease, border-color .5s ease;
}
/* Onda líquida dorada que sube desde la base */
.btn-liquid::before {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--oroClaro) 0%, var(--oro) 100%);
    z-index: -1;
    transition: height .55s cubic-bezier(.22,1,.36,1);
}
.btn-liquid:hover::before { height: 110%; }
.btn-liquid:hover {
    color: var(--crema);
    border-color: var(--oro);
}
/* Brillo superficial */
.btn-liquid::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
    transform: skewX(-20deg);
    transition: left .7s ease;
    z-index: 0;
}
.btn-liquid:hover::after { left: 140%; }
.btn-liquid-label { position: relative; z-index: 2; }

/* Variante clara para usar dentro de modales */
.modal-close.btn-liquid { background: var(--ink); }

/* ═══════════ TARJETAS DE SERVICIO 3D ═══════════ */
.service-card {
    position: relative;
    background: var(--crema);
    border: 1px solid rgba(180, 83, 9, 0.12);
    overflow: hidden;
    transition: all .5s ease-out;
    will-change: transform;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(180, 83, 9, 0.04) 100%);
    opacity: 0;
    transition: opacity .5s ease-out;
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-0.5rem); /* -translate-y-2 */
    box-shadow: 0 25px 50px -12px rgba(24, 24, 27, 0.25),
                0 10px 20px -10px rgba(180, 83, 9, 0.25);
    border-color: rgba(180, 83, 9, 0.35);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-img {
    transform: scale(1.08);
}
.service-card:hover .service-icon {
    background: var(--oro);
    color: var(--crema);
    transform: rotate(-8deg) scale(1.1);
}
.service-img {
    transition: transform .7s ease-out;
}
.service-icon {
    transition: all .5s ease-out;
}

/* Animación de filtrado (opacidad) */
.service-card.is-hidden {
    opacity: 0;
    transform: scale(.9);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
}
.service-card.is-visible {
    opacity: 1;
    transform: scale(1);
    animation: fadeInUp .5s ease-out both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════ TARJETAS DE EQUIPO ═══════════ */
.team-card {
    text-align: center;
    background: rgba(250, 249, 246, 0.04);
    border: 1px solid rgba(180, 83, 9, 0.2);
    padding: 2.5rem 1.5rem;
    transition: all .5s ease-out;
    will-change: transform;
}
.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 160, 23, 0.6);
    background: rgba(250, 249, 246, 0.07);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.team-avatar {
    width: 96px; height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.15), rgba(212, 160, 23, 0.08));
    border: 1px solid rgba(212, 160, 23, 0.4);
    transition: all .5s ease-out;
}
.team-card:hover .team-avatar {
    background: linear-gradient(135deg, var(--oro), var(--oroClaro));
    border-color: var(--oroClaro);
    transform: scale(1.08);
}
.team-card:hover .team-avatar span {
    background: none;
    -webkit-text-fill-color: var(--crema);
    color: var(--crema);
}

/* ═══════════ TARJETAS DE RESEÑAS ═══════════ */
.review-card {
    background: var(--crema);
    border: 1px solid rgba(180, 83, 9, 0.12);
    padding: 1.75rem;
    transition: all .5s ease-out;
    will-change: transform;
}
.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(24, 24, 27, 0.2);
    border-color: rgba(180, 83, 9, 0.3);
}
.review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oro), var(--oroClaro));
    color: var(--crema);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ═══════════ PESTAÑAS DE FILTRO ═══════════ */
.filter-tab {
    padding: .75rem 1.75rem;
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(24, 24, 27, 0.2);
    cursor: pointer;
    transition: all .4s ease;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}
.filter-tab:hover {
    border-color: var(--oro);
    color: var(--oro);
}
.filter-tab.active {
    background: var(--ink);
    color: var(--crema);
    border-color: var(--ink);
}

/* ═══════════ GALERÍA ═══════════ */
.gallery-item {
    position: relative;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease-out, filter .8s ease-out;
    filter: grayscale(15%) brightness(.95);
}
.gallery-item.col-span-2.row-span-2 { aspect-ratio: 1; }
.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1.05);
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(180, 83, 9, 0.35) 100%);
    opacity: 0;
    transition: opacity .5s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ═══════════ FORMULARIO ═══════════ */
.form-input {
    width: 100%;
    padding: .85rem 1rem;
    background: var(--cremaAlt);
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(24, 24, 27, 0.2);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    transition: all .4s ease;
    outline: none;
}
.form-input:focus {
    border-color: var(--oro);
    background: var(--crema);
    box-shadow: 0 4px 12px -6px rgba(180, 83, 9, 0.3);
}
.form-input::placeholder { color: rgba(24, 24, 27, 0.35); }

/* ═══════════ LISTA DE RESERVAS ═══════════ */
.booking-item {
    background: rgba(250, 249, 246, 0.05);
    border-left: 3px solid var(--oro);
    padding: 1rem 1.25rem;
    transition: all .4s ease;
    animation: fadeInUp .5s ease-out both;
}
.booking-item:hover {
    background: rgba(250, 249, 246, 0.1);
    transform: translateX(4px);
}
.booking-item .delete-booking {
    opacity: 0;
    transition: opacity .3s ease;
}
.booking-item:hover .delete-booking { opacity: 1; }

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(250, 249, 246, 0.4);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
}

/* ═══════════ MODAL ═══════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    padding: 1.5rem;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--crema);
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(40px) scale(.95);
    transition: transform .5s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,.4);
    border-top: 4px solid var(--oro);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: .5;
    transition: opacity .3s, transform .3s;
    width: 36px; height: 36px;
}
.modal-close:hover { opacity: 1; transform: rotate(90deg); }
.modal-close.btn-liquid {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    color: var(--crema);
}
.modal-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--oroClaro), var(--oro));
    color: var(--crema);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px -8px rgba(180, 83, 9, 0.6);
    animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .2s both;
}
@keyframes popIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ═══════════ ICONOS SOCIALES ═══════════ */
.social-icon {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(180, 83, 9, 0.3);
    color: var(--oro);
    transition: all .4s ease;
    font-size: 1.1rem;
}
footer .social-icon {
    border-color: rgba(250, 249, 246, 0.2);
    color: var(--crema);
}
.social-icon:hover {
    background: var(--oro);
    color: var(--crema);
    border-color: var(--oro);
    transform: translateY(-3px);
}

/* ═══════════ ANIMACIONES DE REVELADO (scroll) ═══════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s ease-out, transform .9s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 640px) {
    .modal-content { padding: 2.5rem 1.5rem; }
    .filter-tab { padding: .6rem 1rem; font-size: .65rem; }
}

/* ═══════════ HERO: textos sobre video oscurecido ═══════════ */
.hero-tag { color: var(--oroSuave); }
.hero-text-light { color: #FAF9F6; }
.hero-text-subtle { color: rgba(250, 249, 246, 0.7); }

/* ═══════════ PANEL DE CONTROL ═══════════ */
.admin-scroll::-webkit-scrollbar { width: 6px; }
.admin-scroll::-webkit-scrollbar-track { background: transparent; }
.admin-scroll::-webkit-scrollbar-thumb { background: rgba(180, 83, 9, 0.4); border-radius: 0; }
.admin-scroll::-webkit-scrollbar-thumb:hover { background: rgba(180, 83, 9, 0.7); }

.admin-row { animation: fadeInUp .4s ease-out both; }

.admin-filter {
    padding: .5rem 1.25rem;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(250, 249, 246, 0.6);
    background: transparent;
    border: 1px solid rgba(250, 249, 246, 0.15);
    cursor: pointer;
    transition: all .3s ease;
    font-family: 'Jost', sans-serif;
}
.admin-filter:hover {
    border-color: var(--oroClaro);
    color: var(--oroClaro);
}
.admin-filter.active {
    background: var(--oro);
    color: var(--crema);
    border-color: var(--oro);
}

/* Respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════ HORARIO FOOTER ═══════════ */
.schedule-table {
    width: 100%;
    max-width: 320px;
    border-collapse: collapse;
    font-size: 0.875rem;
    font-family: 'Jost', sans-serif;
}
.schedule-table td {
    padding: 3px 0;
    color: rgba(250, 249, 246, 0.6);
    text-align: left;
    vertical-align: top;
}
.schedule-table .day {
    width: 110px;
    white-space: nowrap;
    color: rgba(250, 249, 246, 0.4);
}
.schedule-table .closed td {
    color: rgba(248, 113, 113, 0.7);
}
@media (min-width: 768px) {
    .schedule-table .day { width: 130px; }
}

/* Variante clara para fondos crema */
.schedule-table.schedule-light td {
    color: rgba(24, 24, 27, 0.7);
}
.schedule-table.schedule-light .day {
    color: rgba(24, 24, 27, 0.5);
}
.schedule-table.schedule-light .closed td {
    color: rgba(185, 28, 28, 0.8);
}

/* ═══════════ MÉTODO DE CONTACTO (radio pills) ═══════════ */
.contact-method {
    cursor: pointer;
}
.contact-method-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--cremaAlt);
    border: 1px solid rgba(24, 24, 27, 0.2);
    border-radius: 0;
    transition: all .35s ease;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}
.contact-method:hover .contact-method-btn {
    border-color: var(--oro);
    color: var(--oro);
}
.contact-method input:checked + .contact-method-btn {
    background: var(--ink);
    color: var(--crema);
    border-color: var(--ink);
}
