/* ============================================================
   Grupo Talento y Estrategia — design tokens
   ============================================================ */
:root {
  --bg: #F7F4EE;
  --bg-alt: #EFEAE0;
  --surface: #FFFFFF;
  --text: #1B2634;
  --text-muted: #5B6472;
  --heading: #14283F;
  --border: #DDD6C8;

  --gold: #B87F1E;        /* AA-safe gold for text/icons on light bg */
  --gold-bright: #EFB84C; /* logo gold, for fills */
  --gold-tint: #FBF1DC;

  --blue: #00519B;
  --blue-bright: #0095D9;
  --blue-tint: #E5F3FB;

  --navy: #14283F;
  --navy-deep: #0B1622;
  --on-navy: #F7F4EE;
  --on-navy-muted: #AEBBCB;

  --radius: 2px;
  --font-display: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: Arial, Helvetica, sans-serif;

  --shadow-card: 0 1px 2px rgba(20, 40, 63, 0.06), 0 8px 24px -12px rgba(20, 40, 63, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10192A;
    --bg-alt: #16233A;
    --surface: #182842;
    --text: #E6E9EE;
    --text-muted: #9FACBD;
    --heading: #F3EFE6;
    --border: #29385330;

    --gold: #EFB84C;
    --gold-tint: #2A2416;
    --blue: #4DB4E8;
    --blue-bright: #7CCBEF;
    --blue-tint: #142433;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -14px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --bg: #10192A;
  --bg-alt: #16233A;
  --surface: #182842;
  --text: #E6E9EE;
  --text-muted: #9FACBD;
  --heading: #F3EFE6;
  --border: #29385330;

  --gold: #EFB84C;
  --gold-tint: #2A2416;
  --blue: #4DB4E8;
  --blue-bright: #7CCBEF;
  --blue-tint: #142433;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -14px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-optical-sizing: auto; color: var(--heading); margin: 0 0 0.5em; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.14; font-weight: 600; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--on-navy); padding: 0.75em 1.25em;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.9em;
}
.kicker--on-navy { color: var(--on-navy-muted); }
.kicker--blue { color: var(--blue); }
.kicker--gold { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85em 1.6em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--gold { background: var(--gold-bright); color: var(--navy-deep); }
.btn--gold:hover { transform: translateY(-1px); background: #F6CA6E; }
.btn--ghost { background: transparent; color: var(--on-navy); border-color: rgba(247,244,238,0.35); }
.btn--ghost:hover { border-color: rgba(247,244,238,0.7); }
.btn--full { width: 100%; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__inner {
  max-width: 1200px; margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--on-navy); }
.brand__mark {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em;
  border: 1px solid var(--gold-bright); color: var(--gold-bright);
  padding: 0.35em 0.5em; line-height: 1;
}
.brand__name { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.15; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--on-navy-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.15s ease; }
.nav a:hover, .nav a.active { color: var(--on-navy); }
.nav__cta {
  color: var(--navy-deep) !important; background: var(--gold-bright);
  padding: 0.5em 1.1em; border-radius: var(--radius); font-weight: 600 !important;
}
.nav__cta:hover { background: #F6CA6E; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5em;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--on-navy); }
.mobile-nav { display: none; }

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav {
    display: none; flex-direction: column; padding: 0 1.5rem 1.25rem;
    background: var(--navy);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { color: var(--on-navy-muted); text-decoration: none; padding: 0.7em 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.98rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(120% 160% at 15% 0%, #1B3554 0%, var(--navy) 45%, var(--navy-deep) 100%);
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem 0;
}
.hero__watermark {
  position: absolute; top: 0; left: 0; right: 0; height: 100%; overflow: hidden; pointer-events: none;
}
.hero__watermark::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: min(1400px, 200vw); aspect-ratio: 1;
  transform: translate(-50%, -60%);
  background:
    radial-gradient(circle at center, transparent 0 30.5%, rgba(239,184,76,0.10) 31% 31.6%, transparent 32% 100%),
    radial-gradient(circle at center, transparent 0 41%, rgba(0,149,217,0.08) 41.5% 42.1%, transparent 43% 100%);
}
.hero__inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }

.masthead { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2rem); margin: 1.6rem 0 2.2rem; }
.masthead__logo { height: clamp(48px, 6vw, 72px); width: auto; }
.masthead__logo--yc { height: clamp(40px, 5.2vw, 60px); }
.masthead__joiner { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--on-navy-muted); }
@media (max-width: 560px) {
  .masthead { gap: 0.85rem; }
}

.hero__title { color: var(--on-navy); }
.hero__lede { color: var(--on-navy-muted); font-size: 1.14rem; max-width: 640px; margin: 0 auto 2em; }
.hero__lede strong { color: var(--on-navy); font-weight: 600; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; padding-bottom: clamp(3rem, 7vw, 5rem); }

.hero__practices {
  position: relative; max-width: 1000px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  transform: translateY(50%);
}
@media (max-width: 700px) {
  .hero__practices { grid-template-columns: 1fr; transform: translateY(30px); }
}
.practice-teaser {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--surface); text-decoration: none; color: var(--text);
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow-card);
  border-bottom: 3px solid transparent;
  transition: transform 0.15s ease;
}
.practice-teaser:hover { transform: translateY(-3px); }
.practice-teaser--blue { border-bottom-color: var(--blue-bright); }
.practice-teaser--gold { border-bottom-color: var(--gold-bright); }
.practice-teaser__mark { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.practice-teaser__mark--te { width: 34px; height: 34px; }
.practice-teaser__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--heading); }
.practice-teaser__desc { display: block; color: var(--text-muted); font-size: 0.88rem; margin-top: 0.15em; }

/* ============================================================
   Sections (generic)
   ============================================================ */
.section {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(6rem, 10vw, 8rem) 1.5rem clamp(4rem, 8vw, 6rem);
}
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__intro { color: var(--text-muted); font-size: 1.05rem; }
.section__head .section__intro { margin: 0 auto; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.pillar { background: var(--surface); padding: 2rem; }
.pillar__num { font-family: var(--font-mono); color: var(--gold); font-size: 0.85rem; font-weight: 600; }
.pillar h3 { margin-top: 0.5em; }
.pillar p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.mv-card { background: var(--surface); padding: 2.25rem; }
.mv-card h3 { color: var(--gold); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9em; }
.mv-card p { color: var(--text); margin: 0; font-size: 1rem; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }

.mv-grid--gold, .mv-grid--blue { max-width: 1100px; margin: 0 auto clamp(3rem, 6vw, 4rem); background: var(--border); }
.mv-grid--blue .mv-card h3 { color: var(--blue); }

.purpose {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center; margin-bottom: clamp(3.5rem, 7vw, 5rem);
}
.purpose__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.purpose__photos img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center;
  box-shadow: var(--shadow-card);
}
.purpose__photos img:nth-child(2) { transform: translateY(1.4rem); }
.purpose__text h3 {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9em; font-weight: 600;
}
.purpose__text p { color: var(--text); font-size: 1.05rem; margin: 0; }
@media (max-width: 820px) {
  .purpose { grid-template-columns: 1fr; }
  .purpose__photos img:nth-child(2) { transform: none; }
}

.values__title { text-align: center; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5em; }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2rem; }
.values__list li { color: var(--text-muted); font-size: 0.93rem; padding-left: 1.1em; border-left: 2px solid var(--gold-bright); }
.values__list li span { display: block; color: var(--heading); font-weight: 600; font-family: var(--font-body); font-size: 1rem; margin-bottom: 0.25em; }
@media (max-width: 760px) { .values__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .values__list { grid-template-columns: 1fr; } }

/* ============================================================
   Practice sections (YC / Talento)
   ============================================================ */
.practice { padding: clamp(4.5rem, 9vw, 6.5rem) 1.5rem; }
.practice--blue { background: var(--blue-tint); }
.practice--gold { background: var(--gold-tint); }

.practice__head {
  max-width: 1100px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  display: flex; align-items: center; gap: 2.5rem;
}
.practice__logo { width: 120px; height: auto; flex-shrink: 0; }
.practice__logo--te { width: 100px; }
@media (max-width: 700px) {
  .practice__head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

.services {
  max-width: 1100px; margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border);
}
.service:last-child:nth-child(odd) { grid-column: 1 / -1; }
.service {
  background: var(--surface); padding: 1.75rem 2rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.service__code { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); padding-top: 0.15em; }
.practice--blue .service__code { color: var(--blue); }
.practice--gold .service__code { color: var(--gold); }
.service h3 { margin-bottom: 0.35em; font-size: 1.08rem; }
.service p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ============================================================
   News / Actualidad
   ============================================================ */
.section--news { background: var(--bg-alt); }
.news-grid {
  max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.news-card {
  background: var(--surface); box-shadow: var(--shadow-card);
  border-top: 4px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.news-card--blue { border-top-color: var(--blue-bright); }
.news-card--gold { border-top-color: var(--gold-bright); }
.news-card__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card > *:not(.news-card__photo) { padding-left: 2rem; padding-right: 2rem; }
.news-card > *:last-child { padding-bottom: 2rem; }
.news-card__tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin: 1.4rem 0 0.6em; font-weight: 600;
}
.news-card--blue .news-card__tag { color: var(--blue); }
.news-card--gold .news-card__tag { color: var(--gold); }
.news-card__date { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.9em; }
.news-card h3 { font-size: 1.28rem; margin-bottom: 0.6em; }
.news-card p:not(.news-card__tag):not(.news-card__date):not(.news-card__source) { color: var(--text); font-size: 0.96rem; flex-grow: 1; }
.news-card__source { font-size: 0.78rem; color: var(--text-muted); margin: 1em 0 0; padding-top: 0.9em; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Team
   ============================================================ */
.team-group__title {
  max-width: 1100px; margin: 0 auto 1.5rem; padding: 0 0 0.6em;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.team-group__title--spaced { margin-top: 3.5rem; }

.team { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team--four { grid-template-columns: repeat(4, 1fr); }
.team-card {
  background: var(--surface); box-shadow: var(--shadow-card);
  overflow: hidden; display: flex; flex-direction: column;
  border-bottom: 3px solid var(--gold-bright);
}
.team-card__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.team-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.team-card h3 { margin-bottom: 0.2em; font-size: 1.08rem; }
.team-card__role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8em; }
.team-card__bio { color: var(--text-muted); font-size: 0.88rem; margin: 0; line-height: 1.55; }

@media (max-width: 860px) { .team, .team--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team, .team--four { grid-template-columns: 1fr; max-width: 380px; } }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); padding: clamp(4.5rem, 9vw, 7rem) 1.5rem; }
.contact__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
}
.contact__inner > * { min-width: 0; }
.contact__info h2 { color: var(--on-navy); }
.contact__lede { color: var(--on-navy-muted); font-size: 1.02rem; max-width: 42ch; }
.contact__details { margin: 2rem 0 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact__details div { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 0.9rem; }
.contact__details dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 0.3em; }
.contact__details dd { margin: 0; color: var(--on-navy); font-size: 1.02rem; }
.contact__details a { text-decoration: none; color: var(--on-navy); border-bottom: 1px solid var(--gold-bright); }

.social-links { display: flex; flex-direction: column; gap: 0.5rem; }
.social-links a { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; border-bottom-color: transparent !important; }
.social-links a:hover { color: var(--gold-bright); }
.icon-ig { width: 18px; height: 18px; flex-shrink: 0; }

.contact__form { background: var(--surface); padding: 2rem; box-shadow: var(--shadow-card); }
.hp-field { position: absolute; left: -9999px; }
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body); font-size: 0.98rem; padding: 0.7em 0.8em;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  color: var(--text); resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--blue-bright); }
.form-note { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--text-muted); min-height: 1.2em; }
.form-note.success { color: #1E7A3D; }

@media (max-width: 800px) { .contact__inner { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy-deep); padding: 2.5rem 1.5rem; }
.footer__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__logo { height: 30px; width: auto; }
.footer__logo--te { height: 26px; }
.footer__joiner { font-family: var(--font-display); font-style: italic; color: var(--on-navy-muted); font-size: 1.1rem; }
.footer__legal { margin: 0; color: var(--on-navy-muted); font-size: 0.82rem; }
