/* ============================================
   Iglesia La Gran Comisión — Asambleas de Dios
   ============================================ */
:root {
  --dark: #191512; /* igual al fondo del logo */
  --dark-2: #221b14;
  --gold: #bc9538;   /* bronce del logo */
  --gold-light: #e2c26a;
  --brown: #6b4a2f;
  --cream: #faf7f2;
  --text: #33291f;
  --muted: #7a6d5d;
  --green: #3aa348;
  --blue: #3b6fc9;
  --red: #d23c2f;
  --orange: #f0932a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }

a { color: var(--brown); }

/* ---------- Header / Nav ---------- */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

/* Franja fina con los colores del logo:
   Alcance (verde), Equipar (azul), Unidad (dorado),
   Multiplicar (rojo), Investir (naranja) */
header::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    var(--green) 0%, var(--green) 20%,
    var(--blue) 20%, var(--blue) 40%,
    var(--gold) 40%, var(--gold) 60%,
    var(--red) 60%, var(--red) 80%,
    var(--orange) 80%, var(--orange) 100%);
}

footer { border-top: 4px solid var(--gold); }

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand span {
  color: var(--gold-light);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: .5px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

nav a {
  display: block;
  color: #f1e9d8;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .95rem;
}

nav a:hover { background: var(--dark-2); color: var(--gold-light); }
nav a.active { color: var(--gold-light); border-bottom: 2px solid var(--gold); border-radius: 0; }
nav a.btn-give {
  background: var(--gold);
  color: var(--dark);
  font-weight: bold;
  border-radius: 999px;
  padding: 8px 18px;
}
nav a.btn-give:hover { background: var(--gold-light); }

.nav-toggle { display: none; background: none; border: 2px solid var(--gold); color: var(--gold); font-size: 1.4rem; padding: 4px 12px; border-radius: 8px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; padding: 10px 0; }
  nav a { padding: 12px; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
}
.hero .hero-bg {
  width: 100%;
  height: 60vh;
  min-height: 340px;
  object-fit: cover;
  display: block;
}
.hero .hero-text {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,8,5,.25), rgba(10,8,5,.65));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-style: italic;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.hero p { font-size: 1.2rem; max-width: 700px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* ---------- Page title band ---------- */
.page-title {
  background: var(--dark);
  color: var(--gold-light);
  text-align: center;
  padding: 36px 20px;
}
.page-title h1 { font-style: italic; font-size: 2.2rem; font-weight: normal; }

/* ---------- Layout ---------- */
main.container, .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

h2 { color: var(--brown); font-size: 1.7rem; margin: 30px 0 12px; }
h3 { color: var(--brown); margin: 22px 0 8px; }
p { margin-bottom: 16px; }

.divider {
  border: none;
  border-top: 2px solid var(--gold);
  width: 90px;
  margin: 28px auto;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 26px 0;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 2px 10px rgba(60,45,25,.12);
  border-top: 4px solid var(--gold);
  text-align: center;
}
.card h3 { margin-top: 0; }
.card .big { font-size: 1.5rem; color: var(--dark); font-weight: bold; }

.card.c-green { border-top-color: var(--green); }
.card.c-blue { border-top-color: var(--blue); }
.card.c-red { border-top-color: var(--red); }
.card.c-orange { border-top-color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1.05rem;
  margin: 8px 6px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--gold-light); }
.btn.dark { background: var(--dark); color: var(--gold-light); }
.btn.dark:hover { background: var(--dark-2); }

.center { text-align: center; }

/* ---------- Media embeds ---------- */
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 18px 0 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.2);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-frame { border: 0; width: 100%; height: 380px; border-radius: 12px; box-shadow: 0 3px 14px rgba(0,0,0,.15); }
.cal-frame { border: 0; width: 100%; height: 620px; border-radius: 12px; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.15); }

figure.photo { margin: 20px auto; text-align: center; max-width: 560px; }
figure.photo img { border-radius: 12px; box-shadow: 0 3px 14px rgba(0,0,0,.2); }
figure.photo figcaption { font-style: italic; color: var(--muted); margin-top: 8px; }

/* ---------- Doctrine list ---------- */
.doctrina { background: #fff; border-radius: 12px; padding: 8px 26px; margin: 14px 0; box-shadow: 0 2px 8px rgba(60,45,25,.1); }
.doctrina h3 { color: var(--dark); }
.doctrina .versos { font-size: .95rem; color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: #d9cdb8;
  margin-top: 50px;
  padding: 44px 20px 24px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .95rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}
footer h4 { color: var(--gold-light); font-size: 1.05rem; margin-bottom: 10px; }
footer a { color: #d9cdb8; }
footer a:hover { color: var(--gold-light); }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 16px; border-top: 1px solid #3a2f22; color: #8f8271; font-size: .85rem; }

/* ---------- Splash (intro video) ---------- */
#splash {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity .8s ease;
}
#splash.fade { opacity: 0; pointer-events: none; }
#splash video { max-width: 100%; max-height: 84vh; }
#splash .splash-buttons { position: absolute; bottom: 4vh; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
