/* ======= ESTILO GENERAL ======= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* ======= ENCABEZADO Y NAV ======= */
header {
  background-color: #004080;
  color: white;
  padding: 20px;
  text-align: center;
}

nav .brand-logo {
  position: absolute;
  top: 8px;
  left: 20px;
  transform: none !important;
}

nav .brand-logo img {
  max-height: 50px;
  width: auto;
  max-width: 100%;
  margin-left: 10px;
}

/* ======= CONTENIDO PRINCIPAL ======= */
main {
  padding: 20px;
  background-color: white;
}

/* ======= PIE DE PÁGINA ======= */
footer {
  text-align: center;
  background-color: #004080;
  color: white;
  padding: 10px;
  margin-top: 20px;
}

/* ======= OPINIONES ======= */
.nombre-opinion {
  font-size: 1.3rem;
  color: #212121;
  font-weight: bold;
}

.comentario-opinion {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #424242;
}

.stars {
  margin-top: 0.7rem;
  font-size: 1.3rem;
  color: #FFD700;
}

#contenedor-opiniones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.opinion-card {
  flex: 1 1 300px;
  max-width: 400px;
}

/* ======= FORMULARIO ======= */
input, textarea, button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.g-recaptcha {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

/* ======= CARDS ======= */
.card,
.card-panel {
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-panel {
  padding: 1.5rem;
}

.card-panel:hover,
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-panel img {
  margin-bottom: 10px;
}

.card-panel p,
.card-content p {
  font-size: 0.95rem;
  color: #263238;
  margin-top: 10px;
}

/* ======= CARRUSEL ======= */
.carousel.carousel-slider {
  height: 400px;
  overflow: hidden;
  visibility: visible !important;
  opacity: 1 !important;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .carousel.carousel-slider {
    height: 500px;
  }
}

/* ======= BANNER Y SUBTÍTULO ======= */
.banner-img,
.subtitulo-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto 1rem auto;
}

.banner-img {
  width: 80%;
  max-width: 800px;
}

.subtitulo-img {
  width: 50%;
  max-width: 500px;
}

@media screen and (max-width: 600px) {
  .banner-img {
    width: 100%;
  }

  .subtitulo-img {
    width: 80%;
  }

  nav .brand-logo img {
    max-height: 40px;
  }

  .flow-text {
    font-size: 1.2rem;
  }

  .carousel .carousel-item img {
    height: auto;
  }
}

/* ======= ANIMACIÓN ======= */
.fade-in {
  animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======= ICONOS Y REDES ======= */
.icono-servicio {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 1rem auto 0 auto;
  display: block;
}

.card .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-buttons,
.social-floating {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem auto 2rem auto;
}

.social-buttons a,
.social-floating a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  flex-direction: column;
  z-index: 1000;
}

.social-floating a:hover {
  background-color: #1565c0;
}

@media screen and (max-width: 600px) {
  .social-buttons a {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

#contenedor-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.servicio-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 220px;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.servicio-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.servicio-card p {
  font-weight: bold;
  color: #004080;
}

@media screen and (max-width: 600px) {
  .servicio-card {
    width: 100%;
    max-width: 90%;
  }
}

.card-content p {
  font-size: 0.95rem;
  color: #263238;
  margin-top: 10px;
  word-wrap: break-word;
  text-align: center;
}

.icono-servicio {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}


.card {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

