/* ===== Hairmony Hair Studio · estilos ===== */
:root {
  --cream: #f5efe4;      /* blanco hueso */
  --sand: #ebe1d0;       /* beige */
  --taupe: #c9ab6b;      /* dorado claro */
  --taupe-d: #a8843f;    /* dorado */
  --gold: #c8a557;
  --gold-d: #a8843f;
  --ink: #141210;        /* negro */
  --muted: #6b6259;
  --white: #fffdf8;
  --line: #e3d6c1;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 Roboto, system-ui, sans-serif; color: var(--ink); background: var(--cream); }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Encabezado */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(245, 239, 228, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.logo span { font-family: Roboto, sans-serif; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--taupe-d); margin-left: 6px; }
.links { display: flex; gap: 26px; font-size: 14px; letter-spacing: .04em; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 6px 12px; font: 500 12px Roboto, sans-serif; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
@media (max-width: 820px) { .links { display: none; } .logo span { display: none; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:hover { background: #3a332e; }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.full { width: 100%; }
.btn.gold { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn.gold:hover { background: #d8b86b; }
.btn.ghost.light { border-color: rgba(255,253,248,.7); color: var(--white); }
.btn.ghost.light:hover { background: var(--white); color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero: el nombre entre adornos colgantes animados */
.hero { position: relative; min-height: min(94vh, 880px); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #2b2520 0%, #141210 62%, #0b0a09 100%); }
.hero-in { position: relative; z-index: 2; padding-top: 30vh; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; }
.hero .cta { margin-top: 34px; }
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: 12px; color: var(--gold); margin: 0 0 12px; }
.hero .eyebrow { color: #e6c983; letter-spacing: .3em; }
.brand-title { font-size: clamp(66px, 13vw, 168px); font-weight: 500; line-height: .9; color: var(--white);
  background: linear-gradient(180deg, #fffdf8 0%, #f1e6d2 55%, #d9bf86 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.55)); }
.brand-title span { display: block; font-family: Roboto, sans-serif; font-weight: 400; font-size: clamp(13px, 1.6vw, 18px); letter-spacing: .7em; text-transform: uppercase;
  -webkit-text-fill-color: #e6c983; color: #e6c983; margin: 16px 0 0 .7em; }
.lead { font-size: 18px; color: var(--muted); max-width: 48ch; margin: 18px 0 0; font-weight: 300; }
.hero .lead { color: rgba(255,253,248,.82); margin-top: 22px; }
.lead.dark { color: var(--muted); }
.hero .cta { justify-content: center; }
.rating { margin: 22px 0 0; font-size: 14px; color: rgba(255,253,248,.75); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* Lazos y bolas */
.ornaments { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orn { position: absolute; top: -8px; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: sway var(--dur) ease-in-out var(--delay) infinite alternate; }
.ribbon { width: var(--rw); height: var(--len); background: linear-gradient(90deg, #8f1018, #c81d29 45%, #a3141e); box-shadow: 0 0 6px rgba(0,0,0,.35); }
.bow { position: relative; width: calc(var(--size) * .9); height: calc(var(--size) * .32); margin-top: -2px; }
.bow::before, .bow::after { content: ""; position: absolute; top: 0; width: 50%; height: 100%; background: radial-gradient(circle at 50% 50%, #e0313d, #9c121c); }
.bow::before { left: 0; border-radius: 60% 10% 10% 60%; transform: rotate(-12deg); }
.bow::after { right: 0; border-radius: 10% 60% 60% 10%; transform: rotate(12deg); }
.ball { width: var(--size); height: var(--size); border-radius: 50%; margin-top: -3px; position: relative; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.ball.disco { background:
  repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px calc(var(--size) / 9)),
  repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 1px, transparent 1px calc(var(--size) / 9)),
  radial-gradient(circle at 35% 30%, #ffffff 0%, #e9e4da 18%, #b6b0a6 45%, #6f6a63 75%, #2e2b28 100%); }
.ball.disco::after { content: "✦"; position: absolute; left: 24%; top: 14%; color: #fff; font-size: calc(var(--size) * .3); text-shadow: 0 0 10px #fff; animation: glint 2.6s ease-in-out var(--delay) infinite; }
.ball.red { background: radial-gradient(circle at 35% 30%, #ff8a8a 0%, #d8222f 30%, #8d0f17 80%); }
.ball.gold { background: radial-gradient(circle at 35% 30%, #fff1c4 0%, #d8b25a 32%, #8a6a26 85%); }
.ball.silver { background: radial-gradient(circle at 35% 30%, #ffffff 0%, #cfcac2 32%, #6e6a64 88%); }
.ball::before { content: ""; position: absolute; top: -5px; left: 50%; transform: translateX(-50%); width: 26%; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #8a6a26, #e6c983, #8a6a26); }
@keyframes sway { from { transform: rotate(calc(var(--amp) * -1)); } to { transform: rotate(var(--amp)); } }
@keyframes glint { 0%, 100% { opacity: 0; transform: scale(.4); } 45%, 55% { opacity: 1; transform: scale(1); } }

/* Brillitos que flotan */
.sparkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #f3dc9e; box-shadow: 0 0 8px 2px rgba(243,220,158,.6); opacity: 0; animation: twinkle var(--d) ease-in-out var(--dl) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }

@media (prefers-reduced-motion: reduce) { .orn, .ball.disco::after, .spark { animation: none; } .spark { opacity: .5; } }
@media (max-width: 820px) {
  .hero { min-height: 92vh; }
  .hero-in { padding-top: 36vh; padding-bottom: 56px; }
  .brand-title span { letter-spacing: .5em; }
  .hero .eyebrow { letter-spacing: .14em; font-size: 11px; }
}

/* Espacios para fotos (se reemplazan por <img> cuando estén las fotos reales) */
.ph { position: relative; background: linear-gradient(145deg, #2a2520, #141210); border-radius: var(--radius); display: flex; align-items: flex-end; overflow: hidden; }
.ph span { margin: 12px; background: rgba(200,165,87,.92); color: var(--ink); font-size: 12px; padding: 4px 10px; border-radius: 999px; }

/* Secciones */
.section { padding: 80px 0; }
.section.alt { background: var(--sand); }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--taupe-d); margin: 0 0 8px; }
h2 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 28px; }
h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin-top: 14px; }
.note { font-size: 13px; color: var(--muted); background: #fff6dc; border: 1px dashed #e0c46c; border-radius: 8px; padding: 6px 10px; display: inline-block; margin-top: 18px; }
.todo { background: #fff6dc; color: #7a5a00; font-size: 13px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.svc .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-size: 20px; color: var(--gold); margin-bottom: 14px; }
.svc h3 { font-size: 26px; margin-bottom: 6px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }

/* Galería */
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.g1 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g1 { grid-column: span 2; grid-row: span 1; }
}

/* Marcas */
.olaplex-badge { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 18px; border: 1px solid var(--gold); }
.ob-logo { height: 26px; width: auto; filter: invert(1); }
.ob-text { color: rgba(255,253,248,.8); font-size: 15px; }
.ob-link { color: var(--gold); text-decoration: none; font-weight: 500; white-space: nowrap; }
@media (max-width: 820px) {
  .olaplex-badge { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .ob-logo { justify-self: center; }
}
.brands { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.brands li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); width: calc(25% - 11px); height: 110px; display: grid; place-items: center; padding: 18px 22px; }
.brands img { max-width: 100%; max-height: 52px; object-fit: contain; }
.ob-logo { height: 26px; width: auto; filter: invert(1); }
@media (max-width: 820px) {
  .brands li { width: calc(50% - 7px); height: 96px; }
  .ob-logo { justify-self: center; }
}

/* Tratamientos Olaplex */
/* Tratamientos Olaplex */
.treatments { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 30px; }
.trt { width: calc(33.333% - 12px); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 980px) { .trt { width: calc(50% - 9px); } }
@media (max-width: 640px) { .trt { width: 100%; } }
.trt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.trt-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font: 600 24px "Cormorant Garamond", serif; }
.trt-ico { width: 34px; height: 34px; fill: none; stroke: var(--gold-d); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.trt h3 { font-size: 27px; line-height: 1.1; }
.trt-time { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); font-weight: 500; }
.trt p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.trt p:not(.trt-time) { flex: 1; }
.trt .btn { align-self: stretch; text-align: center; }
.benefits { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.benefits li { background: var(--cream); padding: 16px 12px; text-align: center; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.benefits li::before { content: "✦"; display: block; color: var(--gold); font-size: 14px; margin-bottom: 6px; }
@media (max-width: 760px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.trt-help { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; text-align: center; }
.trt-help p { margin: 0; font-size: 17px; }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 24px; }
.ig-item { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ig-item::after { content: ""; position: absolute; inset: 0; background: rgba(20,18,16,0); transition: background .3s ease; }
.ig-item:hover img { transform: scale(1.04); }
.ig-item:hover::after { background: rgba(20,18,16,.18); }
@media (max-width: 820px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-item:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
  .ig-item:first-child img { object-position: center 25%; }
}

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

.hours { border-collapse: collapse; margin-bottom: 12px; }
.hours td { padding: 4px 24px 4px 0; }

.map { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12); }
.map .map-btn { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--white); color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* Pie */
.footer { background: var(--ink); color: #cfc5bb; border-top: 3px solid var(--gold); padding: 26px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* WhatsApp flotante */
.fab { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #0b3a1f; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); z-index: 40; }
.fab svg { width: 30px; height: 30px; }
