@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
:root {
  --teal: #1a7a8a;
  --teal-dark: #0f5060;
  --teal-light: #e8f4f7;
  --gold: #c9a84c;
  --dark: #111827;
  --cream: #faf8f4;
  --text: #2d3748;
  --muted: #718096;
  --white: #ffffff;
  --radius: 12px;
  --shadowa: 0 4px 24px rgba(26, 122, 138, 0.12);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", Arial;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Arial;
  color: var(--dark);
  line-height: 1.2;
}

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 16px;
  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);
}

nav img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

nav ul li a {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
  white-space: nowrap;
}

nav ul li a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

@media (max-width: 768px) {
  nav {
    padding: 12px 12px;
  }
  nav ul {
    gap: 10px;
  }
  nav ul li a {
    font-size: 0.7rem;
  }
}

/* ---- Header - Redes Sociales ---- */
header .redes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

header .red-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

header .red-social:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

header .red-facebook {
  background: #1877f2;
  color: white;
}

header .red-instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: white;
}

header .red-youtube {
  background: #ff0000;
  color: white;
}

header {
  background: linear-gradient(
    135deg,
    var(--teal-dark) 0%,
    var(--teal) 60%,
    #2a9ab0 100%
  );
  color: var(--white);
  padding: 100px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -60px;
  height: 320px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

header::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
}

header img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  object-fit: contain;
  background: white;
  padding: 8px;
  position: relative;
  z-index: 1;
}

header h1 {
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

header p,
header h3 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: "Nunito", Arial;
  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(--gold);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  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 {
  background: var(--teal-dark);
  color: var(--white);
  max-width: 100%;
  padding: 72px 24px;
  margin: 0;
}

section.bg-teal h2,
section.bg-teal h3 {
  color: var(--white);
}

section.bg-teal p {
  color: rgba(255, 255, 255, 0.85);
}

section.bg-light {
  background: var(--teal-ligth);
  max-width: 100%;
  padding: 72px 24px;
  margin: 0;
}

.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: 50%;
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--white);
}

.contacto-icon-phone {
  background: rgb(27, 180, 78);
}
.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;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.red-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.red-social:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.red-facebook {
  background: #1877f2;
  color: white;
}
.red-instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: white;
}
.red-youtube {
  background: #ff0000;
  color: white;
}

/* ---- Registro de Visita ---- */
.registro-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadowa);
  max-width: 900px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.form-group {
  margin-bottom: 22px;
}
.form-group--full {
  grid-column: 1 / -1;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.req {
  color: #e53e3e;
  margin-left: 2px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Nunito", Arial;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 138, 0.12);
  background: var(--white);
}
.horario-opciones {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.horario-opcion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cream);
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  flex: 1;
  min-width: 140px;
  transition:
    border-color 0.2s,
    background-color 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.horario-opcion input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.horario-opcion span {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.4;
}
.horario-opcion small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}
.horario-opcion:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-light);
}
.reg-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.reg-submit {
  border: none;
  width: 100%;
  font-size: 1rem;
  padding: 16px;
}
@media (max-width: 640px) {
  .registro-form {
    padding: 24px 16px;
  }
  .horario-opciones {
    flex-direction: column;
  }
}

.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: 12px 16px;
  font-size: 0.85rem;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  line-height: 1.3;
}

footer strong {
  color: var(--white);
  display: block;
  margin-bottom: 3px;
  font-family: "Playfair Display", Arial;
  font-size: 1rem;
}

/* ---- Divisor decorativo ---- */
.footer-contact {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.footer-contact a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}
.footer-contact .fc-phone {
  background: #34a853;
}
.footer-contact .fc-whatsapp {
  background: #25d366;
}
.footer-contact .fc-email {
  background: #ea4335;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  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;
  }
  .registro-form {
    grid-template-columns: 1fr;
  }
}
.form-group--full {
  grid-column: 1;
}
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;
}

/* ---- PÁGINA SERMONES ---- */
.video-section {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 0 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%;
  padding: 12px 16px;
  border: 2px solid var(--teal-light);
  border-radius: 24px;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

#search:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 138, 0.1);
}

.sermon-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 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;
}

.sermon-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 122, 138, 0.15);
}

.sermon-thumbnail {
  width: 100%;
  height: 160px;
  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;
}

.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;
}

@media (max-width: 768px) {
  .sermon-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .sermon-thumbnail {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .sermon-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sermon-thumbnail {
    height: 180px;
  }
}

