/* ═══════════════════════════════════════════
   IGLESIA BAUTISTA DE PUERTO CABELLO
   Hoja de estilos compartida
   ═══════════════════════════════════════════ */

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

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

:root {
  /* Paleta de marca PIBPC (recursos/PALETA.jpg) */
  --blue: #4d96f5;          /* Azul de marca — acentos, botones, labels */
  --blue-dark: #152d5c;     /* Secciones oscuras principales */
  --blue-deeper: #0d1a35;   /* Fondos más profundos: hero, footer */
  --blue-mid: #1e4080;      /* Degradados intermedios */
  --blue-light: #c2dbff;    /* Highlights sobre fondo oscuro */
  --blue-pale: #edf3ff;
  --dark: #3e3e3e;
  --gray: #dddddd;

  /* Aliases para nombres existentes en el código */
  --navy: #152d5c;
  --navy-deep: #0d1a35;
  --navy-mid: #1e4080;
  --gold: #4d96f5;
  --gold-light: #c2dbff;
  --gold-pale: #edf3ff;
  --cream: #e4eeff;
  --warm-white: #f8fbff;
  --stone: #6b7280;
  --stone-light: #9ca3af;
  --text: #3e3e3e;
  --text-light: #6b7280;
  --accent-blue: #4d96f5;
  --accent-teal: #2a7d6f;
  --red-soft: #c0392b;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(39,89,161,0.05);
  --shadow-sm: 0 1px 3px rgba(39,89,161,0.08);
  --shadow-md: 0 4px 20px rgba(39,89,161,0.1);
  --shadow-lg: 0 12px 40px rgba(39,89,161,0.12);
  --shadow-xl: 0 20px 60px rgba(39,89,161,0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════ */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,254,251,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(39,89,161,0.08);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
}

.nav-brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--navy);
}
.nav-brand .cross-logo {
  height: 36px;
  width: auto;
}
.nav-brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: .83rem; font-weight: 500;
  padding: .5rem .65rem; border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(39,89,161,0.06);
}
.nav-links a.active {
  color: var(--gold);
  font-weight: 600;
}

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: .55rem 1.3rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all .25s !important;
}
.nav-cta:hover {
  background: var(--accent-blue) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  position: absolute; left: 7px;
  transition: all .3s;
}
.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(255,254,251,0.98);
  backdrop-filter: blur(20px);
  z-index: 99; padding: 1.5rem;
  flex-direction: column; gap: .25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--navy);
  font-size: 1.05rem; font-weight: 500;
  padding: 1rem 1.25rem; border-radius: 10px;
  transition: background .2s;
}
.mobile-menu a:hover { background: rgba(39,89,161,0.06); }
.mobile-menu a.active { color: var(--gold); font-weight: 600; }

/* ════════════════════════════════════════════
   PAGE HERO (INTERNAL PAGES)
   ════════════════════════════════════════════ */

.page-hero {
  padding: 10rem 2rem 5rem;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 50%, var(--blue-mid) 100%);
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 20% 80%, rgba(77,150,245,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 600px at 80% 20%, rgba(59,111,160,0.12) 0%, transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.page-hero .breadcrumb a {
  color: var(--gold-light); text-decoration: none;
}
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.6);
  max-width: 580px; margin: 0 auto;
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   COMMON SECTION STYLES
   ════════════════════════════════════════════ */

.section { padding: 5rem 2rem; }
.section-alt { background: var(--cream); }

.section-header {
  text-align: center;
  max-width: 620px; margin: 0 auto 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .65rem;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.2; margin-bottom: .85rem;
}
.section-header p {
  font-size: 1rem; color: var(--text-light);
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.8rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: all .3s; cursor: pointer; border: none;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(77,150,245,0.35);
}
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid rgba(39,89,161,0.2);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(39,89,161,0.05);
}
.btn-outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-sm { padding: .6rem 1.3rem; font-size: .82rem; }

/* ════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════ */

.card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(39,89,161,0.08);
  box-shadow: var(--shadow-sm);
  transition: all .35s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-accent {
  position: relative; overflow: hidden;
}
.card-accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transition: transform .35s;
  transform-origin: left;
}
.card-accent:hover::before { transform: scaleX(1); }

/* ════════════════════════════════════════════
   VERSE BANNER
   ════════════════════════════════════════════ */

.verse-banner {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.verse-banner::before {
  content: '\201C'; position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 18rem; color: rgba(77,150,245,0.08);
  top: -2rem; left: 50%; transform: translateX(-50%);
  line-height: 1;
}
.verse-banner blockquote {
  max-width: 650px; margin: 0 auto;
  position: relative; z-index: 1;
}
.verse-banner blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: rgba(255,255,255,0.88);
  font-style: italic; line-height: 1.65;
  margin-bottom: 1.25rem;
}
.verse-banner cite {
  font-style: normal; font-size: .85rem;
  color: var(--gold-light); font-weight: 500;
  letter-spacing: .04em;
}

/* ════════════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════════════ */

.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 4rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 30% 50%, rgba(77,150,245,0.1), transparent);
}
.cta-banner-content {
  position: relative; z-index: 1;
  max-width: 550px; margin: 0 auto;
}
.cta-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: #fff;
  margin-bottom: .75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem; font-size: .95rem;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */

footer {
  background: var(--navy-deep);
  padding: 4rem 2rem 1.5rem;
  color: rgba(255,255,255,0.5);
}
.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-about .footer-brand {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.footer-about .cross-logo {
  height: 44px;
  width: auto;
}
.footer-about .footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: rgba(255,255,255,0.8);
}
.footer-about p {
  font-size: .88rem; line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.7);
  font-size: .95rem; margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a {
  text-decoration: none; color: rgba(255,255,255,0.4);
  font-size: .85rem; transition: color .2s;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  font-size: .78rem;
}

/* ════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════ */

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ════════════════════════════════════════════
   REVEAL ANIMATIONS
   ════════════════════════════════════════════ */

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .section { padding: 3.5rem 1.25rem; }
  .page-hero { padding: 8rem 1.25rem 3.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .verse-banner { padding: 3rem 1.25rem; }
  .cta-banner { padding: 3rem 1.25rem; }
}
