/* Home redesign, direction A "El Portal".
   Everything is scoped under body.home-a so no other page is affected.
   Loaded after styles.css, footer.css and trazado-carta.css.
   Palette: #050508 / #c9a55c / #f5f0e8 / #1a1a3e. Mobile first. */

.home-a {
  --home-bg: #050508;
  --home-bg-2: #0a0a14;
  --home-panel: #0d0d1f;
  --home-gold: #c9a55c;
  --home-gold-hover: #e2c68a;
  --home-cream: #f5f0e8;
  --home-text: rgba(245, 240, 232, 0.78);
  --home-muted: rgba(245, 240, 232, 0.66);
  --home-line: rgba(201, 165, 92, 0.25);
  --home-line-strong: rgba(201, 165, 92, 0.4);
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.home-a ::selection {
  background: var(--home-gold);
  color: var(--home-bg);
}

.home-a a:focus-visible,
.home-a button:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 3px;
}

.home-a .home-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.home-a .home-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-a h2 {
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.home-a .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 220ms var(--home-ease);
}

.home-a .home-btn-gold {
  background: var(--home-gold);
  color: var(--home-bg);
}

.home-a .home-btn-gold:hover {
  background: var(--home-gold-hover);
}

.home-a .home-btn-text {
  padding: 0 4px;
  color: var(--home-cream);
  border-bottom: 1px solid rgba(245, 240, 232, 0.4);
  min-height: 44px;
}

.home-a .home-btn-text:hover {
  color: var(--home-gold-hover);
  border-bottom-color: var(--home-gold-hover);
}

/* ---------- Hero ---------- */
.home-a .home-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 104px;
  background: radial-gradient(ellipse at 50% 72%, #1a1a3e 0%, var(--home-bg) 65%);
}

.home-a .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.home-a .home-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-a .home-h1 {
  margin: 0;
  color: var(--home-cream);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-a .home-kicker {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--home-gold);
}

.home-a .home-h1-main {
  display: block;
  font-size: clamp(2.125rem, 9.6vw, 3.75rem);
  line-height: 1.1;
}

.home-a .home-lead {
  margin: 0;
  max-width: 34rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
  color: rgba(245, 240, 232, 0.85);
  opacity: 1;
}

.home-a .home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.home-a .home-cta-row .home-btn-gold {
  width: 100%;
}

.home-a .home-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--home-muted);
  opacity: 1;
}

/* Cards stage */
.home-a .home-hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.home-a .home-flower {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(120%, 560px);
  aspect-ratio: 1;
  translate: -50% -50%;
  color: var(--home-gold);
  opacity: 0.18;
  pointer-events: none;
}

.home-a .home-cards {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  --side: 108px;
  --center: 132px;
  --orb-side: 44px;
  --orb-center: 52px;
  --overlap: -34px;
}

.home-a .home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: var(--side);
  --rot: 0deg;
  --dy: 0px;
  transform: translateY(var(--dy)) rotate(var(--rot));
}

.home-a .home-card img {
  order: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border: 1px solid rgba(201, 165, 92, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  background: var(--home-panel);
}

.home-a .home-orb {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--orb-side);
  height: var(--orb-side);
  border: 1.5px solid var(--home-gold);
  border-radius: 50%;
  background: var(--home-bg);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--home-gold);
}

.home-a .home-card figcaption {
  order: 3;
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  letter-spacing: 2px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  color: var(--home-cream);
}

.home-a .home-card--left {
  --rot: -8deg;
  --dy: 22px;
  margin-right: var(--overlap);
}

.home-a .home-card--right {
  --rot: 8deg;
  --dy: 22px;
  margin-left: var(--overlap);
}

.home-a .home-card--center {
  z-index: 2;
  width: var(--center);
}

.home-a .home-card--center img {
  border-color: var(--home-gold);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.7);
}

.home-a .home-card--center .home-orb {
  width: var(--orb-center);
  height: var(--orb-center);
  background: var(--home-gold);
  font-size: 1.375rem;
  color: var(--home-bg);
  box-shadow: 0 0 32px rgba(201, 165, 92, 0.4);
}

.home-a .home-card--center figcaption {
  color: var(--home-gold);
}

/* ---------- Form band ---------- */
.home-a .home-band {
  position: relative;
  z-index: 3;
  margin-top: -56px;
  scroll-margin-top: 96px;
  padding: 0;
  text-align: left;
  background: none;
  overflow: visible;
}

.home-a .home-band-box {
  padding: 24px 20px;
  background: var(--home-panel);
  border: 1px solid rgba(201, 165, 92, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.home-a .home-band-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.home-a .home-band-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--home-cream);
}

.home-a .home-band-time {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--home-gold);
}

.home-a .home-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 10px;
  align-items: end;
}

.home-a .home-form .trazado-field {
  min-width: 0;
}

.home-a .home-form .trazado-field label {
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: rgba(245, 240, 232, 0.78);
}

.home-a .home-form .trazado-field .trazado-optional {
  font-size: 0.75rem;
  opacity: 1;
  color: var(--home-muted);
}

.home-a .home-form .trazado-field input,
.home-a .home-form .trazado-field select {
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--home-line-strong);
  border-radius: 0;
  background: var(--home-bg);
  color: var(--home-cream);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px minimum keeps iOS from zooming on focus */
}

.home-a .home-form .trazado-field input::placeholder {
  color: rgba(245, 240, 232, 0.65); /* 4.5:1+ on the dark field */
}

.home-a .home-form .trazado-field input[aria-invalid="true"],
.home-a .home-form .trazado-field select[aria-invalid="true"] {
  border-color: #e07a7a;
}

.home-a .home-f-nombres { grid-column: 1 / -1; }
.home-a .home-f-paterno { grid-column: span 6; }
.home-a .home-f-materno { grid-column: span 6; }
/* Month gets the wider share (it holds "Septiembre"); the year takes its own row on phones. */
.home-a .home-f-dia { grid-column: span 4; }
.home-a .home-f-mes { grid-column: span 8; }
.home-a .home-f-anio { grid-column: 1 / -1; }

.home-a .home-form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.home-a .home-submit {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
}

.home-a .home-form-privacy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  color: var(--home-muted);
  opacity: 1;
}

/* ---------- Quote ---------- */
.home-a .home-quote {
  padding: 72px 0 40px;
}

.home-a .home-quote-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.home-a .home-quote-rule {
  width: 1px;
  height: 56px;
  background: var(--home-gold);
}

.home-a .home-quote-text {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 6.4vw, 2.5rem);
  line-height: 1.25;
  color: var(--home-cream);
  text-wrap: balance;
}

.home-a .home-quote-sub {
  max-width: 58ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--home-text);
  opacity: 1;
}

.home-a .home-pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.home-a .home-pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--home-line);
  background: rgba(13, 13, 31, 0.6);
  transition: border-color 250ms ease;
}

.home-a .home-pillar:hover {
  border-color: rgba(201, 165, 92, 0.6);
}

.home-a .home-pillar-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--home-gold);
}

.home-a .home-pillar-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--home-cream);
}

.home-a .home-pillar-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--home-text);
  opacity: 1;
}

@media (min-width: 768px) {
  .home-a .home-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ---------- Services ---------- */
.home-a .home-services {
  padding: 40px 0 72px;
  scroll-margin-top: 96px;
}

.home-a .home-services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.home-a .home-services-intro h2 {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: clamp(1.875rem, 7vw, 2.75rem);
  line-height: 1.15;
  color: var(--home-cream);
  text-wrap: balance;
}

.home-a .home-services-intro p {
  max-width: 60ch;
  margin: 0;
  line-height: 1.7;
  color: var(--home-text);
  opacity: 1;
}

.home-a .home-services-intro img {
  display: none;
  width: 100%;
  height: 300px;
  margin-top: 28px;
  object-fit: cover;
  border: 1px solid rgba(201, 165, 92, 0.3);
}

.home-a .home-svc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--home-line);
}

.home-a .home-svc-list > li {
  border-top: 1px solid var(--home-line);
}

.home-a .home-svc {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  min-height: 44px;
  padding: 20px 0;
  color: var(--home-cream);
}

.home-a .home-svc-num {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--home-gold);
}

.home-a .home-svc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-a .home-svc-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
}

.home-a .home-svc-line {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--home-muted);
}

.home-a .home-svc-cta {
  grid-column: 2;
  font-size: 0.8125rem;
  letter-spacing: 1px;
  color: var(--home-gold);
}

.home-a .home-svc:hover .home-svc-name {
  color: var(--home-gold-hover);
}

.home-a .home-arrow {
  display: inline-block;
}

.home-a .home-svc-extra {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -6px 0 14px 54px;
  font-size: 0.8125rem;
  letter-spacing: 1px;
  color: var(--home-gold);
}

.home-a .home-svc-extra:hover {
  color: var(--home-gold-hover);
}

/* ---------- Testimonials ---------- */
.home-a .home-testimonials {
  padding: 72px 0;
  border-top: 1px solid var(--home-line);
}

.home-a .home-section-title {
  margin: 0 0 32px;
  text-align: center;
  font-weight: 400;
  font-size: clamp(1.75rem, 6.4vw, 2.5rem);
  line-height: 1.2;
  color: var(--home-cream);
  text-wrap: balance;
}

.home-a .home-testi-feature {
  position: relative;
  max-width: 880px;
  margin: 0 auto 40px;
}

.home-a .home-qmark {
  display: block;
  height: 40px;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--home-gold);
}

.home-a .home-testi-feature blockquote {
  margin: 0;
}

.home-a .home-testi-feature p {
  margin: 0 0 20px;
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 5.4vw, 2.125rem);
  line-height: 1.35;
  color: var(--home-cream);
  opacity: 1;
  text-wrap: pretty;
}

.home-a .home-testimonials figcaption {
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--home-gold);
}

.home-a .home-testi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.home-a .home-testi {
  margin: 0;
  padding: 24px;
  background: var(--home-panel);
  border: 1px solid var(--home-line);
}

.home-a .home-testi blockquote {
  margin: 0;
}

.home-a .home-testi p {
  margin: 0 0 16px;
  font-family: var(--font-accent);
  font-size: 1.1875rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.88);
  opacity: 1;
}

/* ---------- About ---------- */
.home-a .home-about {
  padding: 72px 0;
  background: var(--home-bg-2);
  scroll-margin-top: 96px;
}

.home-a .home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.home-a .home-about-photo img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: cover;
  filter: grayscale(0.2);
}

.home-a .home-about-text h2 {
  margin: 0 0 4px;
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--home-cream);
}

.home-a .home-about-role {
  margin: 0 0 20px;
  font-family: var(--font-accent);
  font-size: 1.375rem;
  color: #e3c478;
  opacity: 1;
}

.home-a .home-about-text p {
  max-width: 66ch;
  line-height: 1.75;
  color: var(--home-text);
  opacity: 1;
}

.home-a .home-about-text .home-about-role {
  color: #e3c478;
}

.home-a .home-link-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--home-gold);
  border-bottom: 1px solid var(--home-line-strong);
}

.home-a .home-link-gold:hover {
  color: var(--home-gold-hover);
  border-bottom-color: var(--home-gold-hover);
}

/* ---------- Cartas del Alma ---------- */
.home-a .home-alma {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  text-align: center;
  scroll-margin-top: 96px;
  background: radial-gradient(ellipse at 50% 50%, rgba(26, 26, 62, 0.85) 0%, var(--home-bg) 70%);
  border-top: 1px solid var(--home-line);
}

.home-a .home-alma-flower {
  width: min(140%, 640px);
  opacity: 0.045;
}

/* Dark halo behind the copy so the mandala lines never cross the text. */
.home-a .home-alma-inner::before {
  content: "";
  position: absolute;
  inset: -40px -24px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0) 70%);
  pointer-events: none;
}

.home-a .home-alma-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-a .home-alma-sub {
  margin: 0 0 12px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--home-gold);
  opacity: 1;
}

.home-a .home-alma .home-section-title {
  margin-bottom: 16px;
}

.home-a .home-alma-desc {
  max-width: 52ch;
  margin: 0 0 32px;
  line-height: 1.7;
  color: var(--home-text);
  opacity: 1;
}

/* ---------- Services marquee ---------- */
.home-a .home-marquee {
  display: flex;
  align-items: center;
  overflow: hidden;
  overflow: clip; /* clip cannot be scrolled by focusing a pill */
  padding: 40px 0;
  background: var(--home-bg);
  border-top: 1px solid var(--home-line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.home-a .home-marquee-track {
  display: flex;
  width: max-content;
}

.home-a .home-marquee-group {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0 24px 0 0;
  list-style: none;
}

.home-a .home-marquee-group li {
  display: flex;
  align-items: center;
  gap: 24px;
}

.home-a .home-marquee-group li::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--home-gold);
  transform: rotate(45deg);
}

.home-a .home-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 24px 8px 8px;
  border: 1px solid var(--home-line-strong);
  border-radius: 60px;
  color: var(--home-cream);
  white-space: nowrap;
}

.home-a .home-pill img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.home-a .home-pill span {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.home-a .home-pill:hover {
  border-color: var(--home-gold);
  color: var(--home-gold-hover);
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .home-a .home-wrap {
    padding: 0 32px;
  }

  .home-a .home-f-dia { grid-column: span 3; }
  .home-a .home-f-mes { grid-column: span 5; }
  .home-a .home-f-anio { grid-column: span 4; }

  .home-a .home-cta-row .home-btn-gold {
    width: auto;
  }

  .home-a .home-cards {
    --side: 136px;
    --center: 164px;
    --orb-side: 52px;
    --orb-center: 64px;
    --overlap: -40px;
  }

  .home-a .home-card figcaption {
    font-size: 0.75rem;
  }

  .home-a .home-band-box {
    padding: 32px 36px;
  }

  .home-a .home-band-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  .home-a .home-band-head h2 {
    font-size: 1.5rem;
  }

  .home-a .home-svc {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 20px;
  }

  .home-a .home-svc-cta {
    grid-column: auto;
  }

  .home-a .home-svc-extra {
    margin-left: 76px;
  }

  .home-a .home-testi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .home-a .home-wrap {
    padding: 0 48px;
  }

  .home-a .home-hero {
    padding: 132px 0 116px;
    background: radial-gradient(ellipse at 72% 45%, #1a1a3e 0%, var(--home-bg) 62%);
  }

  .home-a .home-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    min-height: 560px;
  }

  .home-a .home-hero-copy {
    gap: 28px;
  }

  .home-a .home-kicker {
    font-size: 0.75rem;
    letter-spacing: 4px;
  }

  .home-a .home-lead {
    font-size: 1.625rem;
  }

  .home-a .home-hero-stage {
    min-height: 500px;
  }

  .home-a .home-cards {
    --side: 176px;
    --center: 208px;
    --orb-side: 60px;
    --orb-center: 80px;
    --overlap: -32px;
  }

  .home-a .home-card {
    gap: 14px;
  }

  .home-a .home-card .home-orb {
    order: 0;
    font-size: 1.5rem;
  }

  .home-a .home-card--center .home-orb {
    font-size: 2rem;
  }

  .home-a .home-card figcaption {
    font-size: 0.875rem;
    letter-spacing: 3px;
  }

  .home-a .home-card--left,
  .home-a .home-card--right {
    --dy: 24px;
  }

  .home-a .home-band {
    margin-top: -64px;
  }

  .home-a .home-band-box {
    padding: 36px 48px;
  }

  /* 960-1199px: two rows of the 12-column grid so the month select stays wide. */
  .home-a .home-form {
    gap: 12px;
  }

  .home-a .home-f-nombres,
  .home-a .home-f-paterno,
  .home-a .home-f-materno { grid-column: span 4; }
  .home-a .home-f-dia { grid-column: span 2; }
  .home-a .home-f-mes { grid-column: span 3; }
  .home-a .home-f-anio { grid-column: span 2; }
  .home-a .home-submit { grid-column: span 5; }

  .home-a .home-submit {
    width: 100%;
    padding: 0 28px;
    min-height: 50px;
  }

  .home-a .home-form-error,
  .home-a .home-form-privacy {
    grid-column: 1 / -1;
  }

  .home-a .home-form-privacy {
    order: 1;
    text-align: left;
  }

  .home-a .home-quote {
    padding: 112px 0 56px;
  }

  .home-a .home-services {
    padding: 40px 0 104px;
  }

  .home-a .home-services-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }

  .home-a .home-services-intro {
    grid-column: span 4;
  }

  .home-a .home-services-intro img {
    display: block;
  }

  .home-a .home-svc-list {
    grid-column: 6 / span 7;
  }

  .home-a .home-svc {
    grid-template-columns: 64px minmax(0, 1fr) 120px;
    gap: 24px;
    padding: 26px 0;
  }

  .home-a .home-svc-num {
    font-size: 1.75rem;
  }

  .home-a .home-svc-name {
    font-size: 1.5rem;
  }

  .home-a .home-svc-line {
    font-size: 0.875rem;
  }

  .home-a .home-svc-cta {
    text-align: right;
  }

  .home-a .home-svc-extra {
    margin-left: 88px;
  }

  .home-a .home-testimonials,
  .home-a .home-about {
    padding: 100px 0;
  }

  .home-a .home-about-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }

  .home-a .home-about-photo {
    grid-column: span 4;
  }

  .home-a .home-about-photo img {
    aspect-ratio: 4 / 5;
    max-width: none;
  }

  .home-a .home-about-text {
    grid-column: 6 / span 7;
  }

  .home-a .home-about-text h2 {
    font-size: 2rem;
  }

  .home-a .home-alma {
    padding: 112px 0;
  }

  .home-a .home-marquee {
    padding: 56px 0;
  }

  .home-a .home-pill img {
    width: 72px;
    height: 72px;
  }

  .home-a .home-pill {
    gap: 16px;
    padding: 12px 28px 12px 12px;
  }

  .home-a .home-pill span {
    font-size: 1.375rem;
  }

  .home-a .home-marquee-group,
  .home-a .home-marquee-group li {
    gap: 32px;
  }

  .home-a .home-marquee-group {
    padding-right: 32px;
  }
}

@media (min-width: 1200px) {
  .home-a .home-cards {
    --side: 200px;
    --center: 232px;
  }

  /* One row; month never narrower than 140px ("Septiembre" plus arrow). */
  .home-a .home-form {
    grid-template-columns: 1.3fr 1fr 1fr 0.55fr minmax(140px, 0.85fr) 0.65fr auto;
  }

  .home-a .home-f-nombres,
  .home-a .home-f-paterno,
  .home-a .home-f-materno,
  .home-a .home-f-dia,
  .home-a .home-f-mes,
  .home-a .home-f-anio,
  .home-a .home-submit {
    grid-column: auto;
  }

  .home-a .home-submit {
    width: auto;
  }
}

/* =====================================================================
   Motion
   Only transform and opacity move. Hover and press feedback is instant to
   the eye; arrivals decelerate with an exponential ease-out (no bounce).
   ===================================================================== */

/* Scroll reveals: reuse the site's IntersectionObserver (js/main.js), but
   with a short rise and a calm ease instead of the 30px / 1s default. */
@keyframes homeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes homeFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-a .fade-in-up {
  animation-name: homeRise;
  animation-duration: 0.6s;
  animation-timing-function: var(--home-ease);
}

.home-a .fade-in {
  animation-name: homeFade;
  animation-duration: 0.6s;
  animation-timing-function: var(--home-ease);
}

/* Hero entrance: the side cards fan out from behind the Mision card, then
   the orbs and captions settle in. Plays once on load. */
@keyframes homeFanLeft {
  from {
    opacity: 0;
    transform: translate(calc((var(--side) + var(--center)) / 2 + var(--overlap)), var(--dy)) rotate(0deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(0, var(--dy)) rotate(var(--rot)) scale(1);
  }
}

@keyframes homeFanRight {
  from {
    opacity: 0;
    transform: translate(calc((var(--side) + var(--center)) / -2 - var(--overlap)), var(--dy)) rotate(0deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(0, var(--dy)) rotate(var(--rot)) scale(1);
  }
}

@keyframes homeCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes homeOrbIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.home-a .home-card--center {
  animation: homeCardIn 700ms var(--home-ease) both;
}

.home-a .home-card--left {
  animation: homeFanLeft 900ms var(--home-ease) 120ms both;
}

.home-a .home-card--right {
  animation: homeFanRight 900ms var(--home-ease) 120ms both;
}

.home-a .home-orb {
  animation: homeOrbIn 500ms var(--home-ease) 620ms both;
}

.home-a .home-card--center .home-orb {
  animation-delay: 520ms;
}

.home-a .home-card figcaption {
  animation: homeFade 500ms var(--home-ease) 700ms both;
}

.home-a .home-flower {
  animation: homeFade 1200ms ease-out both;
}

/* Hover / press feedback. Colour changes are instant; only transform eases. */
.home-a .home-btn,
.home-a .home-svc,
.home-a .home-svc-extra,
.home-a .home-link-gold,
.home-a .home-pill {
  transition: transform 220ms var(--home-ease);
}

.home-a .home-btn:hover {
  transform: translateY(-1px);
}

.home-a .home-arrow {
  transition: transform 220ms var(--home-ease);
}

.home-a .home-svc:hover .home-arrow,
.home-a .home-svc-extra:hover .home-arrow,
.home-a .home-link-gold:hover .home-arrow {
  transform: translateX(4px);
}

.home-a .home-btn:active,
.home-a .home-pill:active {
  transform: scale(0.97);
  transition-duration: 100ms;
  transition-timing-function: ease-out;
}

.home-a .home-svc:active {
  transform: scale(0.985);
  transition-duration: 100ms;
  transition-timing-function: ease-out;
}

/* Services marquee: one group is exactly half the track, so -50% loops
   seamlessly. Pauses on hover, keyboard focus and while offscreen. */
@keyframes homeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-a .home-marquee-track {
  animation: homeMarquee 40s linear infinite;
}

.home-a .home-marquee:hover .home-marquee-track,
.home-a .home-marquee:focus-within .home-marquee-track,
.home-a .home-marquee.is-offscreen .home-marquee-track {
  animation-play-state: paused;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .home-a .fade-in-up,
  .home-a .fade-in {
    animation-name: homeFade;
    animation-duration: 0.3s;
  }

  .home-a .home-card,
  .home-a .home-orb,
  .home-a .home-card figcaption,
  .home-a .home-flower {
    animation: none;
  }

  .home-a .home-btn,
  .home-a .home-svc,
  .home-a .home-svc-extra,
  .home-a .home-link-gold,
  .home-a .home-pill,
  .home-a .home-arrow {
    transition: none;
  }

  .home-a .home-btn:hover,
  .home-a .home-btn:active,
  .home-a .home-pill:active,
  .home-a .home-svc:active,
  .home-a .home-svc:hover .home-arrow,
  .home-a .home-svc-extra:hover .home-arrow,
  .home-a .home-link-gold:hover .home-arrow {
    transform: none;
  }

  /* The marquee becomes a plain horizontally scrollable row. */
  .home-a .home-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-a .home-marquee-track {
    animation: none;
  }

  .home-a .home-marquee-group[aria-hidden="true"] {
    display: none;
  }
}
