/* ============ Kairos – Design tokens ============ */
:root {
  --orange-700: #c8410a;
  --orange-600: #ef5709;
  --orange-500: #f9960b;
  --yellow-400: #fbcb0c;
  --cream-50:  #f9f8f4;
  --cream-100: #f4f1ea;
  --cream-200: #ece7dc;
  --ink-700:   #3a332d;
  --ink-600:   #5a524a;
  --ink-500:   #7a7168;

  --grad-warm: linear-gradient(135deg, #fbcb0c 0%, #f9960b 45%, #ef5709 100%);
  --grad-soft: linear-gradient(180deg, #fff7ea 0%, #f9f8f4 100%);

  --shadow-sm: 0 1px 2px rgba(58, 51, 45, 0.06), 0 2px 8px rgba(58, 51, 45, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(239, 87, 9, 0.25), 0 2px 8px rgba(58, 51, 45, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(239, 87, 9, 0.35), 0 8px 20px rgba(58, 51, 45, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 70px;

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink-700);
  background: var(--cream-50);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
::selection { background: #fbcb0c; color: var(--ink-700); }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ============ Typography ============ */
h1, h2, h3, h4 { margin: 0; color: var(--ink-700); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 2vw, 24px); }
p  { margin: 0; color: var(--ink-600); text-wrap: pretty; }
.display-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-600);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.text-grad {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  color: #fff;
  background: var(--grad-warm);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  color: var(--ink-700);
  background: #fff;
  border: 1px solid var(--cream-200);
}
.btn-secondary:hover { border-color: var(--orange-500); color: var(--orange-600); transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink-700);
  padding: 10px 14px; font-size: 14px;
}
.btn-ghost:hover { color: var(--orange-600); }

.btn-disabled {
  color: var(--ink-500);
  background: var(--cream-200);
  cursor: not-allowed;
}
.btn-disabled:hover { transform: none; }

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease, padding .25s ease;
}
.nav.scrolled {
  background: rgba(249, 248, 244, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(58,51,45,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-600);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--cream-100); color: var(--ink-700); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; padding: 10px; border-radius: 12px; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--cream-50);
  display: flex; flex-direction: column; padding: 96px 32px 32px;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: 28px; font-weight: 600; padding: 16px 0;
  border-bottom: 1px solid var(--cream-200);
  letter-spacing: -0.02em;
}
.mobile-menu a:last-of-type { border-bottom: 0; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--grad-soft);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(251,203,12,.45), rgba(249,150,11,.25) 35%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute; left: -10%; bottom: -20%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,87,9,.18), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}

.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  background: #fff; border: 1px solid var(--cream-200);
  border-radius: 999px; font-size: 13px; color: var(--ink-600);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249,150,11,.2);
  animation: pulse 2s ease-in-out infinite;
}
.hero-badge .tag { padding: 4px 10px; border-radius: 999px; background: var(--cream-100); font-weight: 600; color: var(--ink-700); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(249,150,11,0); } }

.hero h1 { margin-top: 24px; }
.hero h1 em { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.hero .lede {
  margin-top: 22px; max-width: 52ch; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-600);
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-meta .stat .num {
  font-family: var(--font-display); font-style: italic; font-size: 40px; line-height: 1;
  color: var(--orange-600);
}
.hero-meta .stat .lbl { font-size: 13px; color: var(--ink-500); margin-top: 6px; }

/* Hero — Instagram feed */
.hero-instagram {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--grad-warm);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.hero-instagram-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.hero-instagram-head .eyebrow { color: #fff; }
.hero-instagram-head .eyebrow::before { background: #fff; }
.hero-instagram-head .ig-handle {
  font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.18);
  padding: 6px 12px; border-radius: 999px;
  transition: background .2s ease;
}
.hero-instagram-head .ig-handle:hover { background: rgba(255,255,255,.3); }
.hero-instagram-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.hero-instagram-frame iframe { display: block; }
.hero-instagram-frame .ig-fallback {
  font-size: 14px; font-weight: 600; color: var(--orange-600);
  padding: 40px 20px; text-align: center;
}

@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-instagram { max-width: 480px; margin: 0 auto; }
}

/* ============ Section base ============ */
section { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { margin-top: 16px; }
.section-head h2 em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--orange-600); }
.section-head p { margin-top: 18px; font-size: 18px; }

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
}

/* ============ About ============ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.about-copy h2 em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--orange-600); }
.about-copy p { margin-top: 20px; font-size: 17px; }
.about-copy p + p { margin-top: 14px; }
.about-list { margin-top: 32px; padding: 0; list-style: none; display: grid; gap: 14px; }
.about-list li {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px; border: 1px solid var(--cream-200); border-radius: var(--radius-md);
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.about-list li:hover { transform: translateX(4px); border-color: var(--orange-500); box-shadow: var(--shadow-sm); }
.about-list .ic {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad-warm); color: #fff;
  display: grid; place-items: center;
}
.about-list .ic svg { width: 16px; height: 16px; }
.about-list strong { color: var(--ink-700); font-weight: 600; display: block; }
.about-list span { color: var(--ink-500); font-size: 14px; }

/* About visual */
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 20% 10%, rgba(251,203,12,.35), transparent 60%),
    radial-gradient(80% 70% at 80% 90%, rgba(239,87,9,.3), transparent 65%),
    var(--cream-100);
  box-shadow: var(--shadow-md);
}
.about-visual .placeholder {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(239,87,9,.06) 0 10px, transparent 10px 20px);
}
.about-visual .label {
  position: absolute; bottom: 24px; left: 24px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; color: var(--ink-500);
  background: rgba(255,255,255,.85); padding: 6px 10px; border-radius: 8px;
  backdrop-filter: blur(6px);
}
.about-visual .card {
  position: absolute; background: #fff; border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: var(--shadow-md);
}
.about-visual .card-1 { top: 28px; right: 28px; display: flex; gap: 12px; align-items: center; }
.about-visual .card-1 .av {
  display: flex;
}
.about-visual .card-1 .av span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -10px;
  background: var(--grad-warm);
}
.about-visual .card-1 .av span:first-child { margin-left: 0; background: linear-gradient(135deg, #fbcb0c, #f9960b); }
.about-visual .card-1 .av span:nth-child(2) { background: linear-gradient(135deg, #f9960b, #ef5709); }
.about-visual .card-1 .av span:nth-child(3) { background: linear-gradient(135deg, #ef5709, #c8410a); }
.about-visual .card-1 .t { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.about-visual .card-1 .s { font-size: 11px; color: var(--ink-500); }

.about-visual .card-2 {
  bottom: 90px; left: 24px;
  padding: 16px 18px;
}
.about-visual .card-2 .t { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--ink-700); line-height: 1.2; max-width: 200px; }
.about-visual .card-2 .s { margin-top: 8px; font-size: 12px; color: var(--ink-500); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 480px; margin: 0 auto; }
}

/* ============ Mission ============ */
.mission {
  background: linear-gradient(180deg, var(--cream-50) 0%, #fff 100%);
  position: relative; overflow: hidden;
}
.mission::before {
  content: ""; position: absolute; right: -10%; top: 10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,203,12,.25), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.mission .container { position: relative; z-index: 1; }
.mission-quote {
  max-width: 960px; margin: 0 auto 80px; text-align: center;
}
.mission-quote p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25;
  color: var(--ink-700); letter-spacing: -0.01em;
}
.mission-quote p em { color: var(--orange-600); font-style: italic; }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillar {
  background: #fff; padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-200);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-warm); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar:hover::after { transform: scaleX(1); }
.pillar .num {
  font-family: var(--font-display); font-style: italic; font-size: 14px;
  color: var(--orange-600); letter-spacing: 0.08em;
}
.pillar .ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #fff7ea, #fde9ca);
  color: var(--orange-600);
  display: grid; place-items: center;
  margin: 20px 0 24px;
}
.pillar .ic svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 22px; }
.pillar p { margin-top: 12px; font-size: 15px; }

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

/* ============ Support (Cómo puedes apoyarnos) ============ */
.support .section-head { text-align: center; margin-inline: auto; }
.support-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.support-card {
  position: relative; overflow: hidden;
  padding: 36px 32px 32px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--cream-200);
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  min-height: 380px;
}
.support-card::before {
  content: ""; position: absolute; inset: auto -30% -40% auto;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--grad-warm); opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
  filter: blur(20px);
  transform: scale(.6);
}
.support-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.support-card:hover::before { opacity: .18; transform: scale(1); }
.support-card .tag-row { display: flex; align-items: center; justify-content: space-between; }
.support-card .tag {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-600);
}
.support-card .arrow {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-100); display: grid; place-items: center;
  transition: background .3s ease, transform .3s ease;
}
.support-card .arrow svg { width: 18px; height: 18px; transition: transform .3s ease; }
.support-card:hover .arrow { background: var(--grad-warm); color: #fff; transform: rotate(-45deg); }
.support-card h3 { margin-top: 28px; font-size: 28px; letter-spacing: -0.02em; }
.support-card p  { margin-top: 12px; font-size: 15px; }
.support-card .spacer { flex: 1; }
.support-card .meta {
  display: flex; gap: 20px; padding-top: 24px; margin-top: 24px;
  border-top: 1px dashed var(--cream-200);
  font-size: 13px; color: var(--ink-500);
}
.support-card .meta strong { display: block; color: var(--ink-700); font-size: 18px; font-weight: 600; margin-bottom: 2px; font-family: var(--font-display); font-style: italic; }

.support-card .illo {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--grad-warm); color: #fff;
  box-shadow: 0 10px 20px -8px rgba(239,87,9,.5);
}
.support-card .illo svg { width: 28px; height: 28px; }

@media (max-width: 860px) { .support-cards { grid-template-columns: 1fr; } }

/* ============ Contact ============ */
.contact { background: var(--cream-100); }
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start;
}
.contact-info h2 em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--orange-600); }
.contact-info p { margin-top: 20px; font-size: 17px; }
.contact-list { margin-top: 40px; display: grid; gap: 14px; }
.contact-list a, .contact-list .static {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--cream-200);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-list a:hover { transform: translateX(4px); border-color: var(--orange-500); box-shadow: var(--shadow-sm); }
.contact-list .ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad-warm); color: #fff;
  display: grid; place-items: center;
}
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); }
.contact-list .val { font-size: 15px; font-weight: 600; color: var(--ink-700); margin-top: 2px; }

.form {
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-sm);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form .row { margin-bottom: 18px; }
.form label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 8px;
}
.form input, .form textarea {
  width: 100%; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--cream-200);
  background: var(--cream-50); color: var(--ink-700);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.form input:focus, .form textarea:focus {
  outline: 0; border-color: var(--orange-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(249,150,11,.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.form .note { font-size: 13px; color: var(--ink-500); }
.form .btn-primary { padding: 16px 26px; }

.form-toast {
  margin-top: 18px; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f1fbe8; color: #2f5f1a;
  border: 1px solid #d6ecc0;
  font-size: 14px; font-weight: 500;
  display: none;
}
.form-toast.show { display: flex; align-items: center; gap: 10px; animation: fadeUp .4s ease; }
.form-toast.error { background: #fff7f2; color: #b83a07; border-color: #f3c7ad; }

.error-msg { display: none; color: #b83a07; font-size: 12px; margin-top: 6px; }
.row.has-error input, .row.has-error textarea { border-color: #e07040; background: #fff7f2; }
.row.has-error .error-msg { display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============ Footer ============ */
.footer {
  background: var(--ink-700);
  color: #d8d2cb;
  padding: 80px 0 32px;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; left: 50%; top: -200px;
  width: 600px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(239,87,9,.25), transparent 70%);
  filter: blur(40px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  position: relative;
}
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #a8a29a; font-size: 15px; transition: color .2s ease; }
.footer a:hover { color: var(--yellow-400); }

.footer-socials { display: flex; gap: 10px; margin-top: 8px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-socials a:hover { background: var(--grad-warm); border-color: transparent; transform: translateY(-2px); color: #fff; }
.footer-socials svg { width: 17px; height: 17px; }

.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #8d857c;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Team (Equipo) ============ */
.team-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.team-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: 32px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.team-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-warm); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.team-card:hover::after { transform: scaleX(1); }
.team-avatar {
  width: 76px; height: 76px; min-width: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff7ea, #fde9ca);
  color: var(--orange-600);
  box-shadow: 0 0 0 6px var(--cream-50), inset 0 0 0 1px rgba(239,87,9,.12);
  margin-bottom: 20px; overflow: hidden;
}
.team-avatar svg { width: 34px; height: 34px; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 19px; }
.team-role {
  margin-top: 8px; font-size: 14px; font-weight: 600;
  color: var(--orange-600);
}
.team-study {
  margin-top: 6px; font-size: 12.5px; color: var(--ink-500);
}
.team-card p { margin-top: 14px; font-size: 14px; color: var(--ink-600); }

/* ============ Modal ============ */
.modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(58, 51, 45, .55);
  backdrop-filter: blur(3px);
  animation: fadeUp .25s ease;
}
.modal-dialog {
  position: relative;
  background: var(--cream-50);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 640px;
  max-height: min(86vh, 800px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-close {
  position: sticky; top: 16px; float: right; margin: 16px 16px -44px 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--cream-200);
  display: grid; place-items: center; color: var(--ink-600);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  z-index: 2;
}
.modal-close:hover { background: var(--cream-100); color: var(--orange-600); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 52px 40px 40px; }
.modal-body h3 { margin-top: 10px; font-size: clamp(22px, 3vw, 28px); }

.modal-section { margin-top: 28px; }
.modal-section-highlight {
  background: #fff; border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg); padding: 24px;
}
.modal-section-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-600);
}
.modal-section h4 { margin-top: 8px; font-size: 18px; }
.modal-section p { margin-top: 10px; font-size: 14.5px; }
.modal-section p strong { color: var(--ink-700); }

.modal-callout {
  margin-top: 18px; padding: 16px 18px;
  background: var(--cream-50); border-radius: var(--radius-md);
  border: 1px dashed var(--cream-200);
}
.modal-callout strong { display: block; font-size: 14px; color: var(--ink-700); }
.modal-callout p { margin-top: 6px; font-size: 13.5px; }

.modal-codes {
  margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.modal-codes div {
  background: var(--cream-50); border-radius: var(--radius-sm);
  padding: 12px; text-align: center;
}
.modal-codes span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
.modal-codes strong { display: block; margin-top: 4px; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--orange-600); }

.modal-link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--orange-600);
}
.modal-link svg { width: 14px; height: 14px; }
.modal-link:hover { text-decoration: underline; }

.modal-btn { margin-top: 16px; }

body.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog { max-width: 100%; max-height: 92vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .modal-body { padding: 48px 22px 32px; }
  .modal-codes { gap: 8px; }
}

/* ============ Mobile polish ============ */
@media (max-width: 600px) {
  .hero { padding-top: 108px; }
  .hero h1 { margin-top: 16px; }
  .hero-meta {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px; margin-top: 28px;
  }
  .hero-meta .stat { min-width: 0; }
  .hero-meta .stat .num { font-size: 26px; }
  .hero-meta .stat .lbl { font-size: 11px; margin-top: 4px; line-height: 1.3; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
  .form { padding: 24px; }
  .form .submit-row { flex-direction: column; align-items: stretch; }
  .form .submit-row .btn { width: 100%; justify-content: center; }
  .contact-list a { padding: 14px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 380px) {
  .brand span { font-size: 18px; }
  .nav-cta .btn-primary { padding: 12px 16px; }
}
