/* =====================================================
   SALÓN DE BELLEZA — Design System
   Mobile-first, responsive, smooth scroll
===================================================== */

:root {
    --c-primary: #d63384;
    --c-primary-dark: #ad2069;
    --c-secondary: #6f42c1;
    --c-accent: #ffc107;
    --c-text: #2c2c2c;
    --c-text-soft: #6c757d;
    --c-bg: #ffffff;
    --c-bg-soft: #faf5f8;
    --c-border: #e9ecef;
    --c-success: #28a745;
    --c-error: #dc3545;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.15);

    --container: 1200px;
    --header-h: 70px;

    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 4rem 0;
}

.bg-soft { background: var(--c-bg-soft); }
.text-muted { color: var(--c-text-soft); }
.oculto { display: none !important; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 1rem; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: var(--header-h);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--c-text);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo img { height: 40px; }

.menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.menu a {
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
    position: relative;
}

.menu a:hover, .menu a.active {
    color: var(--c-primary);
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
}

.menu-acciones {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lang-switch a {
    font-size: .85rem;
    padding: .25rem .35rem;
}

.lang-switch a.active {
    color: var(--c-primary);
    font-weight: 700;
}

.user-chip {
    background: var(--c-bg-soft);
    padding: .35rem .7rem;
    border-radius: 20px;
    font-size: .9rem;
}

.hamburguesa {
    display: none;
    background: none;
    border: 0;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .5rem;
}

.hamburguesa span {
    width: 24px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: .2s;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: .65rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 0;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
    text-decoration: none;
    font-size: .95rem;
}

.btn-primary {
    background: var(--c-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--c-primary);
    color: var(--c-primary);
}

.btn-outline:hover {
    background: var(--c-primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--c-text);
}

.btn-ghost:hover { background: var(--c-bg-soft); }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: calc(100vh - var(--header-h));
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(214,51,132,.6), rgba(111,66,193,.4));
    z-index: 2;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-content h1 { margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; }

/* ===== SERVICIOS ===== */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-servicio {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.card-servicio:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-servicio img,
.card-servicio-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-servicio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #fce4ec, #e1bee7);
}

.card-body { padding: 1.25rem; }

.card-body h3 { color: var(--c-primary); }
.card-body .desc { color: var(--c-text-soft); margin-bottom: 1rem; min-height: 3rem; }

.card-body .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.card-body .precio {
    font-weight: 700;
    color: var(--c-primary);
    font-size: 1.1rem;
}

.precio-consultar {
    color: var(--c-text-soft);
    font-style: italic;
    font-size: .85rem;
}

.card-body .btn { width: 100%; }

/* ===== GALERÍA ===== */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.grid-galeria figure {
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
}

.grid-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.grid-galeria figure:hover img { transform: scale(1.08); }

.grid-galeria .img-zoomable {
    cursor: zoom-in;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
    animation: lb-fade .2s ease-out;
}

@keyframes lb-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox p {
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(255,255,255,.15);
    color: white;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,.3);
}

/* ===== UBICACIÓN / CONTACTO ===== */
.mapa { margin-top: 1rem; }

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-vertical {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.form-vertical input,
.form-vertical textarea,
.form-vertical select {
    padding: .75rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.form-vertical input:focus,
.form-vertical textarea:focus {
    outline: none;
    border-color: var(--c-primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--c-text);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.activo { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-lg { max-width: 720px; }

.modal-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    background: none;
    border: 0;
    font-size: 2rem;
    cursor: pointer;
    color: var(--c-text-soft);
    line-height: 1;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--c-border);
    margin-bottom: 1.5rem;
}

.auth-tabs .tab {
    flex: 1;
    background: none;
    border: 0;
    padding: .75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--c-text-soft);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tabs .tab.active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}

.auth-form { display: none; }
.auth-form.active { display: flex; }

.msg-error {
    background: #ffe4e6;
    color: var(--c-error);
    padding: .65rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    display: none;
}

.msg-error.activo { display: block; }

/* ===== RESERVA ===== */
.reserva-paso { padding: 1rem 0; }

.reserva-encabezado {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-border);
}

.reserva-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.reserva-info { flex: 1; }
.reserva-info h2 { margin: 0; font-size: 1.4rem; text-align: left; }
.reserva-info p { margin: .25rem 0 0; }

.resumen-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.resumen-header img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

#calendario {
    max-width: 100%;
    min-height: 480px;
}

#calendario .fc {
    font-size: .85rem;
}

#calendario .fc-button {
    background: var(--c-primary);
    border-color: var(--c-primary);
    text-transform: capitalize;
}

#calendario .fc-button:hover {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
}

#calendario .fc-button-primary:disabled {
    background: var(--c-text-soft);
    border-color: var(--c-text-soft);
}

#calendario .fc-daygrid-day {
    cursor: pointer;
}

#calendario .fc-daygrid-day:hover {
    background: var(--c-bg-soft);
}

#calendario .fc-day-disabled {
    cursor: not-allowed;
    opacity: .4;
}

#calendario .fc-toolbar-title {
    font-size: 1.1rem;
}

.grid-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .5rem;
    margin: 1rem 0;
}

.slot {
    padding: .65rem;
    border: 1.5px solid var(--c-border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: .15s;
    font-weight: 600;
}

.slot:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.slot.seleccionado {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
}

.resumen-cita {
    background: var(--c-bg-soft);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.resumen-cita p { margin: .35rem 0; }

.aviso-lock {
    background: #fff3cd;
    color: #856404;
    padding: .75rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hamburguesa { display: flex; }

    .menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-110%);
        transition: transform .25s;
        gap: 1rem;
    }

    .menu.abierto { transform: translateY(0); }

    .menu-acciones {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .menu-acciones > * { width: 100%; text-align: center; }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .section { padding: 2.5rem 0; }
}
