/* ===================== Secciones ===================== */

/* ---------- Hero: la fachada "enciende sus luces" al cargar ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: max(620px, 100svh);
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--c-ink); color: #F4EFE7;
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  filter: brightness(.38) saturate(.7); transform: scale(1.06);
  transition: filter 2.4s var(--ease), transform 6s var(--ease);
}
.is-lit .hero__media img { filter: brightness(.82) saturate(.95); transform: scale(1); }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 26, 23, .55) 0%, rgba(28, 26, 23, 0) 22%),
    linear-gradient(0deg, rgba(28, 26, 23, .96) 0%, rgba(28, 26, 23, .55) 38%, rgba(28, 26, 23, 0) 70%),
    linear-gradient(90deg, rgba(28, 26, 23, .82) 0%, rgba(28, 26, 23, .45) 40%, rgba(28, 26, 23, 0) 70%);
}
.hero__glow {
  position: absolute; z-index: 1; left: 50%; bottom: -30%; width: 120vmax; height: 60vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(214, 168, 102, .22), rgba(214, 168, 102, 0));
  opacity: 0; transition: opacity 2.8s var(--ease) .4s; pointer-events: none;
}
.is-lit .hero__glow { opacity: 1; }
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 9vh, 6.5rem); padding-top: calc(var(--header-h) + 3rem); }
.hero__title {
  font-size: var(--fs-h1); font-weight: 300; margin-bottom: .4em; line-height: .98;
  text-shadow: 0 0 40px rgba(214, 168, 102, .18);
}
.hero__title .line { display: block; }
.hero__text { max-width: 46ch; color: #DCD3C5; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__title, .hero__text, .hero__ctas { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.is-lit .hero__title { opacity: 1; transform: none; transition-delay: .9s; }
.is-lit .hero__text { opacity: 1; transform: none; transition-delay: 1.15s; }
.is-lit .hero__ctas { opacity: 1; transform: none; transition-delay: 1.35s; }

/* Palabras verticales, como el vinilo del ventanal */
.hero__words {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(3.5rem, 9vh, 6.5rem);
  display: grid; gap: .55rem; text-align: left;
  font-size: .72rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: #E7DDCD;
  opacity: 0; transition: opacity 1.6s var(--ease) 1.6s;
}
.hero__words::after { content: ''; display: block; width: 2.6rem; height: 1px; background: currentColor; margin-top: .4rem; }
.is-lit .hero__words { opacity: .85; }
@media (max-width: 900px) { .hero__words { display: none; } }
@media (max-width: 640px) {
  .hero__media img { object-position: 46% 40%; }
  .hero__ctas .btn { flex: 1 1 100%; }
}
@media (min-aspect-ratio: 2/1) and (min-width: 900px) { .hero__media img { object-position: 50% 30%; } }

/* ---------- Sobre el estudio ---------- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: 1.25fr .75fr; align-items: center; }
.about__text { max-width: 620px; }
.about__text .lead { margin-bottom: 1.25em; }
.about__text p:not(.lead) { color: var(--muted); }
.about__figure { margin: 0; position: relative; }
.about__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--r-sm) var(--r-sm); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__figure { max-width: 420px; }
}

.gallery-block { margin-top: clamp(5rem, 10vw, 8rem); }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 15vw, 210px); }
.gallery li:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery li:nth-child(2) { grid-column: span 5; }
.gallery li:nth-child(3) { grid-column: span 5; }
.gallery li:nth-child(4) { grid-column: span 4; }
.gallery li:nth-child(5) { grid-column: span 4; }
.gallery li:nth-child(6) { grid-column: span 4; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--c-ink-2); border-radius: var(--r-sm); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); filter: saturate(1); }
.gallery__cap { position: absolute; left: .9rem; bottom: .7rem; color: #F4EFE7; font-size: var(--fs-xs); opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.gallery button:hover .gallery__cap, .gallery button:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .gallery li:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery li:nth-child(1), .gallery li:last-child:nth-child(even) { grid-column: span 2; }
  .gallery__cap { opacity: 1; transform: none; }
}

/* ---------- Principios ---------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem clamp(2rem, 4vw, 3.5rem); }
.principle { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.principle h3 { margin-bottom: .6rem; }
.principle p { color: var(--muted); margin: 0; }

/* ---------- Clases ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: minmax(200px, .9fr) 1.4fr minmax(210px, .7fr); gap: 1.25rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--line); align-items: start;
}
.service__name { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 300; }
.service__text { color: var(--muted); margin: 0; max-width: 56ch; }
.service__meta { display: grid; gap: .25rem; font-size: var(--fs-sm); color: var(--muted); }
.service__meta strong { color: var(--text); font-weight: 500; }
.service__meta .link-arrow { margin-top: .9rem; justify-self: start; text-align: left; }
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; gap: .75rem; }
}

/* ---------- Horarios ---------- */
.schedule-week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.day-col h3 { font-family: var(--f-sans); font-size: var(--fs-sm); font-weight: 500; margin: 0 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.day-col h3 span { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }
.day-col ul { display: grid; gap: .6rem; }
.slot {
  display: grid; gap: .15rem; padding: .9rem .9rem 1rem; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .3s;
}
.slot:hover { border-color: rgba(214, 168, 102, .55); }
.slot__time { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.1; }
.slot__name { font-weight: 500; font-size: var(--fs-sm); }
.slot__who, .slot__spots { font-size: var(--fs-xs); color: var(--muted); }
.slot__spots.is-low { color: var(--c-glow); }
.slot .btn { margin-top: .6rem; min-height: 40px; padding: .5rem .8rem; }
.schedule-empty { color: var(--muted); font-size: var(--fs-sm); padding: .5rem 0; }

/* Agenda móvil */
.agenda-days { margin-bottom: 1.25rem; }
.agenda-days button { background: transparent; }
.agenda { display: grid; gap: .6rem; }
.agenda .slot { grid-template-columns: 4.2rem 1fr auto; align-items: center; column-gap: 1rem; }
.agenda .slot__time { grid-row: span 3; font-size: 1.5rem; }
.agenda .slot .btn { grid-row: 1 / span 3; grid-column: 3; margin: 0; }

/* ---------- Precios ---------- */
.price-group + .price-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.price-group__title { font-size: var(--fs-h3); margin-bottom: 1.25rem; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.price {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.price.is-featured { --surface: var(--c-ink); --text: #EFE8DD; --muted: #ADA497; --line: rgba(239, 232, 221, .16); --accent-text: var(--c-glow); color: var(--text); border-color: transparent; }
.price__name { font-family: var(--f-sans); font-size: 1.05rem; font-weight: 500; margin: 0; }
.price__flag { font-size: var(--fs-xs); color: var(--accent-text); margin: 0; }
.price__text { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.price__amount { font-family: var(--f-display); font-weight: 300; font-size: 3rem; line-height: 1; margin: .6rem 0 0; }
.price__per { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.price__terms { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.price .btn { margin-top: auto; }
.price.is-featured .btn { --btn-bg: var(--c-glow); --btn-bd: var(--c-glow); --btn-fg: var(--c-ink); }
.demo-note { margin-top: 1.5rem; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.member__photo {
  aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.25rem;
  background: radial-gradient(120% 80% at 50% 110%, rgba(214, 168, 102, .45), transparent 60%), var(--c-ink-2);
  display: grid; place-items: center; color: #E7DDCD;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__initials { font-family: var(--f-display); font-weight: 300; font-size: 4.5rem; letter-spacing: .04em; opacity: .9; }
@media (max-width: 640px) { .member__photo { aspect-ratio: 5 / 4; } }
.member h3 { margin-bottom: .1rem; }
.member__role { color: var(--accent-text); font-size: var(--fs-sm); margin-bottom: .8rem; }
.member__bio { color: var(--muted); font-size: var(--fs-sm); }
.member dl { margin: 0; display: grid; gap: .5rem; font-size: var(--fs-sm); border-top: 1px solid var(--line); padding-top: .9rem; }
.member dt { color: var(--muted); font-size: var(--fs-xs); }
.member dd { margin: 0; }

/* ---------- Opiniones ---------- */
.carousel-nav { display: flex; gap: .5rem; }
.testimonials {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 86%); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 1rem;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonials > li { display: flex; }
.quote { scroll-snap-align: start; flex: 1; display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0; }
.quote__stars { display: flex; gap: 2px; color: var(--c-glow); }
.quote__stars .icon { width: 16px; height: 16px; fill: currentColor; }
.quote__stars .is-off { fill: none; opacity: .5; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: 1.3rem; line-height: 1.5; }
.quote figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--muted); display: flex; align-items: center; gap: .75rem; }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-sand); display: grid; place-items: center; font-size: var(--fs-xs); color: var(--text); overflow: hidden; }
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.ig-grid li { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--c-sand); }
.ig-grid a { display: block; height: 100%; position: relative; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.ig-grid a:hover img { opacity: .8; }
.ig-tile { height: 100%; display: grid; place-items: center; text-align: center; padding: .75rem; background: var(--c-ink); color: #E7DDCD; font-family: var(--f-display); font-size: clamp(.95rem, 1.3vw, 1.2rem); line-height: 1.25; }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact__info > p { color: var(--muted); max-width: 46ch; }
.contact__list { display: grid; gap: 1.1rem; margin: 2rem 0; }
.contact__list > div { display: grid; grid-template-columns: 24px 1fr; gap: .9rem; align-items: start; }
.contact__list .icon { color: var(--c-glow); width: 20px; height: 20px; margin-top: .25rem; }
.contact__list dt { font-size: var(--fs-xs); color: var(--muted); }
.contact__list dd { margin: 0; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--c-glow); }
.contact__social { display: flex; gap: .25rem; margin-left: -.6rem; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.contact__form { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-md); border: 1px solid var(--line); }
.contact__form .h3 { margin-bottom: .25rem; }
.contact__form .btn { justify-self: start; }
.map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--c-ink-2); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(.95); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; gap: .4rem; text-align: center; }
.map__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c-glow); box-shadow: 0 0 0 8px rgba(214, 168, 102, .2), 0 0 40px 10px rgba(214, 168, 102, .35); }
.map__label { font-size: var(--fs-xs); color: #E7DDCD; background: rgba(28, 26, 23, .8); padding: .25rem .7rem; border-radius: var(--r-pill); }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__ctas .btn { flex: 1 1 auto; }
  .contact__form .btn { justify-self: stretch; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--c-ink); color: #E7DDCD; padding: 4rem 0 calc(env(safe-area-inset-bottom, 0px) + 6rem); border-top: 1px solid rgba(239, 232, 221, .08); }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 4rem; align-items: center; }
.site-footer__logo { width: 120px; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; justify-content: center; }
.site-footer__nav a { text-decoration: none; font-size: var(--fs-sm); opacity: .8; }
.site-footer__nav a:hover { opacity: 1; color: var(--c-glow); }
.site-footer__social { display: flex; gap: .25rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(239, 232, 221, .1); font-size: var(--fs-xs); color: #ADA497; }
.site-footer__legal p { margin: 0; }
.site-footer__legal p:last-child { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { color: #EFE8DD; }
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .site-footer__nav ul { justify-content: flex-start; }
}

/* ---------- Área de cliente ---------- */
.account-hello { margin-bottom: 1.25rem; }
.account-hello p { color: var(--muted); margin: 0; }
.list-rows { display: grid; gap: .6rem; }
.row-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.row-card__title { font-weight: 500; display: block; }
.row-card__meta { font-size: var(--fs-sm); color: var(--muted); display: block; }
.pass-meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: .6rem; width: 100%; }
.pass-meter span { display: block; height: 100%; background: var(--c-glow); }
.demo-callout { margin-top: 1.5rem; padding: 1rem 1.15rem; border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--muted); }
.demo-callout .btn { margin-top: .75rem; }
