/* =============================================================
   Peluquería GLAM — Hoja de estilos principal
   Diseño propio, sin dependencias externas ni fuentes de terceros
   (cumplimiento RGPD y rendimiento). Accesibilidad WCAG 2.1 AA.
   ============================================================= */

/* ---------- Tipografías autoalojadas (con respaldo del sistema) ---------- */
@font-face {
    font-family: 'Fraunces';
    src: url('/fonts/fraunces.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Nunito Sans';
    src: url('/fonts/nunito-sans.woff2') format('woff2');
    font-weight: 300 800;
    font-display: swap;
    font-style: normal;
}

/* ---------- Variables de marca ---------- */
:root {
    --indigo:        #304890;
    --indigo-dark:   #253a75;
    --indigo-darker: #1d2e5c;
    --coral:         #c04848;
    --coral-dark:    #a5383d;   /* contraste AA sobre blanco */
    --coral-soft:    #f4e2e2;

    --ink:           #23272f;
    --muted:         #5c626e;
    --line:          #e7e5e2;
    --bg:            #ffffff;
    --bg-soft:       #faf7f4;
    --bg-cream:      #f5efe9;
    --white:         #ffffff;

    --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --radius:    14px;
    --radius-lg: 24px;
    --shadow:    0 10px 30px rgba(37, 45, 70, 0.08);
    --shadow-lg: 0 24px 60px rgba(37, 45, 70, 0.16);
    --container: 1180px;
    --transition: 0.25s ease;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 1.05rem;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--indigo-darker); font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }

/* ---------- Accesibilidad ---------- */
:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
    border-radius: 4px;
}
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--indigo);
    color: #fff;
    padding: .8rem 1.2rem;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Estructura ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.eyebrow {
    display: inline-block; font-family: var(--font-body); font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; font-size: .78rem;
    color: var(--coral-dark); margin-bottom: .8rem;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 700; font-size: 1rem;
    padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; text-decoration: none; transition: var(--transition);
    line-height: 1;
}
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-dark); color: #fff; transform: translateY(-2px); }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn--ghost:hover { background: var(--indigo); color: #fff; }
.btn--light { background: #fff; color: var(--indigo); }
.btn--light:hover { background: var(--bg-cream); color: var(--indigo-dark); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Cabecera / Navegación ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.nav__logo img { height: 46px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
    display: inline-block; padding: .55rem .85rem; border-radius: 8px;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--indigo); background: var(--bg-cream); }
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; gap: .15rem; align-items: center; font-weight: 700; font-size: .9rem; }
.lang-switch a, .lang-switch span { padding: .25rem .45rem; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--indigo); background: var(--bg-cream); }
.lang-switch .is-active { color: var(--indigo); background: var(--coral-soft); }
.nav__toggle {
    display: none; background: none; border: 2px solid var(--line);
    border-radius: 10px; width: 46px; height: 46px; cursor: pointer;
    align-items: center; justify-content: center; color: var(--indigo);
}
.nav__toggle svg { width: 24px; height: 24px; }
.nav__cta-mobile { display: none; }

@media (max-width: 940px) {
    .nav__toggle { display: inline-flex; }
    .nav__actions .btn--primary { display: none; }
    .nav__cta-mobile { display: block; }
    .nav__menu {
        position: fixed; inset: 76px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: .2rem;
        background: #fff; padding: 1rem clamp(1rem,4vw,2rem) 1.5rem;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-120%); transition: transform var(--transition);
    }
    .nav__menu.is-open { transform: translateY(0); }
    .nav__link { padding: .8rem .9rem; font-size: 1.05rem; }
    .nav__cta-mobile { margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg-cream); overflow: hidden; }
.hero__grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__title { margin-bottom: 1rem; }
.hero__title .accent { color: var(--coral); }
.hero__text { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__media {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--bg-soft);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
    position: absolute; bottom: 1.2rem; left: 1.2rem;
    background: rgba(255,255,255,.95); border-radius: 14px; padding: .8rem 1.1rem;
    box-shadow: var(--shadow); font-weight: 700; color: var(--indigo); font-size: .95rem;
}
.hero__badge span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .82rem; }
@media (max-width: 820px) {
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .hero__text { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__media { max-width: 420px; margin: 0 auto; aspect-ratio: 4/4; }
}

/* ---------- Rejilla de servicios ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; transition: var(--transition); height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--coral-soft); color: var(--coral-dark); margin-bottom: 1.1rem;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .4rem; color: var(--indigo-dark); }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.card__price { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--coral-dark); }

/* ---------- Tarjeta de servicio con foto ---------- */
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__media { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__icon {
    position: absolute; top: -24px; left: 20px; width: 48px; height: 48px;
    border-radius: 12px; background: #fff; color: var(--coral-dark);
    display: grid; place-items: center; box-shadow: var(--shadow);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__body { position: relative; padding: 2rem 1.6rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { color: var(--indigo-dark); margin-bottom: .4rem; }
.service-card__body p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.service-card__body .card__price { margin-top: auto; padding-top: .8rem; }

/* ---------- Galería ---------- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 1/1; background: var(--bg-soft); box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem;
    background: linear-gradient(transparent, rgba(29,46,92,.82));
    color: #fff; font-weight: 600; font-size: .95rem;
}

/* ---------- Franja "Sobre" / imagen + texto ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
}

/* ---------- Datos / horario ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info-card h3 { display: flex; align-items: center; gap: .6rem; color: var(--indigo-dark); font-family: var(--font-body); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--coral-dark); flex: none; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row span:last-child { font-weight: 700; color: var(--indigo-dark); }

/* ---------- CTA banda ---------- */
.cta-band { background: linear-gradient(135deg, var(--indigo), var(--indigo-darker)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 46ch; margin-inline: auto; margin-bottom: 1.8rem; font-size: 1.1rem; }
.cta-band .btn--light { color: var(--indigo-dark); }

/* ---------- Formulario ---------- */
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--indigo-dark); }
.form-field .req { color: var(--coral-dark); }
.form-field input, .form-field textarea {
    width: 100%; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 12px;
    font: inherit; color: var(--ink); background: #fff; transition: border-color var(--transition);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--indigo); outline: none; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-error { color: var(--coral-dark); font-size: .9rem; margin-top: .35rem; font-weight: 600; }
.form-check { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.3rem; font-size: .95rem; color: var(--muted); }
.form-check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--indigo); }
.hp-field { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 600; }
.alert--success { background: #e6f4ea; color: #1c6b3a; border: 1px solid #b7e0c4; }
.alert--error { background: var(--coral-soft); color: var(--coral-dark); border: 1px solid #e6bcbc; }

/* ---------- Página interior / cabecera ---------- */
.page-hero { background: var(--bg-cream); padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Contenido legal / prosa ---------- */
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6rem; color: var(--indigo-dark); }
.prose p, .prose li { color: #3b414d; }
.prose a { color: var(--indigo); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-cream); }
.prose .updated { color: var(--muted); font-style: italic; font-size: .95rem; }

/* ---------- Mapa del sitio ---------- */
.sitemap-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 640px) { .sitemap-cols { grid-template-columns: 1fr; } }
.sitemap-cols ul { list-style: none; padding: 0; }
.sitemap-cols li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.sitemap-cols a { font-weight: 600; text-decoration: none; }
.sitemap-cols a:hover { text-decoration: underline; }

/* ---------- Pie ---------- */
.kit-band { background: #fff; border-top: 1px solid var(--line); padding: 1.6rem 0; }
.kit-band img { max-height: 62px; width: auto; margin-inline: auto; }
.site-footer { background: var(--indigo-darker); color: rgba(255,255,255,.82); padding-block: 3rem 1.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.footer-logo { height: 54px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { margin-bottom: .5rem; display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; opacity: .8; }
.social { display: flex; gap: .7rem; margin-top: .3rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.social a:hover { background: var(--coral); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 900;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366;
    display: grid; place-items: center; box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
    position: fixed; inset: auto 1rem 1rem 1rem; z-index: 1500; max-width: 460px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 1.4rem; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.cookie-banner p { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner .btn { padding: .6rem 1.1rem; font-size: .92rem; }

/* ---------- Mapa bajo consentimiento ---------- */
.map-consent { background: var(--bg-cream); min-height: 300px; display: grid; place-items: center; padding: 2.5rem 1rem; }
.map-consent__box { text-align: center; max-width: 420px; color: var(--indigo-dark); }
.map-consent__box svg { color: var(--coral-dark); margin-bottom: .6rem; }
.map-consent__box p { color: var(--muted); margin-bottom: 1rem; }
.map-consent__box .btn { margin: .25rem; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.list-plain { list-style: none; padding: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.chip-list li { background: var(--coral-soft); color: var(--coral-dark); padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
