/* =========================================================
   GABY PELLON OLIN — Psicología y Tanatología
   Sitio estático, responsivo y listo para Cloudflare Pages
   ========================================================= */

:root {
  --rose-900: #6f3f4a;
  --rose-800: #86515c;
  --rose-700: #a76472;
  --rose-600: #c27e8d;
  --rose-500: #d9919e;
  --rose-400: #e5adb7;
  --rose-300: #efc9cf;
  --rose-200: #f7e2e6;
  --rose-100: #fff4f6;
  --cream: #fffaf8;
  --white: #ffffff;
  --ink: #2f2427;
  --muted: #716367;
  --line: rgba(111, 63, 74, 0.14);
  --shadow-sm: 0 14px 38px rgba(80, 43, 52, 0.09);
  --shadow-lg: 0 28px 80px rgba(80, 43, 52, 0.16);
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 42px;
  --container: 1180px;
  --header-height: 84px;
  --transition: 260ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

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

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 250, 248, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 250, 248, 0.96);
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(73, 42, 48, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(111, 63, 74, 0.13);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
  transition: color var(--transition);
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--rose-600);
  transition: right var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--rose-800);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after,
.main-nav a.active::after {
  right: 0;
}

.nav-cta {
  padding: 11px 18px;
  color: var(--white) !important;
  background: var(--rose-700);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(167, 100, 114, 0.2);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--rose-800);
  transform: translateY(-1px);
}

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

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose-900);
  transition: transform var(--transition), opacity var(--transition);
}

.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);
}

/* HERO */

.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 78px);
  padding-bottom: 76px;
  background:
    radial-gradient(circle at 12% 18%, rgba(239, 201, 207, 0.7), transparent 27%),
    radial-gradient(circle at 83% 30%, rgba(217, 145, 158, 0.2), transparent 24%),
    linear-gradient(145deg, #fffaf8 0%, #fff4f6 56%, #fbebe9 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(194, 126, 141, 0.16);
  pointer-events: none;
}

.hero-orb-one {
  width: 460px;
  aspect-ratio: 1;
  right: -180px;
  top: 12%;
  box-shadow: inset 0 0 0 70px rgba(255, 255, 255, 0.18);
}

.hero-orb-two {
  width: 210px;
  aspect-ratio: 1;
  left: -90px;
  bottom: 7%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 76px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rose-800);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 32px;
  height: 1px;
  background: var(--rose-600);
}

.hero h1,
.section h2 {
  margin: 18px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.15rem, 6vw, 5.7rem);
}

.hero h1 em {
  color: var(--rose-700);
  font-weight: 500;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.23rem);
}

.hero-lead strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}

.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  color: var(--white);
  background: var(--rose-700);
  box-shadow: 0 14px 28px rgba(167, 100, 114, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--rose-800);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(134, 81, 92, 0.27);
}

.button-secondary {
  color: var(--rose-900);
  border-color: rgba(111, 63, 74, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
  transform: translateY(-3px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 42px;
}

.hero-meta > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--rose-700);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.meta-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-meta p {
  display: grid;
  margin: 0;
  line-height: 1.25;
}

.hero-meta strong {
  font-size: 0.92rem;
}

.hero-meta small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.logo-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(194, 126, 141, 0.14);
  backdrop-filter: blur(8px);
}

.logo-card {
  position: relative;
  z-index: 3;
  width: 72%;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.stage-ring {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(167, 100, 114, 0.3);
  animation: rotate 26s linear infinite;
}

.stage-ring-two {
  inset: 15%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.7);
  animation-direction: reverse;
  animation-duration: 18s;
}

.floating-note {
  position: absolute;
  z-index: 5;
  padding: 10px 16px;
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(167, 100, 114, 0.16);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.note-one {
  top: 11%;
  left: 2%;
}

.note-two {
  top: 19%;
  right: -3%;
}

.note-three {
  left: -2%;
  bottom: 14%;
}

.trust-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(111, 63, 74, 0.1);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.trust-strip article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px 25px;
}

.trust-strip article + article {
  border-left: 1px solid var(--line);
}

.trust-strip article > span {
  color: var(--rose-500);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.trust-strip article div {
  display: grid;
  line-height: 1.25;
}

.trust-strip strong {
  font-size: 0.94rem;
}

.trust-strip small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* GENERIC SECTIONS */

.section h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
}

.section-kicker.light {
  color: var(--rose-200);
}

.section-intro {
  color: var(--rose-800) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem !important;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.04rem;
}

/* ABOUT */

.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 100px;
}

.about-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.about-visual::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 44% 56% 48% 52% / 58% 38% 62% 42%;
  background: linear-gradient(145deg, var(--rose-200), #f7d7d5);
  transform: rotate(-6deg);
}

.portrait-placeholder {
  position: relative;
  z-index: 2;
  width: 72%;
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.about-badge {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 40px;
  width: 190px;
  min-height: 170px;
  display: grid;
  align-content: center;
  padding: 24px;
  color: var(--white);
  background: var(--rose-800);
  border: 8px solid var(--cream);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.about-badge span,
.about-badge small {
  opacity: 0.78;
}

.about-badge strong {
  margin: 2px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.about-badge small {
  font-size: 0.76rem;
  line-height: 1.35;
}

.about-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.03rem;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.credentials div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(80, 43, 52, 0.05);
  font-weight: 720;
}

.credentials span {
  color: var(--rose-500);
}

/* SERVICES */

.services {
  background:
    linear-gradient(rgba(255, 244, 246, 0.92), rgba(255, 244, 246, 0.92)),
    radial-gradient(circle at 80% 30%, var(--rose-300), transparent 25%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(111, 63, 74, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px rgba(80, 43, 52, 0.14);
}

.service-card.featured {
  color: var(--white);
  background: linear-gradient(155deg, var(--rose-700), var(--rose-900));
}

.service-number {
  position: absolute;
  top: 22px;
  right: 26px;
  color: var(--rose-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  opacity: 0.55;
}

.featured .service-number {
  color: var(--white);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 52px;
  color: var(--rose-700);
  background: var(--rose-100);
  border-radius: 20px;
}

.featured .service-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.service-icon svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 500;
}

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

.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--rose-800);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.featured a {
  color: var(--white);
}

/* GRIEF */

.grief {
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(229, 173, 183, 0.18), transparent 28%),
    linear-gradient(145deg, #6d3e49, #8d5662 62%, #75434e);
  overflow: hidden;
}

.grief::before {
  content: "";
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  left: -210px;
  bottom: -300px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  box-shadow: inset 0 0 0 70px rgba(255,255,255,0.02);
}

.grief-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

.grief-heading h2 {
  margin-bottom: 20px;
}

.grief-heading p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.04rem;
}

.grief-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grief-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
}

.grief-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.grief-card-wide {
  grid-column: span 4;
  min-height: 230px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 24px;
}

.grief-card-wide .grief-index {
  grid-column: 2;
}

.grief-card-wide .grief-symbol {
  grid-row: 1 / span 3;
  align-self: center;
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.grief-index {
  color: var(--rose-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.grief-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 52px 0 24px;
  color: var(--rose-200);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}

.grief-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.15;
}

.grief-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

/* ONLINE */

.online {
  background: var(--cream);
}

.online-card {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 42px;
  padding: 72px;
  background: linear-gradient(145deg, var(--white), var(--rose-100));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.online-copy {
  position: relative;
  z-index: 2;
}

.online-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
}

.online-copy p {
  max-width: 540px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

.mexico-visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.mexico-visual::before {
  content: "";
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,145,158,0.28), rgba(239,201,207,0.09) 56%, transparent 57%);
}

.mexico-visual svg {
  position: relative;
  z-index: 2;
  width: 100%;
}

.mexico-visual path {
  fill: var(--rose-400);
  stroke: var(--white);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 18px 20px rgba(111,63,74,0.15));
}

.map-label {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 11px 18px;
  color: var(--rose-900);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-dot {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 4px solid var(--rose-800);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.35);
  animation: pulse 2s ease-in-out infinite;
}

.dot-one { top: 42%; left: 30%; }
.dot-two { top: 57%; left: 53%; animation-delay: .4s; }
.dot-three { top: 68%; right: 18%; animation-delay: .8s; }

/* PROCESS */

.process {
  background:
    linear-gradient(rgba(255, 244, 246, 0.92), rgba(255, 244, 246, 0.92)),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(111,63,74,0.03) 80px);
}

.process-heading {
  max-width: 820px;
  margin: 0 auto 68px;
  text-align: center;
}

.process-heading p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
}

.process-line {
  position: absolute;
  left: 50%;
  top: 385px;
  bottom: 170px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--rose-300) 8%, var(--rose-300) 92%, transparent);
}

.steps {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 86px 1fr;
  align-items: center;
  min-height: 170px;
}

.step:nth-child(odd) .step-card {
  grid-column: 1;
  grid-row: 1;
  margin-right: 30px;
  text-align: right;
}

.step:nth-child(even) .step-card {
  grid-column: 3;
  margin-left: 30px;
}

.step-number {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  color: var(--white);
  background: var(--rose-700);
  border: 8px solid var(--rose-100);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(111,63,74,0.17);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.step-card {
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(111, 63, 74, 0.1);
  border-radius: 21px;
  box-shadow: var(--shadow-sm);
}

.step-card span {
  color: var(--rose-700);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-card h3 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
}

/* CLOSING */

.closing {
  padding-top: 82px;
  background: var(--cream);
}

.closing-card {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 52px;
  padding: 58px 70px;
  color: var(--white);
  background:
    radial-gradient(circle at 95% 0%, rgba(255,255,255,0.15), transparent 25%),
    linear-gradient(145deg, var(--rose-700), var(--rose-900));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.closing-logo {
  position: relative;
  z-index: 2;
  padding: 12px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 20px 42px rgba(44, 22, 27, 0.25);
}

.closing-logo img {
  border-radius: 50%;
}

.closing-copy {
  position: relative;
  z-index: 2;
}

.closing-copy h2 {
  max-width: 700px;
  margin: 14px 0 15px;
  font-size: clamp(2.35rem, 4vw, 4rem);
}

.closing-copy p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.72);
}

.button-light {
  color: var(--rose-900);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(44,22,27,0.18);
}

.button-light:hover,
.button-light:focus-visible {
  transform: translateY(-3px);
  background: var(--rose-100);
}

.closing-mark {
  position: absolute;
  right: 30px;
  bottom: -80px;
  color: rgba(255,255,255,0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20rem;
  line-height: 1;
}

/* FOOTER */

.site-footer {
  padding: 54px 0;
  background: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: center;
  gap: 38px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-brand div,
.footer-info,
.footer-nav {
  display: grid;
}

.footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
}

.footer-brand span,
.footer-info p,
.footer-nav a {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-info p {
  margin: 2px 0;
}

.footer-nav {
  justify-content: end;
  gap: 5px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--rose-800);
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--rose-800);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(80,43,52,0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--rose-900);
}

.back-to-top svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ANIMATIONS */

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 7px rgba(255,255,255,0.28); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 13px rgba(255,255,255,0.08); }
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* RESPONSIVE */

@media (max-width: 1080px) {
  :root {
    --header-height: 76px;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav a {
    font-size: 0.86rem;
  }

  .hero-grid {
    gap: 40px;
  }

  .about-grid {
    gap: 55px;
  }

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

  .grief-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 88px 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1002;
  }

  .main-nav {
    position: fixed;
    z-index: 1001;
    inset: var(--header-height) 18px auto;
    display: grid;
    gap: 0;
    padding: 16px;
    background: rgba(255,250,248,0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--rose-100);
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 60px);
  }

  .hero-grid,
  .about-grid,
  .online-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 16px;
  }

  .logo-stage {
    width: min(82vw, 500px);
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .about-grid {
    gap: 45px;
  }

  .about-visual {
    min-height: 500px;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy p {
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 340px;
  }

  .online-card {
    padding: 56px 42px;
  }

  .online-copy {
    text-align: center;
  }

  .online-copy p {
    margin-inline: auto;
  }

  .process-line {
    left: 34px;
    top: 350px;
  }

  .step {
    grid-template-columns: 68px 1fr;
    min-height: auto;
    margin-bottom: 24px;
  }

  .step-number {
    grid-column: 1;
    width: 58px;
    height: 58px;
    border-width: 6px;
  }

  .step:nth-child(odd) .step-card,
  .step:nth-child(even) .step-card {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 0 18px;
    text-align: left;
  }

  .closing-card {
    grid-template-columns: 150px 1fr;
    padding: 52px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: start;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 26px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .brand-copy small {
    display: none;
  }

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

  .hero {
    padding-top: calc(var(--header-height) + 48px);
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    justify-content: start;
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  .floating-note {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .note-one { left: -2%; }
  .note-two { right: -4%; }
  .note-three { left: -2%; bottom: 10%; }

  .trust-strip {
    margin-top: 40px;
  }

  .about-visual {
    min-height: 400px;
  }

  .portrait-placeholder {
    width: 76%;
  }

  .about-badge {
    right: 3px;
    bottom: 12px;
    width: 160px;
    min-height: 145px;
    padding: 18px;
    border-width: 6px;
  }

  .credentials {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .service-card {
    min-height: 320px;
    padding: 28px;
  }

  .service-icon {
    margin-bottom: 38px;
  }

  .grief-grid {
    grid-template-columns: 1fr;
  }

  .grief-card,
  .grief-card-wide {
    grid-column: auto;
    min-height: 270px;
    display: flex;
  }

  .grief-card-wide .grief-index {
    grid-column: auto;
  }

  .grief-card-wide .grief-symbol {
    grid-row: auto;
    align-self: auto;
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .online-card {
    padding: 38px 22px;
    border-radius: 30px;
  }

  .mexico-visual {
    min-height: 250px;
  }

  .map-label {
    bottom: 0;
  }

  .process-heading {
    margin-bottom: 45px;
  }

  .process-line {
    top: 305px;
    left: 27px;
    bottom: 120px;
  }

  .step {
    grid-template-columns: 54px 1fr;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.12rem;
    border-width: 5px;
  }

  .step:nth-child(odd) .step-card,
  .step:nth-child(even) .step-card {
    margin-left: 12px;
  }

  .step-card {
    padding: 20px;
  }

  .closing-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 24px;
    text-align: center;
    border-radius: 30px;
  }

  .closing-logo {
    width: 136px;
    margin-inline: auto;
  }

  .closing-copy h2 {
    font-size: 2.45rem;
  }

  .closing-mark {
    font-size: 13rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-nav {
    grid-column: auto;
    grid-auto-flow: row;
    justify-content: center;
    gap: 7px;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 0.88rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .floating-note {
    display: none;
  }
}
