/* Soltermex — base, layout primitives, photos, motion, and shared header/footer,
   then one block per page (Inicio, Servicios, Nosotros, Contacto, Aviso).
   Depends on tokens.css. */

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Anchor jumps (skip link, #administracion etc.) land below the sticky header. */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

/* Skip-link target; focus lands here but needs no ring. */
main:focus {
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 700;
  line-height: var(--leading-display);
  text-wrap: balance;
  hyphens: manual;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-2); font-weight: 650; }
h4 { font-size: var(--step-1); font-weight: 600; }

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

p {
  max-width: var(--measure);
}

a {
  color: var(--blue-accent);
}

:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 600;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--orange);
}

/* ---------- Layout ---------- */

/* Centered content column. Full-bleed bands wrap it; their background runs edge to edge. */
.container {
  width: min(100% - 2 * var(--gutter), var(--container-max));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

/* Mobile-first: children span the full row until a breakpoint says otherwise. */
.grid > * {
  grid-column: 1 / -1;
}

.section {
  padding-block: var(--section-space);
}

.section--gray { background: var(--gray-cool); }
.section--navy { background: var(--navy); color: var(--on-dark); }

/* ---------- Photos ---------- */
/* Layout, motion and the hero band live on the parent *__media wrappers;
   the <img> only fills its slot.
   Sources are pre-cut to the slot ratio; object-fit: cover is a safety net. */

.photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--3x2 { aspect-ratio: 3 / 2; }

/* ---------- Links and buttons (hover feedback = motion moment 3) ---------- */

.link {
  color: var(--blue-accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    text-decoration-thickness var(--dur-hover) var(--ease-out),
    text-underline-offset var(--dur-hover) var(--ease-out);
}

.link:hover,
.link:focus-visible {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--navy);
  font: 600 var(--step-0) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-out);
}

.button:hover,
.button:focus-visible {
  background: var(--orange-hover);
}

/* ---------- Motion ---------- */

/* Moment 1: page-load entrance. Add .fade-up; stagger a second element with .fade-up--late. */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-up {
  animation: fade-up var(--dur-enter) var(--ease-out) both;
}

.fade-up--late {
  animation-delay: 80ms;
}

/* Moment 2: slide + fade panel (used by the mobile menu). Toggle .is-open. */
.panel-motion {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-panel) var(--ease-out),
    transform var(--dur-panel) var(--ease-out),
    visibility 0s linear var(--dur-panel);
}

.panel-motion.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-panel) var(--ease-out),
    transform var(--dur-panel) var(--ease-out),
    visibility 0s linear 0s;
}

/* Moment 3 is the .link / .button / nav-link transitions above and below. */

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up--late {
    animation: none;
  }

  .panel-motion,
  .panel-motion.is-open,
  .link,
  .button,
  .site-nav__link,
  .site-footer a {
    transition: none;
  }

  .panel-motion {
    transform: none;
  }
}

/* ---------- Logo ---------- */
/* Inline SVG so the wordmark fill can be recolored. Classes match assets/logo/logo_svg.svg. */

.logo {
  height: var(--logo-height);
  width: auto;
  aspect-ratio: 353 / 205;
}

.logo .logo-navy { fill: var(--navy); }   /* SOLTERMEX wordmark */
.logo .logo-blue { fill: var(--blue); }   /* swoosh top + "consultoría" */
.logo .logo-orange { fill: var(--orange); } /* swoosh bottom */
.logo .logo-blue-accent { fill: var(--blue-accent); } /* swoosh fold */

.logo--on-dark .logo-navy { fill: var(--on-dark); }

/* ---------- Header ---------- */
/* Full-bleed white bar, pinned to the top on every page and width. Content aligns to .container.
   z-index 50 sits above all page content (max 1); only the skip link (100) goes over it.
   Sticky is a positioned box, so the mobile nav panel (absolute, top: 100%) still hangs from it. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: var(--header-pad);
}

.site-header__logo {
  display: block;
  flex: none;
  border-radius: var(--radius);
}

.menu-toggle {
  display: none;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--navy);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
  transition:
    text-decoration-color var(--dur-hover) var(--ease-out),
    text-underline-offset var(--dur-hover) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  text-decoration-color: var(--blue);
  text-underline-offset: 0.25em;
}

.site-nav__link[aria-current="page"] {
  text-decoration-color: var(--orange);
}

/* Mobile: nav collapses behind "Menú" — only when JS is running (.js set in <head>).
   Without JS the nav stays visible and wraps under the logo. */
@media (max-width: 47.99em) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 48px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    font: 600 var(--step-0) / 1 var(--font-body);
    cursor: pointer;
  }

  .menu-toggle__icon {
    position: relative;
    width: 18px;
    height: 12px;
    border-block: 2px solid currentColor;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon {
    height: 2px;
    border-bottom: 0;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px -12px rgb(7 52 77 / 0.25);
  }

  .js .site-nav__list {
    flex-direction: column;
    gap: 0;
    width: min(100% - 2 * var(--gutter), var(--container-max));
    margin-inline: auto;
    padding-block: 0.5rem 1rem;
  }

  .js .site-nav__list li + li {
    border-top: 1px solid var(--rule);
  }

  .js .site-nav__link {
    display: flex;
    min-height: 56px;
    font-size: var(--step-1);
  }

  /* No-JS fallback: nav wraps below the logo instead of overflowing. */
  .site-header__inner {
    flex-wrap: wrap;
  }

  /* No-JS only: the header is taller here (logo row + nav row + 1.5rem gap), so anchor
     jumps clear that instead. Assumes the nav fits one row (true from ~340px). */
  html:not(.js) {
    scroll-padding-top: calc(var(--header-height) + 1.5rem + 48px);
  }
}

/* Without JS, panels are never hidden. */
html:not(.js) .panel-motion {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Desktop: panel styles off, nav always visible. */
@media (min-width: 48em) {
  .site-nav.panel-motion {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
}

/* ---------- Footer ---------- */
/* Full-bleed navy. Same container edges as the page content. */

.site-footer {
  flex: none;
  background: var(--navy);
  color: var(--on-dark);
  padding-block: 3.5rem 2rem;
}

.site-footer :focus-visible {
  outline-color: var(--orange);
}

.site-footer a {
  color: var(--on-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    text-decoration-thickness var(--dur-hover) var(--ease-out),
    text-underline-offset var(--dur-hover) var(--ease-out);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.site-footer__brand .logo {
  --logo-height: 72px;
}

.site-footer__brand a {
  display: inline-block;
  border-radius: var(--radius);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-top: 0.75rem;
}

.site-footer__email {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  color: var(--on-dark-muted);
  font-size: var(--step--1);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer .grid {
  row-gap: 2.5rem;
}

@media (min-width: 48em) {
  .site-footer__brand   { grid-column: 1 / span 4; }
  .site-footer__nav     { grid-column: 5 / span 3; }
  .site-footer__contact { grid-column: 8 / span 5; }
}

@media (min-width: 64em) {
  .site-footer__brand   { grid-column: 1 / span 5; }
  .site-footer__nav     { grid-column: 6 / span 3; }
  .site-footer__contact { grid-column: 9 / span 4; }
}

/* ==========================================================================
   Inicio (index.html)
   ========================================================================== */

:root {
  /* How far the hero photo runs past the hero's bottom edge into Servicios. */
  --hero-overlap: clamp(3rem, 2rem + 5vw, 7rem);
  /* Distance from the container edge to the viewport edge. Uses 100vw, so any element
     using it must sit inside an overflow-x: clip ancestor (scrollbar width). */
  --bleed: max(var(--gutter), (100vw - var(--container-max)) / 2);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--gray-cool);
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  /* Clip the band's horizontal bleed only; vertical overflow (the photo overlap) stays visible. */
  overflow-x: clip;
}

.hero__text {
  align-self: center;
  padding-bottom: 2.5rem;
}

.hero__lead {
  margin-bottom: 2rem;
  font-size: var(--step-1);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.hero__actions .link {
  font-weight: 600;
}

/* Positioned + z-index so the photo paints over the next section's background. */
.hero__media {
  position: relative;
  z-index: 1;
  grid-column: 3 / -1;
  align-self: end;
  margin-bottom: calc(-1 * var(--hero-overlap));
}

/* Blue band behind the lower third of the photo, bleeding off the right edge. */
.hero__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 66.667%;
  bottom: 0;
  left: -30%;
  right: calc(-1 * var(--bleed));
  background: var(--blue);
}

@media (min-width: 48em) {
  .hero__text {
    grid-column: 1 / span 7;
    padding-bottom: var(--section-space);
  }

  .hero__media {
    grid-column: 8 / -1;
  }

  .hero__media::before {
    left: -25%;
  }
}

/* ---------- Servicios rows ---------- */

.home-services {
  padding-top: calc(var(--section-space) + var(--hero-overlap));
  padding-bottom: var(--section-space);
}

.service-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.service-row {
  align-items: baseline;
  row-gap: 0.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}

.service-row__name {
  margin: 0;
  font-size: var(--step-2);
}

.service-row__desc {
  margin: 0;
}

.service-row__link {
  justify-self: start;
  font-weight: 600;
}

@media (min-width: 48em) {
  .service-row__name { grid-column: 1 / span 5; }
  .service-row__desc { grid-column: 6 / -1; }
  .service-row__link { grid-column: 6 / -1; }
}

@media (min-width: 64em) {
  .service-row__desc { grid-column: 6 / span 5; }

  .service-row__link {
    grid-column: 11 / -1;
    justify-self: end;
    text-align: right;
  }
}

/* ---------- Cómo trabajamos ---------- */

.process .grid {
  row-gap: 2.5rem;
}

.process__intro {
  align-self: end;
}

.process__intro h2 {
  margin: 0;
}

.process__steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Mobile: one continuous vertical line carries the order. */
.process__step {
  padding: 0 0 1.75rem 1.5rem;
  border-left: 3px solid var(--blue);
}

.process__step:last-child {
  padding-bottom: 0;
}

.process__title {
  margin-bottom: 0.35rem;
  font-size: var(--step-1);
}

.process__step p {
  margin: 0;
  color: var(--on-dark-muted);
}

@media (min-width: 48em) {
  .process__intro { grid-column: 1 / span 5; }
  .process__media { grid-column: 7 / -1; }
}

/* Wide: four segments in a row, read left to right. */
@media (min-width: 64em) {
  .process__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
  }

  .process__step {
    padding: 1.25rem 0 0;
    border-left: 0;
    border-top: 3px solid var(--blue);
  }
}

/* ---------- Closing strip ---------- */
/* The whole strip links to Contacto via a stretched link; the mailto sits above it. */

.closing {
  position: relative;
}

.closing .grid {
  align-items: center;
  row-gap: 2rem;
}

.closing__lead {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: var(--step-2);
  font-weight: 650;
  line-height: 1.2;
  text-wrap: balance;
}

.closing__link {
  color: var(--navy);
  text-decoration-line: underline;
  text-decoration-color: var(--blue-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition:
    text-decoration-thickness var(--dur-hover) var(--ease-out),
    text-underline-offset var(--dur-hover) var(--ease-out);
}

.closing__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.closing:hover .closing__link,
.closing__link:focus-visible {
  text-decoration-thickness: 3px;
  text-underline-offset: 0.28em;
}

.closing__email {
  position: relative;
  z-index: 1;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 48em) {
  .closing__lead    { grid-column: 1 / span 7; }
  .closing__details { grid-column: 9 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .closing__link {
    transition: none;
  }
}

/* ==========================================================================
   Servicios (servicios.html)
   ========================================================================== */

/* ---------- Intro ---------- */
/* White, like the first service section below it; a container-width rule separates them. */

.services-intro {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
}

.services-intro__inner {
  row-gap: 2rem;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.services-intro__lead {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.45;
}

.services-jump {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-jump .link {
  font-weight: 600;
}

/* Jump links and photo sit on the same columns as the service name and body below,
   so the intro previews the page's two-column system. */
@media (min-width: 48em) {
  .services-intro__text  { grid-column: 1 / span 8; }
  .services-intro__nav   { grid-column: 1 / span 5; }
  .services-intro__media { grid-column: 6 / -1; }
}

@media (min-width: 64em) {
  .services-intro__nav { grid-column: 1 / span 4; }
}

/* ---------- Service sections ---------- */
/* Background alternates white / gray / white via .section--gray in the markup. */

.service .grid {
  row-gap: 1.25rem;
}

.service__name {
  margin: 0;
  font-size: var(--step-2);
}

.service__label {
  margin: 2rem 0 0.5rem;
  font-size: var(--step-1);
}

.service__list {
  padding-left: 1.25em;
}

.service__list li + li {
  margin-top: 0.4rem;
}

.service__link {
  font-weight: 600;
}

.service__body > :first-child { margin-top: 0; }
.service__body > :last-child  { margin-bottom: 0; }

@media (min-width: 48em) {
  .service__name { grid-column: 1 / span 5; }
  .service__body { grid-column: 6 / -1; }
}

@media (min-width: 64em) {
  .service__name { grid-column: 1 / span 4; }
  .service__body { grid-column: 6 / span 7; }
}

/* Sticky name. A sticky box can't leave its containing block (the .grid), which ends
   above the section's bottom padding, so it never reaches the next section. When the
   body is shorter than the name, the row is the name's height and nothing moves.
   align-self: start is required: a stretched grid item fills the row and can't stick.
   Skipped on short viewports (landscape phones) where it would cover too much.
   Offset clears the sticky header (constant height from 48em up, where this applies). */
@media (min-width: 48em) and (min-height: 34em) {
  .service__name {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
  }
}

/* ---------- Photo break between Trámites and Técnico-científico ---------- */
/* Hard 50% split (gray over white) continues both neighbouring bands, so the photo
   straddles the seam and belongs to neither section. It crosses the name/body column
   split on purpose. No overlap tricks: the neighbours' normal padding frames it. */

.services-break {
  background: linear-gradient(to bottom, var(--gray-cool) 50%, var(--white) 50%);
}

@media (min-width: 48em) {
  .services-break__media { grid-column: 1 / span 8; }
}

@media (min-width: 64em) {
  .services-break__media { grid-column: 1 / span 7; }
}

/* ==========================================================================
   Nosotros (nosotros.html)
   ========================================================================== */
/* Same 7/5 split as Inicio's hero, without the band, overlap, or motion. */

.about {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
}

.about .grid {
  row-gap: 2.5rem;
}

.about__lead {
  font-size: var(--step-1);
  line-height: 1.45;
}

.about__text > :last-child {
  margin-bottom: 0;
}

/* Mobile: photo offset right, as on Inicio. */
.about__media {
  grid-column: 3 / -1;
}

.about__entity {
  max-width: none;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: var(--step--1);
}

/* Misión y visión: plain text under subheadings, no cards or tint. Its own .container.grid,
   and the column rule below is shared with .about__text, so both columns are the same width
   at every breakpoint by construction. The section's bottom padding closes the page. */
.about-mv {
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-bottom: var(--section-space);
}

.about-mv h2 {
  margin-bottom: 0.5rem;
  font-size: var(--step-2);
}

.about-mv p + h2 {
  margin-top: 2.25rem;
}

.about-mv__text > :last-child {
  margin-bottom: 0;
}

/* Top-aligned, not centered: at 768px the text column runs much taller than the photo. */
@media (min-width: 48em) {
  .about__text,
  .about-mv__text { grid-column: 1 / span 7; align-self: start; }
  .about__media   { grid-column: 8 / -1; align-self: start; }
}

/* ==========================================================================
   Contacto (contacto.html)
   ========================================================================== */

.contact-header {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.contact-header__lead {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.45;
}

.contact-header__lead a {
  overflow-wrap: anywhere;
}

.contact {
  row-gap: 1.5rem;
  padding-bottom: var(--section-space);
}

.contact__required {
  margin: 0;
  color: var(--text-muted);
}

/* Form and success panel stack in one cell. The form is hidden with visibility, not
   display, so it keeps holding the cell's height and nothing below moves on success. */
.contact__slot {
  display: grid;
}

.contact-form,
.contact-success {
  grid-area: 1 / 1;
}

.contact.is-sent .contact-form,
.contact.is-sent .contact__required {
  visibility: hidden;
}

/* ---------- Fields ---------- */

.field {
  margin-bottom: 1.5rem;
}

.field__label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.field__input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: inherit;
}

.field__input--textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Focus ring comes from the global :focus-visible (2px --blue-accent, offset 2px). */

.field__input[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  margin: 0.375rem 0 0;
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 600;
}

.field__error:empty {
  display: none;
}

/* Honeypot: off-screen rather than display:none, so bots still see and fill it. */
.contact-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error alert: always rendered (so the live region is registered), zero height when empty. */
.contact-form__alert {
  color: var(--error);
  font-weight: 600;
}

.contact-form__alert p {
  margin: 0 0 1.25rem;
}

.contact-form__alert a {
  color: inherit;
  overflow-wrap: anywhere;
}

/* Fixed width so the label swap to "Enviando…" doesn't resize the button. */
.contact-form__submit {
  min-width: 12rem;
}

.contact-form__submit:disabled {
  cursor: progress;
}

.contact-form__note {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}

/* ---------- Success panel ---------- */

.contact-success {
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--blue-accent);
  background: var(--blue-tint);
  color: var(--navy);
}

.contact-success__title {
  margin-bottom: 0.5rem;
  font-size: var(--step-2);
}

.contact-success__text {
  margin-bottom: 1.25rem;
}

.contact-success__again {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Correo + horario panel ---------- */

.contact-panel {
  align-self: start;
  padding: 1.5rem;
  background: var(--gray-cool);
}

.contact-panel__email-wrap {
  max-width: none;
  margin: 0 0 1.75rem;
}

.contact-panel__email {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-panel__title {
  margin-bottom: 0.5rem;
  font-size: var(--step-0);
  font-weight: 700;
}

/* Stacked day / hours: a narrow panel can't hold both on one line. */
.contact-panel__hours {
  margin: 0;
}

.contact-panel__hours dt {
  font-weight: 600;
}

.contact-panel__hours dd {
  margin: 0 0 0.5rem;
}

.contact-panel__hours dd:last-child {
  margin-bottom: 0;
}

/* Below 64em the panel stacks under the form; at 768px a 4-column panel is too narrow. */
@media (min-width: 48em) {
  .contact__required,
  .contact__slot,
  .contact-panel { grid-column: 1 / span 8; }
}

@media (min-width: 64em) {
  .contact__required { grid-column: 1 / span 7; grid-row: 1; }
  .contact__slot     { grid-column: 1 / span 7; grid-row: 2; }

  /* Row 2 starts with the first field, so the panel's top edge lines up with it. */
  .contact-panel {
    grid-column: 9 / -1;
    grid-row: 2;
    padding: 2rem;
  }
}

/* ==========================================================================
   Aviso de privacidad (aviso-de-privacidad.html)
   ========================================================================== */

.legal-header {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
}

.legal-header__inner {
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.legal-header__inner h1 {
  margin-bottom: 0.75rem;
}

.legal-header__date {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}

.legal {
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-bottom: var(--section-space);
  line-height: 1.6;
}

/* 62ch of Source Sans 3 ≈ 65–70 characters of running Spanish text. */
.legal > * {
  max-width: 62ch;
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: var(--step-1);
  font-weight: 650;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal strong {
  font-weight: 600;
}
