/* ============================================
   Talent Up — Design tokens
   ============================================ */
:root {
  --navy-900: #071330;
  --navy-800: #0b1c4d;
  --navy-700: #142862;
  --gold-500: #c6a86b;
  --gold-300: #e4d5ac;
  --gold-100: #f3ead6;
  --ivory-50: #f8f6f1;
  --ivory-100: #f1ede4;
  --charcoal-700: #2a2a28;
  --charcoal-500: #55534d;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal-700);
  background: var(--ivory-50);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 500;
}

h3 { font-size: 1.4rem; font-weight: 600; }
h4 {
  font-size: 1.05rem;
  color: var(--navy-700);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p { max-width: 62ch; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-800);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: #d4bb85; }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-300); }

.btn-full { width: 100%; text-align: center; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 246, 241, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(11, 28, 77, 0.12);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.55rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 50px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.primary-nav a {
  color: var(--navy-800);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.3em 0;
}

.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}
.primary-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--navy-800);
  padding: 0.65em 1.7em;
  border-radius: var(--radius);
  color: var(--navy-800);
  white-space: nowrap;
  line-height: 1.2;
}
.nav-cta:hover { background: var(--navy-800); color: var(--gold-300); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(7,19,48,0.5) 0%, rgba(7,19,48,0.25) 55%, transparent 100%),
    linear-gradient(135deg, rgba(7,19,48,0.22) 0%, rgba(7,19,48,0.45) 42%, rgba(7,19,48,0.75) 68%, rgba(7,19,48,0.95) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center 22%;
  color: var(--white);
  padding: 6.5rem 1.75rem 7rem;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-300);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2.15rem, 4.6vw, 3.4rem);
  color: var(--white);
  margin-bottom: 0.45em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gold-300);
  margin: 0 auto 0.6rem;
  max-width: 52ch;
}

.hero-lede {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 1.8rem;
  max-width: 56ch;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* ============================================
   Indicadores / Stats
   ============================================ */
.stats-strip {
  background: var(--navy-900);
  border-top: 1px solid rgba(198, 168, 107, 0.18);
  padding: 2.75rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 0 1rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.stat-item:first-child { border-left: none; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-500);
  line-height: 1.1;
}

.stat-number-text {
  font-size: 1.9rem;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em;
}

@media (max-width: 780px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  .stat-item:nth-child(3) { border-left: none; }
}

/* ============================================
   Transiciones al hacer scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.3s ease, transform 1.3s ease;
  transition-delay: 0.2s;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.stats-grid .stat-item:nth-child(2) { transition-delay: 0.32s; }
.stats-grid .stat-item:nth-child(3) { transition-delay: 0.44s; }
.stats-grid .stat-item:nth-child(4) { transition-delay: 0.56s; }

.team-grid .team-card:nth-child(2) { transition-delay: 0.32s; }
.team-grid .team-card:nth-child(3) { transition-delay: 0.44s; }
.team-grid .team-card:nth-child(4) { transition-delay: 0.56s; }

.problems-grid .problem-card:nth-child(2) { transition-delay: 0.32s; }
.problems-grid .problem-card:nth-child(3) { transition-delay: 0.44s; }
.problems-grid .problem-card:nth-child(4) { transition-delay: 0.56s; }

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 5.5rem 0;
}

.section-tint {
  background: var(--ivory-100);
}

.section-lede {
  color: var(--charcoal-500);
  font-size: 1.05rem;
  margin-bottom: 2.75rem;
  max-width: 60ch;
}

/* Nosotros */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: start;
}

.about-summary p {
  color: var(--charcoal-500);
  max-width: 58ch;
}

.valores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.valor-pill {
  border: 1px solid rgba(11, 28, 77, 0.18);
  color: var(--navy-800);
  padding: 0.45em 1em;
  border-radius: 999px;
  font-size: 0.85rem;
}

.mv-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mv-card {
  background: var(--white);
  border-left: 3px solid var(--gold-500);
  padding: 1.9rem 2.1rem;
  border-radius: 2px;
}

.mv-card p {
  color: var(--charcoal-500);
  font-size: 0.96rem;
  max-width: none;
}

.mv-card-alt {
  border-left-color: var(--navy-800);
}

/* ¿Qué problema tienes? */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.problem-card {
  background: var(--white);
  padding: 2rem 2.1rem;
  border-radius: 3px;
  border-top: 3px solid var(--gold-500);
}

.problem-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--navy-800);
  margin-bottom: 1rem;
}
.problem-icon svg { width: 100%; height: 100%; }

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}

.problem-card p {
  color: var(--charcoal-500);
  font-size: 0.95rem;
  margin: 0;
}

.problems-cta {
  margin-top: 3rem;
  text-align: center;
}

.problems-cta p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy-800);
  margin: 0 auto 1.3rem;
}

/* Equipo */

.team-lead {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  background: var(--white);
  border-top: 3px solid var(--gold-500);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.team-lead-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}
.team-lead-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-lead-info h3 {
  font-size: 1.9rem;
  margin-bottom: 0.2em;
}

.team-lead-role {
  color: var(--gold-500);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1.1em;
}

.team-lead-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy-800);
  border-left: 3px solid var(--gold-500);
  padding-left: 1.1rem;
  margin: 0 0 1.3em;
  max-width: 56ch;
}

.team-lead-bio {
  color: var(--charcoal-500);
  font-size: 0.96rem;
  max-width: 68ch;
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.team-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy-800);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 1.4rem 1.5rem 1.75rem;
}

.team-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.15em;
}

.team-role {
  color: var(--gold-500);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.9em;
}

.team-specialty {
  color: var(--charcoal-500);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}
.team-specialty span {
  color: var(--navy-800);
  font-weight: 600;
}

/* Servicios — accordion */
.accordion {
  border-top: 1px solid rgba(11,28,77,0.14);
}

.acc-item {
  border-bottom: 1px solid rgba(11,28,77,0.14);
}

.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy-800);
  text-align: left;
}

.acc-label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.acc-svg {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--gold-500);
}
.acc-svg svg { width: 100%; height: 100%; }

.acc-icon {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
  margin-left: 1.5rem;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--gold-500);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.acc-icon::before { width: 16px; height: 2px; }
.acc-icon::after { width: 2px; height: 16px; transition: transform 0.25s ease; }
.acc-item.is-open .acc-icon::after,
.faq-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
}
.acc-panel-inner {
  overflow: hidden;
}

.acc-item .acc-panel-inner {
  padding-bottom: 0;
}
.acc-item.is-open .acc-panel-inner {
  padding-bottom: 2.5rem;
}

.service-group {
  display: inline-block;
  vertical-align: top;
  width: 31%;
  margin-right: 3%;
  margin-bottom: 2rem;
}
@media (max-width: 780px) {
  .service-group { width: 100%; margin-right: 0; }
}

.service-group ul li {
  color: var(--charcoal-500);
  font-size: 0.93rem;
  padding: 0.3em 0;
  position: relative;
  padding-left: 1rem;
}
.service-group ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 5px; height: 5px;
  background: var(--gold-500);
  border-radius: 50%;
}

/* Preguntas frecuentes */
.faq-list {
  border-top: 1px solid rgba(11,28,77,0.14);
}

.faq-item {
  border-bottom: 1px solid rgba(11,28,77,0.14);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0.25rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy-800);
  text-align: left;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel-inner {
  overflow: hidden;
}
.faq-item .faq-panel-inner { padding-bottom: 0; }
.faq-item.is-open .faq-panel-inner { padding-bottom: 1.5rem; }

.faq-panel-inner p {
  color: var(--charcoal-500);
  font-size: 0.96rem;
  max-width: 68ch;
  margin: 0;
}

/* Contacto */
.section-dark {
  background: var(--navy-900);
  color: var(--ivory-100);
}

.section-dark h2 { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-copy p {
  color: rgba(255,255,255,0.75);
}

.contact-list {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-label {
  display: block;
  text-transform: none;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.contact-list a {
  display: block;
  color: var(--ivory-100);
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.96rem;
  max-width: 320px;
}
.contact-list a:hover { color: var(--gold-500); }

.contact-text {
  display: block;
  color: var(--ivory-100);
  font-size: 0.96rem;
  line-height: 1.6;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ivory-100);
  text-decoration: none;
  transition: transform 0.15s ease, color 0.2s ease;
  position: relative;
}
.social-icon svg { width: 24px; height: 24px; }
.social-icon:hover {
  color: var(--gold-500);
  transform: scale(0.88);
}
.social-icon:active {
  transform: scale(0.78);
}

/* Accessible label shown only to screen readers / on focus tooltip */
.social-icon span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.contact-form {
  background: var(--white);
  padding: 2.25rem;
  border-radius: 4px;
}

.form-title {
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--navy-800);
  margin-bottom: 0.4em;
  font-weight: 500;
}

.form-group-label {
  display: block;
  font-size: 0.85rem;
  color: var(--navy-800);
  margin-bottom: 0.6em;
  font-weight: 500;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  color: var(--charcoal-700);
  font-weight: 400;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-500);
  cursor: pointer;
  flex: none;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  border: 1px solid #d8d4c8;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--ivory-50);
  color: var(--charcoal-700);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
}

.form-status {
  margin: 0.9em 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
  color: var(--navy-800);
}
.form-status.is-error { color: #a5382e; }
.form-status.is-success { color: #2f6d4a; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--navy-800);
  color: rgba(255,255,255,0.7);
  padding: 2.75rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  height: 46px;
  opacity: 0.95;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--gold-500); }

.footer-copy {
  font-size: 0.82rem;
  margin: 0;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .team-lead {
    grid-template-columns: 1fr;
  }
  .team-lead-photo {
    max-width: 260px;
    margin: 0 auto;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .problems-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-logo { height: 44px; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ivory-50);
    border-bottom: 1px solid rgba(11, 28, 77, 0.12);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.75rem 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 320px; }
  .primary-nav a { width: 100%; padding: 0.75em 0; }
  .nav-cta { margin-top: 0.5em; text-align: center; }

  .hero { padding: 4.5rem 1.5rem 5rem; }

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

  .service-group { width: 100%; }

  .contact-form { padding: 1.5rem; }

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