/* ==========================================================================
   Iglesia Cristianos en Acción Turbaco — hoja de estilos base
   ========================================================================== */

:root {
  --color-primary: #1e1653;       /* índigo profundo (globo del logo) */
  --color-primary-light: #322a75;
  --color-accent: #f4511e;        /* naranja/rojo (cruz del logo) */
  --color-accent-dark: #c73d13;
  --color-youth: #e30613;         /* rojo (logo Jóvenes x Cristo) */
  --color-ink: #17131f;
  --color-text: #2c2a3a;
  --color-muted: #6b6879;
  --color-bg: #ffffff;
  --color-bg-soft: #f6f5fa;
  --color-border: #e7e5ee;

  --font-heading: "Poppins", "Liberation Sans", system-ui, sans-serif;
  --font-body: "Inter", "Liberation Sans", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 22, 83, 0.12);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-accent);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 81, 30, .35);
}
.btn-accent:hover { background: var(--color-accent-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-whatsapp {
  background: #25d366;
  color: #0b3b1e;
}
.btn-whatsapp:hover { background: #1fb959; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

/* Deja espacio para el header pegajoso al saltar a un ancla (#apoyar, #como-llegar, #horarios, etc.) */
[id] {
  scroll-margin-top: 112px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.brand-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-text { min-width: 0; }
.brand-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { display: block; font-weight: 400; font-size: .78rem; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-weight: 500;
  color: var(--color-text);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem 1.5rem;
    gap: .25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--color-border); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, var(--color-primary-light), var(--color-primary) 60%, #0f0a33 100%);
  color: #fff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(244,81,30,.35), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: #ffcbb8;
  background: rgba(244,81,30,.18);
  border: 1px solid rgba(244,81,30,.4);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #d9d6ec; font-size: 1.15rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Hero photo slider */
.hero--photo {
  padding: 0;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero--photo .hero-inner { padding-block: 5rem; }

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15,10,40,.92) 0%, rgba(30,22,83,.82) 42%, rgba(199,61,19,.55) 100%);
  transition: opacity .8s ease;
}

.hero-slider .hero-inner { transition: opacity .8s ease; }

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .55rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.is-active { background: #fff; transform: scale(1.25); }

.hero-pause {
  width: 24px;
  height: 24px;
  margin-left: .4rem;
  border: none;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .85;
  transition: opacity .2s ease;
}
.hero-pause:hover { opacity: 1; }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .icon-play { display: none; }
.hero-pause.is-paused .icon-pause { display: none; }
.hero-pause.is-paused .icon-play { display: block; }

.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(15,10,40,.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: rgba(244,81,30,.75); border-color: transparent; }
.hero-arrow--prev { left: 1.25rem; }
.hero-arrow--next { right: 1.25rem; }

@media (max-width: 640px) {
  .hero--photo { min-height: 560px; }
  .hero-arrow { width: 38px; height: 38px; }
  .hero-arrow svg { width: 16px; height: 16px; }
  .hero-arrow--prev { left: .6rem; }
  .hero-arrow--next { right: .6rem; }
}

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-soft { background: var(--color-bg-soft); }
.section-dark {
  background: var(--color-primary);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head .kicker {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  margin-bottom: .5rem;
}

/* ---- Cards / Grids ---- */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(30, 22, 83, 0.18);
  border-color: var(--color-accent);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(244,81,30,.12);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }

.give-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: rgba(244,81,30,.12);
  color: var(--color-accent);
  display: grid;
  place-items: center;
}
.give-icon svg { width: 28px; height: 28px; }

/* Schedule cards */
.schedule-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border-top: 4px solid var(--color-accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.schedule-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(30, 22, 83, 0.18);
}
.schedule-card .day {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: .9rem;
}
.schedule-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: .95rem;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item time {
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

/* Ministry / youth block */
.youth-block {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(227, 6, 19, .45), transparent 55%),
    linear-gradient(135deg, var(--color-primary), #0c0821);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.youth-block .badge {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .95rem;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .youth-block { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* Leaders */
.leader-card { text-align: center; }
.leader-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--color-bg-soft);
  border: 3px solid var(--color-accent);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  
}
.leader-role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Beliefs list */
.belief-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.belief-item:last-child { border-bottom: none; }
.belief-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-accent);
  min-width: 2.2ch;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fcd9b8;
  color: #7a3b0c;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: .92rem;
  margin-top: 2rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.contact-list .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(30,22,83,.08);
  color: var(--color-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-list .icon svg { width: 20px; height: 20px; }

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.map-frame.is-loaded { opacity: 1; }

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: var(--color-bg-soft);
  color: var(--color-muted);
  font-size: .9rem;
  transition: opacity .4s ease;
}
.map-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: map-spin .8s linear infinite;
}
@keyframes map-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .map-spinner { animation-duration: 2s; }
}

/* CTA band */
.cta-band {
  background: var(--color-accent);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }

/* Footer */
.site-footer {
  background: #120c33;
  color: #cfcbe6;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: #9d98bd;
}

.social-links {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #cfcbe6;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
  font-size: .85rem;
  color: var(--color-muted);
  padding-top: 1.5rem;
}
.breadcrumb a:hover { color: var(--color-accent); }

/* Announcements slider */
.announce-slider {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}
.announce-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.announce-track {
  display: flex;
  transition: transform .5s ease;
}
.announce-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}
.announce-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.announce-slide figcaption {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 4px solid var(--color-accent);
}
.announce-slide figcaption .kicker { margin-bottom: .3rem; }
.announce-slide figcaption p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.announce-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.announce-arrow svg { width: 18px; height: 18px; }
.announce-arrow:hover { background: var(--color-accent); color: #fff; }
.announce-arrow--prev { left: -1.3rem; }
.announce-arrow--next { right: -1.3rem; }

.announce-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}
.announce-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.announce-dot:hover { background: var(--color-accent); }
.announce-dot.is-active { background: var(--color-accent); transform: scale(1.2); }

@media (max-width: 560px) {
  .announce-arrow { width: 36px; height: 36px; }
  .announce-arrow--prev { left: .5rem; }
  .announce-arrow--next { right: .5rem; }
}

/* Verse of the day */
.verse-card {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(135deg, var(--color-primary), #0f0a33);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
}
.verse-card .verse-icon {
  position: absolute;
  top: -1.5rem;
  left: .75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(244, 81, 30, .18);
  pointer-events: none;
}
.verse-card .kicker { color: #ffcbb8; position: relative; }
.verse-card .verse-text {
  position: relative;
  margin: .9rem 0 .75rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.55;
}
.verse-card .verse-ref {
  display: block;
  position: relative;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  color: #ff8a65;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
