:root {
  --ink: #163e48;
  --deep: #0b2c35;
  --sage: #6f918b;
  --sage-2: #a8c3bd;
  --paper: #fffdfa;
  --soft: #f2f0eb;
  --white: #ffffff;
  --text: #21363a;
  --muted: #62777a;
  --line: rgba(22, 62, 72, .14);
  --shadow: 0 26px 70px rgba(11, 44, 53, .13);
  --radius: 28px;
  --container: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
svg { display: block; }
.container { width: var(--container); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 250, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(11, 44, 53, .06); }
.nav-wrap {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-symbol {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 14px; color: var(--white); background: var(--ink);
  font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem;
}
.brand-copy { display: grid; line-height: 1.1; gap: 4px; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.brand-copy small { color: var(--muted); font-size: .72rem; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 25px; }
.main-nav a { color: #486164; font-size: .85rem; font-weight: 700; }
.main-nav a:hover { color: var(--ink); }
.menu-toggle { display: none; }

.btn {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
  font-size: .88rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 44, 53, .16); }
.btn-small { min-height: 43px; padding: 0 20px; font-size: .8rem; }
.btn-outline { color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(22, 62, 72, .05); }
.btn-light { color: var(--deep); background: var(--white); border-color: var(--white); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 104px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.6), transparent 45%),
    var(--paper);
}
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(1px); }
.hero-glow-one { width: 520px; height: 520px; right: -150px; top: -160px; background: rgba(168,195,189,.24); }
.hero-glow-two { width: 330px; height: 330px; left: -170px; bottom: -150px; background: rgba(220,210,191,.28); }
.hero-grid { min-height: 610px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 900;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.kicker-light { color: #bdd4ce; }
.hero h1, .section h2, .contact h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}
.hero h1 { max-width: 760px; font-size: clamp(4rem, 7.7vw, 7.2rem); }
.hero h1 span { color: var(--sage); font-style: italic; }
.hero-copy > p { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 5px; }
.hero-facts small { color: var(--sage); text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 900; }
.hero-facts strong { color: var(--ink); font-size: .92rem; }
.hero-art { display: flex; justify-content: center; }
.hero-panel {
  width: min(100%, 440px);
  min-height: 530px;
  padding: 38px;
  border-radius: 220px 220px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.11), transparent 28%),
    linear-gradient(155deg, #1a4c57 0%, #0d3038 70%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-panel::before, .hero-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.hero-panel::before { width: 330px; height: 330px; }
.hero-panel::after { width: 440px; height: 440px; }
.panel-label { position: relative; z-index: 1; color: #c1d7d2; text-transform: uppercase; letter-spacing: .15em; font-size: .68rem; font-weight: 900; }
.panel-mark {
  position: relative; z-index: 1;
  width: 148px; height: 148px; margin: 28px 0;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
}
.hero-panel p { position: relative; z-index: 1; max-width: 280px; margin: 0; color: #e2eeeb; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.panel-tags { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 27px; }
.panel-tags span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #c9dcd8; font-size: .7rem; }

.section { padding: 106px 0; }
.section-soft { background: var(--soft); }
.section-title { max-width: 800px; margin-bottom: 50px; }
.section-title.centered { margin-inline: auto; text-align: center; }
.section-title.centered .kicker::before { display: none; }
.section h2 { font-size: clamp(3rem, 5.2vw, 5.2rem); }

.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.76);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(11,44,53,.09); border-color: rgba(22,62,72,.24); }
.card-index, .mode-number { color: var(--sage); font-size: .7rem; letter-spacing: .14em; font-weight: 900; }
.icon-badge { width: 92px; height: 92px; margin: auto 0 34px; display: grid; place-items: center; border-radius: 50%; background: #e8efec; color: var(--ink); }
.icon-badge svg { width: 49px; height: 49px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 500; line-height: 1.05; }
.card p { margin: 12px 0 0; color: var(--muted); }

.split-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 48px; }
.split-heading > p { max-width: 520px; margin: 0 0 7px; color: var(--muted); font-size: 1.04rem; }
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.care-card {
  min-height: 280px;
  padding: 25px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.care-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.care-card > span { position: absolute; top: 22px; left: 24px; color: #96b6af; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.care-card strong { position: relative; z-index: 1; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.care-card p { position: relative; z-index: 1; margin: 8px 0 0; color: #bad0cb; font-size: .9rem; }

.band { padding: 27px 0; background: var(--deep); color: var(--white); overflow: hidden; }
.band-row { display: flex; align-items: center; justify-content: center; gap: 28px; }
.band-row span { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 2vw, 1.35rem); white-space: nowrap; }
.band-row i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--sage-2); }

.mode-grid { max-width: 980px; margin-inline: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mode-card {
  min-height: 410px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.mode-card::after { content: ""; position: absolute; width: 240px; height: 240px; top: 78px; right: -105px; border-radius: 50%; border: 1px solid var(--line); }
.mode-card-dark { background: var(--deep); color: var(--white); }
.mode-card-dark::after { border-color: rgba(255,255,255,.12); }
.mode-icon { width: 105px; height: 105px; margin: auto 0 35px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mode-card-dark .mode-icon { stroke: #c6d9d5; }
.mode-card h3 { position: relative; z-index: 1; margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 2.35rem; font-weight: 500; }
.mode-card-dark h3 { color: var(--white); }
.mode-card p { position: relative; z-index: 1; margin: 8px 0 0; color: var(--muted); }
.mode-card-dark p { color: #bad0cb; }

.profile { background: var(--paper); }
.profile-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 76px; align-items: center; }
.photo-wrap { width: min(100%, 470px); margin-inline: auto; }
.photo-stage {
  padding: 12px;
  border-radius: 32px;
  background: var(--deep);
  box-shadow: var(--shadow);
}
.photo-stage img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  background: #000;
}
.profile-copy h2 { margin-bottom: 34px; }
.profile-lines { border-top: 1px solid var(--line); }
.profile-lines > div { display: grid; grid-template-columns: 50px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.profile-lines span { color: var(--sage); font-size: .68rem; letter-spacing: .13em; font-weight: 900; }
.profile-lines p { margin: 0; color: var(--text); font-size: 1rem; }

.contact { padding-top: 38px; background: var(--paper); }
.contact-card {
  min-height: 440px;
  padding: 56px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 24%, rgba(168,195,189,.12), transparent 28%),
    var(--deep);
}
.contact-card h2 { color: var(--white); font-size: clamp(3.2rem, 5.5vw, 5.4rem); }
.contact-card p { margin: 20px 0 0; color: #bad0cb; }
.contact-side { display: flex; flex-direction: column; align-items: flex-start; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.12); }
.contact-side small { color: #96b6af; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 900; }
.phone { margin: 10px 0 30px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1; }

.site-footer { padding: 54px 0 30px; background: #09252d; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 40px; align-items: start; }
.footer-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 500; }
.footer-grid p { margin: 8px 0 0; color: #91aaa5; font-size: .82rem; }
.footer-grid small { display: block; color: #769691; text-transform: uppercase; letter-spacing: .13em; font-size: .65rem; margin-bottom: 6px; }
.footer-grid > div:nth-child(2) a { color: #dbe7e4; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 20px; }
.footer-nav a { color: #a7bdb8; font-size: .8rem; }
.footer-nav a:hover { color: var(--white); }

/* El contenido es visible por defecto. JavaScript solo mejora la animación; si falla, la página nunca queda en blanco. */
.appear { opacity: 1; transform: none; }
.js-ready .appear { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.js-ready .appear.in-view { opacity: 1; transform: none; }
.js-ready .delay-1 { transition-delay: .08s; }
.js-ready .delay-2 { transition-delay: .14s; }
.js-ready .delay-3 { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-ready .appear { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .78rem; }
  .hero-grid { gap: 42px; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --container: min(720px, calc(100% - 30px)); }
  .section { padding: 82px 0; }
  .nav-wrap { min-height: 72px; grid-template-columns: 1fr auto; gap: 14px; }
  .nav-cta { display: none; }
  .menu-toggle {
    width: 44px; height: 44px;
    display: grid; place-content: center; gap: 5px;
    border: 1px solid var(--line); border-radius: 50%;
    background: var(--white); cursor: pointer;
  }
  .menu-toggle span { width: 18px; height: 1.5px; display: block; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    padding: 20px 24px 28px;
    display: grid;
    gap: 0;
    background: rgba(255,253,250,.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 45px rgba(11,44,53,.1);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .hero { padding: 66px 0 82px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 5.9rem); }
  .hero-art { margin-top: 8px; }
  .hero-panel { min-height: 470px; }
  .specialty-grid { grid-template-columns: 1fr; }
  .card { min-height: 315px; }
  .split-heading, .profile-grid, .contact-card { grid-template-columns: 1fr; }
  .split-heading { gap: 24px; }
  .profile-grid { gap: 50px; }
  .mode-grid { grid-template-columns: 1fr; }
  .contact-card { gap: 34px; padding: 42px; }
  .contact-side { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --container: calc(100% - 24px); }
  .brand-copy small { display: none; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-copy > p { margin-top: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { display: grid; gap: 20px; margin-top: 38px; }
  .hero-panel { min-height: 420px; padding: 28px 22px; border-radius: 160px 160px 24px 24px; }
  .panel-mark { width: 120px; height: 120px; }
  .section { padding: 70px 0; }
  .section h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .section-title { margin-bottom: 34px; }
  .care-grid { grid-template-columns: 1fr; }
  .care-card { min-height: 230px; }
  .band-row { justify-content: flex-start; width: max-content; gap: 18px; }
  .mode-card { min-height: 345px; padding: 28px; }
  .photo-stage { padding: 8px; border-radius: 24px; }
  .photo-stage img { border-radius: 17px; }
  .contact { padding-top: 16px; }
  .contact-card { min-height: auto; padding: 34px 24px; border-radius: 26px; }
  .phone { font-size: clamp(2rem, 11vw, 3.4rem); }
  .contact-side .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { grid-column: auto; }
}
