:root {
  --home-ink: #143144;
  --home-muted: #5b6d78;
  --home-teal: #087f82;
  --home-teal-dark: #06696d;
  --home-mint: #e8f4f1;
  --home-line: #dce8e7;
  --home-paper: #f7faf9;
  --home-shadow: 0 18px 50px rgba(21, 54, 68, 0.09);
}

html {
  scroll-padding-top: 88px;
}

body.public-site {
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: "DM Sans", sans-serif;
}

body.public-site #main-content {
  width: 100%;
}

.public-home {
  padding-top: 76px !important;
}

.public-home section[id],
.public-home div[id] {
  scroll-margin-top: 88px;
}

.public-site .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 43%, rgba(196, 232, 224, 0.46), transparent 34%),
    linear-gradient(115deg, #f8fbfa 0%, #f5faf8 53%, #ebf5f2 100%);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(8, 127, 130, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-hero::before {
  top: -380px;
  right: -210px;
  width: 790px;
  height: 790px;
}

.home-hero::after {
  top: -300px;
  right: -130px;
  width: 630px;
  height: 630px;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.88fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  width: min(1180px, calc(100% - 64px));
  min-height: 610px;
  margin: 0 auto;
  padding: 66px 0 74px;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  padding: 9px 13px;
  border: 1px solid #d5e8e4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #42636a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.home-hero-badge .material-symbols-outlined {
  color: var(--home-teal);
  font-size: 17px;
}

.home-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #17364a;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(44px, 5.3vw, 68px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.home-hero h1 span {
  color: var(--home-teal);
}

.home-hero-subtitle {
  max-width: 510px;
  margin: 23px 0 30px;
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.75;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button-primary {
  background: var(--home-teal);
  box-shadow: 0 9px 22px rgba(8, 127, 130, 0.2);
  color: #fff;
}

.home-button-primary:hover {
  background: var(--home-teal-dark);
  box-shadow: 0 12px 26px rgba(8, 127, 130, 0.27);
}

.home-button-primary .material-symbols-outlined {
  font-size: 19px;
}

.home-button-secondary {
  border-color: #d7e4e2;
  background: rgba(255, 255, 255, 0.75);
  color: #284b5c;
}

.home-button-secondary:hover {
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 54, 68, 0.08);
}

.home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 29px;
  color: #60737c;
  font-size: 12px;
  font-weight: 600;
}

.home-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-hero-tags span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48a9a0;
  content: "";
}

.home-hero-visual {
  position: relative;
  display: grid;
  min-height: 455px;
  place-items: center;
}

.home-hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(8, 127, 130, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.home-hero-orbit-outer {
  width: 440px;
  height: 440px;
}

.home-hero-orbit-inner {
  width: 348px;
  height: 348px;
}

.home-tooth-art {
  position: absolute;
  top: 49%;
  left: 50%;
  display: grid;
  width: 252px;
  height: 252px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff 0%, #e1f3ee 72%);
  box-shadow: 0 24px 70px rgba(44, 113, 109, 0.16);
  transform: translate(-50%, -56%);
}

.home-tooth-art svg {
  width: 142px;
  height: 142px;
  overflow: visible;
  fill: #6bb9b1;
  filter: drop-shadow(0 10px 12px rgba(34, 113, 108, 0.15));
}

.home-tooth-art .home-tooth-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-linecap: round;
  stroke-width: 4;
}

.home-hero-service-card {
  position: absolute;
  right: -4px;
  bottom: 5px;
  width: min(380px, 94%);
  padding: 19px 20px 10px;
  border: 1px solid rgba(220, 232, 231, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 56px rgba(30, 78, 82, 0.15);
}

.home-hero-service-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 0 13px;
  color: #193e50;
  font-size: 14px;
  font-weight: 750;
}

.home-hero-service-heading > .material-symbols-outlined {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: #eaf5f2;
  color: var(--home-teal);
  font-size: 20px;
}

.home-hero-service-heading small,
.home-hero-service-row small {
  display: block;
  margin-top: 3px;
  color: #83939a;
  font-size: 10px;
  font-weight: 500;
}

.home-hero-service-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-top: 1px solid #edf2f1;
  color: #294858;
}

.home-hero-service-row strong {
  font-size: 12px;
  font-weight: 700;
}

.home-hero-service-row small {
  font-size: 10px;
}

.home-service-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69b8ac;
}

.home-service-price {
  color: #168287;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.home-hero-note {
  position: absolute;
  top: 23px;
  right: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid #dcebe7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 78, 82, 0.1);
  color: #315965;
  font-size: 11px;
  font-weight: 700;
}

.home-hero-note .material-symbols-outlined {
  color: var(--home-teal);
  font-size: 18px;
}

.home-trust-strip {
  padding: 27px 32px;
  border-top: 1px solid #e6eeec;
  border-bottom: 1px solid #e6eeec;
  background: #fff;
}

.home-trust-strip > div {
  width: min(1140px, 100%);
  margin: 0 auto;
  color: var(--home-ink);
}

.home-trust-strip > div > div {
  min-width: 160px;
  gap: 13px;
}

.home-trust-strip .material-symbols-outlined {
  color: #69a9a2;
  font-size: 28px;
}

.home-trust-strip p:first-child {
  color: #1d4353;
  font-size: 19px;
  line-height: 1.2;
}

.home-trust-strip p:last-child {
  margin-top: 3px;
  color: #788992;
  font-size: 11px;
}

.public-home > section:not(.home-hero) {
  padding-top: 88px !important;
  padding-bottom: 88px !important;
}

.public-home > section:not(.home-hero) > div {
  width: min(1160px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.public-home h2,
.public-home h3 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.035em;
}

#servicios {
  background: #f5f8f7;
}

#servicios > div > div:first-child {
  max-width: 660px;
  margin-bottom: 40px;
}

#servicios > div > div:first-child > p:first-child,
#profesionales > div > div:first-child > p,
#testimonios > div > div:first-child > p,
#nosotros > div > div:last-child > p:first-child,
#faq > div > div:first-child > p {
  color: var(--home-teal);
  font-size: 11px;
  letter-spacing: 0.13em;
}

#servicios > div > div:first-child h2,
#profesionales h2,
#testimonios h2,
#nosotros h2,
#faq h2,
#contacto h2 {
  color: #18384b;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
}

#servicios > div > div:first-child > p:last-child {
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.7;
}

#servicios .grid > div {
  min-height: 236px;
  padding: 26px;
  border: 1px solid #e4ecea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(21, 54, 68, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

#servicios .grid > div:hover {
  transform: translateY(-4px);
  border-color: #aad5ce;
  box-shadow: var(--home-shadow);
}

#servicios .grid > div > div:first-child {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: #eaf5f2;
  color: var(--home-teal);
}

#servicios .grid > div > div:first-child .material-symbols-outlined {
  font-size: 22px;
}

#servicios .grid h3 {
  color: #244454;
  font-size: 16px;
  line-height: 1.35;
}

#servicios .grid h3 + span {
  color: var(--home-teal);
  white-space: nowrap;
}

#servicios .grid > div > p {
  min-height: 43px;
  color: #687983;
  line-height: 1.6;
}

#servicios .grid > div > span:last-child {
  background: #edf6f4;
  color: #397b7d;
  letter-spacing: 0.035em;
}

#profesionales {
  background: #fff;
}

#profesionales > div > div:first-child,
#testimonios > div > div:first-child,
#faq > div > div:first-child {
  margin-bottom: 42px;
}

#profesionales .grid > div {
  border: 1px solid #e3ecea;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(21, 54, 68, 0.06);
}

#profesionales .grid > div > div:first-child {
  background: linear-gradient(120deg, #dcefeb, #9acbc2) !important;
}

#profesionales .grid > div:nth-child(2) > div:first-child {
  background: linear-gradient(120deg, #d9eae7, #8cbeb4) !important;
}

#profesionales .grid > div:nth-child(3) > div:first-child {
  background: linear-gradient(120deg, #dcefeb, #acd3cb) !important;
}

#profesionales .grid > div > div:nth-child(2) {
  padding-bottom: 27px;
}

#profesionales .grid h3 {
  color: #234556;
}

#profesionales .grid p {
  line-height: 1.6;
}

#profesionales .grid p:first-of-type {
  color: var(--home-teal) !important;
}

#profesionales .grid span.bg-\[\#e7eeff\] {
  background: #edf6f4;
  color: #397b7d;
}

#testimonios {
  background: #f3f8f6;
}

#testimonios .grid > div {
  border: 1px solid #e4ecea;
  border-radius: 18px;
  box-shadow: 0 7px 24px rgba(21, 54, 68, 0.045);
}

#testimonios .grid > div > p {
  min-height: 88px;
  color: #526873;
  line-height: 1.75;
}

#testimonios .grid > div > div:last-child > div:first-child {
  background: #79b7ae;
}

#testimonios .grid > div:nth-child(2) > div:last-child > div:first-child {
  background: #5b9e99;
}

#testimonios .grid > div:nth-child(3) > div:last-child > div:first-child {
  background: #83b9c0;
}

#nosotros {
  background: #fff;
}

#nosotros > div {
  align-items: center;
  gap: clamp(45px, 7vw, 96px);
}

#nosotros > div > div:first-child > div {
  padding: 39px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0d777b, #17465b) !important;
  box-shadow: 0 22px 54px rgba(21, 80, 83, 0.2);
}

#nosotros > div > div:first-child h2 {
  margin-bottom: 29px;
  color: #fff;
  font-size: 24px;
}

#nosotros > div > div:first-child span {
  color: #b7e7dc !important;
  font-size: 40px;
}

#nosotros > div > div:first-child p,
#nosotros > div > div:last-child > p:not(:first-child) {
  color: #d3e6e2;
  line-height: 1.65;
}

#nosotros > div > div:last-child > p:not(:first-child) {
  color: #5b6d78;
  font-size: 15px;
}

#nosotros > div > div:last-child > div span {
  background: #edf6f4;
  color: #397b7d;
}

#faq {
  background: #f5f8f7;
}

#faq > div {
  max-width: 820px;
}

#faq details {
  padding: 20px 22px;
  border: 1px solid #e1ebe9;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(21, 54, 68, 0.035);
}

#faq summary {
  gap: 16px;
  color: #244454;
  font-size: 15px;
}

#faq details[open] summary {
  color: var(--home-teal);
}

#faq details > p {
  color: #62757e;
  line-height: 1.7;
}

#contacto {
  background: #edf5f3;
}

#contacto > div {
  align-items: start;
  gap: clamp(42px, 7vw, 88px);
}

#contacto > div > div:first-child > div {
  display: grid;
  gap: 22px;
  margin-bottom: 0;
}

#contacto > div > div:first-child > div > div {
  gap: 15px;
}

#contacto > div > div:first-child > div > div > div:first-child {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  color: var(--home-teal);
  box-shadow: 0 4px 14px rgba(21, 54, 68, 0.06);
}

#contacto > div > div:first-child > div > div p:first-child {
  color: #264a59;
}

#contacto > div > div:first-child > div > div p:last-child {
  color: #637781;
  line-height: 1.65;
}

#contacto form {
  display: grid;
  gap: 13px;
}

#contacto form input:not([type="checkbox"]),
#contacto form select {
  min-height: 48px;
  border-color: #dbe6e4;
  border-radius: 11px;
  background: #fbfdfc;
  color: #244454;
  box-shadow: none;
}

#contacto form input:not([type="checkbox"]):focus,
#contacto form select:focus {
  border-color: #68aaa3;
  box-shadow: 0 0 0 3px rgba(8, 127, 130, 0.12);
}

#contacto form label[for="contactConsent"] {
  color: #61747e;
  line-height: 1.55;
}

#contacto form label a {
  color: var(--home-teal);
}

#contacto form button {
  min-height: 50px;
  border-radius: 11px;
  background: var(--home-teal);
}

#contacto form button:hover {
  background: var(--home-teal-dark);
}

#final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(113, 191, 176, 0.22), transparent 32%),
    linear-gradient(125deg, #174456, #0d777b);
}

#final-cta > div {
  position: relative;
  z-index: 1;
}

#final-cta h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 47px);
  line-height: 1.15;
}

#final-cta p {
  color: #d4e8e4;
}

#final-cta a:first-child {
  background: #fff;
  color: #126f73;
}

#final-cta a:last-child {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.public-site > a.fixed.bottom-8 {
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  background: #198b7d;
  box-shadow: 0 8px 24px rgba(20, 84, 78, 0.28);
}

.public-site > a.fixed.bottom-8:hover {
  transform: translateY(-2px);
}

@media (max-width: 1020px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 28px;
    width: min(100% - 48px, 900px);
    min-height: 560px;
  }

  .home-hero h1 {
    font-size: clamp(42px, 5.3vw, 56px);
  }

  .home-hero-visual {
    min-height: 410px;
  }

  .home-hero-orbit-outer {
    width: 360px;
    height: 360px;
  }

  .home-hero-orbit-inner {
    width: 280px;
    height: 280px;
  }

  .home-tooth-art {
    width: 210px;
    height: 210px;
  }

  .home-hero-service-card {
    right: -2px;
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 760px) {
  .public-home {
    padding-top: 68px !important;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(100% - 40px, 600px);
    padding: 57px 0 48px;
  }

  .home-hero-copy {
    max-width: none;
  }

  .home-hero-badge {
    margin-bottom: 19px;
    font-size: 10px;
  }

  .home-hero h1 {
    max-width: 570px;
    font-size: clamp(41px, 10vw, 58px);
  }

  .home-hero-subtitle {
    margin: 17px 0 23px;
    font-size: 15px;
  }

  .home-hero-tags {
    gap: 10px 14px;
    margin-top: 20px;
    font-size: 11px;
  }

  .home-hero-visual {
    min-height: 375px;
    margin: 2px 0 0;
  }

  .home-hero-orbit-outer {
    width: 320px;
    height: 320px;
  }

  .home-hero-orbit-inner {
    width: 245px;
    height: 245px;
  }

  .home-tooth-art {
    top: 44%;
    width: 190px;
    height: 190px;
  }

  .home-tooth-art svg {
    width: 112px;
    height: 112px;
  }

  .home-hero-service-card {
    right: 0;
    bottom: 0;
    width: min(390px, 100%);
    margin: 0 auto;
  }

  .home-hero-note {
    top: 8px;
    right: 0;
  }

  .home-trust-strip {
    padding: 24px 20px;
  }

  .home-trust-strip > div {
    justify-content: flex-start;
    gap: 20px 28px;
  }

  .home-trust-strip > div > div {
    flex: 1 1 40%;
  }

  .public-home > section:not(.home-hero) {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .public-home > section:not(.home-hero) > div {
    width: min(100% - 40px, 600px);
  }

  #servicios > div > div:first-child,
  #profesionales > div > div:first-child,
  #testimonios > div > div:first-child,
  #faq > div > div:first-child {
    margin-bottom: 30px;
  }

  #servicios .grid > div {
    min-height: 0;
  }

  #nosotros > div > div:first-child > div {
    padding: 28px;
  }

  #nosotros > div > div:first-child span {
    font-size: 34px;
  }

  #contacto > div {
    gap: 32px;
  }

  #contacto > div > div:first-child > div {
    gap: 17px;
  }

  #contacto > div > div:last-child > div {
    padding: 23px !important;
  }

  #final-cta > div {
    width: min(100% - 40px, 600px);
  }
}

@media (max-width: 420px) {
  .home-hero-inner {
    width: calc(100% - 32px);
  }

  .home-hero h1 {
    font-size: 39px;
  }

  .home-button {
    min-height: 48px;
    padding: 0 15px;
    font-size: 13px;
  }

  .home-hero-service-card {
    padding: 14px 12px 6px;
  }

  .home-hero-service-row {
    gap: 7px;
  }

  .home-hero-service-row strong {
    font-size: 11px;
  }

  .home-service-price {
    font-size: 10px;
  }

  .public-home > section:not(.home-hero) > div {
    width: calc(100% - 32px);
  }

  #servicios .grid > div {
    padding: 22px;
  }

  #faq details {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
