/* Estilos generales */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to right, #cea75f, #dbab5d, #bd9132);
  background: radial-gradient(
    circle,
    #cea558,
    #d4ab67,
    #bd9132
  ); /* Corregido el degradado radial */
  color: #370c6b;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  padding-top: 80px; /* Compensar la navbar fija */
}

/* Navbar mejorada */
.navbar {
  background-color: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  height: 80px;
  padding: 5px 15px;
  z-index: 1000;
}
/* Estilo para el logo en la navbar */
.navbar-brand img {
  height: 50px; /* Ajusta este valor según necesites */
  width: auto;
  max-width: 100%;
}

.navbar-collapse {
  background-color: rgba(0, 0, 0, 0.4) !important;
  padding: 10px;
  border-radius: 5px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 10px 15px;
  position: relative;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 1) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d69d02;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.8);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  transition: transform 0.3s ease;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
  transform: rotate(90deg);
}

/* Header y logo */
.header-background {
  background-color: white;
  min-height: 100vh;
  background-image: url('assets/logobandera.webp'),
    linear-gradient(to right, rgba(31, 102, 160, 0.5), rgba(200, 200, 200, 0)),
    linear-gradient(to right, rgba(117, 177, 196, 0.5), rgba(150, 150, 150, 0)),
    linear-gradient(to right, rgba(100, 100, 100, 0.5), rgba(100, 100, 100, 0));
  background-size:
    290px 190px,
    100% 4px,
    100% 4px,
    100% 4px;
  background-position:
    left top,
    0 94%,
    0 96%,
    0 98%;
  background-repeat: no-repeat;
  padding: 60px 0; /* Mejor control del espaciado superior e inferior */
}

.header-background img {
  margin-bottom: 30px;
  max-width: 100%; /* Asegura que el logo no desborde en dispositivos pequeños */
  height: auto;
  transition: all 0.3s ease;
}

.header-background h1 {
  margin-bottom: 30px;
  font-size: calc(1.8rem + 1.5vw); /* Tamaño de fuente responsive */
  transition: all 0.3s ease;
}

.header-background p {
  margin-bottom: 35px;
  font-size: calc(1rem + 0.3vw); /* Tamaño de fuente responsive */
  max-width: 90%; /* Mantiene el texto más contenido */
  margin-left: auto;
  margin-right: auto;
}

/* En el CSS */
.logo-principal {
  width: 460px !important;
  max-width: 460px !important;
  height: auto !important;
}

@media (max-width: 767.98px) {
  .logo-principal {
    max-width: 280px !important;
  }
}

@media (max-width: 575.98px) {
  .logo-principal {
    max-width: 260px !important;
  }
}

/* Iconos sociales */
.social-icons {
  display: flex;
  justify-content: center !important;
  gap: 50px !important;
  margin-top: 60px;
  margin-bottom: 40px;
}

.social-icons i {
  font-size: 45px;
  color: #3f1177;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.social-icons i:hover {
  color: #d69d02;
  transform: scale(1.1);
}

/* Carrusel mejorado */
#newsCarousel {
  width: 100%;
  margin: 0 auto 30px;
  position: relative;
}

#newsCarousel .carousel-inner {
  padding: 20px 0;
}

#newsCarousel .carousel-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#newsCarousel .img-fluid {
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0; /* Ajustado para mejor visualización en móviles */
}

#newsCarousel .btn-outline-primary {
  border-color: #2c3e50;
  color: #2c3e50;
  transition: all 0.3s ease;
}

#newsCarousel .btn-outline-primary:hover {
  background-color: #2c3e50;
  color: #fff;
}

#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#newsCarousel .carousel-control-prev {
  left: 15px;
}

#newsCarousel .carousel-control-next {
  right: 15px;
}

#newsCarousel .carousel-control-prev:hover,
#newsCarousel .carousel-control-next:hover {
  opacity: 1;
}
/* Agrega esto a tu CSS */
.text-purple {
  color: #6a1b9a !important; /* Este es el color morado que has estado usando */
}

/* Botones */
.btn-primary {
  background-color: #9c27b0;
  border: none;
  padding: 10px 20px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 30px; /* Bordes más redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: #190327;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Tarjetas */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%; /* Asegura altura igual para todas las tarjetas */
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #3c1850;
  margin-bottom: 15px;
}

.card-text {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  color: rgb(92, 91, 91);
}

#nosotros .card-text,
#productos .card-text {
  font-size: 18px;
}

/* Secciones */
section {
  padding: 80px 0;
}

/* Footer */
footer {
  background-color: #6a1b9a;
  color: #fff;
  padding: 30px 0;
  margin-top: 40px;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  margin: 0 10px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

footer a:hover {
  color: #ffeb3b;
  transform: scale(1.1);
}

/* Botón de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
  animation: titilar 1.5s infinite;
  z-index: 1001;
}

.whatsapp-button:hover {
  background-color: #07b975;
  text-decoration: none;
  color: #fff;
}

@keyframes titilar {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Imágenes de equipo */
.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 50%;
  width: 185px;
  height: 215px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  margin: 0 auto 20px; /* Centrado y espaciado inferior */
}

.team-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition:
    clip-path 0.3s ease,
    transform 0.3s ease;
}

.image-container:hover .team-image {
  clip-path: circle(70% at 50% 50%);
  transform: scale(1.1);
}

.image-container:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modales */
.modal-content {
  border-radius: 15px;
}

.modal-header {
  background-color: #6a1b9a;
  color: white;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.modal-body img {
  display: block;
  margin: 0 auto 1rem;
  border-radius: 8px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.modal-body ul li {
  margin-bottom: 10px;
}

.modal-body strong {
  color: #6a1b9a;
}

/* Indicador de clic */
.click-indicator {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 30%;
  transform: translateX(-50%);
  background-color: rgba(114, 52, 153, 0.8);
  color: #fff;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* Sección de socios */
#socios {
  background-color: #fafafa;
  padding: 80px 0;
}

#socios .divider,
#ultimo .divider {
  width: 50px;
  height: 3px;
  background-color: #0d6efd;
  margin: 0 auto 20px;
}

.partner-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  padding: 30px;
  height: 100%;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-content h5 {
  font-weight: 600;
  margin-bottom: 15px;
}

.partner-content p {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 20px;
}

.partner-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.partner-link:hover {
  color: #0a58ca;
}

.partnership-banner {
  background-color: #e9f0ff;
  border: 1px solid #d1e3ff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

/* Noticias */
.history-card,
.news-card {
  transition: transform 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.history-card:hover,
.news-card:hover {
  transform: translateY(-5px);
}

.news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.news-date {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 5px 10px;
  min-width: 50px;
}

.news-date small {
  font-size: 0.7rem;
  color: #6c757d;
}

.coming-soon-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.coming-soon-icon {
  color: #6c757d;
  opacity: 0.7;
  font-size: 3rem;
  margin-bottom: 15px;
}

.divider {
  width: 60px;
  height: 2px;
  background-color: #007bff;
  margin: 10px auto 20px;
}

/* Media queries para diferentes dispositivos */
@media (max-width: 1199.98px) {
  .header-background {
    background-size:
      250px 160px,
      100% 4px,
      100% 4px,
      100% 4px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .social-icons {
    gap: 30px !important;
  }
}

@media (max-width: 991.98px) {
  section {
    padding: 60px 0;
  }

  .header-background {
    min-height: 80vh;
  }

  .partner-card {
    padding: 20px;
  }

  .social-icons i {
    font-size: 35px;
  }
}

@media (max-width: 767.98px) {
  .navbar {
    height: auto;
    padding: 10px;
  }

  .navbar-nav .nav-link {
    padding: 8px 12px;
  }

  .navbar-collapse {
    margin-top: 10px;
  }

  .header-background {
    background-size:
      180px 90px,
      100% 4px,
      100% 4px,
      100% 4px;
    min-height: auto;
    padding: 40px 0;
  }

  header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  header p {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .social-icons {
    margin-top: 40px;
    margin-bottom: 40px;
    gap: 30px !important;
  }

  .social-icons i {
    font-size: 30px;
  }

  #newsCarousel .img-fluid {
    height: 160px;
  }

  .click-indicator {
    display: block;
    opacity: 0.8;
  }

  .image-container:active .click-indicator {
    opacity: 1;
  }

  .team-image:active {
    transform: scale(1.05);
  }

  .whatsapp-button {
    bottom: 20px;
    right: 10px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  section {
    padding: 40px 0;
  }

  .card {
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  .header-background {
    background-size:
      150px 80px,
      100% 3px,
      100% 3px,
      100% 3px;
    padding: 30px 0;
  }

  header h1 {
    font-size: 1.75rem;
  }

  header p {
    font-size: 1rem;
  }

  .social-icons {
    gap: 20px !important;
  }

  .social-icons i {
    font-size: 28px;
  }

  .card-title {
    font-size: 1.4rem;
  }

  #nosotros .card-text,
  #productos .card-text {
    font-size: 16px;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 8px 16px;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .image-container {
    width: 150px;
    height: 170px;
  }

  .divider {
    height: 3px;
    width: 80px;
    background: #7b53bb; /* El mismo color morado que usas en el botón */
    margin-top: 15px;
    margin-bottom: 25px;
    position: relative;
  }

  /* Opcional: para darle un efecto más elegante */
  .divider::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 40px;
    background: #7b53bb;
    top: -8px;
  }

  #newsCarousel .carousel-control-prev,
  #newsCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 375px) {
  .header-background {
    background-size:
      120px 70px,
      100% 3px,
      100% 3px,
      100% 3px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .social-icons i {
    font-size: 24px;
  }

  .social-icons {
    gap: 15px !important;
  }
}

/* Mejora para scroll suave */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Considera la altura de la navbar fija */
}

/* Estilos para la sección de contacto */
#contacto {
  --primary-color: #7c4dff; /* Color morado principal */
  --primary-color-dark: #5e35b1; /* Variante oscura del color principal */
  --primary-color-rgb: 124, 77, 255; /* Valores RGB del color principal */
}

/* Texto y elementos en color morado */
.text-purple {
  color: var(--primary-color);
}

/* Estilos para la lista de información de contacto */
.contact-info li {
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.contact-info li:hover {
  transform: translateX(5px);
}

/* Estilos para íconos de redes sociales */
.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--primary-color);
  text-decoration: none;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: var(--primary-color-dark);
}

/* Estilos para el botón de enviar (alternativa a los atributos inline) */
.submit-button {
  background-color: #7b53bb !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 6px rgba(109, 40, 217, 0.25) !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  border-radius: 30px !important;
}

.submit-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 12px rgba(109, 40, 217, 0.3) !important;
}

/* Animación adicional para el ícono de papel avión */
.submit-button i {
  transition: transform 0.3s ease;
}

.submit-button:hover i {
  transform: translateX(5px);
}

/* Efecto de click */
.submit-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(109, 40, 217, 0.2) !important;
}

/* Estilos para los campos del formulario */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

/* Animación para el botón al hacer focus */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
  }
}

.btn-purple:focus {
  animation: pulse 1.5s infinite;
}

/* Estilos para las tarjetas */
.card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
/* Estilos para la galería simple de eventos */
.event-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background: white;
  margin-bottom: 30px;
  height: 320px;
}

.event-poster-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.event-poster-link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 100%;
}

.event-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  display: block;
  background-color: #f8f9fa;
}

.event-poster-card:hover .event-poster {
  transform: scale(1.02);
}

.event-poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.event-poster-card:hover .event-poster-overlay {
  opacity: 1;
}

.event-poster-content {
  color: white;
  text-align: center;
  transform: translateY(10px);
  transition: transform 0.4s ease;
  width: 100%;
}

.event-poster-card:hover .event-poster-content {
  transform: translateY(0);
}

.event-poster-content h5 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
}

.event-poster-content p {
  margin: 0 0 12px 0;
  font-size: 1rem;
  opacity: 1;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.event-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.event-whatsapp-btn:hover {
  background-color: #07b975;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: white;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.6);
}

.event-whatsapp-btn i {
  font-size: 1rem;
}

/* Responsive para la galería de eventos */
@media (max-width: 991.98px) {
  .event-poster-card {
    height: 280px;
  }

  .event-poster-content h5 {
    font-size: 1rem;
  }

  .event-whatsapp-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .event-poster-card {
    height: 250px;
  }

  .event-poster-overlay {
    padding: 15px;
  }

  .event-poster-content h5 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .event-poster-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .event-whatsapp-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .event-poster-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  .event-poster-card {
    height: 220px;
  }

  .event-poster-content h5 {
    font-size: 0.95rem;
  }

  .event-poster-content p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .event-whatsapp-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}
