:root {
  --bg: #f7f0ea;
  --bg-soft: #efe3d9;
  --panel: rgba(255, 255, 255, 0.86);
  --ink: #2a1e1a;
  --muted: #6b5750;
  --primary: #b56f54;
  --primary-deep: #8f4f37;
  --line: rgba(42, 30, 26, 0.15);
  --shadow: 0 16px 36px rgba(58, 35, 29, 0.2);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

html[data-theme="dark"] {
  --bg: #1d1a1e;
  --bg-soft: #171419;
  --panel: rgba(34, 30, 35, 0.88);
  --ink: #f2e8e2;
  --muted: #d3c3b7;
  --primary: #c88468;
  --primary-deep: #de9b7e;
  --line: rgba(242, 232, 226, 0.24);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(181, 111, 84, 0.22), transparent 44%),
    radial-gradient(circle at 12% 16%, rgba(204, 150, 124, 0.2), transparent 38%),
    linear-gradient(180deg, #fff8f2 0%, var(--bg) 45%, var(--bg-soft) 100%);
  line-height: 1.55;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 85% 0%, rgba(200, 132, 104, 0.24), transparent 44%),
    radial-gradient(circle at 12% 16%, rgba(121, 84, 69, 0.3), transparent 38%),
    linear-gradient(180deg, #272126 0%, var(--bg) 45%, var(--bg-soft) 100%);
}

html[data-theme="dark"] body.about-page,
html[data-theme="dark"] body.servicios-page,
html[data-theme="dark"] body.galeria-page {
  background:
    radial-gradient(circle at 85% 0%, rgba(200, 132, 104, 0.24), transparent 44%),
    radial-gradient(circle at 12% 16%, rgba(121, 84, 69, 0.3), transparent 38%),
    linear-gradient(180deg, #272126 0%, var(--bg) 45%, var(--bg-soft) 100%) !important;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #111;
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.4rem 0.6rem 0;
}

.topbar {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(247, 240, 234, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(58, 35, 29, 0.1);
}

body.nav-intro .topbar {
  transition: opacity 0.62s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

body.nav-intro:not(.nav-intro-done) .topbar {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

body.nav-intro.nav-intro-done .topbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.brand {
  width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  width: min(1120px, 100%);
  margin: 0.45rem auto 0;
  display: grid;
  gap: 0.45rem;
  overflow: hidden;
  max-height: 0;
  padding: 0 0.65rem;
  border: 1px solid transparent;
  border-radius: 20px;
  background: rgba(247, 240, 234, 0.95);
  box-shadow: 0 8px 20px rgba(58, 35, 29, 0.08);
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    padding 0.25s ease,
    border-color 0.25s ease;
}

.mobile-nav[data-open="true"] {
  max-height: 560px;
  opacity: 1;
  padding: 0.65rem;
  border-color: var(--line);
}

.mobile-nav a {
  font-size: 0.97rem;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--ink);
  border-color: rgba(42, 30, 26, 0.28);
}

.mobile-nav a.is-active,
.mobile-nav a[aria-current="page"] {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary-deep);
}

.mobile-nav-divider {
  height: 1px;
  margin: 0.2rem 0 0.1rem;
  background: var(--line);
}

.mobile-nav-controls {
  display: grid;
  gap: 0.55rem;
  padding: 0.1rem 0.1rem 0;
}

.nav-control {
  display: grid;
  gap: 0.35rem;
}

.nav-control-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem;
}

.lang-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  padding: 0.28rem 0.2rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-btn .flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-btn[aria-pressed="true"] {
  background: rgba(181, 111, 84, 0.18);
  color: var(--primary-deep);
  border-color: rgba(181, 111, 84, 0.42);
}

.theme-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.theme-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-btn[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-deep);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .mobile-nav,
html[data-theme="dark"] .site-header {
  background: rgba(24, 20, 24, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .mobile-nav a,
html[data-theme="dark"] .lang-btn,
html[data-theme="dark"] .theme-btn {
  background: rgba(34, 30, 35, 0.92);
  color: var(--ink);
  border-color: rgba(242, 232, 226, 0.22);
}

html[data-theme="dark"] .mobile-nav a.is-active,
html[data-theme="dark"] .mobile-nav a[aria-current="page"] {
  color: #fff;
}

html[data-theme="dark"] .lang-btn[aria-pressed="true"] {
  background: rgba(200, 132, 104, 0.28);
  color: #fff;
  border-color: rgba(200, 132, 104, 0.54);
}

html[data-theme="dark"] .about,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .reviews-external-inner,
html[data-theme="dark"] .gallery-item,
html[data-theme="dark"] .about-hero-copy,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .formation-card,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .about-proof,
html[data-theme="dark"] .servicios-page .page-intro .section-head,
html[data-theme="dark"] .servicios-page .services-carousel,
html[data-theme="dark"] .servicios-page .detail-item,
html[data-theme="dark"] .galeria-page .page-intro .section-head {
  background: rgba(34, 30, 35, 0.86) !important;
}

html[data-theme="dark"] #galeria .gallery-item {
  border-color: rgba(242, 232, 226, 0.2);
  background: rgba(34, 30, 35, 0.88);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] #galeria .gallery-item::after {
  background: linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.62) 78%, rgba(10, 10, 12, 0.8) 100%);
}

html[data-theme="dark"] #galeria .gallery-item figcaption {
  border-color: rgba(242, 232, 226, 0.35);
  background: rgba(14, 13, 16, 0.44);
}

html[data-theme="dark"] .review-quote {
  color: #f0e4dc;
}

html[data-theme="dark"] .hero-overlay {
  background: linear-gradient(180deg, rgba(16, 10, 12, 0.52), rgba(16, 10, 12, 0.72));
}

html[data-theme="dark"] .review-card {
  background: linear-gradient(180deg, rgba(40, 34, 40, 0.94), rgba(29, 24, 30, 0.93)) !important;
  border-color: rgba(242, 232, 226, 0.17);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .review-card::after {
  color: rgba(222, 155, 126, 0.42);
}

html[data-theme="dark"] .review-author {
  color: #f2e8e2;
}

html[data-theme="dark"] .review-meta {
  color: #d9c9be;
}

html[data-theme="dark"] .btn-review-secondary {
  background: rgba(34, 30, 35, 0.96);
  border-color: rgba(242, 232, 226, 0.3);
  color: #f2e8e2;
}

html[data-theme="dark"] .btn-review-secondary:hover,
html[data-theme="dark"] .btn-review-secondary:focus-visible {
  background: rgba(200, 132, 104, 0.22);
}

html[data-theme="dark"] .carousel-btn {
  background: rgba(34, 30, 35, 0.92);
  border-color: rgba(242, 232, 226, 0.3);
  color: #f2e8e2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .carousel-btn:disabled {
  opacity: 0.24;
}

html[data-theme="dark"] .service-card .btn-small {
  background: rgba(34, 30, 35, 0.88);
  border-color: rgba(242, 232, 226, 0.34);
  color: #f2e8e2;
}

html[data-theme="dark"] .service-card .btn-small:hover,
html[data-theme="dark"] .service-card .btn-small:focus-visible {
  background: rgba(200, 132, 104, 0.22);
}

html[data-theme="dark"] .about-secondary-btn {
  border-color: rgba(242, 232, 226, 0.25);
  background: rgba(34, 30, 35, 0.9);
  color: #f2e8e2;
}

html[data-theme="dark"] .about-secondary-btn:hover,
html[data-theme="dark"] .about-secondary-btn:focus-visible {
  background: rgba(200, 132, 104, 0.2);
}

html[data-theme="dark"] .about-portrait {
  border-color: rgba(242, 232, 226, 0.18);
  background: linear-gradient(160deg, #312a31 0%, #211c22 100%);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.46);
}

html[data-theme="dark"] .about-portrait::before {
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.12) 0%, rgba(8, 11, 16, 0.44) 100%);
}

html[data-theme="dark"] .about-portrait::after {
  box-shadow: inset 0 0 0 1px rgba(242, 232, 226, 0.2);
}

html[data-theme="dark"] .about-portrait img {
  filter: saturate(1.02) contrast(1.04) brightness(0.95);
}

html[data-theme="dark"] .about-portrait:hover img,
html[data-theme="dark"] .about-portrait:focus-within img {
  filter: saturate(1.03) contrast(1.04) brightness(0.98);
}

html[data-theme="dark"] .servicios-page .page-intro .section-head,
html[data-theme="dark"] .servicios-page .services-carousel {
  border-color: rgba(242, 232, 226, 0.2);
}

html[data-theme="dark"] .servicios-page .detail-item,
html[data-theme="dark"] .servicios-page .detail-item[open] {
  border-color: rgba(242, 232, 226, 0.2) !important;
  background: rgba(34, 30, 35, 0.9) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .servicios-page .detail-item[open] summary {
  border-bottom-color: rgba(242, 232, 226, 0.14);
}

html[data-theme="dark"] .servicios-page .detail-item summary::after {
  border-right-color: #e7b39c;
  border-bottom-color: #e7b39c;
}

html[data-theme="dark"] .servicios-page .detail-meta {
  color: #f1d0c1;
  background: rgba(200, 132, 104, 0.22);
  border-color: rgba(222, 155, 126, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 6.6rem 1rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -7%;
  background-image: url("../Resources/Fotos/Espacio/FP.jpeg");
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--parallax-offset, 0), 0) scale(1.06);
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 12, 10, 0.52), rgba(31, 18, 14, 0.66));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(92vw, 620px);
  color: #fff;
  animation: rise 0.8s ease-out both;
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.hero h5 {
  margin: 1rem auto 0;
  font-weight: 500;
  font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  max-width: 32ch;
}

.hero-tagline {
  margin: 0.6rem auto 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  font-style: italic;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-deep);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.92);
  color: #fff;
}

.btn-small {
  margin-top: auto;
  width: fit-content;
  background: rgba(181, 111, 84, 0.14);
  border-color: rgba(181, 111, 84, 0.3);
  color: var(--primary-deep);
  min-height: 40px;
  padding: 0.45rem 0.95rem;
}

.section {
  padding: 3.6rem 1rem;
}

.page-main {
  padding-top: 5.2rem;
}

.page-intro {
  padding-bottom: 1rem;
}

.section-head {
  max-width: 760px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 0.75rem;
}

.section h2,
.section h3 {
  margin: 0.45rem 0 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.section h2 {
  font-size: clamp(1.8rem, 8vw, 2.8rem);
}

.section h3 {
  font-size: clamp(1.7rem, 7.3vw, 2.5rem);
}

.section-head p:last-child {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 64ch;
}

.about {
  background: rgba(255, 255, 255, 0.6);
}

.reviews {
  padding-top: 3rem;
  padding-bottom: 2.4rem;
}

.reviews-carousel {
  margin-top: 1.25rem;
  position: relative;
}

.reviews-external {
  margin-top: 1.25rem;
}

.reviews-external-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(58, 35, 29, 0.12);
  padding: 0.7rem;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(84%, 1fr);
  gap: 0.95rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 2.65rem;
  padding: 0 2.65rem;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  position: relative;
  isolation: isolate;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border: 1px solid rgba(42, 30, 26, 0.14);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86));
  box-shadow: 0 10px 24px rgba(58, 35, 29, 0.12);
  padding: 1.05rem 1rem 0.95rem;
  display: flex;
  flex-direction: column;
  min-height: 224px;
}

.review-card::after {
  content: "\201D";
  position: absolute;
  top: 0.32rem;
  right: 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  color: rgba(181, 111, 84, 0.26);
  pointer-events: none;
}

.review-quote {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #382c28;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-author {
  margin: 0;
  margin-top: auto;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.review-meta {
  margin: 0.18rem 0 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.review-link {
  margin-top: 1.25rem;
}

.review-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.review-actions .review-link {
  margin-top: 0;
}

.btn-review-secondary {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(42, 30, 26, 0.26);
  color: var(--primary-deep);
}

.btn-review-secondary:hover,
.btn-review-secondary:focus-visible {
  background: rgba(181, 111, 84, 0.12);
}

.about-cards {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.info-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.info-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.section-btn {
  margin-top: 1.2rem;
}

.services {
  position: relative;
  min-height: auto;
  display: block;
  padding-top: 3.6rem;
  padding-bottom: 3.6rem;
}

.services-carousel {
  margin-top: 1.3rem;
  position: relative;
  display: block;
}

.services-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: 0.95rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 2.65rem;
  padding: 0 2.65rem;
  align-items: stretch;
}

.services-track::-webkit-scrollbar {
  display: none;
}

.service-card {
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border: 1px solid rgba(42, 30, 26, 0.16);
  border-radius: var(--radius-md);
  padding: 1rem;
  background-color: #c8bcb1;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(66, 45, 38, 0.12);
  min-height: clamp(340px, 50svh, 460px);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(20, 12, 10, 0.46) 0%,
      rgba(20, 12, 10, 0.58) 48%,
      rgba(20, 12, 10, 0.36) 78%,
      rgba(20, 12, 10, 0.22) 100%
    );
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.service-meta {
  margin: 0.5rem 0;
  color: #ffd9c9;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.service-card p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.service-card .btn-small {
  background: rgba(247, 240, 234, 0.82);
  border-color: rgba(42, 30, 26, 0.36);
  color: var(--ink);
}

.service-laser {
  background-image: url("../Resources/Fotos/legacy/dlaser.jpeg");
}

.service-limpieza {
  background-image: url("../Resources/Fotos/legacy/Limpieza profunda.jpeg");
}

.service-micro {
  background-image: url("../Resources/services/microagujas.png");
}

.service-hidratacion {
  background-image: url("../Resources/services/hidratacion-profunda.png");
}

.service-radio {
  background-image: url("../Resources/Fotos/legacy/Rfrec.jpeg");
}

.service-acne {
  background-image: url("../Resources/services/control-oleosidad-acne.png");
}

.service-lifting {
  background-image: url("../Resources/services/LashLift.png?v=20260413b");
}

.service-sobrancelhas {
  background-image: url("../Resources/Fotos/legacy/Cejas.png?v=20260414");
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev {
  left: 0.1rem;
}

.carousel-btn.next {
  right: 0.1rem;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#galeria .gallery-embla {
  --gallery-peek: 1.1rem;
  margin-top: 1.35rem;
  overflow: hidden;
  position: relative;
}

#galeria .gallery-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.45rem var(--gallery-peek) 1rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(var(--gallery-peek) + 0.1rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  align-items: stretch;
}

#galeria .gallery-grid::-webkit-scrollbar {
  display: none;
}

#galeria .gallery-item {
  --float-offset: 0px;
  --float-duration: 6.8s;
  --float-delay: 0s;
  margin: 0;
  flex: 0 0 82%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border: 1px solid rgba(42, 30, 26, 0.14);
  border-radius: 22px;
  background: #f6efe9;
  box-shadow: 0 18px 34px rgba(58, 35, 29, 0.14);
  transform: translateY(var(--float-offset));
  animation: galleryFloat var(--float-duration) ease-in-out infinite;
  animation-delay: var(--float-delay);
}

#galeria .gallery-embla.is-embla-ready .gallery-grid {
  overflow: visible;
  scroll-snap-type: none;
  touch-action: pan-y pinch-zoom;
}

#galeria .gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(17, 12, 11, 0) 0%, rgba(17, 12, 11, 0.56) 78%, rgba(17, 12, 11, 0.74) 100%);
  pointer-events: none;
  z-index: 1;
}

#galeria .gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

#galeria .gallery-item:hover img,
#galeria .gallery-item:focus-within img {
  transform: scale(1.04);
}

#galeria .gallery-item figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  margin: 0;
  z-index: 2;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(17, 12, 11, 0.36);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#galeria .gallery-item:nth-child(1) {
  --float-offset: -8px;
  --float-duration: 7.4s;
  --float-delay: -0.8s;
}

#galeria .gallery-item:nth-child(2) {
  --float-offset: 8px;
  --float-duration: 7s;
  --float-delay: -1.9s;
}

#galeria .gallery-item:nth-child(3) {
  --float-offset: -11px;
  --float-duration: 8s;
  --float-delay: -2.6s;
}

#galeria .gallery-item:nth-child(4) {
  --float-offset: 6px;
  --float-duration: 7.2s;
  --float-delay: -3.4s;
}

#galeria .gallery-item:nth-child(5) {
  --float-offset: -9px;
  --float-duration: 7.8s;
  --float-delay: -1.2s;
}

#galeria .gallery-item:nth-child(6) {
  --float-offset: 10px;
  --float-duration: 8.2s;
  --float-delay: -2.1s;
}

#galeria .gallery-item:nth-child(1) img {
  object-position: center 56%;
}

#galeria .gallery-item:nth-child(2) img {
  object-position: center 50%;
}

#galeria .gallery-item:nth-child(3) img {
  object-position: center 30%;
}

#galeria .gallery-item:nth-child(4) img {
  object-position: center 66%;
}

#galeria .gallery-item:nth-child(5) img {
  object-position: center 46%;
}

#galeria .gallery-item:nth-child(6) img {
  object-position: center 52%;
}

.site-footer {
  background: #070707;
  color: #f2f2f2;
  padding: 2.8rem 1rem 2.2rem;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.site-footer h4 {
  margin: 0;
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0.5rem 0 0;
  color: #d6d6d6;
}

.footer-instagram-link {
  color: #f0f0f0;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-instagram-link:hover,
.footer-instagram-link:focus-visible {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.footer-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.38rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f2f2;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-link-chip:hover,
.footer-link-chip:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.footer-legal .footer-links-row {
  display: grid;
  gap: 0.26rem;
  margin-top: 0.45rem;
}

.footer-legal .footer-link-chip {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b8b8b8;
  font-size: 0.92rem;
  font-weight: 500;
  justify-content: flex-start;
}

.footer-legal .footer-link-chip:hover,
.footer-legal .footer-link-chip:focus-visible {
  border: 0;
  background: transparent;
  color: #ebebeb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transform: none;
}

.footer-legal-note {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #bcbcbc !important;
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  box-shadow: none;
  z-index: 130;
  transition: transform 0.2s ease;
}

.ig-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom) + 74px);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  box-shadow: none;
  z-index: 129;
  transition: transform 0.2s ease;
}

.ig-float:hover,
.ig-float:focus-visible {
  transform: translateY(-2px) scale(1.03);
}

.ig-float .ig-icon {
  width: 50px;
  height: 50px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(66, 45, 38, 0.22));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ig-float:hover .ig-icon,
.ig-float:focus-visible .ig-icon {
  transform: scale(1.04);
  filter: drop-shadow(0 8px 14px rgba(66, 45, 38, 0.28));
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-2px) scale(1.03);
}

.wa-float .wa-icon {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(66, 45, 38, 0.22));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.wa-float:hover .wa-icon,
.wa-float:focus-visible .wa-icon {
  transform: scale(1.04);
  filter: drop-shadow(0 8px 14px rgba(66, 45, 38, 0.28));
}

.policy-meta {
  margin-top: 1.45rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.policy {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.45;
  color: #b9b9b9;
}

.site-footer .footer-meta {
  width: 100%;
  justify-content: flex-start;
}

.site-footer .studio-badge {
  color: #ddd4ce;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  max-width: 100%;
  white-space: nowrap;
}

.site-footer .studio-badge span {
  white-space: nowrap;
}

html[lang^="pt"] .site-footer .studio-badge {
  font-size: 0.72rem;
  gap: 0.36rem;
  padding: 0.34rem 0.58rem 0.34rem 0.46rem;
}

html[lang^="pt"] .site-footer .studio-badge img {
  width: 27px;
  height: 16px;
}

.site-footer .studio-badge:hover {
  border-color: rgba(181, 111, 84, 0.75);
  color: #f5efeb;
}

body.modal-open {
  overflow: hidden;
}

.lf-form-lib .lf-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(20, 14, 12, 0.42);
  backdrop-filter: blur(2px);
  z-index: 220;
}

.lf-form-lib .lf-modal.is-open {
  display: flex;
}

.lf-form-lib .lf-modal__backdrop {
  position: absolute;
  inset: 0;
}

.lf-form-lib .lf-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(92dvh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(247, 240, 234, 0.98);
  box-shadow: 0 20px 50px rgba(21, 13, 10, 0.32);
}

html[data-theme="dark"] .lf-form-lib .lf-modal__panel {
  background: rgba(31, 37, 48, 0.98);
}

.lf-form-lib .lf-hidden-field {
  display: none !important;
}

.reveal-up {
  --reveal-delay: 0ms;
}

body.js-ready .reveal-up {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.62s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay);
  will-change: opacity, transform;
}

body.js-ready .reveal-up.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

@keyframes galleryFloat {
  0%,
  100% {
    transform: translateY(var(--float-offset));
  }
  50% {
    transform: translateY(calc(var(--float-offset) - 8px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.js-ready .reveal-up,
  body.js-ready .reveal-up.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #galeria .gallery-item {
    animation: none;
  }
}

@media (min-width: 700px) {
  .section,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .services-track {
    grid-auto-columns: minmax(48%, 1fr);
  }

  .service-card {
    min-height: clamp(370px, 54svh, 510px);
  }

  #galeria .gallery-embla {
    --gallery-peek: 0.45rem;
  }

  #galeria .gallery-item {
    flex-basis: 45%;
  }

  #galeria .gallery-item figcaption {
    font-size: 0.84rem;
  }

  .reviews-track {
    grid-auto-columns: minmax(47%, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-meta {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .policy {
    font-size: 0.79rem;
  }

  .site-footer .footer-meta {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  html[lang^="pt"] .site-footer .studio-badge {
    font-size: 0.7rem;
    gap: 0.32rem;
    padding: 0.32rem 0.52rem 0.32rem 0.44rem;
  }

  html[lang^="pt"] .site-footer .studio-badge img {
    width: 25px;
    height: 15px;
  }

  .wa-float {
    right: 1.35rem;
    bottom: calc(1.35rem + env(safe-area-inset-bottom));
    width: 65px;
    height: 65px;
  }

  .ig-float {
    right: 1.35rem;
    bottom: calc(1.35rem + env(safe-area-inset-bottom) + 74px);
    width: 65px;
    height: 65px;
  }

  .ig-float .ig-icon {
    width: 52px;
    height: 52px;
  }

  .wa-float .wa-icon {
    width: 54px;
    height: 54px;
  }
}

@media (min-width: 980px) {
  body.nav-intro .mobile-nav {
    transition:
      opacity 0.64s ease 0.08s,
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
  }

  body.nav-intro:not(.nav-intro-done) .mobile-nav {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  body.nav-intro.nav-intro-done .mobile-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #galeria .gallery-embla {
    --gallery-peek: 0.2rem;
  }

  #galeria .gallery-item {
    flex-basis: 31.5%;
  }

  .lf-form-lib .lf-modal {
    align-items: center;
    padding: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-header {
    top: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 2rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(247, 240, 234, 0.86);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 28px rgba(58, 35, 29, 0.14);
  }

  .topbar {
    width: auto;
    margin: 0;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    width: auto;
    margin: 0;
    max-height: none;
    opacity: 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    overflow: visible;
  }

  .mobile-nav-divider {
    display: none;
  }

  .mobile-nav a {
    width: auto;
    padding: 0.56rem 1rem;
    background: rgba(255, 255, 255, 0.84);
    white-space: nowrap;
  }

  .mobile-nav-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-left: 0.35rem;
    padding: 0;
  }

  .mobile-nav .nav-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .mobile-nav .nav-control.is-expanded {
    gap: 0.35rem;
    padding: 0.34rem 0.44rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 10px 22px rgba(58, 35, 29, 0.14);
  }

  .mobile-nav .nav-control-label {
    white-space: nowrap;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-4px);
    margin: 0;
    pointer-events: none;
    transition: max-width 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease;
  }

  .mobile-nav .nav-control.is-expanded .nav-control-label {
    max-width: 4.8rem;
    opacity: 1;
    transform: translateX(0);
    margin: 0 0.18rem 0 0.1rem;
  }

  .mobile-nav .lang-switch,
  .mobile-nav .theme-switch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .mobile-nav .lang-btn {
    min-height: 36px;
    padding: 0.34rem 0.46rem;
    flex-direction: row;
    gap: 0.28rem;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.3s ease, min-width 0.3s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
  }

  .mobile-nav .nav-control-lang .lang-btn {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }

  .mobile-nav .lang-btn .flag {
    font-size: 0.92rem;
  }

  .mobile-nav .theme-btn {
    min-width: 38px;
    min-height: 36px;
    transition: width 0.3s ease, min-width 0.3s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
  }

  .mobile-nav .nav-control-lang .lang-btn:not([aria-pressed="true"]),
  .mobile-nav .nav-control-theme .theme-btn:not([aria-pressed="true"]) {
    width: 0;
    min-width: 0;
    max-width: 0;
    opacity: 0;
    transform: translateX(-5px);
    padding-left: 0;
    padding-right: 0;
    border-width: 0;
    pointer-events: none;
    margin: 0;
    overflow: hidden;
  }

  .mobile-nav .nav-control-lang .lang-btn > span:last-child {
    display: none;
  }

  .mobile-nav .nav-control-lang.is-expanded .lang-btn:not([aria-pressed="true"]) {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    opacity: 1;
    transform: translateX(0);
    padding: 0;
    border-width: 1px;
    pointer-events: auto;
  }

  .mobile-nav .nav-control-theme.is-expanded .theme-btn:not([aria-pressed="true"]) {
    width: auto;
    min-width: 38px;
    max-width: 170px;
    opacity: 1;
    transform: translateX(0);
    padding-left: 0.46rem;
    padding-right: 0.46rem;
    border-width: 1px;
    pointer-events: auto;
  }

  .mobile-nav .nav-control-lang .lang-btn[aria-pressed="true"] {
    min-width: 40px;
    width: 40px;
    max-width: 40px;
    min-height: 40px;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }

  .mobile-nav .nav-control-lang.is-expanded .lang-btn[aria-pressed="true"] {
    min-width: 40px;
    width: 40px;
    max-width: 40px;
    padding: 0;
  }

  .mobile-nav .nav-control-theme .theme-btn[aria-pressed="true"] {
    min-width: 40px;
    width: 40px;
    min-height: 40px;
  }

  .mobile-nav .nav-control-theme.is-expanded .theme-btn[aria-pressed="true"] {
    width: auto;
    min-width: 40px;
  }

  .hero {
    min-height: 100vh;
  }

  .page-main {
    padding-top: 6rem;
  }

  .section,
  .site-footer {
    padding-left: max(2rem, calc((100vw - 1080px) / 2));
    padding-right: max(2rem, calc((100vw - 1080px) / 2));
  }

  .about-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-track {
    grid-auto-columns: minmax(35%, 1fr);
  }

  .service-card {
    min-height: min(56svh, 520px);
  }

  .reviews-track {
    grid-auto-columns: minmax(31.5%, 1fr);
  }

  .review-card {
    min-height: 236px;
  }
}

@media (min-width: 980px) {
  html[data-theme="dark"] .mobile-nav .nav-control.is-expanded {
    background: rgba(34, 30, 35, 0.72);
    border-color: rgba(242, 232, 226, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero::before {
    transform: scale(1.06);
    will-change: auto;
  }
}
