/* LA PERLA — Paleta y medidas compartidas. Sin frameworks. */
:root {
  --cream: #faf6f0;
  --sand: #e8dccb;
  --rose: #d9c0ae;
  --taupe: #a68b77;
  --brown: #5c4637;
  --gold: #c2a173;
  --ink: #44352b;
  --muted: #746353;
  --white: #fffdfa;
  --line: #ded2c3;
  --dark: #493b30;
  --radius: 12px;
  --shadow: 0 12px 35px rgb(92 70 55 / 6%);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
}

/* BASE / ACCESIBILIDAD */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--brown); font: 400 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, summary, a { touch-action: manipulation; }
button:focus-visible, summary:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #85613b; outline-offset: 5px; }
::selection { background: var(--sand); color: var(--ink); }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h2, h3 { font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.55rem); line-height: 1.06; letter-spacing: -.025em; }
h2 em { font-weight: 400; }
h3 { line-height: 1.2; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 64px; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; line-height: 1.7; margin-bottom: 15px; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 22px; border: 1px solid var(--brown); border-radius: 6px; background: var(--brown); color: var(--white); font-size: .875rem; font-weight: 500; text-align: center; line-height: 1.5; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.button:hover { background: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.button .icon { width: 19px; height: 19px; }
.button-outline { background: transparent; color: var(--brown); border-color: #a68b77; }
.button-outline:hover { background: var(--sand); color: var(--ink); }
.button-small { min-height: 44px; padding: 10px 20px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--taupe); font-size: .875rem; }
.text-link:hover { text-decoration-color: currentColor; }
.desktop-only { display: none; }

/* HEADER / NAVIGATION */
.site-header { position: sticky; z-index: 30; top: 0; background: rgb(250 246 240 / 97%); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; font: 500 2.1rem/1 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.wordmark-dot { color: #987a52; font-size: 1.4rem; align-self: flex-start; margin-left: 2px; margin-top: 4px; }
.menu-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 44px; width: 44px; padding: 10px; color: var(--brown); background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.menu-toggle span { width: 20px; height: 1px; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.main-nav { width: 100%; display: flex; flex-direction: column; padding-bottom: 18px; }
.main-nav > a:not(.button) { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: .875rem; }
.main-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 6px; }
.js .menu-toggle { display: flex; }
.js .main-nav { display: none; }
.js .main-nav.is-open { display: flex; }

/* 01 / COMPACT HERO */
.hero { background: radial-gradient(ellipse at 82% 30%, #eee1d2 0, transparent 57%), var(--cream); }
.hero-inner { position: relative; padding-top: 32px; padding-bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-content { text-align: center; width: 100%; }
.hero-location { display: flex; justify-content: center; align-items: center; gap: 7px; margin-bottom: 4px; font-size: .625rem; letter-spacing: .16em; }
.hero-location .icon { width: 13px; height: 13px; }
.hero-logo { width: min(100%, 390px); margin-inline: auto; }
.hero-services { margin: 0 auto 24px; font-size: .625rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hero-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px 15px; align-items: center; justify-content: center; max-width: 380px; margin-inline: auto; }
.hero-actions > .button:first-child { grid-column: 1 / -1; }
.hero-actions > .button-outline { font-size: .75rem; padding: 11px 9px; min-height: 44px; }
.hero-actions > .text-link { justify-content: center; font-size: .8125rem; }
.hero-bottom { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 20px; border-block: 1px solid var(--line); font-size: .625rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-bottom i { font-style: normal; font-size: .8rem; color: #8c6c41; }

/* 02 / SERVICES */
.section-heading { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.section-heading > p { max-width: 360px; color: var(--muted); font-size: .9375rem; }
.services-grid { display: grid; gap: 16px; align-items: start; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: clip; box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.service-card summary { padding: 25px 26px 0; }
.service-card summary:hover { background: #f6efe5; }
.service-card summary:focus-visible { outline-offset: -5px; border-radius: var(--radius); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 19px; }
.service-icon { width: 43px; height: 43px; fill: none; stroke: #8c6c49; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.card-number { color: var(--muted); font: italic 1.25rem var(--serif); }
.service-card h3 { font-size: 2.15rem; margin-bottom: 7px; }
.card-description { display: block; font-size: .875rem; color: var(--muted); }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 25px; padding: 15px 0; border-top: 1px solid var(--line); font-size: .8125rem; }
.card-action .icon { width: 20px; height: 20px; transition: transform .2s; }
.service-card[open] .card-action .icon, .faq-item[open] summary > .icon { transform: rotate(45deg); }
.service-content { padding: 0 25px 12px; border-top: 1px solid var(--line); }
.treatment-list { padding: 0; margin: 0; list-style: none; }
.treatment-list li { padding: 20px 0 14px; border-bottom: 1px solid var(--line); }
.treatment-list li:last-child { border-bottom: 0; }
.treatment-list h4 { font: 600 .9375rem/1.5 var(--sans); }
.price { font-size: .8125rem; margin-block: 5px; color: var(--muted); }
.service-booking { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 5px; font-size: .8125rem; text-decoration: underline; text-underline-offset: 4px; }
.service-booking .icon { width: 17px; height: 17px; }
.treatment-group { font-size: .8125rem; font-weight: 600; border-block: 1px solid var(--line); padding-block: 12px; }
.section-note { font-size: .75rem; color: var(--muted); margin-top: 18px; }
.makeup-quote { padding-top: 20px; }
.makeup-quote h4 { font-size: .9375rem; line-height: 1.5; margin-bottom: 10px; }
.makeup-quote p { font-size: .875rem; color: var(--muted); }
.makeup-quote .quote-note { font-size: .8125rem; margin-block: 14px 8px; }
.advice { margin-top: 30px; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 22px; background: #efe5d8; }
.advice-intro { display: flex; align-items: center; gap: 18px; }
.advice-intro > .icon { width: 31px; height: 31px; color: #85633d; }
.advice h3 { font-size: 1.5rem; margin-bottom: 5px; }
.advice p { color: var(--muted); font-size: .875rem; }
.advice > .button { flex-shrink: 0; }

/* 03 / DIFFERENTIALS */
.why-us { background: #f0e8de; }
.center-heading { text-align: center; margin-bottom: 40px; }
.benefits-grid { display: grid; gap: 35px; }
.benefit { text-align: center; padding-inline: 12px; }
.benefit > .icon { width: 31px; height: 31px; margin-bottom: 14px; color: #8a6947; }
.benefit h3 { font-size: 1.5rem; margin-bottom: 10px; }
.benefit p { max-width: 290px; margin-inline: auto; color: var(--muted); font-size: .875rem; }

/* 04 / PORTFOLIO */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.filter { min-height: 44px; padding: 8px 15px; background: transparent; color: var(--brown); border: 1px solid var(--line); border-radius: 30px; font-size: .8125rem; transition: background .2s; }
.filter:hover { background: var(--sand); }
.filter.active { background: var(--brown); color: var(--white); border-color: var(--brown); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 14px; }
.gallery-open { position: relative; display: block; padding: 0; border: 0; border-radius: var(--radius); background: var(--sand); overflow: hidden; width: 100%; }
.gallery-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
.gallery-open:hover img { transform: scale(1.035); }
.image-expand { position: absolute; bottom: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; background: rgb(250 246 240 / 90%); border-radius: 50%; }
.image-expand .icon { width: 16px; height: 16px; }
.gallery-item figcaption { margin-top: 12px; font: 500 1.2rem/1.15 var(--serif); }
.gallery-item figcaption span { display: block; margin-top: 6px; font: 400 .75rem/1.5 var(--sans); color: var(--muted); }
.gallery-empty { padding: 28px; background: #f0e8de; border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-empty p { max-width: 560px; font-size: .9375rem; }

/* 05 / EXPERIENCES */
.experiences { background: #f1e9df; }
.experiences .center-heading { margin-bottom: 32px; }
.reviews-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--taupe) transparent; padding: 8px 4px 20px; }
.review { flex: 0 0 91%; display: flex; flex-direction: column; scroll-snap-align: start; padding: 27px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stars { display: flex; gap: 3px; color: #977141; margin-bottom: 20px; }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke-width: 0; }
.review-rating { min-height: 24px; margin-bottom: 20px; font-size: .8125rem; color: var(--brown); }
.review-rating.stars { align-items: center; color: #977141; }
.review blockquote { font-size: .9375rem; line-height: 1.85; flex-grow: 1; margin-bottom: 24px; }
.review-person { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f0e7db; font: 500 1rem var(--serif); }
.avatar .icon { width: 19px; height: 19px; }
.review h3 { font: 600 .8125rem/1.6 var(--sans); }
.review-person p { font-size: .75rem; color: var(--muted); }
.swipe-hint { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 12px; }

/* 06 / CARE & FAQ */
.care-grid { display: grid; gap: 48px; }
.care-intro { margin-top: 22px; max-width: 400px; font-size: .9375rem; color: var(--muted); }
.care-tips { display: grid; gap: 24px; margin-top: 30px; }
.care-tips article { display: flex; gap: 20px; align-items: flex-start; }
.care-tips .icon { width: 30px; height: 30px; color: #8c6c49; }
.care-tips h3 { font-size: 1.4rem; margin-bottom: 6px; }
.care-tips p { max-width: 365px; font-size: .875rem; color: var(--muted); }
.faq-heading { font-size: 1.8rem; margin-bottom: 20px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 3px; font-size: .875rem; font-weight: 500; }
.faq-item summary .icon { width: 18px; height: 18px; transition: transform .2s; }
.faq-item p { font-size: .875rem; color: var(--muted); padding: 0 24px 22px 3px; }
.faq-help { margin-top: 20px; font-size: .8125rem; }
.faq-help .text-link { font-size: inherit; }

/* 07 / RESERVATION */
.booking-section { background: var(--dark); color: var(--cream); padding-block: 52px; }
.booking-inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.booking-section .eyebrow { color: #ddc9ac; }
.booking-section h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.booking-section h2 em { color: #e0c6a6; }
.booking-section p:not(.eyebrow) { font-size: .875rem; color: #e4d8ca; margin-top: 22px; }
.button-light { background: var(--cream); border-color: var(--cream); color: var(--brown); flex-shrink: 0; }
.button-light:hover { background: var(--sand); color: var(--ink); }
.booking-section a:focus-visible { outline-color: var(--gold); }

/* 08 / CONTACT & FOOTER */
.contact-grid { display: grid; gap: 35px; }
.contact-detail { display: flex; align-items: flex-start; gap: 15px; margin-top: 26px; }
.contact-detail > .icon { width: 21px; height: 21px; margin-top: 4px; }
.contact-detail h3 { font: 600 .875rem/1.7 var(--sans); margin-bottom: 6px; }
.contact-detail p { font-size: .875rem; color: var(--muted); }
.contact-detail p + p { margin-top: 12px; }
.contact-detail small { display: block; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.contact-phone { margin-top: 22px; }
.map-frame { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; align-self: center; width: 100%; }
.map-frame iframe { display: block; width: 100%; height: 310px; border: 0; filter: saturate(.45); }
.map-frame > p { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px; font-size: .8125rem; }
.map-frame .icon { width: 17px; height: 17px; }
.site-footer { border-top: 1px solid var(--line); padding-bottom: 90px; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 28px; }
.footer-top > p { font: italic 1.15rem var(--serif); }
.social-links { display: flex; gap: 20px; }
.social-links > a { min-height: 44px; display: inline-flex; align-items: center; font-size: .8125rem; }
.social-links > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 5px; text-align: center; font-size: .75rem; color: var(--muted); }
.whatsapp-float { position: fixed; z-index: 25; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 9px; width: 54px; height: 54px; border-radius: 50%; background: var(--brown); color: var(--white); border: 1px solid #b69a7c; box-shadow: 0 6px 22px rgb(40 30 20 / 20%); transition: transform .2s, background .2s; }
.whatsapp-float:hover { transform: translateY(-3px); background: var(--ink); }
.whatsapp-float span { display: none; }

/* LIGHTBOX / MOTION — Content stays visible if JS is unavailable. */
.lightbox { border: 0; padding: 0; max-width: min(92vw, 680px); width: fit-content; max-height: 92dvh; background: var(--cream); color: var(--brown); border-radius: var(--radius); }
.lightbox::backdrop { background: rgb(25 19 15 / 80%); }
.lightbox-body { position: relative; padding: 12px; }
.lightbox img { max-height: 76dvh; width: auto; margin: auto; object-fit: contain; border-radius: 6px; }
.lightbox p { text-align: center; padding: 12px 8px 4px; font-size: .875rem; }
.lightbox-close { position: absolute; right: 20px; top: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--brown); }
.noscript-note { padding: 20px; background: var(--sand); font-size: .875rem; }
.reveal.is-visible { animation: appear .55s ease both; }
@keyframes appear { from { opacity: .4; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* TABLET */
@media (min-width: 600px) {
  .container { width: min(1180px, calc(100% - 64px)); }
  .section { padding-block: 80px; }
  .services-grid, .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { justify-content: center; padding-block: 40px; min-height: 340px; }
  .hero-services { font-size: .75rem; letter-spacing: .16em; }
  .hero-content { flex: 1; }
  .hero-logo { width: min(100%, 470px); }
  .hero-location { font-size: .6875rem; }
  .hero-bottom { gap: 35px; font-size: .6875rem; padding-block: 16px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .gallery-item figcaption { font-size: 1.4rem; }
  .filter { padding-inline: 23px; }
  .review { flex-basis: 47%; }
  .benefits-grid { gap: 42px; }
  .map-frame iframe { height: 360px; }
}

/* DESKTOP */
@media (min-width: 1000px) {
  .section { padding-block: 92px; }
  .header-inner { min-height: 82px; flex-wrap: nowrap; }
  .main-nav, .js .main-nav, .js .main-nav.is-open { display: flex; width: auto; flex-direction: row; align-items: center; gap: 30px; padding: 0; }
  .js .menu-toggle { display: none; }
  .hero-inner { min-height: 380px; padding-block: 44px; }
  
  .hero-location { font-size: .75rem; margin-bottom: 14px; }
  .hero-logo { width: 510px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 11px; max-width: 520px; }
  .hero-actions > .button-outline { font-size: .8125rem; padding: 13px 16px; min-height: 48px; }
  .hero-actions > .text-link { flex-basis: 100%; min-height: 44px; }
  .hero-bottom { gap: 50px; }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; margin-bottom: 40px; }
  .section-heading > p { padding-bottom: 4px; }
  .desktop-only { display: initial; }
  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .service-card summary { padding: 28px 24px 0; }
  .service-card h3 { font-size: 2.2rem; }
  .card-description { font-size: .8125rem; }
  .card-top { margin-bottom: 25px; }
  .advice { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 35px; margin-top: 35px; }
  .benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .benefit + .benefit { border-left: 1px solid #d5c6b5; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 35px 24px; }
  .gallery-open img { aspect-ratio: 4 / 5; }
  .reviews-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .swipe-hint { display: none; }
  .review { padding: 30px; }
  .care-grid { grid-template-columns: 1fr 1.1fr; gap: 95px; }
  .faq-column { padding-top: 6px; }
  .booking-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .booking-section { padding-block: 65px; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 95px; }
  .footer-top { flex-direction: row; justify-content: space-between; padding-block: 30px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .site-footer { padding-bottom: 35px; }
  .whatsapp-float { width: auto; height: 50px; padding: 0 20px; border-radius: 30px; right: 24px; bottom: 24px; }
  .whatsapp-float span { display: inline; font-size: .8125rem; }
}

/* Preserve readability at zoom and user motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reviews-track { scroll-behavior: auto; scroll-snap-type: none; }
}
