:root {
    --brand: #cc0470;
    --brand-dark: #a1035a;
    --nude: #f6eee9;
    --nude-line: #e6d8d0;
    --grey: #6e6e70;
    --ink: #2f2c2b;
    --text: #4d4846;
    --bg: #ffffff;
    --display: "Cormorant Garamond", Georgia, serif;
    --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.75 var(--body);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
}

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

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .08em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 300; margin: 0 0 1.5rem; color: var(--grey); }
h4 { font-size: 1.15rem; font-weight: 500; margin: 0 0 .6rem; letter-spacing: .06em; }
.h-small { font-family: var(--body); font-size: .95rem; font-weight: 700; letter-spacing: .14em; color: var(--ink); margin: 0 0 1rem; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.center .sprig, .center > .btn { margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.small { display: block; font-size: .85rem; color: var(--grey); }

.sprig { display: block; width: 170px; height: auto; color: var(--brand); opacity: .75; margin: -.25rem 0 1.75rem; }

/* ── Botones ─────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.6rem;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn svg { width: 1.25em; height: 1.25em; }
.btn-quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Cabecera ────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--nude-line);
}
.topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 72px;
}
.topbar-social { display: flex; gap: 1rem; margin: 0; }
.topbar-social a { color: var(--ink); display: inline-flex; }
.topbar-social a:hover { color: var(--brand); }
.topbar-social svg { width: 20px; height: 20px; }
.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--brand);
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.1;
}
.brand small { display: block; font-family: var(--body); font-size: .62rem; font-weight: 600; letter-spacing: .22em; color: var(--grey); }
.brand img { border-radius: 50%; }
.topbar-cta {
    justify-self: end;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
}
.topbar-cta:hover { color: var(--brand); }

.mainnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .25rem 2.25rem;
    padding: .7rem 16px;
    border-top: 1px solid var(--nude-line);
}
.mainnav a {
    color: var(--ink);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
}
.mainnav a:hover { color: var(--brand); }

@media (max-width: 760px) {
    html { scroll-padding-top: 80px; }
    .topbar-inner { grid-template-columns: 1fr auto; }
    .topbar-social, .mainnav { display: none; }
    .brand { font-size: 1.15rem; }
    .brand img { width: 40px; height: 40px; }
    .topbar-cta {
        padding: .45rem .8rem;
        border: 1px solid var(--brand);
        color: var(--brand);
        font-size: .75rem;
        text-transform: uppercase;
    }
}

/* ── Portada ─────────────────────────────────────── */
.hero {
    background:
        radial-gradient(ellipse at 50% 0%, #fff 0%, transparent 70%),
        linear-gradient(180deg, var(--nude) 0%, #fbf7f4 100%);
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
    text-align: center;
}
.hero-logo {
    width: min(260px, 62%);
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    box-shadow: 0 18px 50px rgba(120, 80, 70, .14);
}
.hero h1 { color: var(--ink); }
.lead { font-size: 1.15rem; font-weight: 300; font-style: italic; max-width: 36em; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2.25rem; }

/* ── Secciones ───────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-nude { background: var(--nude); }
.signature { font-weight: 700; color: var(--ink); margin: 1.75rem 0 2rem; }

.pillars {
    list-style: none;
    padding: 0;
    margin: 2.75rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.pillars li { display: flex; flex-direction: column; align-items: center; gap: .75rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.pillars svg { width: 48px; height: 48px; color: var(--brand); }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; gap: 2rem; } }

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.cards > .card { flex: 1 1 240px; max-width: 360px; }
.card {
    background: var(--nude);
    padding: 1.75rem 1.6rem;
}
.card p { margin: 0; font-size: .98rem; }

.cat-cards { margin-top: 3rem; }
.card-link { color: var(--text); text-decoration: none; }
.card-link:hover { color: var(--text); }
.card-link:hover h4 { color: var(--brand); }

.note { margin-top: 3rem; text-align: center; }

/* ── Páginas de categoría ────────────────────────── */
.page-hero {
    background: linear-gradient(180deg, var(--nude) 0%, #fbf7f4 100%);
    padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { margin-bottom: 1rem; }
.breadcrumb { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin: 0 0 1.5rem; }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

.treatments { display: grid; gap: 0; }
.treatment { padding: 2rem 0; border-bottom: 1px solid var(--nude-line); }
.treatment:first-child { padding-top: 0; }
.treatment:last-child { border-bottom: 0; }
.treatment h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 400; color: var(--ink); margin: 0 0 .6rem; }
.treatment p { margin: 0; }

.other-cats { padding-top: clamp(3rem, 7vw, 4.5rem); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; }
.chips a {
    padding: .5rem 1rem;
    border: 1px solid var(--nude-line);
    color: var(--ink);
    font-size: .88rem;
    text-decoration: none;
}
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.chips a[aria-current="page"] { background: var(--nude); border-color: var(--nude); color: var(--grey); pointer-events: none; }

/* ── Contacto, horario, ubicación ────────────────── */
.info-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    text-align: center;
}
.info-cols p { margin: 0 0 .9rem; }
.info-cols a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.info-icon { display: block; width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--brand); }
@media (max-width: 760px) { .info-cols { grid-template-columns: 1fr; } }

.hours { margin: 0 auto .75rem; border-collapse: collapse; }
.hours th, .hours td { padding: .3rem .6rem; text-align: left; font-size: .98rem; }
.hours th { font-weight: 400; }
.hours td { font-weight: 600; color: var(--ink); }

/* ── Pie ─────────────────────────────────────────── */
.footer { background: #fff; border-top: 1px solid var(--nude-line); padding: 2rem 0; font-size: .82rem; color: var(--grey); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; }
.footer p { margin: 0; }
.footer a { color: var(--ink); }
.footer a:hover { color: var(--brand); }
.footer-social { display: flex; gap: 1.25rem; }

/* ── Páginas de texto (aviso legal, 404) ─────────── */
.page { padding: clamp(3rem, 7vw, 5rem) 0; }
.page h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.page-404 { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.page-404 .code { font-family: var(--display); font-size: 5rem; font-weight: 300; color: var(--brand); margin: 0; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

@media (max-width: 560px) {
    h2 br { display: none; }
}
