* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #333;
}

/* ---------- HEADER ---------- */
.header {
  height: 100vh;
  background: url('img/header.png') no-repeat center center/cover;
  position: relative;
  color: white;
}
.header-overlay {
  background: rgba(0,0,0,0.5);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 70px;
}
/* Texto centrado izquierda con transiciones */
.hero-text {
  position: absolute;
  top: 40%;
  left: 8%;
  max-width: 600px;
}

.hero-text h1,
.hero-text p {
  transition: opacity 0.6s ease;

}


.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 90px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  color: #ec407a;
}

.header-text {
  max-width: 600px;
  margin-top: auto;
  margin-bottom: 60px;
  text-align: left;
}
.header-text h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 50px; /* Ajusta el espacio entre título y subtítulo */
}
.header-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.btn-header {
  background: #ec407a;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
}
#servicios {
  padding: 80px 20px;
}

/* ---------- SERVICIOS SLIDER ---------- */
.servicios-slider {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 320px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 10px;
}

/* Cada rectángulo */
.servicio-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 40px;
  gap: 30px;
  color: #fff;
  transition: transform 1s ease-in-out, opacity 0.8s ease;
  opacity: 0;
  transform: translateY(100%);
}

/* Imagen */
.servicio-card img {
  width: 200px;
  height: 200px;
  border-radius: 100%;
  object-fit: cover;
}

/* Texto */
.servicio-texto {
  flex: 1;
}

.servicio-texto h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
}

.servicio-texto p {
  font-size: 15px;
  line-height: 1.5;
}

/* Colores */
.rojo { background: #d4145a; }
.rosa { background: #ec407a; }
.gris { background: #616161; }

/* Animación */
@keyframes slideServicios {
  0%, 20% { transform: translateY(0); opacity: 1; }
  25%, 95% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Secuencia para cada tarjeta */
.servicio-card:nth-child(1) {
  animation: slideServicios 20s infinite;
  animation-delay: 0s;
}
.servicio-card:nth-child(2) {
  animation: slideServicios 20s infinite;
  animation-delay: 5s;
}
.servicio-card:nth-child(3) {
  animation: slideServicios 20s infinite;
  animation-delay: 10s;
}
.servicio-card:nth-child(4) {
  animation: slideServicios 20s infinite;
  animation-delay: 15s;
}

/* Responsive */
@media (max-width: 768px) {
  .servicio-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 30px 20px;
  }

  .servicio-card img {
    width: 140px;
    height: 140px;
  }
}

/*PRCOESO*/
/* Sección procesos con menos espacio arriba */
.procesos {
  padding: 40px 10% 60px; /* menos padding-top */
  text-align: left;
}

/* Franja rosa completa */
.banner-proceso {
  background-color: #e91e63; /* Rosa */
  width: 100vw; /* de borde a borde */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.banner-proceso h2 {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin: 0;
  padding: 10px 20px;
  text-align: right; /* o right, según quieras */
}

/* Subtítulo */
.subtitulo-proceso {
  font-size: 18px;
  color: #ff4081;
  margin: 0;
  text-align: right;   /* alineado con el título */
  padding: 10px 20px; /* un poquito de aire, pero sigue alineado */
}

/* Grid pasos */
.grid-procesos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.proceso {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
}

.proceso h3 {
  color: #ff4081;
  font-size: 16px;
  margin-bottom: 8px;
}

.proceso p {
  font-size: 14px;
  color: #333;
}

/* Línea punteada + botón */
.accion-final {
  margin-top: 40px;
  text-align: right;
}

.linea-punteada {
  border: none;
  border-top: 2px dashed #ff4081;
  margin-bottom: 10px;
}

.btn-punteado {
  background: white;
  border: 3px dashed #ff4081;
  color: #ff4081;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.flecha {
  font-size: 24px;
  color: #ff4081;
  vertical-align: middle;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 120px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-contenido {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cerrar {
  color: #ff4081;;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.cerrar:hover {
  color: #333;
}

/* === FORMULARIO === */
#form-servicio {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#form-servicio input,
#form-servicio textarea {
  padding: 10px;
  border: 2px solid #ff4081;;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

#form-servicio input:focus,
#form-servicio textarea:focus {
  border-color: #ff4081;;
}

.btn-enviar {
  background: #ff4081;;
  color: white;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-enviar:hover {
  background: #ff4081;;
}
.btn-punteado:hover {
  background: #ff4081;;
  color: white;
  transform: scale(1.05);
}


/* ---------- FOOTER ---------- */
.footer {
  background: #726e6e url('img/flecha-footer.png') no-repeat center bottom; 
  background-size: contain; /* mantiene proporción y evita que se repita */
  background-position: 4% 95%;
  padding: 60px 10%;
  color: white;
  position: relative;
}

/* Contenedor en dos columnas */

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← centra verticalmente el logo con el texto */
}

/* Contacto */
.footer-contacto h4 {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.footer-contacto ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contacto li {
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Flechita rosa */
.footer-contacto .flecha {
  color: #ff4081;
  margin-right: 8px;
  font-size: 16px;
}

/* Logo a la derecha */
.footer-logo img {
  max-width: 290px;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .header-overlay {
    padding: 20px;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  .header-text {
    text-align: center;
    margin: auto;
  }
  .servicios {
    flex-direction: column;
    align-items: center;
  }
  .pasos {
    flex-direction: column;
    align-items: center;
  }
  .paso {
    max-width: 100%;
    text-align: center;
  }
}
/* --- CORRECCIONES RESPONSIVE Y POSICIONAMIENTO FINAL --- */

/* 1️⃣ Header responsive: que se vea bien el logo y menú */
@media (max-width: 768px) {
  .header {
    height: auto;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
  }

  .logo img {
    height: 70px;
    margin-bottom: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-text {
    position: static;
    text-align: center;
    margin-top: 30px;
  }
}

/*  Footer responsive: evitar que se corte el logo */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-logo img {
    max-width: 200px;
    height: auto;
  }
}

/* Botón “Solicita tu servicio” junto a la sección 05 */
.accion-final {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.accion-final .linea-punteada {
  flex: 1;
  margin: 0 20px 0 0;
}

.accion-final .btn-servicio {
  margin: 0;
}

.accion-final .flecha {
  margin-left: 5px;
}

/* Ajuste responsive del bloque final */
@media (max-width: 768px) {
  .accion-final {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .accion-final .linea-punteada {
    width: 80%;
    margin: 10px 0;
  }
}
.accion-final {
  margin-bottom: 60px; /* agrega espacio entre el botón y el footer */
}
