/* Reset y fuente */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f9fafb;
  color: #111827;
}

/* NAVBAR PRINCIPAL */
.navbar-principal {
  background-color: #ffffff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

.logo img {
  height: 45px;
  width: auto;
}

.navbar-principal nav {
  flex: 1;
  text-align: center;
}

.navbar-principal nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.navbar-principal nav a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  transition: 0.3s;
  border-radius: 6px;
}

.navbar-principal nav a:hover {
  background-color: #f3f4f6;
  color: #2563eb;
}

/* Banderas */
.flags {
  display: flex;
  gap: 0.8rem;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.flags img {
  height: 25px;
  width: auto;
}

/* NAVBAR SECUNDARIO */
.navbar-secundario {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.8rem 1rem;
}

.navbar-secundario nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.navbar-secundario nav a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  transition: 0.3s ease;
}

.navbar-secundario nav a:hover {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar-principal {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .navbar-principal nav {
    width: 100%;
    text-align: center;
  }

  .navbar-principal nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .flags {
    position: static;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
  }

  .navbar-secundario nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }
}


.carrusel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  box-sizing: border-box;
  margin-bottom: 5rem;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

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

.texto-slide {
  position: absolute;
  top: 40%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-align: left;
  max-width: 50%;
  line-height: 1.2;
}

.boton-slide {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.boton-slide:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

/* Ícono en títulos */
h3 i {
  color: #2563eb;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .carrusel {
    height: 350px; /* antes: 260px */
    margin-bottom: 3rem;
  }

  .texto-slide {
    font-size: 1.8rem;
    max-width: 80%;
    top: 45%;
  }

  .boton-slide {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .carrusel {
    height: 300px; /* antes: 220px */
  }

  .texto-slide {
    font-size: 1.4rem;
    max-width: 90%;
    top: 50%;
  }

  .boton-slide {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}




.servicios-section {
  padding: 4rem 2rem;
  background-color: #f9fafb;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 2rem;
  justify-items: center; /* Centra las tarjetas horizontalmente */
  align-items: center; /* Alinea las tarjetas verticalmente */
  max-width: 1200px; /* Limita el ancho máximo */
  margin: 0 auto; /* Centra el contenedor en la página */
}

@media (max-width: 768px) {
  .servicios-grid {
    grid-template-columns: 1fr; /* En dispositivos pequeños, solo una columna */
  }
}

.servicio-card {
  background-color: white;
  width: 100%;
  max-width: 320px; /* El ancho máximo de cada tarjeta */
  min-height: 380px;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.icono-servicio {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.info-servicio h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.info-servicio ul {
  padding-left: 1rem;
  list-style: disc;
  color: #374151;
  font-size: 0.95rem;
  text-align: left;
}





.footer {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

.footer-container {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
  padding: 1.5rem 0;
}

/* Logotipo fijo */
.footer-logo-fixed {
  flex: 0 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
}

.footer-logo-fixed img {
  width: 120px;
  height: auto;
}

/* Carrusel */
.footer-marquee {
  overflow: hidden;
  flex: 1;
}

.footer-scroll-content {
  display: flex;
  gap: 4rem;
  animation: scroll-left 25s linear infinite;
  align-items: center;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Secciones del carrusel */
.footer-item {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #1f2937;
}

.footer-item p {
  margin: 0;
  font-size: 1rem;
  color: #1f2937;
}

.redes a {
  color: #1f2937;
  margin: 0 0.5rem;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.redes a:hover {
  transform: scale(1.2);
}



/* Pie inferior */
.footer-bottom {
  background-color: #000000  ;
  text-align: center;
  padding: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.footer-logo-moving {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.footer-logo-moving img {
  width: 120px;
  height: auto;
}



/* Contenedor general con fondo negro solo arriba */
.formulario-servicio {
  width: 100%;
  background: linear-gradient(to bottom, #000 0%, #000 30%, #fff 30%, #fff 100%);
  padding: 3rem 1rem;
  box-sizing: border-box;
  color: black;
  font-family: Arial, sans-serif;
}

/* Título centrado arriba del cuadro */
.formulario-servicio h2,
.formulario-servicio .subtexto {
  text-align: center;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Cuadro blanco con bordes redondeados */
.formulario-cuadro {
  background-color: white;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fila {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.campo {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #1f2937;
}

input,
textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: white;
  color: black;
  font-family: Arial, sans-serif;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* Campo de descripción más ancho */
.descripcion {
  width: 100%;
}

/* Botón */
button {
  align-self: flex-start;
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
  .fila {
    flex-direction: column;
  }

  button {
    align-self: center;
  }
}

/* CUADRO SERVICIOS */
.cuadro-servicios {
  width: 50%;
  background-color: #111;
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 0 12px 12px 0;
  font-family: Arial, sans-serif;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
  margin: 6rem 0 2rem 0;
}

.cuadro-servicios h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cuadro-servicios {
    width: 90%;
    border-radius: 12px;
    margin: 4rem auto 2rem auto;
    padding: 1.5rem 1.5rem;
  }

  .cuadro-servicios h2 {
    font-size: 1.6rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cuadro-servicios {
    width: 95%;
    margin: 3rem auto 1.5rem auto;
    padding: 1.2rem 1rem;
  }

  .cuadro-servicios h2 {
    font-size: 1.4rem;
  }
}



/* FOOTER */
.footer {
  background-image: url('../img/pie.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer .overlay {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem 3rem;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.footer-banderas {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.footer-banderas img {
  height: 24px;
}

.direccion-footer {
  color: white;
  font-size: 0.85rem;
  margin-top: 2rem;
  text-align: right;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.footer-lista-centro,
.footer-servicios {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-lista-centro h4,
.footer-servicios h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-lista-centro ul,
.footer-servicios ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-lista-centro li,
.footer-servicios li {
  margin-bottom: 0.4rem;
}

.footer-lista-centro a,
.footer-servicios a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.footer-lista-centro a:hover,
.footer-servicios a:hover {
  text-decoration: underline;
}

/* Cuadro blanco del logotipo */
.footer-cuadro-blanco {
  position: absolute;
  top: -30px;
  left: 2rem;
  background-color: white;
  color: black;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  max-width: 250px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logotipo-footer {
  max-width: 75%;
  height: auto;
  margin-bottom: 0.5rem;
}

.frase-footer {
  font-size: 0.8rem;
  color: #333;
  text-align: center;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .cuadro-servicios {
    width: 90%;
    margin: 4rem auto 2rem auto;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
  }

  .cuadro-servicios h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .footer .overlay {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .direccion-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
  }

  .footer-banderas {
    position: static;
    justify-content: center;
    margin-top: 1rem;
  }

  .footer-cuadro-blanco {
    position: relative;
    top: 0;
    left: 0;
    margin: 1rem auto;
  }
}
