/* La Roca de Reading — "Moderno Cálido"
   Azul del logo (la cruz sobre Reading) + arena cálida. Minimalista, contemporáneo.
   Los nombres de variable (--teal...) quedaron del primer boceto; los valores
   ahora son el azul real del logo — cambiar solo acá basta para todo el sitio. */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --sand: #F6F1E6;
  --sand-dark: #EBE1CB;
  --ink: #16212E;
  --muted: #5C6670;
  --teal: #1F4F8C;
  --teal-dark: #122F52;
  --teal-light: #4A7FC4;
  --teal-tint: rgba(31, 79, 140, 0.09);
  --maroon: #7A1414;
  --line: rgba(31, 79, 140, 0.14);
  --max: 1180px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 500;
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}

em { font-style: italic; color: var(--teal); }

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
/* Barra sólida fija, no cristal translúcido: distinto a IBCS712 a propósito. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--teal-dark);
  padding: 18px 0;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-mark { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-mark-text { font-family: 'Frank Ruhl Libre', serif; font-size: 1.1rem; color: var(--sand); font-weight: 500; }
.nav-mark-text em { color: var(--sand); opacity: 0.7; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  font-size: 0.85rem; color: rgba(246,241,230,0.78); font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { color: var(--sand); background: rgba(246,241,230,0.1); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  background: var(--sand); color: var(--teal-dark) !important;
  padding: 10px 24px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  transition: transform 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--sand); }

/* ---------- Hero ----------
   Dividido en dos columnas (texto | foto), no apilado con franja de foto
   abajo — a propósito distinto del formato de IBCS712. */
.hero { padding: 150px 0 90px; background: var(--sand); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal-dark); font-weight: 700; margin-bottom: 22px;
  background: var(--teal-tint); padding: 7px 16px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.12; }
.hero-sub { font-size: 1.08rem; color: var(--muted); margin-top: 22px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-photo-frame {
  position: relative; border-radius: var(--r-lg); overflow: visible;
}
.hero-photo-frame::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--teal); border-radius: var(--r-lg); z-index: 0;
}
.hero-photo-frame .photo { position: relative; z-index: 1; aspect-ratio: 4/5; }
/* El video del hero (toma aérea de la iglesia) es horizontal, no vertical
   como una foto de retrato — el marco se adapta a esa proporción. */
.hero-photo-frame .photo--video { aspect-ratio: 848/480; }

.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; transition: all 0.2s ease;
}
.btn-primary { background: var(--teal); color: var(--sand); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--teal-dark); }
.btn-secondary:hover { background: var(--teal-dark); color: var(--sand); }

.photo-band { padding: 0 32px 100px; }
.photo { background: var(--sand-dark); border-radius: var(--r-md); overflow: hidden; position: relative; }
.photo::after {
  content: 'Foto pendiente'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--sand-dark), var(--sand-dark) 10px, #E1D4B4 10px, #E1D4B4 20px);
}
.photo img, .photo video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--wide { aspect-ratio: 16/7; }
.photo--tall { aspect-ratio: 3/4; }
.photo--square { aspect-ratio: 1/1; }
/* Video de fondo del hero: mismo marcador que las fotos hasta que se
   suba el archivo real a assets/hero-video.mp4 — ahí no hace falta
   tocar código, el video pisa el mensaje de "pendiente" solo. */
.photo--video::after { content: 'Video pendiente'; }

/* ---------- Section ---------- */
.section { padding: 110px 0; }
.section.alt { background: var(--sand-dark); }
.section-label {
  display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal-dark); font-weight: 700; margin-bottom: 20px;
  background: var(--teal-tint); padding: 7px 16px; border-radius: 999px;
}
.section.alt .section-label { background: rgba(18, 82, 75, 0.13); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 700px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin-top: 18px; line-height: 1.65; }

.verse-block {
  border-left: 3px solid var(--teal); padding-left: 24px; margin-top: 40px; max-width: 640px;
}
.verse-block p { font-family: 'Frank Ruhl Libre', serif; font-style: italic; font-size: 1.25rem; color: var(--teal-dark); line-height: 1.5; }
.verse-block cite { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--muted); font-style: normal; letter-spacing: 0.04em; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--sand); border: none; border-top: 4px solid var(--teal);
  padding: 34px 30px; border-radius: var(--r-md);
  box-shadow: 0 12px 30px rgba(11, 55, 51, 0.06);
}
.section.alt .card { background: var(--sand); }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.card--ministry { display: flex; flex-direction: column; }
.card-link { display: block; }
.card-link:hover h3 { color: var(--teal); }

/* ---------- Accordion (Qué creemos) ---------- */
.accordion { max-width: 760px; margin-top: 48px; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  font-family: 'Frank Ruhl Libre', serif; font-size: 1.15rem; color: var(--teal-dark);
  list-style: none;
}
.accordion-q::-webkit-details-marker { display: none; }
.accordion-q .plus { font-size: 1.3rem; color: var(--teal); transition: transform 0.25s ease; flex-shrink: 0; margin-left: 20px; }
.accordion-item[open] .plus { transform: rotate(45deg); }
.accordion-a { padding: 0 0 24px; color: var(--muted); line-height: 1.7; font-size: 0.98rem; }

/* ---------- Schedule ---------- */
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }
.schedule-card { background: var(--sand); border: 1px solid var(--line); padding: 26px 28px; border-radius: var(--r-md); }
.schedule-card h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--teal-dark); }
.schedule-card p { font-size: 0.95rem; color: var(--muted); padding: 6px 0; border-top: 1px solid var(--line); }
.schedule-card p:first-of-type { border-top: none; }
.schedule-card strong { color: var(--ink); font-weight: 600; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.team-card { text-align: left; }
.team-photo { aspect-ratio: 1/1; border-radius: 50%; margin-bottom: 16px; max-width: 120px; }
.team-card h4 { font-size: 1.02rem; margin-bottom: 4px; }
.team-card p { font-size: 0.86rem; color: var(--muted); }
.team-list { margin-top: 60px; }
.team-list h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--teal-dark); }
.team-list p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 24px; }

/* ---------- Eventos / Calendar ---------- */
.event-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; margin-top: 56px; align-items: start; }
.event-col h3 { font-size: 1.05rem; margin-bottom: 24px; color: var(--teal-dark); }
.event-item { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.event-date { text-align: center; flex-shrink: 0; width: 54px; }
.event-date .day { display: block; font-family: 'Frank Ruhl Libre', serif; font-size: 1.5rem; color: var(--teal-dark); line-height: 1; }
.event-date .mon { display: block; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--teal); margin-top: 4px; }
.event-item h4 { font-size: 1.02rem; margin-bottom: 2px; }
.event-item p { font-size: 0.88rem; color: var(--muted); }
.calendar-frame { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--sand); }
.calendar-frame iframe { width: 100%; height: 560px; border: 0; }

/* ---------- Predicación / En vivo ---------- */
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; margin-top: 50px; align-items: center; }
.live-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sand); background: var(--teal); padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.live-info h3 { font-size: 1.2rem; margin-bottom: 12px; }
.live-info p { color: var(--muted); margin-bottom: 26px; line-height: 1.6; }
.live-playlist { margin-top: 60px; }
.live-playlist h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--teal-dark); }

/* ---------- Visit info ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.visit-item h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--teal-dark); }
.visit-item p { font-size: 0.96rem; color: var(--muted); line-height: 1.7; }
.visit-item .sched { margin-bottom: 16px; }
.visit-item .sched strong { color: var(--ink); }
.visit-item a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact form ---------- */
.contact-form-wrap { max-width: 620px; margin-top: 64px; }
.contact-form-wrap h3 { font-size: 1.2rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--teal-dark); }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--sand); font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); }
.hp-field { position: absolute; left: -9999px; }
.contact-status { font-size: 0.9rem; margin-bottom: 16px; display: none; padding: 12px 16px; border-radius: var(--r-sm); }
.contact-status.show { display: block; }
.contact-status.ok { background: rgba(18,82,75,0.1); color: var(--teal-dark); }
.contact-status.error { background: rgba(160,40,40,0.1); color: #A02828; }

/* ---------- Dar (giving) ---------- */
.giving-box {
  background: var(--teal-dark); color: var(--sand); border-radius: var(--r-lg);
  padding: 56px 48px; margin-top: 56px; text-align: center; max-width: 640px;
}
.giving-box p { color: rgba(246,241,230,0.82); margin: 16px 0 28px; font-size: 1.02rem; }
.giving-box .btn-primary { background: var(--sand); color: var(--teal-dark); }
.giving-box .btn-primary:hover { background: #fff; }
.giving-verse { font-family: 'Frank Ruhl Libre', serif; font-style: italic; font-size: 1.3rem; }

/* ---------- CTA ---------- */
.cta { background: var(--teal-dark); color: var(--sand); padding: 100px 0; text-align: center; }
.cta h2 { color: var(--sand); font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 760px; margin: 0 auto; }
.cta p { color: rgba(246,241,230,0.75); margin-top: 16px; font-size: 1.05rem; }
.cta .hero-actions { justify-content: center; margin-top: 34px; }
.cta .btn-secondary { border-color: var(--sand); color: var(--sand); }
.cta .btn-secondary:hover { background: var(--sand); color: var(--teal-dark); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(246,241,230,0.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(246,241,230,0.14); }
.footer-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo { width: 30px; height: 30px; border-radius: 50%; }
.footer-mark span { font-family: 'Frank Ruhl Libre', serif; font-size: 1.05rem; color: var(--sand); }
.footer-grid p { font-size: 0.9rem; line-height: 1.6; }
.footer-grid h4 { color: var(--sand); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--sand); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(246,241,230,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.footer-social a:hover { background: var(--sand); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Page header (subpáginas) ---------- */
.page-header { padding: 170px 0 60px; background: var(--sand-dark); }
.back-link { font-size: 0.85rem; color: var(--teal); font-weight: 600; margin-bottom: 20px; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-actions .nav-donate-label { display: none; }
  .nav-toggle { display: flex; }
  .cards, .cards--2, .team-grid, .schedule-grid, .visit-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-photo-frame { order: -1; max-width: 320px; }
  .hero-photo-frame::before { inset: 12px -12px -12px 12px; }
  .event-columns { grid-template-columns: 1fr; gap: 40px; }
  .live-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 60px; }

  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    background: var(--sand); padding: 100px 32px 32px;
    transform: translateX(100%); transition: transform 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  }
  .nav.open .nav-links { display: flex; transform: translateX(0); }
  .nav-links a { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .nav-links a:hover { background: none; color: var(--teal); }
  .nav-toggle { z-index: 1001; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
