:root {
  --ink: #050505;
  --muted: #5f5f5f;
  --paper: #ffffff;
  --surface: #f7f7f7;
  --mist: #fff1ec;
  --teal: #EB4B2D;
  --teal-dark: #050505;
  --coral: #EB4B2D;
  --amber: #EB4B2D;
  --accent-text: #AD2F1B;
  --accent-fill: #C9361D;
  --line: #e4e4e4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1;
}

.brand-mark-accent {
  color: var(--teal);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-name-accent {
  color: var(--accent-text);
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 310px;
  display: grid;
  gap: 2px;
  padding: 18px 10px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  visibility: hidden;
}

.nav-dropdown-menu-compact {
  width: 255px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.site-nav .nav-dropdown-menu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.site-nav .nav-dropdown-menu a:hover,
.site-nav .nav-dropdown-menu a:focus-visible {
  color: var(--teal-dark);
  background: var(--mist);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-nav .language-switcher a {
  min-width: 42px;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 850;
}

.site-nav .language-switcher a[aria-current="true"] {
  color: var(--paper);
  background: var(--accent-fill);
}

.flag {
  width: 19px;
  height: 13px;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.flag-es {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-ca {
  background: linear-gradient(
    to bottom,
    #f7c600 0 11.11%,
    #c8102e 11.11% 22.22%,
    #f7c600 22.22% 33.33%,
    #c8102e 33.33% 44.44%,
    #f7c600 44.44% 55.55%,
    #c8102e 55.55% 66.66%,
    #f7c600 66.66% 77.77%,
    #c8102e 77.77% 88.88%,
    #f7c600 88.88% 100%
  );
}

.button .flag {
  width: 22px;
  height: 15px;
}

.site-nav .nav-phone {
  color: var(--paper);
  background: var(--accent-fill);
  padding: 10px 14px;
  border-radius: 8px;
}

.site-nav .nav-phone:hover,
.site-nav .nav-phone:focus-visible {
  color: var(--paper);
  background: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 116px);
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--paper);
}

.language-gateway {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--paper);
}

.language-gateway-content {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.language-gateway-content h1 {
  max-width: 720px;
}

.language-gateway-content p:not(.eyebrow) {
  max-width: 540px;
  color: #1f1f1f;
  font-size: 1.18rem;
}

.hero-image,
.page-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 38%, rgba(255, 255, 255, 0.52) 62%, rgba(255, 255, 255, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 610px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  color: #1f1f1f;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 760;
}

.button.primary {
  color: var(--paper);
  background: var(--accent-fill);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--teal-dark);
  background: var(--paper);
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--teal);
}

.whatsapp-button {
  width: 52px;
  min-height: 52px;
  flex: 0 0 52px;
  gap: 0;
  padding: 0;
  color: #ffffff;
  background: #25d366;
  border-color: #25d366;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  color: #ffffff;
  background: #1fb85a;
  border-color: #1fb85a;
}

.whatsapp-icon {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 62px;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  font-weight: 850;
  text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1fb85a;
}

.quick-info {
  max-width: 730px;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-info div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
}

.quick-info dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-info dd {
  margin: 5px 0 0;
  font-weight: 750;
}

.section {
  padding: 84px 0;
}

.treatments-preview {
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.treatment-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.treatment-card:hover,
.treatment-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(235, 75, 45, 0.48);
  box-shadow: var(--shadow);
}

.card-index {
  color: var(--accent-text);
  font-weight: 850;
}

.treatment-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.aesthetic-section {
  background: var(--paper);
}

.aesthetics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.aesthetics-layout .section-heading {
  margin-bottom: 18px;
}

.aesthetic-note {
  align-self: stretch;
  display: grid;
  align-content: center;
  padding: 26px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
}

.aesthetic-note h3 {
  color: var(--paper);
}

.aesthetic-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.aesthetic-grid {
  margin-top: 18px;
}

.aesthetic-card {
  min-height: 215px;
  background: var(--surface);
}

.aesthetic-card:hover,
.aesthetic-card:focus-visible {
  border-color: rgba(235, 75, 45, 0.48);
}

.aesthetic-page-hero .eyebrow,
.aesthetic-side-panel h2 {
  color: var(--accent-text);
}

.clinic-band {
  color: var(--paper);
  background: var(--teal-dark);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: start;
}

.clinic-band .eyebrow {
  color: var(--coral);
}

.copy-stack p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.07rem;
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

.steps-section {
  background: var(--mist);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  min-height: 205px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--paper);
  background: var(--accent-fill);
  border-radius: 50%;
  font-weight: 850;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  background: var(--paper);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 34px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
}

.map-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-copy {
  padding: 34px;
  background: var(--surface);
}

.map-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.map-copy p:not(.eyebrow) {
  color: var(--muted);
}

.map-frame {
  min-height: 420px;
  background: var(--mist);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.contact-panel .eyebrow {
  color: var(--coral);
}

.contact-panel h2 {
  margin-bottom: 10px;
}

.contact-panel p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.8);
  background: #050505;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-details {
  display: grid;
  gap: 6px;
}

.footer-details p {
  margin-bottom: 0;
}

.footer-inner a {
  color: var(--paper);
  font-weight: 760;
  text-decoration: none;
}

.social-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.social-link {
  width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: block;
  background: var(--paper);
  transition: background 160ms ease, transform 160ms ease;
}

.social-icon-instagram {
  -webkit-mask: url("/assets/icons/instagram.svg") center / contain no-repeat;
  mask: url("/assets/icons/instagram.svg") center / contain no-repeat;
}

.social-icon-tiktok {
  -webkit-mask: url("/assets/icons/tiktok.svg") center / contain no-repeat;
  mask: url("/assets/icons/tiktok.svg") center / contain no-repeat;
}

.social-link:hover .social-icon,
.social-link:focus-visible .social-icon,
.social-link:active .social-icon {
  transform: translateY(-1px);
}

.social-link:hover .social-icon-instagram,
.social-link:focus-visible .social-icon-instagram,
.social-link:active .social-icon-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0 18%, #fd5949 43%, #d6249f 62%, #285aeb 100%);
}

.social-link:hover .social-icon-tiktok,
.social-link:focus-visible .social-icon-tiktok,
.social-link:active .social-icon-tiktok {
  background: linear-gradient(135deg, #25f4ee 0 42%, #0abde3 42% 50%, #ffffff 50% 63%, #fe2c55 63% 100%);
}

.page-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--paper);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.breadcrumbs {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--accent-text);
  text-decoration: none;
}

.page-hero h1 {
  max-width: 740px;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
}

.page-hero p:not(.breadcrumbs) {
  max-width: 640px;
  color: #1f1f1f;
  font-size: 1.18rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: start;
}

.main-copy {
  display: grid;
  gap: 40px;
}

.text-block,
.info-panel,
.faq-list,
.side-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.text-block {
  padding: 32px;
}

.text-block p,
.info-panel p,
.faq-list p,
.side-panel p {
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-panel {
  padding: 26px;
}

.info-panel h3 {
  color: var(--teal-dark);
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.timeline article {
  position: relative;
  padding: 24px 24px 24px 74px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline article::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--accent-fill);
  border-radius: 50%;
  font-weight: 850;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list {
  padding: 28px 32px;
}

.faq-list details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
}

.side-panel {
  position: sticky;
  top: 100px;
  padding: 26px;
}

.side-panel ul {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--muted);
}

.side-panel li + li {
  margin-top: 10px;
}

.side-panel .button {
  width: 100%;
}

.side-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
}

.side-panel .button.side-whatsapp {
  width: 52px;
}

.side-whatsapp {
  margin-top: 10px;
}

.side-actions .side-whatsapp {
  margin-top: 0;
}

.related-links {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.related-links a {
  padding: 11px 0;
  color: var(--teal-dark);
  text-decoration: none;
  border-top: 1px solid var(--line);
  font-weight: 750;
}

@media (max-width: 980px) {
  .treatment-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .content-layout,
  .aesthetics-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-nav .nav-phone {
    display: block;
    width: 100%;
    padding: 12px;
  }

  .language-switcher {
    width: 100%;
    justify-content: stretch;
  }

  .site-nav .language-switcher a {
    flex: 1;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 2px;
    padding: 4px 0 8px 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .site-nav .nav-dropdown-menu a {
    min-height: 38px;
    padding: 8px 12px;
    color: var(--muted);
    background: transparent;
    border-left: 2px solid var(--line);
    border-radius: 0;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 58px;
    min-height: 58px;
  }

  .hero {
    min-height: calc(100svh - 96px);
  }

  .hero-image,
  .page-hero-image {
    opacity: 0.42;
    object-position: 68% center;
  }

  .hero-overlay,
  .page-hero-overlay {
    background: rgba(255, 255, 255, 0.84);
  }

  .hero-content {
    padding: 42px 0;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 11vw, 2.75rem);
  }

  .quick-info,
  .treatment-grid,
  .steps,
  .info-grid,
  .contact-panel,
  .map-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .treatment-card,
  .steps article {
    min-height: auto;
  }

  .contact-panel {
    padding: 26px;
  }

  .map-copy {
    padding: 26px;
  }

  .map-frame {
    min-height: 330px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button,
  .hero-actions .button,
  .page-actions .button {
    width: 100%;
  }

  .contact-actions .button.whatsapp-button,
  .side-panel .button.side-whatsapp {
    width: 52px;
  }

  .side-actions {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .footer-inner {
    display: grid;
  }

  .social-bar {
    width: auto;
    align-items: center;
    flex-direction: row;
  }

  .social-link {
    width: 44px;
    justify-content: center;
  }

  .page-hero {
    min-height: 390px;
  }

  .page-hero-content {
    padding: 50px 0;
  }

  .text-block,
  .info-panel,
  .faq-list,
  .side-panel {
    padding: 22px;
  }

  .timeline article {
    padding: 22px;
  }

  .timeline article::before {
    position: static;
    margin-bottom: 14px;
  }
}
