﻿:root {
  --teal: #1a7a8a;
  --teal-dark:#0f5060;
  --teal-light: #e8f4f7;
  --gold: #c9a84c;
  --dark: #111827;
  --cream: #faf8f4;
  --text: #2d3748;
  --muted: #5a6472;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadowa: 0 4px 24px rgba(26, 122, 138, 0.12);
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Karla', sans-serif;
}


*, *::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .heading, .section-heading {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
}

button, input, textarea, select, .btn, .nav-menu li a, .form-group label, .contact-card-link, .footer-contact a, span, li, p {
  font-family: var(--font-body);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

p {
  color: var(--text); max-width: 65ch;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal-dark);
}

a:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

nav {
  background-color: var(--white);
  border-bottom: 3px solid var(--teal);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  gap: 24px;
}

.nav-links-horizontal {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links-horizontal a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links-horizontal a:hover {
  color: var(--teal);
}

@media (max-width: 900px) {
  .nav-links-horizontal {
    display: none;
  }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}

nav img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav original (lista de enlaces) reemplazado por el menú overlay; se mantiene oculto en todas las páginas */
.nav-menu,
#navMenu {
  display: none !important;
}

/* Menu hamburguesa */
.menu-hamburguesa {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 44px;
  height: 44px;
  gap: 6px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.menu-hamburguesa:hover {
  background-color: var(--teal-light);
}

.menu-hamburguesa:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.menu-hamburguesa span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-hamburguesa.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-hamburguesa.active span:nth-child(2) {
  opacity: 0;
}

.menu-hamburguesa.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   BARRAS LATERALES FIJAS (SÍGUENOS / DESCUBRE)
   ========================================================================== */
.side-bar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

.side-bar-left {
  left: 20px;
}

.side-bar-right {
  right: 20px;
}

.side-bar-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.side-bar a,
.side-bar button {
  color: var(--white);
  mix-blend-mode: difference;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.side-bar a:hover,
.side-bar button:hover {
  opacity: 0.7;
}

.side-bar-line {
  width: 1px;
  height: 48px;
  background-color: var(--white);
  mix-blend-mode: difference;
  opacity: 0.6;
}

.side-bar-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--white);
  mix-blend-mode: difference;
  font-weight: 600;
}

@media (max-width: 900px) {
  .side-bar {
    gap: 10px;
  }
  .side-bar-left {
    left: 10px;
  }
  .side-bar-right {
    right: 10px;
  }
  .side-bar-icons {
    gap: 10px;
  }
  .side-bar a,
  .side-bar button {
    font-size: 14px;
  }
  .side-bar-line {
    height: 32px;
  }
  .side-bar-label {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
  }
}

/* ==========================================================================
   PANEL OVERLAY MENU DESPLEGABLE (PARTE SUPERIOR DEL VIEWPORT)
   ========================================================================== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 78vh;
  max-height: 80vh;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 3px solid var(--teal);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-overlay-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2;
  pointer-events: none;
}

.menu-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.menu-overlay-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.menu-overlay-close {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--teal);
  color: var(--teal-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.menu-overlay-close:hover {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: rotate(90deg);
}

.menu-overlay-close:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.menu-overlay-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 48px;
  position: relative;
  z-index: 3;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

.menu-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-col-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.menu-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px;
}

.menu-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.menu-col-links li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s, transform 0.2s;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75);
}

.menu-col-links li a i {
  color: var(--teal);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  transition: transform 0.2s;
}

.menu-col-links li a:hover {
  color: var(--teal);
  transform: translateX(4px);
}

.menu-col-links li a:hover i {
  transform: scale(1.15);
}

.menu-social {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-social-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.menu-social-icons {
  display: flex;
  gap: 10px;
}

.menu-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white) !important;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.menu-social-btn.fb { background-color: #1877f2; }
.menu-social-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.menu-social-btn.yt { background-color: #ff0000; }

.menu-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 960px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 10px 16px;
  }
  .menu-overlay-header {
    padding: 16px 20px;
  }
  .menu-overlay-content {
    padding: 16px 20px 40px;
    align-items: flex-start;
  }
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .menu-col-title {
    font-size: 1.15rem;
  }
  .menu-col-links li a {
    font-size: 1rem;
  }
}

/* ==========================================================================
   HERO / HEADER CON VIDEO DE FONDO
   ========================================================================== */
header,
.hero-header {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
  isolation: isolate;
}

/* Tinte oscuro consistente para páginas secundarias que no usan el video/.hero-overlay de index.html */
header:not(:has(.hero-overlay))::before,
.hero-header:not(:has(.hero-overlay))::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
  pointer-events: none;
}

.hero-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  pointer-events: none;
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 2;
  pointer-events: none;
}

header h1,
header h2,
header h3,
header p,
header .redes {
  position: relative;
  z-index: 3;
}

@media (max-width: 640px) {
  .menu-overlay {
    height: 82vh;
    max-height: 85vh;
  }
  header,
  .hero-header {
    height: 100vh;
  }
}

/* ==========================================================================
   ACCESIBILIDAD / PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none !important;
  }
  .hero-poster {
    display: block !important;
  }
  .menu-overlay,
  .menu-backdrop,
  .menu-overlay-close,
  .menu-col-links li a,
  .btn {
    transition: none !important;
    transform: none !important;
  }
}

  .btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 122, 138, 0.3);
  }

  .btn:focus {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }

  .btn-primary {
    background: var(--teal);
    color: var(--white);
  }

  .btn-primary:hover {
    background: var(--teal-dark);
    box-shadow: 0 8px 24px rgba(26, 122, 138, 0.3);
  }

.btn-outline {
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 24px;
  max-width: 960px;
  margin: 0 auto;
}

section + section {
  border-top: 1px solid #e2e8f0;
}

section.bg-teal,
section.bg-light {
  background: var(--cream);
  color: var(--text);
  max-width: 100%;
  padding: 72px 24px;
  margin: 0;
  border-top: none;
}

section.bg-teal h2, 
section.bg-teal h3,
section.bg-light h2,
section.bg-light h3 {
  color: var(--dark);
}

section.bg-teal p,
section.bg-light p {
  color: var(--text);
}

.registro-container {
  max-width: 920px;
  margin: 0 auto;
}

.registro-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 10px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dbe2e8;
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 122, 138, 0.08);
}

.horario-opciones {
  display: grid;
  gap: 14px;
}

.horario-opcion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid #dbe2e8;
  transition: border-color 0.2s, background-color 0.2s;
}

.horario-opcion:hover {
  border-color: var(--teal);
}

.horario-opcion input {
  width: 18px;
  height: 18px;
}

.horario-opcion span {
  display: block;
  font-weight: 700;
}

.horario-opcion small {
  color: var(--muted);
}

.registro-form .btn {
  width: 100%;
  padding: 16px 22px;
}

.form-message {
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
}

.form-message--success {
  background: rgba(62, 180, 137, 0.14);
  color: #155724;
}

.form-message--error {
  background: rgba(220, 53, 69, 0.12);
  color: #842029;
}

.header-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .registro-form {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .horario-opcion {
    grid-template-columns: auto 1fr;
  }
}

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.horario-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-left: 5px solid var(--teal);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.horario-card:hover {
  transform: translateY(-4px);
}

.horario-card h3 {
  color: var(--teal);
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.horario-card p {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.horario-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Liderazgo ---- */
.lider-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 32px;
  max-width: 600px;
}

.lider-card img {
  width: 120px;
  height: 120px;
  border-radius: 0;
  object-fit: cover;
  border: 4px solid var(--teal-light);
}

.lider-info h3 { margin-bottom: 6px; }
.lider-info p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ---- Contacto ---- */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contacto-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,122,138,0.18);
  color: var(--text);
}

.contacto-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contacto-item strong { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.contacto-item span { font-weight: 600; font-size: 0.95rem; }

/* ---- Redes sociales ---- */
.redes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  width: 100%;
}

.red-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--teal);
  color: var(--white);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.red-social:hover {
  transform: translateY(-2px);
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(26, 122, 138, 0.3);
}

.red-facebook,
.red-instagram,
.red-youtube {
  background: var(--teal);
  color: var(--white);
}

.red-facebook:hover,
.red-instagram:hover,
.red-youtube:hover {
  background: var(--teal-dark);
  color: var(--white);
}

/* ---- Mapa / Ubicación ---- */
.ubicacion-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.ubicacion-box a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal);
}

/* ---- Footer ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

.footer-cta {
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-cta h2 {
  color: var(--white);
}

.footer-cta .cta-text {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}

.footer-cta .divider {
  background: var(--teal-light);
}

.footer-cta .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.footer-cta .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  color: var(--white);
}

footer strong {
  color: var(--white);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-contact a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.14);
}

.fc-phone,
.fc-whatsapp,
.fc-email {
  font-size: 1rem;
}

/* ---- Divisor decorativo ---- */
.divider {
  width: 60px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin: 16px 0 28px;
}

/* ---- Animación de entrada ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

header > * {
  animation: fadeUp 0.7s ease both;
}
header img     { animation-delay: 0.1s; }
header h1      { animation-delay: 0.25s; }
header h3, header p { animation-delay: 0.4s; }
header a       { animation-delay: 0.55s; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  nav ul { gap: 14px; }
  nav ul li a { font-size: 0.8rem; }

  header { padding: 64px 16px 56px; }

  .lider-card {
    flex-direction: column;
    text-align: center;
  }

  section { padding: 48px 16px; }
}

/* Espaciado superior para contenido inmediatamente posterior a fotos o headers grandes */
header + section,
header + .video-section,
.hero-header + section {
  padding-top: 56px;
}

/* ---- PÁGINA SERMONES ---- */
.video-section {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 48px 16px;
}

.sermon-search-box {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadowa);
  margin-bottom: 32px;
}

.sermon-search-box h2 {
  margin-bottom: 8px;
  text-align: center;
}

.sermon-search-box p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

#search {
  width: 100%;
  max-width: 520px;
  padding: 14px 18px;
  border: 2px solid var(--teal-light);
  border-radius: 999px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin: 0 auto;
  display: block;
}

.sermon-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.sermon-links-grid a {
  width: 100%;
  justify-content: center;
}

.sermon-item-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

#search:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 122, 138, 0.12);
}

.sermon-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(26, 122, 138, 0.08);
  text-align: center;
  border: 1px solid rgba(26, 122, 138, 0.18);
}

.sermon-channel-card p {
  max-width: 660px;
  margin: 0;
  color: var(--dark);
}

.sermon-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.sermon-list li {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadowa);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: auto;
}

.sermon-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 122, 138, 0.15);
}

.sermon-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #111;
}

.sermon-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.sermon-info a {
  display: block;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  transition: color 0.2s;
  line-height: 1.3;
  font-size: 0.95rem;
}

.sermon-info a:hover {
  color: var(--teal-dark);
}

.sermon-info span, .sermon-info p {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.sermon-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  margin-bottom: 32px;
}

.sermon-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive para móviles - Sermones */
@media (max-width: 640px) {
  .sermon-list {
    grid-template-columns: 1fr;
  }
}

/* ---- Maps & Forms ---- */
.maps-iframe {
  border: 0;
}

.mapa-ubicacion {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  z-index: 0;
}

.mapa-ubicacion--small {
  height: 200px;
}

.form-btn-submit {
  width: 100%;
  margin-top: 12px;
}

.form-confidential {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 20px;
}

/* ---- Bible Section ---- */
.bible-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

.bible-select,
.bible-input {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--muted);
}

.bible-input {
  flex: 1;
  min-width: 200px;
}

.bible-btn {
  padding: 8px 16px;
}

.bible-container {
  position: relative;
}

.bible-fullscreen-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.bible-iframe {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Redesigned Bible card */
.bible-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.bible-select, .bible-input, .bible-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e6edf0;
}
.bible-input { flex: 1; min-width: 160px; }

.bible-container { margin-top: 14px; }
.bible-result { }

.bible-card {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 28px rgba(16,24,40,0.06);
  border: 1px solid rgba(26,122,138,0.06);
  animation: fadeUp 0.45s ease both;
}
.bible-resultado {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 28px rgba(16,24,40,0.06);
  border: 1px solid rgba(26,122,138,0.06);
  animation: fadeUp 0.45s ease both;
  font-family: var(--font-body);
  color: var(--dark);
}
.bible-card h3 { margin: 0 0 10px 0; font-family: var(--font-heading); color: var(--teal-dark); }
.bible-text { font-family: var(--font-body); color: var(--dark); font-size: 1.05rem; line-height: 1.8; }
.bible-text p { margin: 8px 0; }
.bible-text sup { font-size: 0.75rem; color: var(--muted); margin-right: 8px; }

.bible-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.bible-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-weight:700; cursor: pointer; border: 1px solid rgba(0,0,0,0.06); background: transparent; }
.bible-action-btn.copy { background: rgba(201,168,76,0.08); color: var(--dark); border-color: rgba(201,168,76,0.14); }
.bible-action-btn.share { background: rgba(26,122,138,0.06); color: var(--teal-dark); border-color: rgba(26,122,138,0.12); }
.bible-action-btn:active { transform: translateY(1px); }

@media (max-width:640px) {
  .bible-controls { flex-direction: column; align-items: stretch; }
  .bible-action-btn { width: 100%; justify-content: center; }
}

/* ---- CTA Section ---- */
.cta-container {
  text-align: center;
}

.cta-divider {
  margin: 16px auto 28px;
}

.cta-text {
  max-width: 55ch;
  margin: 0 auto;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Eventos Page ---- */
#eventos-section {
  padding-bottom: 110px;
}

.eventos-mes + .eventos-mes {
  margin-top: 48px;
}

.eventos-mes-titulo {
  color: var(--teal-dark);
  margin-top: 16px;
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  gap: 24px;
  margin-top: 32px;
}

.evento-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.evento-card:hover {
  transform: translateY(-4px);
}

.evento-fecha {
  background: var(--teal);
  color: white;
  text-align: center;
  padding: 16px;
  font-family: var(--font-heading);
}

.evento-fecha .dia {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.evento-fecha .mes {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
}

/* ---- SCROLL TO TOP BUTTON ---- */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(26, 122, 138, 0.2);
}

.scroll-to-top:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: 24px;
    right: 24px;
    font-size: 1rem;
  }
}

.evento-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.evento-info h3 {
  margin-bottom: 8px;
}

.evento-info p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.evento-direccion {
  margin-top: auto;
  padding-top: 12px;
}

.evento-direccion--pendiente {
  font-style: italic;
  color: var(--muted);
  opacity: 0.85;
}

.evento-direccion--pendiente i {
  margin-right: 4px;
}

.evento-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

/* ---- Creencias Page ---- */
.creencias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.creencia-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
  transition: transform 0.2s;
}

.creencia-card:hover {
  transform: translateY(-4px);
}

.creencia-icono {
  font-size: 2rem;
  margin-bottom: 14px;
}

.creencia-card h3 {
  margin-bottom: 10px;
  color: var(--teal-dark);
}

.creencia-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.versiculo {
  font-size: 0.82rem;
  color: var(--teal-dark);
  font-weight: 700;
  margin-top: 12px;
  display: block;
}

/* ---- Historia Page ---- */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-anio {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 4px;
}

.timeline-item h3 {
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ---- Liderazgo Page ---- */
.lider-grande {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 32px auto;
  max-width: 960px;
  width: 100%;
  padding: 16px;
}

.lider-grande img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 4 / 5;
}

.lider-grande-info {
  padding: 36px 36px 36px 0;
}

.lider-grande-info h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.lider-rol {
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: block;
}

.lider-grande-info p {
  font-size: 1rem;
  line-height: 1.8;
}

.contact-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.contact-card-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.contact-wpp {
  background: #25d366;
}

.contact-email {
  background: #d44638;
}

@media (max-width: 640px) {
  .lider-grande {
    grid-template-columns: 1fr;
  }
  .lider-grande-info {
    padding: 24px;
  }
  .lider-grande img {
    height: auto;
    max-height: 400px;
  }
}



  .sermon-list li {
    flex-direction: column;
    height: auto;
  }

  .sermon-thumbnail {
    width: 100%;
    min-width: 100%;
  }

  .sermon-info {
    padding: 16px;
  }


@media (max-width: 640px) {
  .sermon-search-box {
    padding: 24px 16px;
  }

  .sermon-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sermon-thumbnail {
    aspect-ratio: 16 / 9;
  }
}

.contact-celulas-rosa {
  background-color: #e91e8c;
  color: #fff;
}

.contact-celulas-morada {
  background-color: #900ac1c2;
  color: #fff;
}

.contact-celulas-roja {
  background-color: #e91e1e;
  color: #fff;
}

.contact-celulas-guinda {
  background-color: #6b111c;
  color: #fff;
}

.contact-celulas-azul {
  background-color: #3707c7;
  color: #fff;
}

.contact-celulas-verde {
  background-color: #08b105;
  color: #fff;
}

.hero-header {
  position: relative;
  display: block;
  text-align: center;
  overflow: hidden;
}

.hero-header-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: 0 auto;
  width: min(100%, 760px);
  max-width: 760px;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.hero-header h1,
.hero-header h3 {
  max-width: 760px;
  color: var(--white);
}

.hero-header-cta {
  margin: 0 auto;
}

/* use vertical "-telefono" images only on phone-sized screens */
@media (max-width: 640px) {
  .header-historia {
    background-image: url('../jpg/historia-back-telefono.JPG') !important;
  }
  .header-creencias {
    background-image: url('../jpg/back-creencias-telefono.JPG') !important;
  }
  .header-liderazgo {
    background-image: url('../jpg/liderazgo-fdv-telefono.JPG') !important;
  }
  .header-sermon {
    background-image: url('../jpg/jacobo-predicando-telefono.JPG') !important;
  }
}

.contact-celulas-general {
  background-color: #060105;
  color: #fff;
}

