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

/* tipografia global */
html, body{
    height: 100%;
    overflow-x: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4{
    font-family: 'Space Grotesk', sans-serif;
}


/* Inicio */
.banner{
  width:100%;
  min-height: calc(100vh - 72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:60px 9%;
  overflow:hidden;
  background:#0f172a;
  gap: 40px;
}

.banner-texto{
  width:50%;
  color:#fff;
  animation:aparecer 1s ease;
}

.banner-texto h1{
  font-size:4rem;
  margin-bottom:20px;
  line-height: 1.1;
}

.banner-texto p{
  font-size:1.1rem;
  line-height:1.7;
  margin-bottom:30px;
}

@keyframes aparecer{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

.banner-imagen{
  position:relative;
  width:100%;
  height: 500px;
  border-radius:20px;
  overflow:hidden;
}

.banner-img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: kenburns 18s infinite;
}
.banner-img:nth-child(1){
  animation-delay: 0s;
}
.banner-img:nth-child(2){
  animation-delay: 6s;
}
.banner-img:nth-child(3){
  animation-delay: 12s;
}
@keyframes kenburns{
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; }
  30%  { opacity: 1; transform: scale(1.1); }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}
/* Títulos de seccion: patron compartido para todas las secciones */

.nuestros-servicios,
.titulo-pqe,
.titulo-np,
.titulo-opiniones,
.titulo-contacto{
  color: #fff;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.descripcion,
.descripcion-pqe,
.descripcion-np,
.descripcion-opiniones,
.descripcion-contacto{
  text-align: center;
  color: #cbd5e1;
  margin-bottom: 60px;
  margin-top: 20px;
  font-size: 1.15rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Servicios */
.servicios-section{
  width: 100%;
  background: #0f172a;
}

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.servicios-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card{
  padding: 45px 35px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.servicio-icono{
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: #22c55e;
}

.reparaciones{
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p{
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
}

/* Por qué elegirnos */

.porque-elegirnos-section{
  width: 100%;
  background: #0f172a;
  padding: 80px 9% 60px;
}

.container-pqe{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.pqe-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card-pqe{
    padding: 45px 35px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.icono-pqe{
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: #22c55e;
}

.sub-titulo-pqe{
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card-pqe .descripcion-pqe{
  text-align: center;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
  max-width: none;
}

/* Nuestro proceso */

.nuestro-proceso-section{
  width: 100%;
  background: #0f172a;
  padding: 80px 9% 60px;
  text-align: center;
}

.container-np{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nuestro-proceso .descripcion-np{
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
  max-width: none;
}

.sub-titulo-np{
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.procesos{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 50px;
  position: relative;
  margin-top: 60px;
}

.icono-wrapper-np{
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.icono-np{
  width: 32px;
  height: 32px;
  color: #3b82f6;
}

.numero-np{
  position: absolute;      
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22c55e;     
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.procesos{
  display: flex;
  justify-content: space-between;
  position: relative;      
  margin-top: 60px;
}

.procesos::before{
  content: '';              
  position: absolute;
  top: 40px;                 
  left: 40px;
  right: 40px;
  height: 2px;
  background: #3b82f6;
  z-index: 0;                
}

.procesos-np{
  position: relative;
  z-index: 1;
  flex: 1 1 16%;
  min-width: 140px;
  text-align: center;
  padding: 0 10px;
}

/* Opiniones */

.opiniones{
  width: 100%;
  padding: 100px 9% 60px;
  background: #0f172a;
}
.titulo-opiniones .descripcion-opiniones{
  padding: 0 9%;
}

.card-container{
  display: flex;
  gap: 20px;
  width: fit-content;    
  animation: desplazar 30s linear infinite;
}

.card-op {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 300px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.stars {
  color: #f1c40f;
  margin-bottom: 15px;
}

.comment{
  color: #1e293b;
  margin-bottom: 20px;
  min-height: 90px;
}

.user-info{
  display: flex;
  align-items: center;
  gap: 12px;
}


.avatar {
  width: 40px;
  height: 40px;
  background-color: #58a46c; /* Color verde de la imagen */
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-weight: bold;
  flex-shrink: 0;
}

.carrusel-wrapper{
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

.name{
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
}

.status{
  color: #64748b;
  font-size: 0.85rem;
}

@keyframes desplazar{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* contacto */

.contacto{
  width: 100%;
  padding: 100px 9% 60px;
  background: #0f172a;
}

.container-contacto{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contacto-grid{
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.formulario-contacto{
  flex: 1;
}
.campos-extra{
  display: none;
}

.form-group{
  margin-bottom: 20px;;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label{
  font-size: 0.9rem;
  color: #cbd5e1;
}

.form-group input,
.form-group select,
.form-group textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1rem;
}

.form-group select option{
  background: #0f172a;
  color: #fff;
}

.form-group textarea{
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline: none;
  border-color: #3b82f6;
  background: rgba(255,255,255,0.08);
}

.btn{
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover{
  background: #16a34a;
}

.contacto-maps{
  min-height: 450px;
  flex: 1
}

.contacto-maps iframe{
  width: 100%;
  height: 100%;
  min-height: 450px;
  border:0;
  border-radius: 12px;
}

/* footer */

.social-icon{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.social-icon:hover{
  background: #22c55e;
}

.social-icon svg{
  width: 18px;
  height: 18px;
  color: #fff;
}

.footer-heading{
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.footer-heading::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  background: #22c55e;
  border-radius: 2px;
}

/* Responsive */

/* Tablets */
@media (max-width: 1024px){
  .servicios-cards,
  .pqe-cards{
    grid-template-columns: repeat(2, 1fr);
  }

  .procesos-np{
    flex: 1 1 30%;
  }
}

/* Celulares */
@media (max-width: 768px){
  body{
    padding-top: 64px;
  }

  /* Banner: pasa a columna, imagen abajo del texto */
  .banner{
    flex-direction: column;
    min-height: auto;
    padding: 50px 6% 40px;
    text-align: center;
  }

  .banner-texto,
  .banner-imagen{
    width: 100%;
  }

  .banner-texto h1{
    font-size: 2.5rem;
  }

  .banner-imagen{
    height: 280px;
  }

  /* Servicios / Por qué elegirnos: una columna */
  .servicios-cards,
  .pqe-cards{
    grid-template-columns: 1fr;
  }

  .nuestros-servicios,
  .titulo-pqe,
  .titulo-np,
  .titulo-opiniones,
  .titulo-contacto{
    font-size: 1.9rem;
  }

  /* Proceso: la línea conectora no tiene sentido con el wrap, se oculta */
  .procesos::before{
    display: none;
  }

  .procesos-np{
    flex: 1 1 45%;
  }

  /* Contacto: form y mapa apilados */
  .contacto-grid{
    flex-direction: column;
  }

  .contacto-maps{
    width: 100%;
    min-height: 300px;
  }

  .contacto-maps iframe{
    min-height: 300px;
  }

  /* Footer: columnas se apilan solas gracias a las clases de Tailwind ya presentes */
}

@media (max-width: 480px){
  .procesos-np{
    flex: 1 1 100%;
  }
}
