/* Semilla de Vida — estilos base. Mobile-first: las reglas base son para
   pantallas pequeñas y se amplían con min-width media queries. */

:root {
  --color-primary: #b5563c;
  --color-primary-dark: #8f4230;
  --color-dark: #2b2420;
  --color-cream: #faf5ef;
  --color-cream-alt: #f1e7db;
  --color-text: #2b2420;
  --color-text-muted: #6b5f56;
  --color-border: #e2d5c6;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.5;
}

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

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

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

/* Header / navegación */

.site-header {
  background: var(--color-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-links.is-open {
  display: flex;
}

.nav-links a {
  display: block;
  color: #f1e7df;
  text-decoration: none;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.98rem;
}

.nav-links a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 1.75rem;
    padding: 0;
  }

  .nav-links a {
    border-top: none;
    padding: 0.25rem 0;
  }
}

/* Hero (Inicio) */

.hero {
  position: relative;
  color: #fff;
  background-color: var(--color-dark);
}

.hero-img {
  width: 100%;
  height: 62vh;
  min-height: 320px;
  max-height: 560px;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.hero-content h1 {
  font-size: 2rem;
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  font-size: 1.05rem;
  max-width: 32em;
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-next-service {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: #f1e7df;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

@media (min-width: 760px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }
}

/* Botones */

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Secciones genéricas */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--color-cream-alt);
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.section-lead {
  text-align: center;
  max-width: 40em;
  margin: -1rem auto 2rem;
  color: var(--color-text-muted);
}

/* Tarjetas de información (horarios, dirección) */

.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.info-card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

/* Galería / imágenes de contenido */

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

@media (min-width: 760px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.content-grid img {
  border-radius: 8px;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.faq-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

.faq-grid h3 {
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.faq-grid p {
  margin: 0;
}

@media (min-width: 700px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-grid img {
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Video */

.video-featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-dark);
}

.video-featured iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-list {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-dark);
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .video-list {
    aspect-ratio: 16 / 7;
  }
}

.video-list iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sermon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

.sermon-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sermon-list li:last-child {
  border-bottom: none;
}

.sermon-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
}

.sermon-list a:hover {
  color: var(--color-primary);
}

.sermon-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Eventos / calendario */

.calendar-embed {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  min-height: 600px;
  background: #fff;
}

.calendar-placeholder {
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  background: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* Contacto */

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-links a {
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  background: #fff;
}

.social-links a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Footer */

.site-footer {
  background: var(--color-dark);
  color: #cfc4ba;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

.footer-note {
  font-size: 0.85rem;
  color: #b8ab9f;
  margin-top: 0.5rem;
}

/* Launcher flotante "Próximos pasos" */

.launcher {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 200;
}

.launcher-toggle {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (min-width: 760px) {
  .launcher {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .launcher-toggle {
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
  }
}

.launcher-toggle:hover {
  background: var(--color-primary-dark);
}

.launcher-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: max-content;
  max-width: min(80vw, 280px);
}

.launcher-panel[hidden] {
  display: none;
}

.launcher-panel a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.launcher-panel a:hover {
  background: var(--color-cream-alt);
}
