/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner Section */
.banner-section {
  position: relative;
  color: #fff;
  height: 100vh; /* Ocupa toda la pantalla */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url('/assets/images/banner-2.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* PARALLAX EFFECT */
}

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 13, 13, 0.8); /* Overlay oscuro */
  z-index: 1; /* Capa encima del video */
}

.banner-section .container {
  position: relative;
  z-index: 2; /* Eleva el contenido sobre el overlay */
}

.banner-image {
  max-width: 250px;
  width: 100%;
  margin: 0 auto 20px;
  animation: slideUp 1s forwards; /* Aparece con deslizamiento */
}

.banner-text {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  animation: slideUp 1.2s forwards; /* Retraso para aparecer */
}

.banner-subtext {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
  line-height: 1.6;
  animation: slideUp 1.2s forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .banner-section {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center center;
  }

  .banner-text {
    font-size: 36px;
  }

  .banner-image {
    max-width: 230px;
  }

  .banner-subtext{
    font-size: 0.9rem;
  }

  .banner-contenido{
    margin-top: 3rem;
  }
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s forwards;
}

.animate-slide-up.delay-1 {
  animation-delay: 0.8s;
}

.animate-slide-up.delay-2 {
  animation-delay: 1.1s;
}

.animate-slide-up.delay-3 {
  animation-delay: 1.4s;
}

.sobre-nosotros {
  background-color: white;
  color: #0E0F3F;
  padding: 60px 20px;
  font-family: 'SFPro', sans-serif;
}

.titulo-seccion {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 60px;
}

/* Quiénes somos */
.bloque-quienes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.grid-imagenes-quienes {
  display: grid;
  grid-template-columns: repeat(2, 180px);
  grid-template-rows: repeat(2, 120px);
  gap: 20px;
}

.grid-imagenes-quienes img:nth-child(3) {
  grid-column: 1 / span 2;
  width: 100%;
  height: 120px;
}

.grid-imagenes-quienes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.texto-quienes {
  max-width: 602px;
}


.texto-quienes h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.texto-quienes p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Cómo trabajamos */
.bloque-como {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.texto-como {
  max-width: 602px;
  text-align: right;
}

.texto-como h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.texto-como p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.btn-vermas {
  display: inline-block;
  margin-top: 20px;
  background-color: #d62828;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-vermas:hover {
  background-color: #a81818;
}

/* Estilo solo para móviles */
@media (max-width: 767px) {
  .texto-quienes, .texto-como{
    text-align: center;
  }
}

/* Imágenes de "Cómo trabajamos" */
.grid-imagenes-como {
  display: grid;
  grid-template-columns: repeat(2, 180px);
  grid-template-rows: repeat(2, 120px);
  gap: 20px;
}

.grid-imagenes-como img:nth-child(1) {
  grid-column: 1 / span 2;
  width: 100%;
  height: 120px;
}

.grid-imagenes-como img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Animaciones */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estado inicial (invisible y desplazado) */
.animado {
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
}

/* Cuando aparece en viewport */
.animado.mostrar.desde-izquierda {
  animation: slideInLeft 0.8s ease forwards;
}

.animado.mostrar.desde-derecha {
  animation: slideInRight 0.8s ease forwards;
}



/* Servicios */
.servicios {
  background-image: url('/assets/images/sobre-nosotros-1.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* PARALLAX EFFECT */
  padding: 80px 20px;
  color: white;
  text-align: center;
  font-family: 'SFPro', sans-serif;
  position: relative;
  z-index: 1;
}

.servicios::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Oscurece el fondo */
  z-index: -1;
}

.titulo-seccion {
  font-size: 2.5rem;
  font-weight: 1200;
  margin-bottom: 60px;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  justify-content: center;
}

.servicio {
  background-color: #0E0F3F;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: scale(1.03);
}

.servicio img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.servicio span {
  display: block;
  padding: 15px;
  font-weight: bold;
  color: white;
}



/*Asesoramiento*/
.asesoramiento {
  background-color: white;
  color: #0E0F3F;
  text-align: center;
  padding: 80px 20px;
  font-family: 'SFPro', sans-serif;
}

.asesoramiento h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 40px;
}

.btn-contacto {
  background-color: #ED1B24;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  padding: 15px 40px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contacto:hover {
  background-color: #a01a1f;
  transform: scale(1.05);
}

/* Productos */
.productos {
  background-image: url('/assets/images/sobre-nosotros-5.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 20px;
  color: white;
  text-align: center;
  font-family: 'SFPro', sans-serif;
  position: relative;
  z-index: 1;
}

.productos::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.producto-info {
  color: #000;
}



/*Preguntas Frecuentes*/
.faq-section {
  /*background-image: url('/assets/images/sobre-nosotros-5.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;*/
  background-color: white;
  padding: 80px 20px;
  color: white;
  text-align: left;
  font-family: 'SFPro', sans-serif;
  position: relative;
  z-index: 1;
}
/*
.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}*/

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 50px;
  color: #0E0F3F;
}

.faq-section details {
  background: #0E0F3F;
  color: white;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 800px;
  padding: 20px 25px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.faq-section details[open] {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.faq-section summary {
  font-weight: 700;
  font-size: 1.2rem;
  list-style: none;
  position: relative;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "⌄";
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

.faq-section details[open] summary::after {
  transform: rotate(180deg);
}

.faq-section p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .servicios, .productos {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center center;
  }
}



