/* ═══════════════════════════════════════════════════════════════
   ILC · weareilc.org — Design System
   Paleta de marca: azul #0067A0 · amarillo #FFB81C · verde #87B84C
   Patrón visual: hero sólido profundo, píldoras, crema, tarjetas
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blue: #0067a0;
  --blue-deep: #06344e;
  --blue-deeper: #052539;
  --yellow: #ffb81c;
  --yellow-soft: #ffd267;
  --green: #87b84c;
  --cream: #f6f2ea;
  --white: #ffffff;
  --ink: #122433;
  --ink-soft: #43596a;
  --line: #e4ded2;
  --radius: 18px;
  --shadow: 0 10px 34px rgba(6, 52, 78, 0.10);
  --shadow-lg: 0 22px 60px rgba(6, 52, 78, 0.16);
  --font: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Tipografía ── */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.h-hero { font-size: clamp(2.4rem, 5.6vw, 4.2rem); color: var(--white); }
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--ink); }
.h-card { font-size: 1.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 4px; border-radius: 2px; background: var(--yellow); }
.eyebrow--light { color: var(--yellow); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }

/* ── Botones píldora ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px; border: 0;
  font: 700 1rem var(--font); cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(6, 52, 78, 0.22); }
.btn-yellow { background: var(--yellow); color: var(--blue-deep); }
.btn-yellow:hover { background: var(--yellow-soft); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-navy { background: var(--blue-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white), 0 12px 26px rgba(6, 52, 78, 0.22); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ── Header ── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { background: var(--white); box-shadow: 0 2px 22px rgba(6, 52, 78, 0.10); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 46px; width: auto; transition: filter 0.25s ease; }
.site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-weight: 600; font-size: 0.95rem; color: var(--white);
  padding: 6px 2px; position: relative; transition: color 0.2s ease;
}
.site-header.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 3px; border-radius: 2px; background: var(--yellow); transition: right 0.22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--white); margin: 5px 0; transition: 0.25s; }
.site-header.scrolled .nav-toggle span { background: var(--blue-deep); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-deeper) 70%);
  padding: 140px 0 110px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/hero-gathering.jpg') center 30% / cover no-repeat;
  opacity: 0.22;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(5, 37, 57, 0.92) 34%, rgba(5, 37, 57, 0.45) 75%, rgba(5, 37, 57, 0.25) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  border-radius: 999px; padding: 8px 18px; margin-bottom: 26px; backdrop-filter: blur(4px);
}
.hero-kicker b { color: var(--yellow); }
.hero p.sub { color: rgba(255, 255, 255, 0.85); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 56ch; margin: 24px 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-verse { margin-top: 54px; color: rgba(255, 255, 255, 0.55); font-style: italic; font-size: 0.95rem; }

/* ── Secciones ── */
section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: linear-gradient(150deg, var(--blue-deep), var(--blue-deeper)); color: var(--white); }
.section-navy .h-section { color: var(--white); }
.section-navy .lead { color: rgba(255, 255, 255, 0.82); }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ── Grids y tarjetas ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-body { padding: 26px 26px 30px; }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

/* Tenets (partner / transform / multiply) */
.tenet { text-align: center; padding: 40px 28px 36px; position: relative; }
.tenet::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.tenet--blue::before { background: var(--blue); }
.tenet--yellow::before { background: var(--yellow); }
.tenet--green::before { background: var(--green); }
.tenet img { height: 84px; width: auto; margin: 0 auto 20px; }
.tenet h3 { text-transform: capitalize; font-size: 1.45rem; margin-bottom: 12px; }
.tenet p { color: var(--ink-soft); font-size: 0.98rem; }

/* Foto enmarcada estilo collage */
.photo-frame { position: relative; }
.photo-frame img { border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.photo-frame::after {
  content: ''; position: absolute; inset: 26px -22px -22px 26px;
  border-radius: var(--radius); background: var(--yellow); opacity: 0.9; z-index: 0;
}
.photo-frame--green::after { background: var(--green); }
.photo-frame--blue::after { background: var(--blue); }

/* Stats band */
.stats-band { padding: 70px 0; }
.stats-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 18px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; }
.stats-strip::-webkit-scrollbar { height: 8px; }
.stats-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 4px; }
.stats-strip img { border-radius: 14px; scroll-snap-align: start; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

/* Pillars (MTP) */
.pillar { display: flex; gap: 18px; align-items: flex-start; padding: 26px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.pillar-num {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  background: var(--blue); color: var(--white);
}
.pillar:nth-child(2) .pillar-num { background: var(--yellow); color: var(--blue-deep); }
.pillar:nth-child(3) .pillar-num { background: var(--green); }
.pillar h4 { font-size: 1.1rem; margin-bottom: 6px; }
.pillar .ref { font-size: 0.82rem; font-weight: 700; color: var(--blue); letter-spacing: 0.06em; }
.pillar p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 8px; }

/* Testimonios */
.testimonial { display: flex; flex-direction: column; }
.testimonial blockquote { font-size: 1.02rem; color: var(--ink); font-style: italic; flex: 1; }
.testimonial blockquote::before { content: '“'; display: block; font-size: 3.4rem; line-height: 0.6; color: var(--yellow); font-style: normal; font-weight: 800; margin: 10px 0 14px; }
.testimonial .who { margin-top: 18px; font-weight: 700; font-size: 0.95rem; }
.testimonial .who small { display: block; font-weight: 600; color: var(--ink-soft); }

/* Acordeón (statement of faith) */
.accordion { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 22px 28px;
  font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.15s ease;
}
.accordion summary:hover { background: var(--cream); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.5rem; font-weight: 700; color: var(--blue); transition: transform 0.2s ease; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 28px 26px; color: var(--ink-soft); }
.accordion .acc-body p { margin-bottom: 12px; }

/* Team */
.team-card { text-align: center; }
.team-card img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 18px; box-shadow: var(--shadow); }
.team-card h4 { font-size: 1.15rem; }
.team-card .role { color: var(--blue); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.team-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Blog cards */
.post-card .card-body { display: flex; flex-direction: column; gap: 10px; }
.post-meta { font-size: 0.82rem; font-weight: 700; color: var(--blue); letter-spacing: 0.05em; text-transform: uppercase; }
.post-card .excerpt { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.read-more { font-weight: 700; font-size: 0.95rem; }
.read-more::after { content: ' →'; }

/* Event cards */
.event-card { display: flex; flex-direction: column; }
.event-date {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--yellow); color: var(--blue-deep); border-radius: 12px;
  padding: 8px 14px; text-align: center; font-weight: 800; line-height: 1.1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.event-date b { display: block; font-size: 1.4rem; }
.event-date span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.event-media { position: relative; }
.event-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }
.event-meta svg { width: 15px; height: 15px; vertical-align: -2px; }

/* Banda Donate */
.give-band { position: relative; overflow: hidden; }
.give-band .wrap { position: relative; z-index: 2; }
.give-band::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/photo-worship.jpg') center / cover no-repeat; opacity: 0.16;
}
.give-inner { text-align: center; max-width: 820px; margin: 0 auto; }

/* Contact + footer */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); color: var(--blue); font-size: 1.2rem; }
.contact-item b { display: block; }
.contact-item span, .contact-item a { color: var(--ink-soft); }

.site-footer { background: var(--blue-deeper); color: rgba(255, 255, 255, 0.75); padding: 60px 0 34px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 34px; align-items: center; }
.footer-grid img { height: 54px; filter: brightness(0) invert(1); opacity: 0.9; }
.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.10); color: var(--white); transition: background 0.2s ease, transform 0.2s ease;
}
.social a:hover { background: var(--blue); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 38px; padding-top: 26px; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* ── Página interna (blog / eventos) ── */
.page-hero { background: linear-gradient(150deg, var(--blue-deep), var(--blue-deeper)); color: var(--white); padding: 150px 0 70px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--white); max-width: 20ch; }
.page-hero .post-meta { color: var(--yellow); margin-bottom: 14px; }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.08rem; }
.prose p { margin-bottom: 22px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.prose blockquote { border-left: 5px solid var(--yellow); background: var(--cream); border-radius: 0 14px 14px 0; padding: 20px 26px; font-style: italic; margin: 28px 0; }
.prose img { border-radius: var(--radius); margin: 30px 0; }

/* Formularios */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  font: 500 1rem var(--font); color: var(--ink); background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 103, 160, 0.12);
}
.field .err { color: #c0392b; font-size: 0.85rem; margin-top: 5px; font-weight: 600; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.alert-ok { background: #eef7e8; border: 2px solid var(--green); color: #3d6317; border-radius: 12px; padding: 14px 18px; font-weight: 600; margin-bottom: 20px; }
.alert-err { background: #fdeeec; border: 2px solid #e74c3c; color: #922b21; border-radius: 12px; padding: 14px 18px; font-weight: 600; margin-bottom: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Paginación Laravel */
.pagination { display: flex; gap: 8px; list-style: none; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 9px 16px; border-radius: 10px; font-weight: 700; background: var(--white); box-shadow: var(--shadow); }
.pagination .active span { background: var(--blue); color: var(--white); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .photo-frame::after { inset: 18px -12px -12px 18px; }
}
@media (max-width: 700px) {
  section { padding: 68px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--white); box-shadow: 0 18px 40px rgba(6, 52, 78, 0.18);
    padding: 10px 0 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 13px; color: var(--ink) !important; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 10px auto 0; }
  .nav-toggle { display: block; }
  .hero { min-height: 88vh; padding-top: 120px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-card { padding: 26px 20px; }
}
