/* UI Styles */

/* Estilos de filtros */
.filters-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.filter-group label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
  display: block;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: #3182ce;
  outline: none;
  box-shadow: 0 0 5px rgba(49, 130, 206, 0.5);
}

/* Estilos de la lista de profesionales */
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.professional-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.professional-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.professional-card .p-5 {
  padding: 20px;
}

.professional-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2d3748;
}

.professional-card p {
  font-size: 0.95rem;
  color: #4a5568;
  margin-top: 5px;
}

.professional-card .text-blue-500 {
  font-weight: 600;
  color: #3182ce;
}

.professional-card .text-gray-500 {
  font-size: 0.9rem;
}

.professional-card .text-xs {
  font-size: 0.85rem;
}

.professional-card a {
  color: #3182ce;
  font-weight: 600;
  transition: color 0.3s;
}

.professional-card a:hover {
  color: #2b6cb0;
}

/* Tarjetas generales (eventos y programas) */
.card,
.event-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cabeceras y contenido de tarjetas */
.card-header,
.card-footer {
  padding: 1rem;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
}

.card-body,
.event-content {
  padding: 1rem;
}

/* Estilos para imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Ajustes específicos para imágenes dentro de tarjetas */
.professional-image img,
.event-image img,
.card img {
  width: 100%;
  max-height: 250px;
  /* Control de altura */
}

/* Ajuste de contenedor para asegurar centrado */
.professional-image,
.event-image,
.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Detalles de eventos */
.event-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 0.875rem;
}


/* Responsividad */
@media (max-width: 768px) {

  .professional-image img,
  .event-image img,
  .card img {
    max-height: 200px;
    /* Reduce tamaño en pantallas pequeñas */
  }

  .btn-primary {
    width: 100%;
    /* Botón ocupa todo el ancho en móviles */
    text-align: center;
  }
}


/* Estilos para Proyectos Destacados y Testimonios */

.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5a5f;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.project-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.project-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Estilos para Testimonios */
.bg-light {
  background: #f8f9fa;
}

.testimonials-slider {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.testimonial {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 10px;
}

.testimonial-info h4 {
  font-size: 1.2rem;
  margin: 0;
}

.testimonial-info p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.testimonial-controls button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #007bff;
  padding: 0 10px;
}

.testimonial-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
}

.dot.active {
  background: #007bff;
}

/* Estilos de RECURSOS */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Tarjeta de recurso */
.resource-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Icono del recurso */
.resource-icon {
  font-size: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #007bff, #0056b3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Contenido del recurso */
.resource-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.resource-meta {
  font-size: 14px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.resource-meta i {
  margin-right: 5px;
  color: #007bff;
}

.resource-description {
  font-size: 14px;
  color: #555;
  flex-grow: 1;
  margin-bottom: 15px;
}

/* Pie de la tarjeta */
.resource-footer {
  text-align: right;
  padding: 10px 15px;
}



/* Estilos Documentos Oficiales de la Iglesia */
.official-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.official-doc {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid #007bff;
}

.official-doc:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Año destacado */
.doc-year {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  margin-right: 15px;
  flex-shrink: 0;
  width: 70px;
  text-align: center;
  background: #e9f2ff;
  padding: 10px;
  border-radius: 5px;
}

/* Contenido del documento */
.doc-content {
  flex: 1;
}

.doc-content h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #333;
}

.doc-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* Enlace */
.doc-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  color: #007bff;
  transition: color 0.3s ease;
}

.doc-link i {
  margin-left: 5px;
}

.doc-link:hover {
  color: #0056b3;
  text-decoration: underline;
}


/* Estilos Compartir recursos */

/* Títulos y texto */
.section-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 10px;
}


/* Lista de beneficios */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.feature-list i {
  color: #ffc107;
  margin-right: 10px;
  font-size: 18px;
}




/* Campo de archivo */
.file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-upload input {
  display: none;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  background: #007bff;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.file-upload-label i {
  margin-right: 8px;
}

.file-upload-label:hover {
  background: #0056b3;
}


/* Estilos BLOG */

/* Artículos Destacados */
.featured-posts {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.featured-post {
  display: flex;
  max-width: 900px;
  background: #fff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.featured-post-image img {
  width: 300px;
  height: auto;
  object-fit: cover;
}

.featured-post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #444;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Lista de Artículos */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card-category {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.8rem;
  top: 10px;
  left: 10px;
  border-radius: 5px;
}

.blog-card-content {
  padding: 15px;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 5px;
}

.blog-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.blog-card-excerpt {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.blog-card-link {
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.pagination a {
  text-decoration: none;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  background: #0056b3;
  color: #fff;
  transition: background 0.3s;
}

.pagination a:hover {
  background: #003d82;
}

.pagination .disabled {
  background: #ccc;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .featured-post {
    flex-direction: column;
  }

  .featured-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}


/* Diseño CONTACTO */

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Sección de Información de Contacto */
.contact-section {
  display: flex;
  gap: 5%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.contact-card {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 1rem 2.5rem 1rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 1.5rem;
  color: #004085;
  margin-right: 15px;
}

.contact-details h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #004085;
}

.contact-details p {
  margin: 5px 0 0;
  color: #666;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.social-link {
  font-size: 1.4rem;
  color: #004085;
  transition: color 0.3s;
}

.social-link:hover {
  color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-form-container {
    width: 100%;
  }
}


/* Estilos Eventos y Formación */
/* Grid de eventos */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.event-card:hover {
  transform: scale(1.03);
}

.event-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6b6b;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.event-content {
  padding: 1.5rem;
  display: flex;
  align-items: center;
}

.event-date {
  background: #ff6b6b;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin-right: 1rem;
  min-width: 50px;
}

.event-day {
  font-size: 1.5rem;
  font-weight: bold;
}

.event-month {
  font-size: 1rem;
  text-transform: uppercase;
}

.event-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.event-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-price {
  font-weight: bold;
  font-size: 1.1rem;
  color: #ff6b6b;
}

/* Programas de formación */
.text-muted {
  color: #777;
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.program-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.program-features i {
  color: #007bff;
  margin-right: 0.5rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.program-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff6b6b;
}

/******************************************************/

/* Contenedor principal */
.slider-container-empresas {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #ffffff;
}

/* Carrusel con logos duplicados */
.slider-empresas {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  animation: scroll-empresas 15s linear infinite;
}

/* Cada logo */
.slide-empresas {
  flex: 0 0 auto;
  width: 200px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
}

.slide-empresas img {
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
}

/* Animación infinita sin cortes */
@keyframes scroll-empresas {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
