/* CL Contadores — colors follow the e2ecore theme tokens.
   Change the palette here and the whole page follows. */

:root {
  --color-navy: #041526;
  --color-navy-2: #0a2744;
  --color-surface: #0e3052;
  --color-cyan: #2ee6d6;
  --color-teal: #1aa7a0;
  --color-paper: #f3f7fa;
  --color-paper-2: #e4eef4;
  --color-ink: #0b1c2c;
  --color-ink-inverse: #f4fbfc;
  --color-muted: #3a5164;
  --color-line: rgba(11, 28, 44, 0.14);
  --color-line-strong: rgba(11, 28, 44, 0.28);
  --color-whatsapp: #075e54;
  --color-focus: #041526;
  --color-focus-on-dark: #2ee6d6;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4.5rem;
  --page: 1120px;
  --header-h: 4.5rem;
  --radius: 6px;
  --shadow: 0 16px 36px rgba(4, 21, 38, 0.12);
  --measure: 62ch;
}

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

html {
  scroll-padding-top: 10.5rem;
  scroll-padding-bottom: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-navy-2);
}

a:hover {
  color: var(--color-surface);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -3rem;
  z-index: 40;
  background: var(--color-cyan);
  color: var(--color-navy);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}

.wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-navy);
  color: var(--color-ink-inverse);
  min-height: var(--header-h);
}

.site-header a {
  color: var(--color-ink-inverse);
  text-decoration: none;
}

.site-header :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.15rem;
  min-height: var(--header-h);
  padding-block: 0.45rem 0.35rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  min-height: 44px;
}

.wordmark-mark {
  color: var(--color-cyan);
  font-weight: 700;
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  background: var(--color-surface);
  color: var(--color-cyan);
}

.header-phone {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-cyan);
  border-radius: var(--radius);
  color: var(--color-cyan);
  font-weight: 700;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--color-cyan);
  color: var(--color-navy);
}

.hero {
  position: relative;
  padding-block: var(--space-4) var(--space-5);
  background-color: var(--color-paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(10, 39, 68, 0.04) 32px
  );
}

.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1,
h2,
.role-title {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  margin: 0 0 var(--space-2);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 12ch;
}

.lede {
  margin: 0 0 var(--space-3);
  max-width: var(--measure);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-whatsapp);
  color: #ffffff;
}

.btn-short {
  display: none;
}

.btn-secondary {
  background: var(--color-navy);
  color: var(--color-ink-inverse);
}

.btn-secondary:hover {
  background: var(--color-navy-2);
  color: var(--color-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink-inverse);
  border: 1px solid rgba(244, 251, 252, 0.45);
}

.btn-ghost:hover {
  background: var(--color-surface);
  color: var(--color-cyan);
}

.fallback-note,
.section-intro,
.contact-note,
.role-where,
.fine-print {
  color: var(--color-muted);
}

.fallback-note {
  margin: 0;
  max-width: var(--measure);
  font-size: 1rem;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.contact .text-link {
  color: var(--color-cyan);
}

.seals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.seals li {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  background: rgba(243, 247, 250, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-photo {
  margin: 0;
  background: var(--color-navy);
  padding: 0.7rem 0.7rem 0.85rem;
  box-shadow: var(--shadow);
  width: min(100%, 240px);
}

.hero-actions {
  flex-direction: column;
}

.hero-actions .btn {
  width: 100%;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  background: #ffffff;
}

.hero-photo figcaption {
  margin-top: 0.75rem;
  color: var(--color-ink-inverse);
  font-size: 1rem;
}

.section {
  padding-block: var(--space-5);
}

.section-alt {
  background: var(--color-paper-2);
}

h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-intro {
  margin: 0 0 var(--space-4);
  max-width: var(--measure);
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  margin: 0;
  padding: 1.25rem 1.2rem 1.35rem;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-top: 4px solid var(--color-teal);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.card p {
  margin: 0;
}

.roles {
  display: grid;
  gap: var(--space-4);
}

.role {
  padding-left: 1.1rem;
  border-left: 4px solid var(--color-teal);
}

.role-when {
  margin: 0 0 0.25rem;
  color: var(--color-teal);
  font-weight: 700;
}

.role-title {
  margin: 0;
  font-size: 1.7rem;
}

.role-where {
  margin: 0.3rem 0 0.8rem;
}

.role ul,
.study-list,
.tool-list {
  margin: 0;
  padding-left: 1.15rem;
}

.role li + li,
.study-list li + li {
  margin-top: 0.35rem;
}

.split {
  display: grid;
  gap: var(--space-4);
}

.study-block + .study-block {
  margin-top: var(--space-4);
}

.study-block h3,
.tools h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.tool-list li {
  margin: 0;
  padding: 0.4rem 0.75rem;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-weight: 700;
}

.contact {
  background: var(--color-navy);
  color: var(--color-ink-inverse);
  padding-block: var(--space-5);
}

.contact :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.contact h2 {
  margin-bottom: var(--space-2);
}

.contact .section-intro,
.contact-note {
  color: rgba(244, 251, 252, 0.82);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-3);
}

.contact-actions .btn {
  width: 100%;
}

.contact-note {
  margin: 0;
  max-width: var(--measure);
}

.site-footer {
  background: var(--color-navy-2);
  color: rgba(244, 251, 252, 0.82);
  padding-block: var(--space-3);
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--color-cyan);
  font-weight: 700;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(4, 21, 38, 0.96);
  border-top: 1px solid rgba(46, 230, 214, 0.35);
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}

.dock-call {
  background: transparent;
  color: var(--color-ink-inverse);
  border: 1px solid rgba(244, 251, 252, 0.5);
}

.dock-wa {
  background: var(--color-whatsapp);
  color: #ffffff;
}

.dock :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

@media (max-width: 899px) {
  .hero {
    padding-block: 1.25rem 2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-photo {
    width: 168px;
  }

  .hero-photo figcaption {
    display: none;
  }

  .hero-rest {
    display: flex;
    flex-direction: column;
  }

  .hero-actions {
    order: -1;
    margin-bottom: var(--space-2);
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .hero-actions .btn {
    width: auto;
    flex: 1;
  }

  .hero-actions .btn-long {
    display: none;
  }

  .hero-actions .btn-short {
    display: inline;
  }
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-actions .btn {
    width: auto;
  }
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 12px);
    scroll-padding-bottom: 0;
  }

  body {
    padding-bottom: 0;
  }

  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem 1.25rem;
    padding-block: 0;
  }

  .wordmark {
    margin-right: auto;
  }

  .site-nav {
    display: flex;
    width: auto;
    gap: 0.15rem;
  }

  .site-nav a {
    padding-inline: 0.7rem;
  }

  .header-phone {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-areas:
      "intro photo"
      "rest photo";
  }

  .hero-intro {
    grid-area: intro;
  }

  .hero-rest {
    grid-area: rest;
  }

  .hero-photo {
    grid-area: photo;
    justify-self: end;
    align-self: center;
    width: min(100%, 440px);
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-photo img {
    aspect-ratio: 4 / 5;
  }

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

  .dock {
    display: none;
  }
}

@media print {
  .site-header,
  .dock,
  .skip-link {
    display: none;
  }

  body {
    padding-bottom: 0;
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .hero,
  .section,
  .contact,
  .site-footer {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
  }

  .hero-actions a::after,
  .contact-actions a::after,
  .header-phone::after {
    content: " (" attr(href) ")";
    font-weight: 400;
  }
}
