/* Tipografía y ajustes generales */

/*// <weight>: Use a value from 400 to 800
// <uniquifier>: Use a unique and descriptive class name

Utilizamos esta tipografía principalmente para títulos o aspectos resaltantes

.eb-garamond-<uniquifier> {
  font-family: "EB Garamond", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

La siguiente tipografía para textos secundarios 

.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

*/


body {
  margin: 0;
  color: #333;
  font-family: "EB Garamond", serif;
}

body button:hover {
  background-color: #2f2f2f;
  color: #FFF;
  transition: .5s;
}

/* Hero */
.hero {
  background-color: #2f2f2f;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  position: relative;
  margin-top: 60px;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .cta-btn {
  background: #FF2400;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}

/**/
.seccion-intro {
  padding: 100px 20px;
  background: linear-gradient(135deg, #FF2400, #20447D);
  color: #fff;
  text-align: center;
  border-radius: 15px;
}

.intro-titulo {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.intro-subtitulo {
  font-size: 1.4em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .intro-titulo {
    font-size: 2.2em;
  }

  .intro-subtitulo {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .intro-titulo {
    font-size: 1.8em;
  }

  .intro-subtitulo {
    font-size: 1em;
  }
}

/**/
.seccion-bloques-final {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.container-bloques-final {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bloques grandes y pequeños */
.bloque {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 200px;
}

.bloque-grande {
  grid-column: span 2;
  height: 300px;
}

.bloque-pequeño {
  height: 200px;
}

.bloque:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Overlay centrado */
.overlay {
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s;
}

.bloque:hover .overlay {
  background: rgba(0, 0, 0, 0.6);
}

.overlay h3 {
  font-size: 1.4em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.overlay p {
  font-size: 0.95em;
  line-height: 1.4;
  max-width: 90%;
}

/* Animación al aparecer (fade-in) */
.bloque {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.bloque:nth-child(1) {
  animation-delay: 0.1s;
}

.bloque:nth-child(2) {
  animation-delay: 0.3s;
}

.bloque:nth-child(3) {
  animation-delay: 0.5s;
}

.bloque:nth-child(4) {
  animation-delay: 0.7s;
}

.bloque:nth-child(5) {
  animation-delay: 0.9s;
}

.bloque:nth-child(6) {
  animation-delay: 1.1s;
}

.bloque:nth-child(7) {
  animation-delay: 1.3s;
}

.bloque:nth-child(8) {
  animation-delay: 1.5s;
}

.bloque:nth-child(9) {
  animation-delay: 1.7s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .bloque-grande {
    grid-column: span 1;
    height: 250px;
  }

  .bloque-pequeño {
    height: 180px;
  }

  .overlay h3 {
    font-size: 1.2em;
  }

  .overlay p {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .bloque-grande {
    height: 200px;
  }

  .bloque-pequeño {
    height: 160px;
  }

  .overlay h3 {
    font-size: 1.1em;
  }

  .overlay p {
    font-size: 0.85em;
  }
}

/**/
.seccion-bloques-4 {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.container-bloques-4 {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  /* para móviles */
}

.bloque {
  position: relative;
  flex: 1 1 23%;
  /* 4 bloques ~25% con gap */
  aspect-ratio: 3/6;
  /* bloque cuadrado */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Overlay centrado */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s;
}

.bloque:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.bloque:hover .overlay {
  background: rgba(0, 0, 0, 0.6);
}

.overlay h3 {
  font-size: 1.4em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.overlay p {
  font-size: 0.95em;
  line-height: 1.4;
  max-width: 90%;
}

/* Animación fade-in al scroll */
.bloque {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.bloque:nth-child(1) {
  animation-delay: 0.1s;
}

.bloque:nth-child(2) {
  animation-delay: 0.3s;
}

.bloque:nth-child(3) {
  animation-delay: 0.5s;
}

.bloque:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .bloque {
    flex: 1 1 48%;
    /* 2 por fila */
  }
}

@media (max-width: 576px) {
  .bloque {
    flex: 1 1 100%;
    /* 1 por fila */
  }
}

/* CTA*/
.seccion-cta {
  padding: 80px 20px;
  background: linear-gradient(135deg, #FF2400, #20447D);
  text-align: center;
  color: #fff;
  border-radius: 12px;
  margin: 60px 0;
}

.container-cta h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  line-height: 1.3;
}

.container-cta p {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  color: #FF2400;
  background-color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ELEMENTOS DE POR QUÉ Testimonios*/
.seccion-testimonios {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.container-testimonios h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #20447D;
}

.testimonios-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.testimonio {
  flex: 0 0 300px;
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  scroll-snap-align: start;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.testimonio:hover {
  transform: translateY(-5px);
}

.testimonio p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #333;
}

.testimonio h4 {
  font-size: 1.1em;
  color: #FF2400;
  margin-bottom: 5px;
}

.testimonio span {
  font-size: 0.9em;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonios-slider {
    gap: 15px;
  }

  .testimonio {
    flex: 0 0 250px;
    padding: 25px 15px;
  }
}

/**/
.seccion-metodologia {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.container-metodologia h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #20447D;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.paso {
  background-color: #f5f5f5;
  padding: 30px 20px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.paso:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.paso .icono {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.paso h3 {
  font-size: 1.4em;
  color: #FF2400;
  margin-bottom: 10px;
}

.paso p {
  font-size: 1em;
  line-height: 1.5;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .paso {
    padding: 25px 15px;
  }

  .paso h3 {
    font-size: 1.2em;
  }
}

/**/