/* ============================================
   Mediskin Estética — Design System
   ============================================ */

:root {
  --cream: #edf6f7;
  --cream-dark: #d7ebed;
  --white: #ffffff;
  --ink: #22333a;
  --ink-soft: #52626a;
  --ink-faint: #869aa0;
  --blush: #e6b7a9;
  --blush-light: #f4ddd3;
  --blush-deep: #d99884;
  --sage: #45b0ab;
  --sage-dark: #1f7d79;
  --sage-light: #d8eff0;
  --celeste: #7fd0cd;
  --gold: #1f7d79;
  --gold-light: #8fdad6;
  --whatsapp: #3f9b5c;

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 50px -25px rgba(44, 36, 32, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(44, 36, 32, 0.28);

  --container: 1180px;
  --gap: clamp(1.25rem, 3vw, 2rem);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

.skip-link {
  position: fixed;
  top: 0.6rem; left: 0.6rem;
  z-index: 300;
  background: var(--sage-dark);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; scroll-margin-top: 4.5rem; }

/* No renderizar secciones bajo el pliegue hasta acercarse (fluidez en móvil) */
#equipo, #resultados, #testimonios, #faq, #contacto {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.06; font-weight: 460; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.14; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { color: var(--ink-soft); margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(63, 155, 92, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(63, 155, 92, 0.7); }

.btn-outline {
  background: transparent;
  border-color: rgba(44, 36, 32, 0.2);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(187, 138, 76, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); }

.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.88rem; }

.icon-wa { width: 18px; height: 18px; flex: none; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.9rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px -18px rgba(31, 125, 121, 0.45);
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none; /* nunca se comprime: si no, el header lleno lo aplasta a 0 */
}
.logo picture { display: block; flex: none; line-height: 0; }
.logo-img {
  height: 50px;
  width: auto;
}
.logo-emblema {
  height: 56px;
  width: auto;
}
.footer-logo .logo-img { height: 60px; }

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 1.8rem); }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--sage-dark);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--sage-dark); }

.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.nav-toggle {
  display: none;
  background: none; border: none; padding: 0.4rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 6rem;
  padding-bottom: clamp(1rem, 2vw, 2rem);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 0%;
  transform: scale(1.06);
  transform-origin: 50% 0%;
  animation: heroZoom 18s ease-out forwards;
}
/* En horizontal la foto arranca debajo del header fijo para que el logo del mural no quede cortado */
@media (min-aspect-ratio: 1/1) {
  .hero { background: #e6f2f2; }
  .hero-media { top: 4.6rem; }
}
/* En vertical se usa el recorte centrado en el mural: sin desplazamiento */
@media (max-aspect-ratio: 1/1) {
  .hero-media img { object-position: 50% 50%; transform-origin: 50% 50%; }
}
/* Pantallas apaisadas de poca altura: compactar para no tapar el mural */
@media (min-aspect-ratio: 1/1) and (max-height: 780px) {
  .hero-content h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 0.7rem; }
  .hero-content .lead { font-size: 1rem; line-height: 1.45; margin-bottom: 0.8rem; }
  .hero-actions { margin-top: 0.9rem; }
  .trust-strip { margin-top: 0.8rem; }
}
@media (min-aspect-ratio: 1/1) and (max-height: 660px) {
  .hero .trust-strip { display: none; }
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,45,50,0.12) 0%, rgba(10,45,50,0.22) 42%, rgba(8,38,42,0.82) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-bottom: clamp(1.4rem, 3vw, 2.4rem);
  color: #fff;
  max-width: 760px;
}
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content .eyebrow::before { background: var(--gold-light); }
.hero-content h1 { color: #fff; }
.hero-content .lead { color: rgba(255,255,255,0.86); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn-outline:hover { border-color: #fff; }


.trust-strip {
  position: relative; z-index: 1;
  margin-top: clamp(1.1rem, 2.5vw, 1.8rem);
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.trust-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}
.trust-pill svg { width: 14px; height: 14px; color: var(--gold-light); flex: none; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 3/4;
}
.about-photo img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.about-badge {
  position: absolute;
  bottom: 1.4rem; left: -1.8rem;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--sage);
  padding: 1.1rem 1.3rem;
  box-shadow: 0 18px 40px -16px rgba(44, 36, 32, 0.4);
  max-width: 230px;
}
.about-badge { display: flex; flex-direction: column; gap: 0.2rem; }
.about-badge .badge-role { font-family: var(--serif); font-size: 1.15rem; color: var(--sage-dark); line-height: 1.2; }
.about-badge .badge-sub { font-size: 0.82rem; color: var(--ink-soft); }

.quote-block {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  border-left: 3px solid var(--gold);
  padding-left: 1.3rem;
  margin: 1.5rem 0 2rem;
}

.credentials-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
}
.credentials { display: grid; gap: 0.9rem; }
.credential-item {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--cream-dark);
}
.credential-item:first-child { border-top: none; }
.credential-icon {
  flex: none; width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-dark);
  display: flex; align-items: center; justify-content: center;
}
.credential-icon svg { width: 18px; height: 18px; }
.credential-text strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 0.15rem; }
.credential-text span { font-size: 0.88rem; color: var(--ink-soft); }

/* ============ Featured Services ============ */
.section-alt { background: var(--white); }
.testi-section { background: linear-gradient(165deg, #e2f4f5 0%, #c4e7e8 100%); }
.testi-section .eyebrow { color: var(--sage-dark); }

/* ============ Scroll progress ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--sage), var(--celeste));
  z-index: 120;
  will-change: transform;
}

/* ============ Nuestro equipo ============ */
.team-section { background: var(--white); }
.team-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  background: linear-gradient(160deg, #e8f6f6, #cfeaeb);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.team-photo { position: relative; min-height: 380px; overflow: hidden; }
.team-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-text { padding: clamp(1.8rem, 4vw, 3rem); align-self: center; }
.team-text h2 { margin-bottom: 0.8rem; }
.team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(31, 125, 121, 0.2);
}
.team-stat { display: flex; flex-direction: column; }
.team-stat .num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--sage-dark);
  line-height: 1;
}
.team-stat .label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.35rem; max-width: 14ch; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
}
.featured-card picture { display: block; width: 100%; height: 100%; }
.featured-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-card:hover img { transform: scale(1.06); }
.featured-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,36,32,0) 35%, rgba(44,36,32,0.82) 100%);
}
.featured-tag {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.featured-info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.4rem;
  color: #fff;
}
.featured-info h3 { color: #fff; margin-bottom: 0.35rem; }
.featured-info p { color: rgba(255,255,255,0.82); font-size: 0.9rem; margin: 0; }

/* ============ Catálogo (tabs) ============ */
.catalog { margin-top: 3rem; }
.catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.catalog-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin: 0; }
.catalog-sub { margin: 0; font-size: 0.92rem; color: var(--ink-faint); }
.play-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--sage-dark);
  font-weight: 600;
}
.play-hint svg { width: 13px; height: 13px; }

.catalog-tabs {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.4rem 0.25rem 0.9rem;
  margin-top: 1.4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.catalog-tabs::-webkit-scrollbar { display: none; }
.catalog-tab {
  flex: none;
  position: relative;
  width: 116px;
  aspect-ratio: 3/4;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  background: var(--cream-dark);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.2s ease;
  outline: 3px solid transparent;
  outline-offset: 2px;
}
.catalog-tab img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.catalog-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(38, 30, 26, 0.78));
}
.catalog-tab span {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 1;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}
.catalog-tab:hover { transform: translateY(-3px); }
.catalog-tab:hover img { transform: scale(1.07); }
.catalog-tab.is-active {
  outline-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(44, 36, 32, 0.45);
}

.catalog-body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: stretch;
  margin-top: 1.2rem;
}
.catalog-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 420px;
}
.catalog-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes photoSwap {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}
.catalog-visual img.is-swapping { animation: photoSwap 0.45s ease; }
.catalog-visual-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1.6rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(38, 30, 26, 0.82));
  color: #fff;
}
.catalog-visual-overlay h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
}
.catalog-visual-overlay p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.treatments { display: block; }
.treatments[hidden] { display: none; }
@keyframes catalogFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.treatments.is-active { animation: catalogFade 0.35s ease; }
.treatments li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name action" "note action";
  align-items: center;
  column-gap: 1rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--cream-dark);
  transition: background-color 0.2s ease;
}
.treatments li:last-child { border-bottom: none; }
.treatments li:hover { background: linear-gradient(90deg, transparent, var(--sage-light) 120%); }
.t-name {
  grid-area: name;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.35;
}
.t-note { grid-area: note; font-size: 0.83rem; color: var(--ink-faint); line-height: 1.4; }
.treatments .video-btn { grid-area: action; margin: 0; }
.t-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  border-bottom: none;
  padding: 1.5rem 0.2rem 0.3rem;
}
.t-group::after { content: ""; flex: 1; height: 1px; background: var(--cream-dark); }
.t-group:hover { background: none; }
.t-group:first-child { padding-top: 0.3rem; }

.video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  margin-left: auto;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.video-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.video-btn:hover { background: var(--sage); color: #fff; transform: translateY(-1px); }

.catalog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
  padding: 1.1rem 1.5rem;
  background: var(--sage-light);
  border-radius: var(--radius-md);
}
.catalog-cta p { margin: 0; font-size: 0.95rem; color: var(--sage-dark); font-weight: 600; }

.featured-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(44, 36, 32, 0.5);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.featured-play svg { width: 26px; height: 26px; margin-left: 3px; }
.featured-play:hover { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.featured-play::before { display: none; }

/* ============ Mobile CTA bar ============ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cream-dark);
}
.mobile-cta .btn-primary { flex: 2.2; justify-content: center; min-height: 48px; }
.mobile-cta .btn-outline { flex: 1; justify-content: center; min-height: 48px; background: var(--white); }

@keyframes sheetUp {
  from { transform: translateY(48px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes playPulse {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(44, 36, 32, 0.5), 0 0 0 0 rgba(255, 255, 255, 0.55); }
  55% { box-shadow: 0 10px 30px -8px rgba(44, 36, 32, 0.5), 0 0 0 14px rgba(255, 255, 255, 0); }
}
.featured-play { animation: playPulse 2.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .featured-play { animation: none; }
}

/* ============ Consultorio (banda real) ============ */
.consultorio {
  position: relative;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  max-width: 920px;
  margin-inline: auto;
}
.consultorio picture { display: block; width: 100%; height: 100%; }
.consultorio img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.consultorio:hover img { transform: scale(1.04); }
.consultorio figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.6rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(8, 38, 42, 0.85));
  color: #fff;
}
.consultorio figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.consultorio figcaption span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.86); }

@media (max-width: 760px) {
  .consultorio { aspect-ratio: 4/3; }
  .consultorio figcaption { padding: 2rem 1.1rem 1.1rem; }
  .consultorio figcaption strong { font-size: 1.1rem; }
  .consultorio figcaption span { font-size: 0.84rem; }
}

/* ============ Video modal ============ */
.video-modal { position: fixed; inset: 0; z-index: 200; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 20, 0.72);
  backdrop-filter: blur(4px);
}
.video-modal-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 2rem));
}
.video-modal-frame {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: min(640px, 82svh);
}
.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.3); }
.video-modal-close svg { width: 20px; height: 20px; }

/* ============ Instagram testimonios ============ */
.testi-ig { text-align: center; margin-top: 1.6rem; }
.testi-ig a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sage-dark);
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 125, 121, 0.3);
  background: rgba(255, 255, 255, 0.6);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.testi-ig a:hover { background: var(--sage-dark); color: #fff; transform: translateY(-2px); }
.testi-ig svg { width: 18px; height: 18px; }

/* ============ Proceso ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  margin-top: 2.4rem;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 2.4rem 1.4rem 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -24px rgba(31, 125, 121, 0.55);
  border-color: var(--sage);
}
.process-num {
  position: absolute;
  top: -18px; left: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  box-shadow: 0 8px 18px -8px rgba(31, 125, 121, 0.8);
}
.process-icon {
  width: 46px; height: 46px;
  color: var(--sage-dark);
  margin-bottom: 0.9rem;
}
.process-icon svg { width: 100%; height: 100%; }
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.process-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.6rem;
  text-align: center;
}
.process-cta-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ============ Resultados ============ */
.results-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.results-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
}
.results-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Before/After slider */
.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.ba-slider .ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(44, 36, 32, 0.35);
  pointer-events: none;
}
.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(44, 36, 32, 0.5);
}
.ba-handle-btn svg { width: 20px; height: 20px; }
.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(44, 36, 32, 0.55);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  pointer-events: none;
}
.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: ew-resize;
}
.results-disclaimer {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.9rem;
  font-style: italic;
}
.results-points { display: grid; gap: 1.1rem; margin: 1.6rem 0 2rem; }
.result-point { display: flex; gap: 0.8rem; align-items: flex-start; }
.result-point svg { flex: none; width: 20px; height: 20px; color: var(--sage-dark); margin-top: 2px; }
.result-point strong { display: block; color: var(--ink); margin-bottom: 0.1rem; }
.result-point span { font-size: 0.9rem; color: var(--ink-soft); }

/* ============ Testimonios (marquee infinito) ============ */
.testi-carousel {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testi-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding: 0.5rem 0 1.25rem;
  animation: testiMarquee 45s linear infinite;
}
.testi-carousel:hover .testi-track,
.testi-track:active { animation-play-state: paused; }
@keyframes testiMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testi-carousel { mask-image: none; -webkit-mask-image: none; }
  .testi-track { animation: none; width: auto; overflow-x: auto; }
}
.testi-card {
  flex: 0 0 clamp(300px, 38vw, 420px);
  background: var(--white);
  border: 1px solid rgba(31, 125, 121, 0.14);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: 0 16px 34px -22px rgba(31, 125, 121, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -20px rgba(31, 125, 121, 0.5);
}
.testi-stars { color: var(--sage); letter-spacing: 0.15em; margin-bottom: 0.9rem; font-size: 0.95rem; }
.testi-quote { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); line-height: 1.5; margin-bottom: 1.2rem; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-author picture { flex: none; display: block; line-height: 0; }
.testi-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 4px 10px -4px rgba(44, 36, 32, 0.4);
}
.testi-author strong { display: block; font-size: 0.92rem; }
.testi-author span { font-size: 0.8rem; color: var(--ink-faint); }


/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 2rem auto 0; display: grid; gap: 0.85rem; }
.faq-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); position: relative;
}
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--ink); transform: translate(-50%,-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-item summary .plus::before { width: 11px; height: 1.5px; }
.faq-item summary .plus::after { width: 1.5px; height: 11px; }
.faq-item[open] summary .plus::after { opacity: 0; }
.faq-item-body { padding: 0 1.4rem 1.3rem; }
.faq-item-body p { margin: 0; font-size: 0.94rem; }
.faq-item[open] .faq-item-body { animation: faqOpen 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item summary .plus { transition: transform 0.3s ease; }
.faq-item[open] summary .plus { transform: rotate(90deg); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-item-body { animation: none; }
}

/* ============ Contacto ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}
.contact-card {
  background: linear-gradient(160deg, #ddeef0, #b3d7dc);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.6rem;
}
.contact-card h2 { color: var(--ink); }
.contact-card .eyebrow { color: var(--sage-dark); }
.contact-card .eyebrow::before { background: var(--sage-dark); }
.contact-card .lead { color: var(--ink-soft); }
.contact-detail { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.9rem 0; border-top: 1px solid rgba(38, 129, 125, 0.22); }
.contact-detail:first-of-type { border-top: none; }
.contact-detail svg { flex: none; width: 20px; height: 20px; color: var(--sage-dark); margin-top: 2px; }
.contact-detail strong { display: block; font-size: 0.92rem; margin-bottom: 0.15rem; }
.contact-detail span { font-size: 0.87rem; color: var(--ink-soft); }
.contact-social { display: flex; gap: 0.7rem; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.social-btn:hover { background: var(--sage-dark); transform: translateY(-2px); }
.social-btn:hover svg { color: #fff; }
.social-btn svg { width: 18px; height: 18px; color: var(--sage-dark); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ============ Footer ============ */
.site-footer { background: var(--cream-dark); padding: 2.6rem 0; }
.footer-grid {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
}
.footer-grid .logo { font-size: 1.25rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.86rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-fine { font-size: 0.78rem; color: var(--ink-faint); }
.footer-right { display: flex; align-items: center; gap: 0.9rem; }
.ig-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(44, 36, 32, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.ig-link svg { width: 19px; height: 19px; }
.ig-link:hover { background: var(--sage-dark); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  margin-top: 1.8rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(44,36,32,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.78rem; color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--ink); }

/* ============ Floating WhatsApp ============ */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(63, 155, 92, 0.65);
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float:hover { animation-play-state: paused; transform: translateY(-3px); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 14px 30px -10px rgba(63,155,92,0.65), 0 0 0 0 rgba(63,155,92,0.35); }
  50% { box-shadow: 0 14px 30px -10px rgba(63,155,92,0.65), 0 0 0 10px rgba(63,155,92,0); }
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 1;
  transform: translateY(28px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { transform: translateY(0); }

/* Reveals escalonados dentro de grillas */
.featured-grid.is-visible .featured-card,
.results-points.is-visible .result-point,
.credentials.is-visible .credential-item,
.team-stats.is-visible .team-stat,
.process-grid.is-visible .process-step {
  animation-name: riseIn;
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
  animation-delay: calc(var(--i, 0) * 0.09s);
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Entrada del hero al cargar */
.hero-content > * {
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content h1 { animation-delay: 0.08s; }
.hero-content .lead { animation-delay: 0.18s; }
.hero-content .hero-actions { animation-delay: 0.28s; }
.hero-content .trust-strip { animation-delay: 0.38s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Zoom sutil en fotos */
.about-photo img { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.about-photo:hover img { transform: scale(1.04); }

/* Hint de arrastre del comparador antes/después */
.ba-slider.ba-hint .ba-handle { animation: baNudge 1.4s ease-in-out 2; }
@keyframes baNudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-14px); }
  60% { transform: translateX(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .featured-grid.is-visible .featured-card,
  .results-points.is-visible .result-point,
  .credentials.is-visible .credential-item,
  .team-stats.is-visible .team-stat,
  .process-grid.is-visible .process-step,
  .hero-content > * { animation: none; }
  .ba-slider.ba-hint .ba-handle { animation: none; }
}

/* Feedback táctil */
.btn, .video-btn, .catalog-tab, .testi-arrow, .ig-link, .social-btn {
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.video-btn:active { transform: scale(0.94); }
.catalog-tab:active { transform: translateY(-1px) scale(0.97); }
.featured-play:active { transform: translate(-50%, -50%) scale(0.92); }

/* Header oculto al bajar (móvil) */
.site-header { will-change: transform; }
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.site-header { transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, transform 0.35s ease; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: min(100%, 380px); margin-inline: auto; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .results-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

/* El menú completo (9 enlaces + 2 botones) necesita ~1136px reales: por debajo, hamburguesa */
@media (max-width: 1150px) {
  .nav-links, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .nav-toggle { padding: 0.7rem; margin: -0.3rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { aspect-ratio: 4/5; }
  .process-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { align-items: flex-end; padding-top: 5rem; min-height: 94svh; padding-bottom: 0.5rem; }
  .hero-actions .btn { flex: 1 1 auto; min-height: 48px; }
  /* Compactar el bloque para que arranque por debajo del mural */
  .hero-content h1 { margin-bottom: 0.9rem; }
  .hero-content .lead { font-size: 1rem; line-height: 1.45; margin-bottom: 0.85rem; }
  .hero-actions { margin-top: 1rem; gap: 0.7rem; }
  .trust-strip {
    margin-top: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .trust-strip::-webkit-scrollbar { display: none; }
  .trust-pill { white-space: nowrap; flex: none; }
  .header-cta .btn-primary { padding: 0.6rem 1rem; font-size: 0.82rem; }
  .logo-img { height: 42px; }
  .logo-emblema { height: 44px; }
  .catalog-body { grid-template-columns: 1fr; gap: 1.2rem; }
  .catalog-tabs { margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .catalog-tab { width: 96px; }
  .catalog-visual { min-height: 0; aspect-ratio: 16/10; }
  .catalog-cta { justify-content: center; text-align: center; }
  .faq-item summary { min-height: 52px; }
  .testi-card { flex-basis: 290px; }
  .ba-handle-btn { width: 52px; height: 52px; }

  /* Indicador de que las filas horizontales siguen */
  .catalog-tabs,
  .trust-strip {
    mask-image: linear-gradient(90deg, #000 86%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
  }

  .team-card { grid-template-columns: 1fr; }
  .team-photo { min-height: 0; aspect-ratio: 4/3; }
  .team-stats { gap: 1rem 1.6rem; }
  .map-frame { min-height: 240px; }
  .map-frame iframe { min-height: 240px; }
  .section-head { margin-bottom: 1.8rem; }

  /* Modal de video como bottom sheet */
  .video-modal-body {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
  }
  .video-modal:not([hidden]) .video-modal-body { animation: sheetUp 0.35s ease; }
  .video-modal-frame {
    border-radius: 20px 20px 0 0;
    height: min(72svh, 620px);
  }
  .video-modal-close { top: -50px; right: 0.9rem; }

  .mobile-cta { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: 72px; }
  .about-badge {
    position: absolute;
    bottom: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.8rem);
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.85rem 1.1rem;
  }
}

.nav-open .nav-links {
  display: flex;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--cream);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  z-index: 99;
}
.nav-open .nav-links a { padding: 0.7rem 1.6rem; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open { overflow: hidden; }
