/* ============================================================
   ENVY — The Good Kind
   Sistema de diseño. Paleta tomada de la guía de marca:
   crema, beige, taupe y negro carbón.
   Responsive: móvil primero, con breakpoints para tablet y desktop.
   ============================================================ */

/* ---------- 1. Variables (tokens de diseño) ---------------- */
:root {
    /* Paleta de marca */
    --c-cream:      #ece7df;   /* fondo principal */
    --c-cream-soft: #f4f1ea;   /* tarjetas claras */
    --c-sand:       #ded5c7;   /* superficies suaves */
    --c-taupe:      #a8927d;   /* acento cálido */
    --c-taupe-dark: #8a7560;   /* acento hover */
    --c-charcoal:   #1c1a17;   /* negro carbón (botones, texto fuerte) */
    --c-ink:        #2b2723;   /* texto principal */
    --c-muted:      #7d756a;   /* texto secundario */
    --c-line:       #d8cfc1;   /* bordes sutiles */
    --c-white:      #ffffff;
    --c-success:    #5b7e62;
    --c-warning:    #b98a4b;
    --c-danger:     #a85a52;

    /* Tipografía */
    --font-base: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Radios y sombras */
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(28, 26, 23, .06);
    --shadow:    0 10px 30px rgba(28, 26, 23, .10);
    --shadow-lg: 0 20px 50px rgba(28, 26, 23, .16);

    /* Layout */
    --container: 1200px;
    --header-h:  72px;
}

/* ---------- 2. Reset --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* overflow-x:hidden va en <html>, no en <body>:
       en <body> rompería position:sticky del header. */
    overflow-x: hidden;
}

body {
    font-family: var(--font-base);
    background: var(--c-cream);
    color: var(--c-ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
    overflow-wrap: break-word;   /* evita que un título largo desborde */
}

/* ---------- 3. Utilidades de layout ------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding-block: 56px; }
.section-sm { padding-block: 36px; }

.text-center { text-align: center; }
.muted { color: var(--c-muted); }

.eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--c-taupe);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 8px;
}

.section-lead {
    color: var(--c-muted);
    max-width: 560px;
}

/* ---------- 4. Marca / logotipo ---------------------------- */
/* El logo: "ENVY" en una línea (la marca) y el tagline debajo.
   El <b> agrupa EN+VY para que no se separen; <small> va aparte. */
.logo {
    color: var(--c-charcoal);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
/* "ENVY" — la marca. */
.logo b {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .26em;
    white-space: nowrap;
    /* compensa el letter-spacing sobrante a la derecha */
    text-indent: .26em;
}
.logo span { color: var(--c-taupe); }
/* "THE GOOD KIND" — el tagline, centrado bajo la marca. */
.logo small {
    font-size: .46rem;
    letter-spacing: .34em;
    text-indent: .34em;
    color: var(--c-muted);
    margin-top: 6px;
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ---------- 5. Botones ------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--c-charcoal);
    color: var(--c-cream);
}
.btn-primary:hover { background: #000; }

.btn-light {
    background: var(--c-cream-soft);
    color: var(--c-charcoal);
    border-color: var(--c-line);
}
.btn-light:hover { background: var(--c-white); }

.btn-taupe {
    background: var(--c-taupe);
    color: var(--c-white);
}
.btn-taupe:hover { background: var(--c-taupe-dark); }

.btn-ghost {
    background: transparent;
    color: var(--c-charcoal);
    border-color: var(--c-charcoal);
}
.btn-ghost:hover { background: var(--c-charcoal); color: var(--c-cream); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Íconos SVG de línea ---------------------------- */
/* Heredan el color del contexto (currentColor en el SVG). */
.envy-icon { display: block; color: var(--c-charcoal); }
/* Sobre fondos oscuros se aclaran. */
.dark-band .envy-icon,
.site-footer .envy-icon { color: var(--c-cream); }
/* Dentro de las tarjetas de categoría toman el acento taupe. */
.cat-card .envy-icon { color: var(--c-taupe); }

/* ---------- 6. Header / navegación ------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
}
.nav {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: .92rem;
    color: var(--c-ink);
    position: relative;
    padding-block: 6px;
    transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-taupe); }
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--c-taupe);
    border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Botón hamburguesa (móvil) */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    display: block;
    width: 20px; height: 2px;
    background: var(--c-charcoal);
    position: relative;
    transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- 7. Hero ---------------------------------------- */
.hero {
    background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-sand) 100%);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
    padding-block: 64px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 16px;
}
.hero p.lead {
    color: var(--c-muted);
    font-size: 1.05rem;
    max-width: 420px;
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-figure {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--c-sand);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute;
    left: 20px; bottom: 20px;
    background: rgba(28, 26, 23, .82);
    color: var(--c-cream);
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: .9rem;
    backdrop-filter: blur(4px);
}

/* Tira de pilares debajo del hero */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.pillar {
    background: var(--c-cream-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
}
.pillar .ic {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    color: var(--c-taupe);
}
.pillar strong { display: block; font-size: .92rem; }
.pillar small { color: var(--c-muted); font-size: .78rem; }

/* ---------- 8. Tarjetas de categoría ----------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cat-card {
    background: var(--c-cream-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .thumb {
    aspect-ratio: 1 / 1;
    background: var(--c-sand);
    display: grid;
    place-items: center;
    font-size: 2.6rem;
}
.cat-card .body { padding: 16px 18px 20px; }
.cat-card h3 { font-size: 1.05rem; }
.cat-card .price { color: var(--c-taupe); font-size: .85rem; }

/* ---------- 9. Tarjetas de servicio ------------------------ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    background: var(--c-cream-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Contenedor base de imagen: ancla la imagen y recorta el sobrante. */
.thumb {
    position: relative;
    overflow: hidden;
}
.service-card .thumb {
    aspect-ratio: 16 / 11;
    background: var(--c-sand);
    display: grid;
    place-items: center;
    font-size: 2.4rem;
}
/* Imagen del servicio: cubre todo el thumb sin deformarse.
   position:absolute + inset:0 garantiza que llene el área exacta
   del thumb, independientemente de la proporción del archivo.
   Aplica tanto en las tarjetas como en el detalle del servicio. */
.thumb img.thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.service-card .tag {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;   /* sobre la imagen del thumb */
    background: rgba(28,26,23,.78);
    color: var(--c-cream);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}
.service-card .body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.service-card .body h3 { font-size: 1.1rem; }
.service-card .desc { color: var(--c-muted); font-size: .88rem; flex: 1; }
.service-card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.service-card .meta .price { font-weight: 600; font-size: 1.05rem; }
.service-card .meta .dur { color: var(--c-muted); font-size: .8rem; white-space: nowrap; }
.card-actions { display: flex; gap: 8px; margin-top: 8px; }
.card-actions .btn { flex: 1; }

/* --- Precio con promoción --- */
.price-was {
    color: var(--c-muted);
    text-decoration: line-through;
    font-size: .82rem;
    font-weight: 400;
    margin-right: 6px;
    white-space: nowrap;
}
.price-now { color: var(--c-danger); font-weight: 600; white-space: nowrap; }

/* Etiqueta "OFERTA" sobre la tarjeta */
.tag-promo {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;   /* sobre la imagen del thumb */
    background: var(--c-danger);
    color: var(--c-white);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

/* ---------- 10. Tarjetas de profesional -------------------- */
.pro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.pro-card {
    background: var(--c-cream-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pro-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    margin: 0 auto 14px;
    object-fit: cover;
    background: var(--c-sand);
    border: 3px solid var(--c-white);
    box-shadow: var(--shadow-sm);
}
.pro-card h3 { font-size: 1.05rem; }
.pro-card .specialty { color: var(--c-muted); font-size: .82rem; margin-bottom: 10px; }
.stars { color: var(--c-taupe); font-size: .85rem; }
.stars .count { color: var(--c-muted); }

.badge-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--c-charcoal);
    color: var(--c-cream);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}

/* ---------- 11. Bloque destacado oscuro -------------------- */
.dark-band {
    background: var(--c-charcoal);
    color: var(--c-cream);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.dark-band .eyebrow { color: var(--c-taupe); }

/* Banda dividida: texto a la izquierda, imagen a la derecha.
   La imagen llena su columna y se acerca al borde de la banda
   para que el bloque se vea equilibrado, sin aire sobrante. */
.dark-band.dark-band-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    overflow: hidden;
    /* sin padding a la derecha: la imagen llega hasta el borde */
    padding: 56px 0 56px 56px;
}
.dark-band-text { padding-block: 8px; }
.dark-band-figure {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.dark-band-figure img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
}
.dark-band h2 { color: var(--c-cream); }
.feature-list { display: grid; gap: 14px; margin-top: 20px; }
.feature-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: .95rem;
}
.feature-list .check {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--c-taupe);
    color: var(--c-white);
    display: grid; place-items: center;
    font-size: .8rem;
}

/* ---------- 12. Tira de confianza -------------------------- */
.trust-band {
    background: var(--c-cream-soft);
    border-block: 1px solid var(--c-line);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
    text-align: center;
    padding-block: 32px;
}
.trust-grid .item small {
    display: block;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.trust-grid .item strong { font-size: 1.05rem; }

/* ---------- 13. Formularios -------------------------------- */
.form-card {
    background: var(--c-cream-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--c-taupe);
    box-shadow: 0 0 0 3px rgba(168, 146, 125, .15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Selector de método de pago */
.pay-options { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-options label {
    flex: 1;
    min-width: 90px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: .82rem;
    background: var(--c-white);
    transition: border-color .2s, background .2s;
}
.pay-options input { display: none; }
.pay-options input:checked + span {
    color: var(--c-charcoal);
    font-weight: 600;
}
.pay-options label:has(input:checked) {
    border-color: var(--c-charcoal);
    background: var(--c-sand);
}

/* ---------- 14. Alertas / mensajes flash ------------------- */
.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    margin-bottom: 18px;
}
.alert-error   { background: #f3dedb; color: var(--c-danger); }
.alert-success { background: #dfe9e0; color: var(--c-success); }

/* ---------- 15. Estado / badges de reserva ----------------- */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .02em;
}
.status-pendiente  { background: #f0e6d4; color: var(--c-warning); }
.status-confirmada { background: #dfe9e0; color: var(--c-success); }
.status-en_camino  { background: var(--c-charcoal); color: var(--c-cream); }
.status-completada { background: #e3ddd2; color: var(--c-muted); }
.status-cancelada  { background: #f3dedb; color: var(--c-danger); }

/* ---------- 16. Tracking de reserva ------------------------ */
/* Mapa real (Leaflet / OpenStreetMap). */
.track-map {
    aspect-ratio: 16 / 11;
    min-height: 320px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-sand);
    z-index: 0;            /* el mapa bajo el header sticky */
}

/* Pines personalizados sobre el mapa. */
.map-pin {
    width: 22px; height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid var(--c-white);
    box-shadow: var(--shadow-sm);
}
.map-pin-dest { background: var(--c-charcoal); }
.map-pin-pro {
    background: var(--c-taupe);
    animation: pin-pulse 1.8s infinite;
}
@keyframes pin-pulse {
    0%   { box-shadow: 0 0 0 3px rgba(168,146,125,.4); }
    70%  { box-shadow: 0 0 0 12px rgba(168,146,125,0); }
    100% { box-shadow: 0 0 0 3px rgba(168,146,125,0); }
}

.timeline { display: grid; gap: 0; margin-top: 8px; }
.timeline li {
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
    position: relative;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: 11px; top: 24px; bottom: 0;
    width: 2px;
    background: var(--c-line);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--c-sand);
    border: 2px solid var(--c-line);
    display: grid; place-items: center;
    font-size: .7rem;
}
.timeline li.done .dot {
    background: var(--c-taupe);
    border-color: var(--c-taupe);
    color: var(--c-white);
}
.timeline .label strong { display: block; font-size: .92rem; }
.timeline .label small { color: var(--c-muted); font-size: .78rem; }

/* ---------- 17. Confirmación ------------------------------- */
.confirm-screen {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px 20px;
}
.confirm-check {
    width: 92px; height: 92px;
    border-radius: 50%;
    background: var(--c-charcoal);
    color: var(--c-cream);
    display: grid; place-items: center;
    font-size: 2.4rem;
    margin: 0 auto 24px;
}
.confirm-code {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 18px;
    background: var(--c-sand);
    border-radius: var(--radius-pill);
    letter-spacing: .12em;
    font-weight: 600;
}

/* ---------- 18. Tabla (panel admin) ------------------------ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-cream-soft);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .88rem;
}
.data-table th,
.data-table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--c-line);
}
.data-table th {
    background: var(--c-sand);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.data-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--c-cream-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 22px;
}
.stat-card .num { font-size: 1.9rem; font-weight: 600; }
.stat-card .lbl {
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-muted);
}

/* ---------- 19. Resumen lateral (reservar) ----------------- */
.layout-2col {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 32px;
    align-items: start;
}
.summary-card {
    background: var(--c-charcoal);
    color: var(--c-cream);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.summary-card h3 { color: var(--c-cream); margin-bottom: 16px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: .9rem;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ---------- 20. Footer ------------------------------------- */
.site-footer {
    background: var(--c-charcoal);
    color: var(--c-cream);
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-block: 52px;
}
.site-footer .logo,
.site-footer .logo span { color: var(--c-cream); }
.site-footer p { color: #b7afa3; font-size: .9rem; }
.footer-grid h4 {
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--c-taupe);
}
.footer-grid a { color: #cbc4b8; font-size: .9rem; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--c-cream); }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge {
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: .78rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-block: 20px;
    text-align: center;
    font-size: .82rem;
    color: #9c9488;
}

/* ---------- 21. Misceláneos -------------------------------- */
.search-bar {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 8px;
}
.search-bar input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    background: var(--c-cream-soft);
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--c-line);
    background: var(--c-cream-soft);
    font-size: .84rem;
    transition: background .2s, color .2s;
}
.chip:hover { background: var(--c-sand); }
.chip.active { background: var(--c-charcoal); color: var(--c-cream); border-color: var(--c-charcoal); }
/* Chip con ícono SVG: alinea ícono y texto. */
.chip-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chip-icon .envy-icon { color: var(--c-taupe); }
.chip-icon.active .envy-icon { color: var(--c-cream); }

/* Ícono de respaldo dentro del thumb de un servicio sin imagen. */
.thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-taupe);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--c-muted);
}
.empty-state .ic {
    font-size: 3rem;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    color: var(--c-taupe);
}

.divider { height: 1px; background: var(--c-line); margin-block: 28px; }

/* ---------- Calificación con estrellas --------------------- */
.rate-form { margin-top: 10px; }
.rate-label {
    font-size: .8rem;
    color: var(--c-muted);
    margin-bottom: 4px;
}
/* Estrellas interactivas. Van en orden inverso (5→1) en el HTML;
   con ~ se rellena la estrella y todas las anteriores. */
.rate-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.rate-stars input { display: none; }
.rate-stars label {
    font-size: 1.5rem;
    color: var(--c-line);
    cursor: pointer;
    padding: 0 2px;
    transition: color .15s;
}
.rate-stars label:hover,
.rate-stars label:hover ~ label,
.rate-stars input:checked ~ label {
    color: var(--c-taupe);
}

/* Estrellas estáticas (reseña ya enviada). */
.rate-done {
    margin-top: 10px;
    font-size: .8rem;
    color: var(--c-muted);
}
.rate-stars-static span { color: var(--c-line); font-size: 1rem; }
.rate-stars-static span.on { color: var(--c-taupe); }

/* ---------- Campanita de notificaciones -------------------- */
.bell { position: relative; }
.bell-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--c-danger);
    color: var(--c-white);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
}

/* Lista de notificaciones */
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--c-cream-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 16px 18px;
    color: inherit;
    transition: background .2s, transform .15s;
}
a.notif-item:hover { background: var(--c-sand); transform: translateX(2px); }
.notif-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--c-taupe);
    flex-shrink: 0;
    margin-top: 5px;
}
.notif-dot.read { background: var(--c-line); }
.notif-body strong { display: block; font-size: .95rem; }
.notif-body p { color: var(--c-muted); font-size: .87rem; margin: 3px 0; }
.notif-body small { color: var(--c-muted); font-size: .76rem; }

/* ---------- Modal de mensajes (errores / éxitos) ----------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(28, 26, 23, .55);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.show { display: flex; }

.modal-box {
    background: var(--c-cream-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    padding: 32px 28px 26px;
    text-align: center;
    animation: modal-in .22s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ícono circular según el tipo de mensaje. */
.modal-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}
.modal-icon.error   { background: #f3dedb; color: var(--c-danger); }
.modal-icon.success { background: #dfe9e0; color: var(--c-success); }

.modal-box h3 { font-size: 1.15rem; margin-bottom: 6px; }
.modal-box p  { color: var(--c-muted); font-size: .92rem; margin-bottom: 20px; }
.modal-box .btn { min-width: 140px; }

/* Aviso de instalación PWA */
.pwa-prompt {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 80;
    background: var(--c-charcoal);
    color: var(--c-cream);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    margin-inline: auto;
}
.pwa-prompt.show { display: flex; }
.pwa-prompt .pwa-x {
    background: transparent;
    border: none;
    color: var(--c-cream);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ============================================================
   22. RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .cat-grid,
    .pro-grid           { grid-template-columns: repeat(2, 1fr); }
    .service-grid       { grid-template-columns: repeat(2, 1fr); }
    .footer-grid        { grid-template-columns: repeat(2, 1fr); }
    .stat-grid          { grid-template-columns: repeat(2, 1fr); }
    .hero-grid          { gap: 32px; }
    .layout-2col        { grid-template-columns: 1fr; }
    .summary-card       { position: static; }
    .dark-band          { padding: 36px; }
    /* Banda: la imagen pasa debajo del texto, a una sola columna.
       La imagen se enmarca en un panel para que se vea integrada,
       no flotando suelta sobre el fondo negro. */
    .dark-band.dark-band-split {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 38px;
    }
    .dark-band-figure {
        justify-content: center;
        background: rgba(255, 255, 255, .04);
        border: 1px solid rgba(255, 255, 255, .10);
        border-radius: var(--radius-lg);
        padding: 24px;
    }
    .dark-band-figure img {
        max-height: 420px;
        filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45));
    }
}

/* ============================================================
   23. RESPONSIVE — Móvil
   ============================================================ */
@media (max-width: 720px) {
    .section    { padding-block: 38px; }
    .section-sm { padding-block: 28px; }

    /* Navegación: menú desplegable */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--c-cream-soft);
        border-bottom: 1px solid var(--c-line);
        padding: 8px 20px 16px;
        transform: translateY(-120%);
        transition: transform .28s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--c-line); }
    .nav-links a.active::after { display: none; }

    /* Hero apilado */
    .hero-grid { grid-template-columns: 1fr; padding-block: 36px; }
    .hero-figure { order: -1; aspect-ratio: 5 / 4; }
    .hero-actions .btn { flex: 1; }

    /* Títulos de sección: un punto más pequeños y con aire. */
    .section-title { font-size: 1.55rem; }

    /* --- Cuadrículas en 2 columnas: elegante y compacto --- */
    .pillars,
    .cat-grid,
    .service-grid,
    .pro-grid,
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    /* Tira de confianza: apilada en filas para que los textos
       largos (Visa · Mastercard · Apple Pay) no se partan feo. */
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-block: 26px;
    }
    .trust-grid .item {
        padding-bottom: 18px;
        border-bottom: 1px solid var(--c-line);
    }
    .trust-grid .item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
    .trust-grid .item strong { font-size: .98rem; }

    /* Tarjetas de servicio compactas para 2 columnas. */
    .service-card .body { padding: 13px; gap: 6px; }
    .service-card .body h3 { font-size: .96rem; line-height: 1.25; }
    .service-card .desc { font-size: .8rem; }
    .service-card .meta .price,
    .service-card .meta .dur { font-size: .82rem; }
    .price-was { font-size: .74rem; }
    .service-card .tag,
    .tag-promo { font-size: .6rem; padding: 4px 9px; }

    /* Botones de tarjeta apilados (caben mejor en columna estrecha). */
    .card-actions { flex-direction: column; gap: 6px; }
    .card-actions .btn { padding: 10px 14px; font-size: .85rem; }

    /* Tarjetas de categoría y profesional más sobrias. */
    .cat-card .body { padding: 12px 14px 16px; }
    .cat-card h3 { font-size: .96rem; }
    .pro-card { padding: 18px 14px; }
    .pro-avatar { width: 74px; height: 74px; }

    /* Pilares y confianza compactos. */
    .pillar  { padding: 16px 12px; }
    .pillar strong { font-size: .82rem; }

    /* Footer compacto en móvil:
       marca arriba a lo ancho, las 2 columnas de enlaces lado a
       lado, y la descarga de app al final. */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        padding-block: 36px;
    }
    .footer-grid > :first-child { grid-column: 1 / -1; }   /* marca */
    .footer-grid > :last-child  { grid-column: 1 / -1; }   /* app */
    .footer-grid h4 { margin-bottom: 10px; }
    .footer-grid a  { font-size: .86rem; padding: 3px 0; }

    .field-row { grid-template-columns: 1fr; }

    .form-card,
    .dark-band { padding: 24px; }

    .logo b { font-size: 1.3rem; }

    /* En móvil el botón "Reservar" del header pasa al menú;
       solo quedan "Entrar/Salir" y la hamburguesa. */
    .nav-actions .btn-primary { display: none; }
    .nav-links a.cta-mobile { display: block; }

    /* Barra de búsqueda: que no desborde a la derecha. */
    .search-bar { flex-direction: column; }
    .search-bar input { width: 100%; }
    .search-bar .btn { width: 100%; }
}

/* El enlace CTA dentro del menú solo se ve en móvil. */
.nav-links a.cta-mobile { display: none; }

/* Pantallas muy estrechas: se mantienen las 2 columnas (se ve
   más elegante y compacto); solo se reduce un poco el padding. */
@media (max-width: 420px) {
    .container { padding-inline: 14px; }
    .pillars, .trust-grid, .cat-grid, .service-grid, .pro-grid,
    .stat-grid { gap: 12px; }
    .nav-actions .btn { padding: 10px 16px; font-size: .85rem; }
}

/* Respeto a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
