/* =========================================================
   IGLESIA BÍBLICA GRACIA Y VERDAD
   Hoja de estilos principal
   ========================================================= */


/* =========================
   VARIABLES Y BASE
   ========================= */

:root{
  --navy:#07284a;
  --blue:#0d3c6c;
  --gold:#d4aa52;
  --cream:#f7f0df;
  --ink:#182536;
  --white:#fff;
  --muted:#6b7280;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  font-family:Arial,sans-serif;
  color:var(--ink);
  background:#fbfaf7;
}


/* =========================
   ENCABEZADO
   ========================= */

header{
  background:var(--navy);
  color:white;
  position:sticky;
  top:0;
  z-index:100;
}

.nav{
  max-width:1180px;
  margin:auto;
  padding:10px 20px;
  display:flex;
  align-items:center;
  gap:18px;
}

.nav img,
.admin-head img{
  width:62px;
  height:62px;
  object-fit:cover;
  border-radius:50%;
  flex:0 0 auto;
}

.nav strong{
  font-family:Georgia,serif;
  font-size:19px;
  line-height:1.2;
}

.links{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.links a{
  color:white;
  text-decoration:none;
  font-size:14px;
}

.links a:hover{
  color:var(--gold);
}


/* =========================
   BOTÓN MENÚ MÓVIL
   ========================= */

.menu-toggle{
  display:none;
  background:transparent;
  border:0;
  color:white;
  font-size:30px;
  cursor:pointer;
  padding:6px 10px;
}


/* =========================
   PORTADA PRINCIPAL
   ========================= */

.portada-principal{
  display:block;
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  background:var(--navy);
  overflow:hidden;
}

.portada-principal > img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0;
  padding:0;
}


/* =========================
   INFORMACIÓN BAJO PORTADA
   ========================= */

.portada-info{
  width:100%;
  max-width:100%;
  background:var(--navy);
  color:white;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding:22px max(20px,calc((100vw - 1180px)/2));
}

.portada-info-item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  padding:5px 25px;
  border-right:1px solid rgba(255,255,255,.25);
}

.portada-info-item:last-child{
  border-right:0;
}

.portada-info-item strong{
  display:block;
  font-size:15px;
  margin-bottom:5px;
}

.portada-info-item span{
  display:block;
  font-size:14px;
  opacity:.9;
}

.portada-icon{
  flex:0 0 auto;
  font-size:28px;
  line-height:1;
}


/* =========================
   CONTENIDO GENERAL
   ========================= */

.wrap{
  max-width:1080px;
  margin:auto;
  padding:60px 20px;
}

.section-title{
  font:700 36px Georgia,serif;
  color:var(--navy);
  margin:0 0 18px;
}

.band{
  background:var(--cream);
}


/* =========================
   BOTONES
   ========================= */

.btn{
  display:inline-block;
  background:var(--gold);
  color:#14233a;
  padding:12px 18px;
  border-radius:9px;
  text-decoration:none;
  font-weight:700;
  border:0;
  cursor:pointer;
}

.btn:hover{
  filter:brightness(.96);
}

.secondary{
  background:var(--navy);
  color:white;
}


/* =========================
   TARJETAS
   ========================= */

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:18px;
}

.card{
  background:white;
  padding:22px;
  border-radius:14px;
  box-shadow:0 6px 24px rgba(0,0,0,.05);
  border:1px solid #eee;
}

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


/* =========================
   ACCESOS DE LA PORTADA
   ========================= */

.home-paths{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:36px;
}

.home-path{
  background:white;
  border:1px solid #e5e5e5;
  border-radius:14px;
  padding:24px;
  text-decoration:none;
  color:var(--ink);
  transition:transform .2s ease,box-shadow .2s ease;
  box-shadow:0 6px 24px rgba(0,0,0,.04);
}

.home-path:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 30px rgba(0,0,0,.09);
}

.home-path strong{
  display:block;
  font:700 23px Georgia,serif;
  color:var(--navy);
  margin-bottom:12px;
}

.home-path span{
  display:block;
  line-height:1.5;
  min-height:68px;
}

.home-path b{
  display:block;
  color:var(--blue);
  margin-top:15px;
}


/* =========================
   DECLARACIÓN DE FE
   ========================= */

.doctrine{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:18px;
}

.doctrine .card{
  min-height:0;
}

.doctrine .card p{
  line-height:1.55;
}

.confession-note{
  margin:28px 0 0;
  padding:18px;
  border-left:4px solid var(--gold);
  background:white;
}

.confession-note p{
  margin-top:0;
  line-height:1.5;
}

.confession-note .btn{
  margin-top:4px;
}


/* =========================
   SERMONES
   ========================= */

.sermons-header{
  background:var(--cream);
}

.sermon-group{
  margin:28px 0 36px;
}

.sermon-book{
  font:700 27px Georgia,serif;
  color:var(--navy);
  border-bottom:2px solid var(--gold);
  padding-bottom:8px;
}

.series-tag{
  display:inline-block;
  background:var(--cream);
  padding:5px 9px;
  border-radius:999px;
  font-size:13px;
}


/* =========================
   LIDERAZGO
   ========================= */

.leader-photo{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:contain;
  object-position:center;
  border-radius:10px;
  margin-bottom:14px;
  background:var(--navy);
}


/* =========================
   GALERÍA
   ========================= */

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}

.gallery figure{
  margin:0;
  background:white;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #eee;
}

.gallery img{
  display:block;
  width:100%;
  height:220px;
  object-fit:cover;
}

.gallery figcaption{
  padding:14px;
}

.gallery figcaption strong{
  display:block;
  font-size:18px;
  color:var(--navy);
  margin-bottom:6px;
}

.gallery figcaption p{
  line-height:1.45;
}

.gallery figcaption .btn{
  margin-top:6px;
  font-size:14px;
  padding:9px 12px;
}


/* =========================
   CONTACTO Y REDES
   ========================= */

.actions,
.socials{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.socials a{
  font-weight:700;
  color:var(--blue);
}


/* =========================
   PIE DE PÁGINA
   ========================= */

footer{
  background:var(--navy);
  color:white;
  text-align:center;
  padding:28px 20px;
}

footer a{
  color:white;
}


/* =========================================================
   ADMINISTRACIÓN
   ========================================================= */

.admin{
  max-width:950px;
  margin:30px auto;
  padding:20px;
}

.admin h1{
  margin:0;
}

.panel{
  background:white;
  border:1px solid #ddd;
  border-radius:14px;
  padding:22px;
  margin-bottom:18px;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

label{
  display:block;
  font-weight:700;
  font-size:14px;
}

.check{
  display:flex;
  gap:8px;
  align-items:center;
  margin:8px 0 14px;
}

.check input{
  width:auto;
  margin:0;
}

input,
textarea{
  width:100%;
  padding:11px;
  border:1px solid #cfd5dc;
  border-radius:8px;
  margin:5px 0 12px;
  font:inherit;
}

textarea{
  min-height:90px;
}

.notice{
  background:#fff4cf;
  border:1px solid #ead187;
  padding:12px;
  border-radius:8px;
}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.grow{
  flex:1;
}

.danger{
  background:#8f1d1d;
  color:white;
}

.muted{
  color:var(--muted);
}

.admin-item{
  border-top:1px solid #eee;
  padding:12px 0;
}

.admin-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
  margin-top:16px;
}

.admin-gallery img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:8px;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media screen and (max-width:720px){

  /* ENCABEZADO */

  header .nav{
    display:grid;
    grid-template-columns:60px minmax(0,1fr) 50px;
    grid-template-rows:auto auto;
    width:100%;
    min-height:0;
    padding:10px 16px;
    gap:10px;
  }

  header .nav > img{
    grid-column:1;
    grid-row:1;
    width:58px;
    height:58px;
    margin:0;
  }

  header .nav > strong{
    grid-column:2;
    grid-row:1;
    font-size:14px;
    line-height:1.15;
    margin:0;
    align-self:center;
  }

  header .menu-toggle{
    display:block;
    grid-column:3;
    grid-row:1;
    margin:0;
    justify-self:end;
    align-self:center;
  }

  header .links{
    display:none;
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    margin:0;
    padding:5px 0 0;
    flex-direction:column;
    gap:0;
  }

  header .links.open{
    display:flex;
  }

  header .links a{
    display:block;
    width:100%;
    padding:12px 4px;
    border-top:1px solid rgba(255,255,255,.15);
    font-size:16px;
  }


  /* PORTADA */

  .portada-principal > img{
    width:100%;
    height:auto;
  }


  /* INFORMACIÓN DE LA PORTADA */

  .portada-info{
    grid-template-columns:1fr;
    padding:10px 22px 16px;
  }

  .portada-info-item{
    justify-content:flex-start;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.18);
    padding:14px 4px;
  }

  .portada-info-item:last-child{
    border-bottom:0;
  }

  .portada-icon{
    width:38px;
    text-align:center;
    font-size:25px;
  }


  /* CONTENIDO */

  .wrap{
    padding:44px 18px;
  }

  .section-title{
    font-size:32px;
  }

  .home-paths{
    grid-template-columns:1fr;
  }

  .home-path span{
    min-height:0;
  }

  .doctrine{
    grid-template-columns:1fr;
  }

  .grid{
    grid-template-columns:1fr;
  }

}

/* PORTADA EN COMPUTADORA */

@media(min-width:721px){

  .portada-principal > img{
    width:100%;
    height:500px;
    object-fit:cover;
    object-position:center center;
  }

}


/* CONTACTO Y PROGRAMA RADIAL */

.contacto-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: start;
}

.contacto-columna,
.radio-columna {
  min-width: 0;
}

.radio-columna p {
  line-height: 1.7;
}

#radio-controles {
  margin-top: 20px;
}

#radio-audio {
  width: 100%;
}

/* Adaptación a celulares */

@media (max-width: 768px) {
  .contacto-radio-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}


/* ÍCONOS UNIFORMES DEL PROGRAMA RADIAL */

.radio-estado-linea {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
}

.radio-estado-linea svg {
  flex-shrink: 0;
}

.radio-estado-linea p {
  margin: 0;
}
