/* =========================================================
   MH Studio — Tema completo (web + reserva integrada)
   Un único documento servido por EA en "/". Vanilla CSS.
   ========================================================= */

/* ---------- Variables ---------- */
:root {
    --ink: #0e0e10;
    --charcoal: #1b1b1f;
    --charcoal-2: #232329;
    --line: rgba(255, 255, 255, .12);
    --gold: #c8a15a;
    --gold-soft: #e4c98a;
    --cream: #f7f3ec;
    --paper: #ffffff;
    --muted: #6d6d74;
    --muted-dark: #a9a9b2;
    --border: #e7e1d5;

    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1120px;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 30px 70px -35px rgba(14, 14, 16, .5);
    --transition: .25s ease;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site-booking {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
.site-booking img { max-width: 100%; height: auto; display: block; }
.site-booking h1, .site-booking h2, .site-booking h3 {
    font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .3px;
    text-wrap: balance;
}
.site-booking h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.site-booking h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.site-booking h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.site-booking p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-sub { color: var(--muted); }
.eyebrow {
    font-family: var(--font-body); font-size: .76rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 .75rem;
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Botones de la web ---------- */
.btn-gold, .btn-dark-solid {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1;
    padding: .9rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer; transition: var(--transition);
}
.btn-gold { background: var(--gold); color: #16130c; }
.btn-gold:hover { background: var(--gold-soft); color: #16130c; transform: translateY(-2px); }
.btn-dark-solid { background: var(--ink); color: #fff; }
.btn-dark-solid:hover { background: #2a2a30; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(14, 14, 16, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled { background: rgba(14, 14, 16, .96); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.brand-text small { font-size: .62rem; letter-spacing: .2em; color: var(--gold); font-weight: 500; margin-top: 3px; }
.site-booking .brand-logo { height: 48px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; }
.nav-menu a { color: #e9e9ec; text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-menu a:hover { color: #fff; }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   RESERVA (la estrella de la página)
   ========================================================= */
.booking-section {
    padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
    background:
        radial-gradient(900px 420px at 50% 0%, rgba(200, 161, 90, .14), transparent 62%),
        linear-gradient(180deg, #fbf9f5 0%, #ffffff 100%);
}
.booking-intro { max-width: 720px; margin: 0 auto clamp(1rem, 2.5vw, 1.75rem); text-align: center; }
.booking-intro .lead { font-size: clamp(1.02rem, 2vw, 1.16rem); color: var(--muted); margin: 0; }

.booking-badges {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1.25rem 3rem; margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; padding: 0;
}
.booking-badges li { display: flex; flex-direction: column; text-align: center; }
.booking-badges strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.booking-badges span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Tarjeta del wizard ---------- */
.wizard {
    max-width: 880px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid rgba(14, 14, 16, .07);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: visible;
}
#book-appointment-wizard {
    max-width: 880px;
    margin: 0 auto;
    background: var(--paper) !important;
    border: 1px solid rgba(14, 14, 16, .07);
    border-radius: 24px !important;
    box-shadow: var(--shadow) !important;
    overflow: visible;
}

/* ---------- Stepper ---------- */
#book-appointment-wizard #header,
#book-appointment-wizard .wizard-progress {
    background: transparent !important;
    padding: 1.75rem 1.5rem 1.25rem !important;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.wizard-steps { position: relative; display: flex; justify-content: center; gap: clamp(2.5rem, 9vw, 6rem); }
.wizard-steps::before {
    content: ""; position: absolute; top: 50%; left: 12%; right: 12%; height: 2px;
    background: var(--border); transform: translateY(-50%); z-index: 0;
}
#book-appointment-wizard .book-step {
    position: relative; z-index: 1;
    display: inline-flex !important; align-items: center; justify-content: center;
    float: none !important; margin: 0 !important;
    width: 42px !important; height: 42px !important; padding: 0 !important;
    border-radius: 50% !important;
    background: #fff !important; border: 2px solid var(--border) !important;
    transition: var(--transition);
}
#book-appointment-wizard .book-step strong {
    font-family: var(--font-body); font-size: .92rem !important; font-weight: 600; line-height: 1;
    color: var(--muted) !important;
}
#book-appointment-wizard .book-step.active-step {
    background: var(--gold) !important; border-color: var(--gold) !important;
    box-shadow: 0 12px 22px -12px rgba(200, 161, 90, .9);
    transform: scale(1.06);
}
#book-appointment-wizard .book-step.active-step strong { color: #16130c !important; font-size: 1rem !important; }
#book-appointment-wizard .display-booking-selection {
    margin: .95rem 0 0 !important; font-size: .82rem !important; letter-spacing: .04em;
    color: var(--muted) !important; text-transform: capitalize;
}

/* ---------- Pasos (frames) ---------- */
#book-appointment-wizard .wizard-frame { padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem) !important; }
#book-appointment-wizard .frame-container { min-height: 400px !important; }
#book-appointment-wizard .frame-title {
    font-family: var(--font-display) !important; font-weight: 600 !important;
    font-size: clamp(1.4rem, 3vw, 1.9rem) !important; color: var(--ink) !important;
    margin-bottom: 1.5rem !important; text-align: center;
}
#book-appointment-wizard .frame-content { max-width: 100%; }

/* Formularios */
#book-appointment-wizard label,
#book-appointment-wizard .form-label { font-family: var(--font-body); font-weight: 500; color: #33333a; margin-bottom: .4rem; }
#book-appointment-wizard .form-control,
#book-appointment-wizard .form-select {
    width: 100%; background-color: #fbf9f5;
    border: 1.5px solid var(--border); border-radius: 12px;
    padding: .8rem 1rem; font-size: 1rem; color: var(--ink); min-height: 52px;
    box-shadow: none !important;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
#book-appointment-wizard .form-control:focus,
#book-appointment-wizard .form-select:focus {
    background-color: #fff; border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 161, 90, .18) !important;
}
#book-appointment-wizard .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236d6d74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
#book-appointment-wizard .form-check-input { border-color: #cfc8ba; }
#book-appointment-wizard .form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
#book-appointment-wizard .form-text { color: var(--muted); }

/* Desplegables personalizados (servicio / peluquero) */
.cselect { position: relative; width: 100%; }
.cselect-native {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
    opacity: 0 !important; pointer-events: none !important;
}
.cselect-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    width: 100%; min-height: 52px; text-align: left; cursor: pointer;
    background-color: #fbf9f5; border: 1.5px solid var(--border); border-radius: 12px;
    padding: .8rem 1rem; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
    transition: var(--transition);
}
.cselect-toggle:hover { border-color: var(--gold); }
.cselect-toggle:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 161, 90, .18); }
.cselect-toggle.is-placeholder .cselect-label { color: var(--muted); }
.cselect-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-arrow { flex: 0 0 auto; color: var(--muted); transition: transform var(--transition); }
.cselect.is-open .cselect-arrow { transform: rotate(180deg); }
.cselect-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
    background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
    box-shadow: 0 24px 50px -24px rgba(14, 14, 16, .5); padding: .4rem;
    max-height: 260px; overflow-y: auto; display: none;
}
.cselect.is-open .cselect-menu { display: block; }
.cselect-option {
    display: block; width: 100%; text-align: left; cursor: pointer;
    background: transparent; border: 0; border-radius: 10px; padding: .65rem .8rem;
    font-family: var(--font-body); font-size: .98rem; color: var(--ink);
    transition: background var(--transition), color var(--transition);
}
.cselect-option:hover, .cselect-option:focus-visible { background: rgba(200, 161, 90, .14); outline: none; }
.cselect-option.is-selected { color: var(--gold); font-weight: 700; }
.cselect-option[disabled] { color: var(--muted); cursor: default; }
.cselect-group { padding: .55rem .8rem .25rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cselect-menu::-webkit-scrollbar { width: 8px; }
.cselect-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
@media (max-width: 767px) {
    .cselect-menu { max-height: 230px; }
}

/* Calendario (flatpickr) — tema MH Studio */
#book-appointment-wizard .flatpickr-calendar {
    width: 100% !important; max-width: none !important;
    border: none !important; box-shadow: none !important; border-radius: 0 !important;
    font-family: var(--font-body) !important; background: transparent !important;
}
#book-appointment-wizard .flatpickr-calendar.inline { margin: 0 !important; top: 0 !important; }
#book-appointment-wizard .flatpickr-innerContainer,
#book-appointment-wizard .flatpickr-rContainer { width: 100% !important; background: transparent !important; border: 0 !important; }
#book-appointment-wizard .flatpickr-days { width: 100% !important; border: 0 !important; }
#book-appointment-wizard .dayContainer {
    width: 100% !important; min-width: 0 !important; max-width: none !important; padding: .25rem 0 !important;
}
#book-appointment-wizard .flatpickr-months {
    padding: .25rem .35rem .55rem !important; background: transparent !important;
    border: 0 !important; border-radius: 0 !important; margin-bottom: .25rem;
}
#book-appointment-wizard .flatpickr-months .flatpickr-month { background: transparent !important; color: var(--ink) !important; height: 40px !important; }
#book-appointment-wizard .flatpickr-current-month {
    font-family: var(--font-display) !important; font-size: 1.25rem !important; font-weight: 600 !important;
    color: var(--ink) !important; padding-top: .35rem !important; left: 12.5% !important; width: 75% !important;
}
#book-appointment-wizard .flatpickr-current-month .cur-month { font-weight: 600 !important; }
#book-appointment-wizard .flatpickr-current-month input.cur-year { font-family: var(--font-display) !important; font-weight: 600 !important; color: var(--ink) !important; }
#book-appointment-wizard .flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #fff !important; color: var(--ink) !important; border: 1.5px solid var(--border) !important;
    border-radius: 10px !important; font-family: var(--font-display) !important; font-size: 1.1rem !important;
    font-weight: 600 !important; padding: .15rem .5rem !important; margin: -1px 0 0 .25rem !important;
}
#book-appointment-wizard .flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month { background: #fff !important; color: var(--ink) !important; }
#book-appointment-wizard .flatpickr-weekdays { background: transparent !important; border: 0 !important; margin-top: .35rem; }
#book-appointment-wizard span.flatpickr-weekday {
    background: transparent !important; color: var(--muted) !important;
    font-size: .72rem !important; font-weight: 600 !important; letter-spacing: .06em; text-transform: uppercase;
}
#book-appointment-wizard .flatpickr-months .flatpickr-prev-month,
#book-appointment-wizard .flatpickr-months .flatpickr-next-month { color: var(--muted) !important; fill: var(--muted) !important; top: 4px !important; }
#book-appointment-wizard .flatpickr-months .flatpickr-prev-month:hover svg,
#book-appointment-wizard .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--gold) !important; }
#book-appointment-wizard .flatpickr-day {
    border-radius: 10px !important; max-width: none !important;
    height: 42px !important; line-height: 42px !important; color: var(--ink) !important; font-weight: 500;
}
#book-appointment-wizard .flatpickr-day:hover,
#book-appointment-wizard .flatpickr-day:focus { background: rgba(200, 161, 90, .16) !important; border-color: transparent !important; color: var(--ink) !important; }
#book-appointment-wizard .flatpickr-day.today { border-color: var(--gold) !important; }
#book-appointment-wizard .flatpickr-day.today:hover { background: rgba(200, 161, 90, .16) !important; color: var(--ink) !important; }
#book-appointment-wizard .flatpickr-day.selected,
#book-appointment-wizard .flatpickr-day.startRange,
#book-appointment-wizard .flatpickr-day.endRange { background: var(--gold) !important; border-color: var(--gold) !important; color: #16130c !important; }
#book-appointment-wizard .flatpickr-day.prevMonthDay,
#book-appointment-wizard .flatpickr-day.nextMonthDay { color: #cfc9bf !important; }
#book-appointment-wizard .flatpickr-day.flatpickr-disabled,
#book-appointment-wizard .flatpickr-day.flatpickr-disabled:hover { color: #cfc9bf !important; background: transparent !important; }

/* Lista de horas: scroll funcional pero sin barra visible */
#book-appointment-wizard #available-hours {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#book-appointment-wizard #available-hours::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Contenedor de fecha/hora */
#book-appointment-wizard #select-time {
    margin-left: auto !important;
    margin-right: auto !important;
}
#book-appointment-wizard #wizard-frame-2 .frame-content { justify-content: center; }

/* Horas disponibles */
#book-appointment-wizard #available-hours .available-hour {
    display: block !important;
    width: 100% !important;
    border-radius: 12px !important; border: 1.5px solid var(--border) !important;
    color: var(--ink) !important; font-weight: 600; padding: .65rem .5rem; margin-bottom: 10px;
    background: #fff; transition: var(--transition);
}
#book-appointment-wizard #available-hours .available-hour:hover { border-color: var(--gold) !important; background: rgba(200, 161, 90, .1) !important; color: var(--ink) !important; }
#book-appointment-wizard #available-hours .selected-hour { background: var(--gold) !important; border-color: var(--gold) !important; color: #16130c !important; }

/* Botones del wizard */
#book-appointment-wizard .command-buttons { margin-top: 1.75rem !important; gap: .75rem; }
#book-appointment-wizard .button-next {
    background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important;
    border-radius: 999px !important; padding: .85rem 1.7rem !important; font-weight: 600;
}
#book-appointment-wizard .button-next:hover { background: #2a2a30 !important; }
#book-appointment-wizard .button-back {
    border-radius: 999px !important; border: 1.5px solid var(--border) !important; color: var(--ink) !important;
    padding: .85rem 1.7rem !important; background: #fff !important; font-weight: 600;
}
#book-appointment-wizard .button-back:hover { background: var(--cream) !important; }
#book-appointment-wizard #book-appointment-submit {
    background: var(--gold) !important; border-color: var(--gold) !important; color: #16130c !important;
    border-radius: 999px !important; padding: .95rem 2rem !important; font-weight: 700;
}
#book-appointment-wizard #book-appointment-submit:hover { background: var(--gold-soft) !important; }

/* Confirmación */
#book-appointment-wizard #appointment-details,
#book-appointment-wizard #customer-details { font-size: 1rem !important; line-height: 1.8 !important; }
#book-appointment-wizard #appointment-details .fw-bold.fs-3 { font-family: var(--font-display); font-size: 1.5rem !important; }

/* Modales */
.site-booking .modal-content { border: none; border-radius: var(--radius); }
.site-booking .modal-header { border-bottom: 1px solid var(--border); }
.site-booking .modal-title { font-family: var(--font-display); font-size: 1.5rem; }
.site-booking .modal .btn-primary { background: var(--gold) !important; border-color: var(--gold) !important; color: #16130c !important; border-radius: 999px !important; }
.site-booking #message .alert { border-radius: 12px; }

/* ---------- Servicios (dinámico) ---------- */
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.service-card {
    background: var(--paper); border: 1px solid rgba(14, 14, 16, .08); border-radius: var(--radius);
    padding: 1.75rem; transition: var(--transition); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(200, 161, 90, .5); }
.service-card h3 { margin-bottom: .35rem; }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-meta { font-weight: 600; color: var(--ink) !important; margin: .75rem 0 1rem; }
.service-link { color: var(--gold); font-weight: 600; text-decoration: none; margin-top: auto; }
.service-link:hover { text-decoration: underline; }

/* ---------- Nosotros ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
.split-text h2 { font-size: clamp(1.5rem, 3.6vw, 2.05rem); }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; color: #33333a; }
.check-list li::before { content: "✶"; position: absolute; left: 0; top: 0; color: var(--gold); }

/* ---------- Galería ---------- */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 1 / 1; object-fit: cover; transition: var(--transition); }
.gallery img:hover { transform: scale(1.03); }

/* Instagram grid */
.ig-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
.ig-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1 / 1; background: var(--cream); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ig-item:hover img, .ig-item:focus img { transform: scale(1.06); }
.ig-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(14, 14, 16, 0) 40%, rgba(14, 14, 16, .55));
    color: #fff; opacity: 0; transition: opacity var(--transition);
}
.ig-item:hover .ig-overlay, .ig-item:focus .ig-overlay { opacity: 1; }
.ig-overlay svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }

/* Lightbox Instagram */
.ig-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(8, 8, 10, .92); }
.ig-lightbox[hidden] { display: none; }
.ig-lb-figure { max-width: min(92vw, 900px); max-height: 92vh; margin: 0; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ig-lb-img { width: 100%; max-height: 72vh; object-fit: contain; background: #0e0e10; }
.ig-lb-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.25rem; }
.ig-lb-text { font-size: .9rem; color: var(--muted); max-width: 70ch; }
.ig-lb-link { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ig-lb-link:hover { text-decoration: underline; }
.ig-lb-btn { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background var(--transition); }
.ig-lb-btn:hover { background: rgba(255, 255, 255, .25); }
.ig-lb-close { top: 1.25rem; right: 1.25rem; }
.ig-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.ig-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* PWA: modal de instalación */
.pwa-modal { position: fixed; inset: 0; z-index: 2500; display: flex; align-items: flex-end; justify-content: center; padding: 1rem; background: rgba(8, 8, 10, .65); backdrop-filter: blur(3px); }
.pwa-modal[hidden] { display: none; }
.pwa-modal-card { position: relative; width: 100%; max-width: 430px; background: #fff; border-radius: 22px; padding: 1.75rem 1.5rem 1.5rem; text-align: center; box-shadow: var(--shadow); animation: pwaUp .32s ease; }
@media (min-width: 560px) { .pwa-modal { align-items: center; } }
.pwa-close { position: absolute; top: .6rem; right: .6rem; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: var(--transition); }
.pwa-close:hover, .pwa-close:focus-visible { background: var(--cream); color: var(--ink); outline: none; }
.pwa-icon { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto .9rem; display: block; box-shadow: 0 12px 26px -14px rgba(14, 14, 16, .6); }
.pwa-title { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.15; margin: 0 0 .35rem; color: var(--ink); }
.pwa-text { color: var(--muted); font-size: .95rem; margin: 0 0 1.35rem; }
.pwa-android .btn-gold { width: 100%; }
.pwa-hint { font-size: .78rem; color: var(--muted); margin: .8rem 0 0; }
.pwa-steps { list-style: none; margin: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: .9rem; }
.pwa-steps li { display: flex; align-items: flex-start; gap: .8rem; font-size: .92rem; color: #33333a; }
.pwa-steps strong { color: var(--ink); }
.pwa-step-ico { flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--cream); color: var(--gold); }
.pwa-step-ico svg { width: 24px; height: 24px; }
@keyframes pwaUp { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pwa-modal-card { animation: none; } }

/* Aviso de cookies */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2600; padding: 1rem; display: flex; justify-content: center; pointer-events: none; }
.cookie-bar[hidden] { display: none; }
.cookie-bar-card {
    pointer-events: auto; width: 100%; max-width: 780px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    background: rgba(20, 20, 23, .97); color: #d7d7de; border: 1px solid var(--line);
    border-radius: 16px; padding: 1rem 1.25rem; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.cookie-bar-text { margin: 0; flex: 1 1 360px; font-size: .88rem; line-height: 1.55; }
.cookie-bar-text a { color: var(--gold-soft); text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: .6rem; flex: 0 0 auto; margin-left: auto; }
.cookie-btn { font-family: var(--font-body); font-weight: 600; font-size: .9rem; padding: .7rem 1.3rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: var(--transition); }
.cookie-btn-accept { background: var(--gold); color: #16130c; }
.cookie-btn-accept:hover { background: var(--gold-soft); }
.cookie-btn-reject { background: transparent; color: #c9c9d0; border-color: rgba(255, 255, 255, .3); }
.cookie-btn-reject:hover { border-color: #fff; color: #fff; }
@media (max-width: 560px) {
    .cookie-bar { padding: .6rem; }
    .cookie-bar-card { flex-direction: column; align-items: stretch; }
    .cookie-bar-text { flex: 0 1 auto; }
    .cookie-bar-actions { margin-left: 0; }
    .cookie-bar-actions .cookie-btn { flex: 1 1 0; }
}

/* ---------- Testimonios ---------- */
.quotes { display: grid; gap: 1.25rem; grid-template-columns: 1fr; justify-items: center; max-width: 1040px; margin: 0 auto; }
.quote { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 1.75rem; border: 1px solid rgba(14, 14, 16, .08); width: 100%; max-width: 460px; text-align: center; display: flex; flex-direction: column; }
.quote p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: #26262c; }
.quote footer { font-size: .86rem; color: var(--gold); font-weight: 600; }

/* Google rating + stars */
.google-badge {
    display: inline-flex; align-items: center; gap: .85rem;
    margin-top: 1.35rem; padding: .6rem 1.15rem;
    background: #fff; border: 1px solid rgba(14, 14, 16, .08);
    border-radius: 999px; box-shadow: 0 14px 34px -20px rgba(14, 14, 16, .5);
}
.google-score { display: flex; flex-direction: column; line-height: 1.15; text-align: left; gap: .18rem; }
.google-score strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.google-count { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars-bg { color: #ddd7cb; }
.stars-fg { position: absolute; top: 0; left: 0; width: var(--stars-pct, 100%); overflow: hidden; white-space: nowrap; color: #f6b21b; }
.stars .star { width: 20px; height: 20px; fill: currentColor; display: inline-block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .08)); }
.google-badge .stars .star { width: 24px; height: 24px; }
.quote-stars { margin-bottom: .75rem; }
.quote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; flex: 1 1 auto; }
.quote footer { margin-top: auto; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.contact-list li { padding: .85rem 0; border-bottom: 1px solid rgba(14, 14, 16, .1); }
.contact-list .label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .15rem; }
.contact-list a { text-decoration: none; font-weight: 500; color: var(--ink); }
.contact-list a:hover { color: var(--gold); }
.contact-hours { background: var(--charcoal); color: #fff; border-radius: var(--radius); padding: 1.75rem; }
.contact-hours h3 { color: #fff; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; font-size: .95rem; }
.hours th { color: var(--muted-dark); font-weight: 500; }
.hours td { text-align: right; }
.contact-note { color: var(--muted-dark); font-size: .88rem; margin: 1rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0d; color: #c9c9d0; padding: 3rem 0 2rem; }
.footer-inner { display: grid; gap: 1.5rem 1.75rem; grid-template-columns: 1fr auto; align-items: center; }
.footer-brand { display: flex; align-items: center; }
.footer-brand p { margin: 0; font-size: .9rem; color: var(--muted-dark); }
.footer-brand strong { color: #fff; }
.site-booking .footer-logo { height: 48px; width: auto; flex: 0 0 auto; }
.footer-social { display: flex; gap: .6rem; justify-self: end; }
.footer-social a {
    width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--line); color: #c9c9d0; transition: var(--transition);
}
.footer-social svg { width: 26px; height: 26px; }
.footer-social a:hover, .footer-social a:focus-visible {
    color: #16130c; background: var(--gold); border-color: var(--gold); transform: translateY(-2px); outline: none;
}
.footer-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { color: #c9c9d0; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-meta { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: .82rem; color: var(--muted-dark); text-align: center; }
.footer-meta p { margin: 0 0 .4rem; }
.footer-meta a { color: var(--gold); text-decoration: none; }
.credit a { color: var(--gold); text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.heart { color: #e63946; display: inline-block; vertical-align: -0.15em; margin: 0 .1rem; animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.28); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
    60% { transform: scale(1); }
}

/* ---------- Página de mensajes (confirmación/cancelación) ---------- */
.message-page { background: var(--cream); }
.message-topbar { display: flex; justify-content: center; padding: 1.5rem 1.25rem; background: #0e0e10; }
.message-topbar .brand, .message-topbar .brand-text { color: #fff; }
.message-page #main.min-vh-100 { min-height: auto !important; }
.message-page .wrapper { min-height: calc(100vh - 150px) !important; }
.message-page #message-frame {
    background: #fff !important; border-radius: 20px !important;
    border: 1px solid rgba(14, 14, 16, .06); box-shadow: var(--shadow) !important;
}
.message-page #message-frame h1,
.message-page #message-frame h2,
.message-page #message-frame h3 { font-family: var(--font-display); }
.message-page #message-frame .backend-link { background: var(--gold) !important; color: #16130c !important; }
.message-page #message-frame a:not(.btn) { color: var(--gold); }
/* Botones de la confirmación: dorado/blanco e inverso */
.message-page #message-frame .btn-primary {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #fff !important;
}
.message-page #message-frame .btn-primary:hover,
.message-page #message-frame .btn-primary:focus {
    background-color: #fff !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}
.message-page #message-frame .btn-outline-primary {
    background-color: #fff !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}
.message-page #message-frame .btn-outline-primary:hover,
.message-page #message-frame .btn-outline-primary:focus {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #fff !important;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .ig-grid { grid-template-columns: repeat(3, 1fr); }
    .quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .split { grid-template-columns: 1.05fr 1fr; }
    .contact-grid { grid-template-columns: 1.2fr 1fr; }
    .quotes { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr auto 1fr; align-items: center; }
    .footer-brand { grid-column: 1; justify-self: start; }
    .footer-social { grid-column: 2; justify-self: center; }
    .footer-social a { width: 44px; height: 44px; }
    .footer-social svg { width: 23px; height: 23px; }
    .footer-nav { grid-column: 3; justify-self: end; }
    .footer-meta { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
    .site-booking .brand-logo { height: 40px; }
    .footer-nav { flex-wrap: nowrap; justify-content: space-between; gap: .5rem; width: 100%; }
    .footer-nav a { font-size: clamp(.72rem, 3.4vw, .9rem); white-space: nowrap; }
    .site-nav { position: static; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: calc(100% + 8px); left: 5px; right: 5px; width: auto;
        flex-direction: column; align-items: stretch; gap: .25rem;
        min-width: 0; padding: .9rem; margin: 0;
        background: var(--charcoal-2); border: 1px solid var(--line); border-radius: 14px;
        box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition);
        max-height: calc(100vh - 110px); overflow-y: auto;
    }
    .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-menu a { padding: .7rem .85rem; border-radius: 8px; }
    .nav-cta { margin: .35rem 0 0; }
    .nav-cta .btn-gold { width: 100%; }
}
@media (max-width: 991.98px) {
    /* Layout apilado y centrado (móvil/tablet): eliminamos el gutter de Bootstrap
       y centramos explícitamente el calendario y la lista de horas. */
    #book-appointment-wizard #wizard-frame-2 .frame-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #book-appointment-wizard #wizard-frame-2 .frame-content > [class*="col"] {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #book-appointment-wizard #select-date,
    #book-appointment-wizard #select-time {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #book-appointment-wizard #select-date { text-align: center; }
    #book-appointment-wizard .flatpickr-calendar.inline { margin-left: auto !important; margin-right: auto !important; }
}
@media (max-width: 767px) {
    #book-appointment-wizard .wizard-frame { padding: 1.25rem 1.1rem !important; }
    #book-appointment-wizard .frame-container { min-height: auto !important; }
    #book-appointment-wizard #select-time { max-width: 100% !important; width: 100% !important; }
    .wizard-steps { gap: 1.75rem; }
    .wizard-steps::before { left: 8%; right: 8%; }
    .booking-badges { gap: 1rem 1.75rem; }
    .booking-badges strong { font-size: 1.4rem; }
    .booking-badges span { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- SEO: subtítulo del H1 y preguntas frecuentes ---------- */
.booking-intro h1 .h1-sub {
    display: block; margin-top: .45rem; font-family: var(--font-body); font-size: clamp(.95rem, 2.2vw, 1.15rem);
    font-weight: 500; letter-spacing: .06em; color: var(--muted);
}
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq-item {
    background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0 1.25rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: var(--gold); box-shadow: 0 14px 34px -26px rgba(14, 14, 16, .55); }
.faq-item summary {
    cursor: pointer; list-style: none; position: relative; padding: 1.05rem 2rem 1.05rem 0;
    font-weight: 600; line-height: 1.4; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 400; color: var(--gold); transition: transform var(--transition);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.faq-item p { margin: 0; padding: 0 0 1.15rem; color: var(--muted); }
