/* Estilos personalizados para Casa del Alfarero */

html, body {
  height: 100%;
  margin: 0;
  box-sizing: border-box;
}

html {
  touch-action: pan-y pinch-zoom;
}

body {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
iframe {
  max-width: 100%;
}

input,
textarea,
button {
  min-width: 0;
}

/* Efecto Celeste Universal e Independiente */
a:hover, button:hover, h1:hover, h2:hover, h3:hover, h4:hover, p:hover, span:hover, i:hover, strong:hover, em:hover, label:hover,
a.touch-hover, button.touch-hover, h1.touch-hover, h2.touch-hover, h3.touch-hover, h4.touch-hover, p.touch-hover, span.touch-hover, i.touch-hover, strong.touch-hover, em.touch-hover, label.touch-hover {
  color: #5ed3f3 !important;
  transition: color 0.1s ease;
}

/* Resalte de Contenedores */
.bank-card.touch-hover,
.hero-item.touch-hover,
.section-header.touch-hover,
.account.touch-hover,
.form-card.touch-hover,
.payment-card.touch-hover,
.verse-box.touch-hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(94, 211, 243, 0.35);
}

.bank-card.touch-hover .bank-title,
.bank-card.touch-hover .account h4,
.bank-card.touch-hover .account-details p,
.bank-card.touch-hover .section-header span,
.bank-card.touch-hover .section-header h2,
.bank-card.touch-hover .top-label,
.hero-item.touch-hover i,
.section-header.touch-hover i {
  color: #5ed3f3;
}

.bank-card.touch-hover .bank-logo,
.hero-item.touch-hover i,
.section-header.touch-hover i {
  filter: grayscale(100%) brightness(1.15) sepia(15%) saturate(400%) hue-rotate(165deg);
}

.font-heading {
  font-family: 'Playfair Display', serif;
}

.font-body {
  font-family: 'Lato', sans-serif;
}

.hero-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(212,175,105,0.08) 0%, transparent 60%);
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,52,96,0.65), rgba(26,26,46,0.85));
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.section-logo-bg {
  position: relative;
  overflow: hidden;
}

.section-logo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('imagenes/logo.png'), radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(26,26,46,0.12));
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 240px 240px, 100% 100%;
  opacity: var(--logo-bg-opacity, 0.07);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero-logo-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.8s ease-out forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d4af69, #f0d890);
}

.pottery-icon {
  width: 80px;
  height: 80px;
  border: 2px solid #d4af69;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,105,0.05);
}

.nav-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #d4af69;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,105,0.05);
}

/* Estilos adicionales para elementos específicos */

body {
  background-color: #f8f6f1;
}

#navbar {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
}

#nav-name {
  color: #d4af69;
}

.nav-links {
  color: #e8e4dc;
}

#navbar .nav-links a,
#navbar a,
#mobile-menu a {
  color: #e8e4dc;
  transition: color 0.25s ease, transform 0.25s ease;
}

#navbar .nav-links a:hover,
#navbar .nav-links a:focus,
#navbar .nav-links a:active,
#navbar a:hover,
#navbar a:focus,
#navbar a:active,
#mobile-menu a:hover,
#mobile-menu a:focus,
#mobile-menu a:active {
  color: #5ed3f3 !important;
  transform: translateX(2px);
}

#inicio {
  min-height: 760px;
  padding-top: 100px;
  padding-bottom: 80px;
}

#hero-title {
  color: #ffffff;
  line-height: 1.1;
}

#hero-subtitle {
  color: #c9c3b8;
}

.hero-gold-text {
  color: #d4af69;
}

.hero-button {
  background: linear-gradient(135deg, #d4af69, #f0d890);
  color: #1a1a2e;
}

.about-gold-text {
  color: #d4af69;
}

.about-dark-text {
  color: #1a1a2e;
}

.about-card-bg {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.about-radial-bg {
  background: radial-gradient(circle, rgba(212,175,105,0.15), transparent);
  transform: translate(30%, -30%);
}

#pastor-name {
  color: #d4af69;
}

.about-text-color {
  color: #c9c3b8;
}

.about-main-text {
  color: #3d3d3d;
}

.stat-number {
  color: #d4af69;
}

.stat-label {
  color: #666;
}

#ministerios {
  background: #f5f3ef;
}

.services-dark-text {
  color: #1a1a2e;
}

.folder-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.98));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.folder-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.folder-card-image {
  display: block;
  width: 100%;
  min-height: 320px;
  background-color: #dcd7ce;
  background-size: cover;
  background-position: center;
}

/* Ajustes responsivos: hacer las tarjetas más anchas lateralmente sin pegarse a los bordes */
/* Ajustes responsivos: hacer las tarjetas más anchas lateralmente sin pegarse a los bordes */
#ministerios {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Grid por defecto (móvil): una columna para que las tarjetas se apilen */
#ministerios .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  /* Dos columnas en pantallas medianas */
  #ministerios .grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1.25rem;
  }
}

.folder-card-content {
  padding: 1.5rem;
  background: rgba(26, 26, 46, 0.95);
}

.folder-card-content h3 {
  margin-bottom: 0.5rem;
  color: #d4af69; /* Título en Dorado */
}

.folder-card-content p {
  margin: 0;
  color: #c9c3b8; /* Descripción en Gris Claro */
}

.album-modal {
  display: none;
}

.album-modal:not(.hidden) {
  display: flex;
}

.album-modal-panel {
  max-height: 90vh;
}

.album-modal-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.album-modal-grid img:hover {
  transform: scale(1.02);
}

.album-modal-grid {
  scrollbar-width: thin;
}

.album-modal-grid::-webkit-scrollbar {
  width: 8px;
}

.album-modal-grid::-webkit-scrollbar-thumb {
  background: rgba(26,26,46,0.35);
  border-radius: 999px;
}

#videos {
  background: #1a1a2e;
}
.video-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  backdrop-filter: blur(8px);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-card-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  height: 0;
}

@media (max-width: 768px) {
  .video-card-frame {
    padding-top: 56.25%;
  }
}

.video-card-frame iframe {
  position: absolute;
  width: 100%;
  height: 100% !important;
  top: 0;
  left: 0;
  border: none;
  z-index: 20; /* Asegura que el iframe esté por encima de fondos o efectos blur */
}

.video-card-body {
  background: rgba(26,26,46,0.95);
  padding: 1.5rem;
}
.video-card-body h3,
.video-card-body p {
  color: #f5f3ef;
}
.video-card-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.video-card-body p { font-size: 0.9rem; line-height: 1.5; opacity: 0.8; }
.video-card-body a {
  text-decoration: none;
}

/* Estilo específico para Música del Día - Permite que el video llegue al borde */
.daily-music-card {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: none !important;
  border: none !important;
  background: #000 !important;
}

@media (min-width: 1024px) {
  .daily-music-card {
    flex-direction: row !important;
    min-height: 550px;
  }
  .daily-music-card .video-card-frame {
    flex: 2;
    padding-top: 0 !important;
    height: auto !important;
  }
  .daily-music-card .video-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem !important;
  }
  .daily-music-card h3 { font-size: 4.5rem !important; font-weight: 900; line-height: 1; margin-bottom: 2rem; }
  .daily-music-card p { font-size: 2.2rem !important; font-style: italic; line-height: 1.4; opacity: 1; }
}

:root {
  --accent-celeste: #5ed3f3;
}

/* Estilos para fondo cristalizado */
.crystal-bg {
  position: relative;
  overflow: hidden;
}

.crystal-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('imagenes/fondo-contacto.jpg') center/cover no-repeat;
  filter: blur(20px) brightness(0.7);
  opacity: 0.6;
  z-index: -1;
}

.crystal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  z-index: -1;
}

/* Estilos adicionales para hacer que el contenido destaque sobre el fondo */
.contact-section-content {
  position: relative;
  z-index: 1;
}

/* Hover para tarjetas y bloques */
.folder-card:hover,
.video-card:hover,
.service-card-bg:hover,
.contact-card-bg:hover,
.card-hover:hover,
.folder-card-button:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.15);
}

.folder-card:hover h3,
.folder-card:hover p,
.service-card-bg:hover h3,
.contact-card-bg:hover h3,
.service-card-bg:hover p,
.contact-card-bg:hover p {
  color: var(--accent-celeste);
}

.video-card:hover .video-card-body h3,
.video-card:hover .video-card-body p {
  color: var(--accent-celeste);
}

#servicios {
  background: #1a1a2e;
}

.services-gold-text {
  color: #d4af69;
}

.services-white-text {
  color: #ffffff;
}

.service-card-bg {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,105,0.2);
}

.service-icon-bg {
  background: rgba(212,175,105,0.1);
}

.service-gold {
  color: #d4af69;
}

.service-gray {
  color: #8a8a8a;
}

.contact-gold-text {
  color: #d4af69;
}

.contact-dark-text {
  color: #1a1a2e;
}

.contact-card-bg {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-icon-bg {
  background: rgba(212,175,105,0.1);
}

.contact-dark {
  color: #1a1a2e;
}

.contact-gray {
  color: #333;
}

footer {
  background: #1a1a2e;
}

.footer-gold {
  color: #d4af69;
}

.footer-gray {
  color: #666;
}

.footer-socials {
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  text-decoration: none;
}

.social-link .social-icon {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.social-tiktok {
  background: #000000;
  color: #ffffff;
}

.social-tiktok .social-icon {
  color: #ffffff;
}

.social-instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #f58529 27%, #dd2a7b 54%, #8134af 80%, #515bd4);
  color: #ffffff;
}

.social-instagram .social-icon {
  color: #ffffff;
}

.social-youtube {
  background: #ff0000;
  color: #ffffff;
}

.social-youtube .social-icon {
  color: #ffffff;
}

/* Estilos para el menú hamburguesa y selector de idiomas */
#hamburger-btn {
  color: #ffffff;
  display: flex;
}

#hamburger-icon,
#close-icon {
  transition: all 0.3s ease;
}

/* Mostrar hamburguesa solo en pantallas pequeñas */
@media (min-width: 768px) {
  #hamburger-btn {
    display: none !important;
  }
  #mobile-menu {
    display: none !important;
  }
}

#mobile-menu {
  transition: opacity 0.3s ease;
}

#mobile-menu:not(.hidden) {
  display: flex !important;
}

#language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: #d4af69 !important;
  color: #1a1a2e !important;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#language-btn:hover {
  background-color: #f0d890 !important;
  transform: scale(1.05);
}

#language-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.group:hover .hidden {
  display: block;
}

/* Efecto de resalte celeste para imágenes de actividades */
.activity-img-container {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.folder-card:hover .activity-img-container,
.folder-card.touch-hover .activity-img-container {
  box-shadow: 0 0 50px rgba(94, 211, 243, 0.8), 0 0 20px rgba(94, 211, 243, 0.4) !important;
  border-color: #5ed3f3 !important;
  transform: scale(1.02);
}

/* Mostrar botón de álbum en móvil al tocar el contenedor */
.folder-card.touch-hover button[data-album] {
  opacity: 1 !important;
}

/* Carrusel Vertical Automático para Actividades */
.activity-carousel {
  height: 120px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.activity-carousel-track {
  display: flex;
  flex-direction: column;
  animation: activity-slide-up 10s infinite ease-in-out;
}

.activity-carousel-track img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes activity-slide-up {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-120px); }
  50%, 70% { transform: translateY(-240px); }
  75%, 95% { transform: translateY(-360px); }
  100% { transform: translateY(0); }
}

/* Animación Incandescente para el punto de YouTube */
@keyframes incandescent-red {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px #ff0000, 0 0 15px #ff0000, 0 0 25px #ff0000;
    transform: scale(1.4);
  }
  50% {
    opacity: 0.15;
    box-shadow: 0 0 0px transparent;
    transform: scale(0.8);
  }
}

.animate-incandescent-red {
  animation: incandescent-red 1.2s infinite ease-in-out;
}

/* Animación Incandescente para el punto del Pastor */
@keyframes incandescent-yellow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px #eab308, 0 0 20px #eab308;
    transform: scale(1.3);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 2px transparent;
    transform: scale(0.9);
  }
}

.animate-incandescent-yellow {
  animation: incandescent-yellow 1.8s infinite ease-in-out;
}
