/* =========================================================
   1. ROOT VARIABLES & RESET
   ========================================================= */
:root {
  --bg-body:        #090c14;
  --bg-section-alt: #0c1019;
  --bg-card:        #121729;
  --bg-card-soft:   #10141f;
  --bg-input:       #0c1120;
  --border-soft:    rgba(255, 255, 255, 0.08);
  --border-softer:  rgba(255, 255, 255, 0.06);

  --text-primary:   #f5f6fa;
  --text-secondary: #9aa1b8;
  --text-muted:     #6b7280;
  --text-placeholder: #565f78;

  --green:          #22c55e;
  --green-dark:     #16a34a;
  --green-tint:     rgba(34, 197, 94, 0.12);

  --teal:           #2ed9a3;
  --teal-dark:      #1fb888;
  --teal-tint:      rgba(46, 217, 163, 0.12);

  --blue:           #6366f1;
  --blue-dark:      #4f46e5;
  --blue-tint:      rgba(99, 102, 241, 0.14);

  --purple:         #a855f7;
  --purple-tint:    rgba(168, 85, 247, 0.14);

  --indigo:         #818cf8;
  --indigo-tint:    rgba(129, 140, 248, 0.14);

  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --container-w: 1200px;
  --header-container-w: 1360px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent flex/grid children and media from forcing overflow */
*, *::before, *::after { min-width: 0; }
img, svg, video, canvas { max-width: 100%; height: auto; }

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   2. SHARED COMPONENTS (buttons, badges, links)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-full { width: 100%; }

.btn-green { background: var(--green); color: #06210f; }
.btn-green:hover { background: var(--green-dark); }

.btn-teal { background: var(--teal); color: #06261c; }
.btn-teal:hover { background: var(--teal-dark); }

.btn-blue { background: var(--blue); color: #ffffff; border: none; }
.btn-blue:hover { background: var(--blue-dark); }

.btn-dark {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-dark:hover { background: rgba(255,255,255,0.1); }

.btn-outline {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-primary);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 14px 6px;
  transition: gap 0.15s ease;
}
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-outline {
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
}

/* =========================================================
   3. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-softer);
}
.site-header .container { max-width: var(--header-container-w); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 18px; height: 18px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text-primary); }
.brand-name span { color: var(--text-secondary); font-weight: 600; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.main-nav a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* =========================================================
   4. ABOUT HERO
   ========================================================= */
.about-hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(ellipse 900px 500px at 10% 0%, rgba(46,217,163,0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(99,102,241,0.08), transparent 60%);
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-title {
  font-size: 2.6rem;
  line-height: 1.14;
  margin: 20px 0 20px;
}
.accent-text { color: var(--teal); }

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 460px;
  margin-bottom: 30px;
}

.about-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.about-hero-visual { position: relative; }
.office-graphic {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  aspect-ratio: 640 / 460;
}
.office-graphic svg { width: 100%; height: 100%; }

.office-quote {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 6%;
  background: rgba(10, 13, 22, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.office-quote p {
  font-style: italic;
  font-size: 0.86rem;
  color: #eef0f5;
  line-height: 1.5;
}

/* =========================================================
   5. MISIÓN / VISIÓN
   ========================================================= */
.mission-vision { padding: 20px 0 90px; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px;
}
.mv-mission { background: linear-gradient(160deg, #121a22 0%, #0d1a17 100%); }
.mv-vision  { background: linear-gradient(160deg, #14131f 0%, #191325 100%); }

.mv-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.mv-icon svg { width: 20px; height: 20px; }
.mv-icon-purple { background: var(--purple); }

.mv-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.mv-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* =========================================================
   6. VALORES
   ========================================================= */
.values { padding: 90px 0; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section-heading h2 { font-size: 2rem; }
.section-heading p { color: var(--text-secondary); font-size: 0.98rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(46,217,163,0.35); }

.value-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.value-icon svg { width: 21px; height: 21px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* =========================================================
   7. EXPERTOS + FORMULARIO
   ========================================================= */
.experts { padding: 0 0 90px; }

.experts-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.experts-intro h2 { font-size: 1.7rem; margin-bottom: 16px; }
.experts-intro > p { color: var(--text-secondary); font-size: 0.94rem; margin-bottom: 24px; }

.check-bullets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.check-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.check-bullets .bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.team-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.team-member { display: flex; flex-direction: column; align-items: flex-start; }
.avatar-photo {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  border: 2px solid rgba(255,255,255,0.08);
}
.avatar-photo svg { width: 28px; height: 28px; }
.avatar-blue   { background: linear-gradient(135deg, #4f46e5, #1e293b); }
.avatar-purple { background: linear-gradient(135deg, #a855f7, #312e81); }
.avatar-green  { background: linear-gradient(135deg, #16a34a, #14532d); }

.team-member h4 { font-size: 0.9rem; margin-bottom: 2px; }
.team-member p { font-size: 0.78rem; color: var(--teal); font-weight: 600; }

/* --- Contact card --- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.contact-subtext { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 26px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg {
  position: absolute;
  left: 14px;
  width: 17px; height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 40px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.input-wrap input::placeholder { color: var(--text-placeholder); }
.input-wrap input:focus { outline: none; border-color: var(--blue); }

.form-field.full textarea {
  width: 100%;
  resize: vertical;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.form-field.full textarea::placeholder { color: var(--text-placeholder); }
.form-field.full textarea:focus { outline: none; border-color: var(--blue); }

.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap select {
  width: 100%;
  appearance: none;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 40px 12px 14px;
  font-size: 0.85rem;
  color: var(--text-placeholder);
  font-family: inherit;
}
.select-wrap select:focus { outline: none; border-color: var(--blue); }
.select-caret {
  position: absolute;
  right: 14px;
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-row input {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.checkbox-row span { font-size: 0.82rem; color: var(--text-secondary); }

/* =========================================================
   8. STATS
   ========================================================= */
.about-stats { padding: 0 0 90px; }
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-softer);
}
.about-stat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.about-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-green { color: var(--teal); }
.about-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* =========================================================
   9. CTA
   ========================================================= */
.about-cta-section { padding: 0 0 90px; }
.about-cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #14173a 0%, #1e1450 55%, #241a52 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}
.about-cta-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}
.about-cta-card h2 { font-size: 1.9rem; margin-bottom: 16px; }
.about-cta-card p {
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
  max-width: 560px;
  margin: 0 auto 30px;
}
.about-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-softer);
  padding-top: 70px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 0.92rem; margin-bottom: 20px; color: var(--text-primary); }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.86rem; margin-bottom: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-contact { display: flex !important; align-items: center; gap: 9px; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.social-row a svg { width: 15px; height: 15px; }
.social-row a:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.3); }
.footer-bottom { border-top: 1px solid var(--border-softer); padding: 26px 0; }
.footer-bottom p { text-align: center; font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.01em; }

/* =========================================================
   11. RESPONSIVE — LARGE DESKTOP TWEAK (<= 1440px)
   ========================================================= */
@media (max-width: 1440px) {
  :root { --container-w: 1140px; --header-container-w: 1280px; }
}

/* =========================================================
   12. RESPONSIVE — SMALL DESKTOP (<= 1200px)
   ========================================================= */
@media (max-width: 1200px) {
  .about-title { font-size: 2.3rem; }
  .experts-inner { grid-template-columns: 1fr 1.1fr; gap: 32px; }
  .contact-card { padding: 32px; }
}

/* =========================================================
   13. RESPONSIVE — TABLET (<= 992px)
   ========================================================= */
@media (max-width: 992px) {
  .container { padding: 0 24px; }
  .main-nav { display: none; }

  .about-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-hero-content { order: 1; }
  .about-hero-visual { order: 2; max-width: 560px; }

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

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .experts-inner { grid-template-columns: 1fr; gap: 44px; }
  .team-grid { gap: 20px; }

  .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

/* =========================================================
   14. RESPONSIVE — MOBILE (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
  .about-title { font-size: 2rem; }
  .about-buttons { flex-direction: column; align-items: stretch; }
  .about-buttons .btn, .about-buttons .link-arrow { width: 100%; justify-content: center; }

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

  .form-row { grid-template-columns: 1fr; gap: 20px; }

  .about-cta-card { padding: 48px 28px; }
  .about-cta-card h2 { font-size: 1.5rem; }
}

/* =========================================================
   15. RESPONSIVE — SMALL MOBILE (<= 576px)
   ========================================================= */
@media (max-width: 576px) {
  .container { padding: 0 20px; }

  .header-inner { height: 66px; gap: 10px; }
  .header-actions .btn-outline.btn-sm { display: none; }
  .header-actions { gap: 8px; min-width: 0; }
  .brand { min-width: 0; }
  .brand-name { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions .btn-green.btn-sm { padding: 8px 16px; font-size: 0.8rem; white-space: nowrap; }

  .about-hero { padding: 40px 0 60px; }
  .about-title { font-size: 1.7rem; }
  .about-text { font-size: 0.92rem; }
  .office-quote { padding: 12px 14px; }
  .office-quote p { font-size: 0.76rem; }

  .mission-vision { padding: 16px 0 60px; }
  .mv-card { padding: 24px; }

  .values { padding: 60px 0; }
  .section-heading h2 { font-size: 1.6rem; }

  .experts { padding: 0 0 60px; }
  .experts-intro h2 { font-size: 1.4rem; }
  .contact-card { padding: 24px; }
  .team-grid { gap: 16px; }
  .avatar-photo { width: 54px; height: 54px; }

  .about-stats { padding: 0 0 60px; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 32px; }
  .about-stat-number { font-size: 1.6rem; }

  .about-cta-section { padding: 0 0 60px; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
}

/* =========================================================
   16. RESPONSIVE — EXTRA SMALL PHONES (<= 480px)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .brand-name { max-width: 110px; }
  .brand-name span { display: none; }
  .header-actions .btn-green.btn-sm { padding: 8px 13px; font-size: 0.74rem; }

  .about-title { font-size: 1.5rem; }
  .badge { font-size: 0.72rem; padding: 6px 14px; }

  .values-grid { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { justify-content: space-between; }
}
