/* =========================================================
   FRADISPENCOL — estilos estáticos reconstruidos
   Paleta y tipografías extraídas del sitio Lovable original.
   ========================================================= */

:root {
  /* Paleta (OKLCH, igual al original) */
  --background: oklch(98.5% 0.005 240);
  --foreground: oklch(18% 0.03 260);
  --muted: oklch(95.5% 0.008 240);
  --muted-foreground: oklch(45% 0.03 260);
  --border: oklch(90% 0.015 245);
  --card: oklch(100% 0 0);

  --primary: oklch(42% 0.15 255);
  --primary-deep: oklch(28% 0.12 260);
  --sky: oklch(72% 0.15 235);
  --green-brand: oklch(68% 0.19 145);
  --indigo-brand: oklch(42% 0.2 275);
  --navy: oklch(28% 0.04 265);
  --red-brand: oklch(63% 0.21 25);

  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --container: 80rem; /* max-w-7xl */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 800; }
svg { width: 100%; height: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-deep); box-shadow: var(--shadow-md); }

.btn-sky { background: var(--sky); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-sky:hover { box-shadow: var(--shadow-md); filter: brightness(1.03); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.badge svg { width: 1rem; height: 1rem; }
.badge-light { background: rgba(255, 255, 255, 0.15); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(4px); }
.badge-outline { background: color-mix(in oklch, var(--sky) 12%, transparent); color: var(--primary); border: 1px solid color-mix(in oklch, var(--primary) 25%, transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--background) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
  background: color-mix(in oklch, var(--background) 92%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--foreground); }
.brand-text small { font-size: 0.68rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a {
  font-weight: 600;
  font-size: 0.95rem;
  color: color-mix(in oklch, var(--foreground) 82%, transparent);
  transition: color 0.15s ease;
}
.main-nav > a:hover { color: var(--primary); }
.main-nav .nav-cta { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  width: 40px; height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 8rem 0 7rem;
  background: var(--primary-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(at 20% 10%, oklch(0.55 0.18 240 / 0.55), transparent 55%),
    radial-gradient(at 80% 90%, oklch(0.35 0.12 275 / 0.6), transparent 55%),
    linear-gradient(160deg, oklch(0.42 0.15 255) 0%, oklch(0.28 0.12 260) 60%, oklch(0.2 0.09 265) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; max-width: 52rem; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 1.4rem 0 1.2rem;
  line-height: 1.05;
}
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255, 255, 255, 0.9); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-actions.center { justify-content: center; }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 10; margin-top: -4rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

/* ---------- Nav cards ---------- */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.nav-card-sky { background: var(--sky); color: var(--navy); }
.nav-card-green { background: var(--green-brand); }
.nav-card-navy { background: var(--navy); }
.nav-card-icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
}
.nav-card-body { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.nav-card-body strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.nav-card-body small { font-size: 0.82rem; opacity: 0.9; }
.nav-card-arrow { width: 22px; height: 22px; flex: none; transition: transform 0.2s ease; }
.nav-card:hover .nav-card-arrow { transform: translateX(4px); }

/* ---------- Secciones ---------- */
.section { padding: 6.5rem 0; }
.section-muted { background: var(--muted); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.section-title.on-dark { color: #fff; }
.section-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--muted-foreground); margin-top: 0.5rem; font-weight: 500; }
.section-intro { margin-top: 1rem; color: var(--muted-foreground); max-width: 46rem; }
.section-head { text-align: center; margin-inline: auto; max-width: 46rem; margin-bottom: 3.5rem; }
.section-head .badge { margin-bottom: 1rem; }
.section-head .section-intro { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ---------- Quiénes somos ---------- */
.nosotros-text .badge { margin-bottom: 1.2rem; }
.nosotros-text .section-subtitle { margin-bottom: 1.3rem; }
.nosotros-text p + p { margin-top: 1rem; }
.nosotros-text p { color: var(--muted-foreground); }
.nosotros-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Servicios ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in oklch, var(--primary) 30%, var(--border)); }
.service-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  padding: 13px;
  color: #fff;
  margin-bottom: 1.1rem;
}
.icon-green { background: var(--green-brand); }
.icon-red { background: var(--red-brand); }
.icon-indigo { background: var(--indigo-brand); }
.icon-sky { background: var(--sky); color: var(--navy); }
.icon-navy { background: var(--navy); }
.service-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted-foreground); font-size: 0.96rem; }

/* ---------- Programas ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.program-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.program-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(160deg, var(--primary), var(--primary-deep));
  margin-bottom: 1rem;
}
.program-num {
  position: absolute;
  top: 1rem; right: 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: color-mix(in oklch, var(--primary) 14%, transparent);
}
.program-card h3 { font-size: 1.05rem; font-weight: 700; }

/* ---------- Donaciones ---------- */
.donaciones {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.donaciones-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, oklch(0.5 0.16 250) 0%, oklch(0.28 0.12 260) 60%, oklch(0.2 0.09 265) 100%);
}
.donaciones-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.5;
}
.donaciones-inner { position: relative; z-index: 1; max-width: 46rem; margin-inline: auto; }
.donaciones-inner .badge { margin-bottom: 1.2rem; }
.donaciones-text { color: rgba(255, 255, 255, 0.9); margin-top: 1.2rem; font-size: 1.08rem; }

/* ---------- Contacto ---------- */
.contacto-info .section-subtitle { margin-bottom: 0.6rem; }
.contact-list { list-style: none; padding: 0; margin-top: 2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  padding: 11px;
  border-radius: 12px;
  color: var(--primary);
  background: color-mix(in oklch, var(--sky) 16%, transparent);
}
.contact-list strong { display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; }
.contact-list a, .contact-list span { display: block; color: var(--muted-foreground); font-size: 0.96rem; }
.contact-list a:hover { color: var(--primary); }

.contacto-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.contact-form h3 { font-size: 1.35rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--foreground); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklch, var(--muted-foreground) 70%, transparent); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--green-brand); }
.form-status.err { color: var(--red-brand); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: rgba(255, 255, 255, 0.6); max-width: 20rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; max-width: 30rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; font-weight: 700; }
.footer-nav a, .footer-contact a, .footer-contact span { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--sky); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom .heart { color: var(--red-brand); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.5rem 1.25rem;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.25s ease, opacity 0.2s ease;
  }
  .main-nav.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .main-nav > a { padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--border); }
  .main-nav > a:last-child { border-bottom: none; }
  .main-nav .nav-cta { margin-top: 0.5rem; justify-content: center; }
  .site-header.nav-open .nav-toggle .icon-menu { display: none; }
  .site-header.nav-open .nav-toggle .icon-close { display: block; }

  .section { padding: 4.5rem 0; }
  .hero { padding: 6rem 0 5rem; }
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-cards { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .nav-card:hover, .service-card:hover, .program-card:hover { transform: none; }
}
