/* --------------------------------------------------
   Fuente personalizada
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Belleza&display=swap');

/* --------------------------------------------------
   Estilos generales
-------------------------------------------------- */
body {
  background: linear-gradient(to bottom, #60a1c5, #aed4e9);
  color: black;
  font-family: 'Belleza', sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, p, a, button {
  color: black;
}

/* --------------------------------------------------
   Navegación / Header
-------------------------------------------------- */
.navbar-bg {
  background-color: transparent;
}

.navbar-nav .nav-link {
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: #5091b5;
  color: black;
}

/* Dropdown personalizado */
.navbar .dropdown-menu {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.navbar .dropdown-menu .dropdown-item {
  background-color: transparent;
  border-radius: 10px;
  color: black;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #5091b5;
  color: black;
  font-weight: bold;
}

/* --------------------------------------------------
   Buscador
-------------------------------------------------- */
.buscador-custom {
  border: transparent;
  border-radius: 8px;
  padding: 5px;
}

.buscador-wrapper:hover .buscador-input {
  display: block !important;
  margin-right: 0.5rem;
  opacity: 1;
  pointer-events: auto;
  width: 200px;
  transition: all 0.3s ease-in-out;
}

.buscador-input {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  width: 0;
}

.buscador-btn {
  background-color: transparent;
  border: transparent;
  border-radius: 5px;
  color: black;
  font-weight: bold;
  padding: 6px 12px;
}

.resaltado-busqueda {
  background-color: #5091b5;
  border-radius: 4px;
  font-weight: bold;
  padding: 2px 4px;
}

/* --------------------------------------------------
   Imagen principal (Hero)
-------------------------------------------------- */
.imagenPrincipal {
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), 
              url('zaguan.png') no-repeat center center / cover;
  padding: 120px 20px;
  text-align: center;
}

.imagenPrincipalContent {
  margin: 0 auto;
  max-width: 90%;
}

.imagenPrincipalContent h1 {
  font-size: 3rem;
  font-weight: bold;
}

.imagenPrincipalContent p {
  font-size: 1.25rem;
  margin-top: 10px;
}

.imagenPrincipalBoton {
  background: linear-gradient(to right, #0077b6, #00b4d8);
  border: 2px solid white;
  border-radius: 50px;
  color: white;
  display: inline-block;
  font-weight: bold;
  margin-top: 20px;
  padding: 12px 25px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.imagenPrincipalBoton:hover {
  background: linear-gradient(to right, #0096c7, #90e0ef);
  transform: scale(1.05);
}

/* --------------------------------------------------
   Secciones informativas
-------------------------------------------------- */
.seccion-informativa {
  background-color: transparent;
  font-size: 1.2rem;
  text-align: justify;
}

.seccion-informativa h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: left;
}

/* Imagen secundaria (Oficina) */
.imagen-oficina {
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-height: 250px;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.footer-custom {
  background-color: #60a1c5;
}

.redes-footer a {
  transition: transform 0.2s ease;
}

.redes-footer a:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------
   Cookies Popup
-------------------------------------------------- */
.cookie-popup {
  background-color: #ffffff;
  border-radius: 5px;
  bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  color: #000;
  left: 20px;
  margin: 0 auto;
  max-width: 500px;
  padding: 1rem;
  position: fixed;
  right: 20px;
  text-align: center;
  z-index: 1000;
}

.cookie-popup p {
  margin: 0 0 10px 0;
}

/* Clase utilitaria */
.d-none {
  display: none !important;
}

/* -----------------------------
   Galería de servicios
----------------------------- */
.galeria-servicios {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px;
}

.card {
  width: 300px;
  height: 200px;
  perspective: 1000px;
  background-color: transparent;
  border:transparent;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  background-color: transparent;
  border: transparent;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-back {
  background: linear-gradient(to bottom, #60a1c5, #aed4e9); /* igual que el body */
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  font-size: 1.3rem;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 100px;
  }

  .redes-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-custom p,
  .footer-custom a {
    font-size: 0.9rem;
  }
}


  .required-label::after {
    content: " *";
    color: red;
  }
  .form-error {
    color: red;
    font-size: 0.9rem;
    display: none;
  }
