/* General */
body, html {
  font-family: 'Inter', sans-serif;
  color: #1F2937;
  background-color: #F5F5F5;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Preloader */
#preloader {
  background: #ffffff;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  text-align: center;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e0e0e0;
  border-top: 5px solid #D9D9D6; /* Cool Gray 1U */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Imagen pequeña entre el título y el texto */
.preloader-image {
  width: 50px; /* Tamaño reducido */
  height: auto;
  margin-top: 20px;
  max-width: 40%; /* La imagen se ajustará proporcionalmente */
}

/* Título del preloader */
.preloader-title {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  margin-top: 20px;
  color: #1F2937;
  text-align: center;
}


/* Hero */
.hero {
  background-image: url('../assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
}

/* Filtro oscuro */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Filtro negro con 50% de opacidad */
  z-index: 1;
}

/* Contenido del Hero */
.hero-overlay {
  position: absolute;
  bottom: 10%;  /* Bajar un poco más el contenido */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 80%;  /* Limitar el ancho del contenido para que no se expanda más allá del subtítulo */
}

/* Estilo para el Título */
.hero-title {
  font-family: 'Playfair Display', serif; /* Fuente elegida */
  font-size: 4.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); /* Sombra suave */
  color: #ffffff;
  transition: opacity 1s ease-in-out;
  margin: 0 auto; /* Centrado automático */
  width: 100%;  /* Ancho completo dentro de su contenedor */
  max-width: 700px; /* Máximo ancho para el título */
}

/* Estilo para el Subtítulo */
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;  /* Ajustado a 1.7rem */
  font-weight: 400;
  line-height: 1.5;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); /* Sombra suave */
  width: 100%;  /* Ancho completo dentro de su contenedor */
  max-width: 700px; /* Máximo ancho para el subtítulo */
  margin: 0 auto; /* Centrado automático */
}

/* Estilo para el Botón */
.hero-btn {
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #D9D9D6;
  color: #1F2937;
  border-radius: 1rem;
  padding: 12px 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-btn:hover {
  background-color: #B0B0A0;
  transform: translateY(-2px);
  color: #1F2937;
}

/* Animación de entrada del texto */
.hero-title, .hero-subtitle {
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}


.hero-106-box {
  z-index: 1030; /* Mantener siempre visible */
}

.hero-106-box .hero-box-number {
  background-color: rgba(176, 176, 160, 0.85); /* Gris con transparencia */
  width: 70px;
  height: 70px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-106-box .hero-vota-text {
  width: 70px;
  height: 40px;
  font-size: 1.5rem;
  font-family: 'Arial Black', sans-serif;
  letter-spacing: 1px;
  background: none; /* sin fondo */
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 1);
}

.hero-frase {
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
}




/* Sección Conóceme */
.section-fullscreen {
  height: 100vh;
  padding: 2rem 1rem;
  position: relative;
}

#conoceme {
  background-image: url('../assets/img/fondo.png');
  background-repeat: repeat;
  background-size: contain;
  position: relative;
}

#conoceme::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

#conoceme .container {
  position: relative;
  z-index: 2;
}

/* Sección Visión */
.section-fullscreen-vision {
  height: 100vh;
  padding: 2rem 1rem;
  background-image: url('../assets/img/fondo.png');
  background-repeat: repeat;
  background-size: contain;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.section-fullscreen-vision::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.section-fullscreen-vision .container {
  position: relative;
  z-index: 2;
}

/* Vision Cards */
.vision-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 90%;
  min-height: 300px;
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.vision-icon {
  background: #D9D9D6; /* Cool Gray 1U */
  color: #1F2937;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}


.gallery-section {
  height: 100vh;
  background: url('../assets/img/fondo.png') repeat center center;
  background-size: contain;
  position: relative;
  padding: 4vh 5vw; /* Margen proporcional a la pantalla */
  box-sizing: border-box;
  overflow: hidden;
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2vh 2vw; /* Separación proporcional entre imágenes */
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-items: center;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  max-height: 100%;
  transition: transform 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}






/* Sección de Contacto */
.section-fullscreen-contacto {
  background-image: url('../assets/img/fondo.png');
  background-repeat: repeat;
  background-size: contain;
  background-position: center;
  position: relative;
  padding: 5rem 1rem; /* Ajuste del espaciado superior */
  height: 80vh; /* Ajusta la altura de la sección a 80% de la pantalla */
}

.section-fullscreen-contacto::before {
  content: "";
  position: absolute;
  inset: 0;
    background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.section-fullscreen-contacto .container {
  position: relative;
  z-index: 2;
}

/* Contenedor para la sección de contacto en dos columnas */
.row {
  display: flex;
  justify-content: space-between;
  height: 100%;
}

.contact-card {
  background-color: rgba(176, 176, 160, 0.5);
  border-radius: 1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Igualar las alturas de las tarjetas */
}

.contact-card:hover {
  background-color: rgba(176, 176, 160, 0.9);

}

/* Formulario de Contacto */
.contact-form .form-control {
  border-radius: 0.5rem;
}


.contact-form .btn-custom {
  background-color: #D9D9D6;
  color: #1F2937;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .btn-custom:hover {
  background-color: #B0B0A0;
  transform: translateY(-2px);
}
/* Estilo del botón personalizado */
.btn-custom {
  background-color: #FFFFFF; /* Fondo gris claro */
  color: #1F2937; /* Texto oscuro */
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-custom:hover {
  background-color: #B0B0A0; /* Fondo gris oscuro cuando se pasa el cursor */
  transform: translateY(-2px); /* Efecto de elevación */
}


/* Columna derecha con redes sociales y contacto */
.contact-card {
  background-color: rgba(176, 176, 160, 0.5); /* Fondo blanco para las tarjetas */
  border-radius: 1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: cen;
  height: 100%; /* Asegura que las tarjetas tengan la misma altura */
  text-align: center; /* Centra todo el contenido dentro de la tarjeta */


}

/* Separar el título de redes sociales y contacto */
.contact-card h5 {
  font-size: 1.8rem;
  color: #1F2937;
  font-weight: 600;
  margin-bottom: 1.5rem; /* Aumento del espacio debajo del título */
}

/* Espaciado entre redes sociales y los demás textos */
.social-links {
  margin-bottom: 1.5rem; /* Asegura que haya suficiente espacio entre los iconos y los textos */
}

.social-links a {
  font-size: 1.8rem;
  color: #1F2937;
  margin: 10px;
}

.social-links a:hover {
  color: #0d6efd;
}

/* Estilos para los textos de contacto */
.contact-card p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1F2937;
  margin: 10px 0;
}


/* Footer */
.footer {
  background-color: #B0B0A0; /* Gris Pantone */
  color: #ffffff;
  text-align: center;
  padding: 2rem 1rem;
  height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer .social-links a {
  font-size: 1.5rem;
  margin: 0 10px;
  color: #ffffff;
}

.footer p {
  font-size: 1rem;
  margin: 5px 0;
}

/* Mensaje de confirmación */
#thanks-message {
  background-color: #e3f9e3;
  padding: 20px;
  border-radius: 1rem;
  border: 1px solid #b6e1b1;
}

#thanks-message h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #28a745;
}

