/* =======================================================
   BLOCK 1 (HERO)
========================================================== */

.block-1 {
  width: 100%;
  /*min-height: 100vh;*/
  max-height: 100vh;
  background-image: url("../img/images_before/background_1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Overlay */
.block-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 32, 96, 0.35);
  z-index: 1;
}

.block-1 > * {
  position: relative;
  z-index: 2;
}

/* ================= LEFT IMAGE ================= */

.block-1-image-1 {
  
  /*flex: 1;*/
  flex: 1.4; 
  height: 100%;
  min-height: 100vh;
}
/*
.block-1-image-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right; /* ajusta si hace falta *
}*/

.block-1-image-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    /*image-rendering: -webkit-optimize-contrast; /* Helps with sharpness *
    transform: translateZ(0); /* Promotes GPU rendering */
}   

/*.block-1-image-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}*/

/* ================= RIGHT CONTENT ================= */

.block-1-right {
  flex: 1;
  /*max-width: 600px;*/
  max-width: 170vh;
  padding: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}
.block-1::before {
  
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(198, 198, 198, 0.5);
  z-index: 0;
}

/* Logo */
.block-1-image-2 img {
  width: clamp(120px, 18vw, 240px);
  height: auto;
}

/* Title */
.block-1-content-1 h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.3;
  max-width: 800px;
}

/* =======================================================
   RESPONSIVE BREAKPOINTS
========================================================== */

@media (min-width: 1920px) {
  .block-1-right {
    margin-top: -150px; /* Ajusta el valor según lo necesites */
  }
}

/* LAPTOPS PEQUEÑAS */
@media (max-width: 1366px) {
  .block-1-right {
    
    max-width: 520px;
  }
  .block-1-image-1 {
    max-width: 45%;
  }
  
}/*
@media (max-width: 1200px) {
  .block-1-image-1 img{
    width: 130%;
  }
  .block-1-right {
    padding-top: 100px;
    max-width: 450px;
  }
}*/

@media (max-width: 1200px) {
  .block-1-image-1 {
    flex: 1.4;
  }

  .block-1-right {
    flex: 1.2;          /* ⬅️ MÁS ancho para el texto */
    max-width: none;    /* ⬅️ clave */
    padding: 0px;
    padding-top: 5.5rem;
  }
}

/* celulares */
@media (max-width: 800px) {
  .block-1 {
    display: flex;

  }

  .block-1-image-1 {
    
    width: 100%;
    /*min-height: 45vh;*/
  }

  .block-1-right {/*
    width: 100%;
    max-width: none;
    padding: 2.5rem 1.5rem;*/
  }
}

/* MOBILE */
@media (max-width: 576px) {
  .block-1-content-1 h1 {
    font-size: 1.5rem;
  }

  .block-1-image-2 img {
    width: 140px;
  }
}

/* =======================================================
     BLOCK 2
========================================================== */

.block-2 {
  min-height: 100vh;
  padding: 4rem 2rem;
  background-image: url("../img/img_new/inicio/background_01.png");
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
}

.block-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
}

.block-2 > * {
  position: relative;
}

.block-2-title h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: #001164;
}

.block-2-content-1 p {
  color: #001164;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin-top: 1rem;
  font-weight: 900;
}
.block-2-hr-1 {
  width: 90%;
  max-width: 800px;
  height: 4px;
  background: var(--color-primary);
  border: none;
  margin: 2rem auto;
}

/* Block 2 responsive */
@media (max-width: 768px) {
  .block-2 {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .block-2-content-1 p {
    margin-top: 0.8rem;
  }
}

/* mobile rules removed (handled separately) */
/* =======================================================
     BLOCK 3
========================================================== */

.block-3 {
  width: 100%;
  min-height: 100vh;
  padding: 3rem;
  position: relative;

  background-image:
    url("../img/img_new/inicio/background_02_rigth.png"),
    url("../img/img_new/inicio/background_01_azul.png"),
    linear-gradient(#002060, #002060);

  background-size: contain, cover, cover;
  background-position: right center, center, center;
  background-repeat: no-repeat;
}

/* Default desktop */
.lineas-bg {
  position: absolute;
  width: clamp(260px, 100vw, 1185px);
  left: 5%;
  top: 13vh;
  pointer-events: none;
}

/* Laptop ≤ 1280px */
@media (max-width:1280px) {
  /*.lineas-bg {
    width: 75vw;
    top: 12vh;
    left: 3%;
  }*/
  .lineas-bg {
    width: 77vw;
    top: 16vh;
    left: 14%;
  }
}

/* Laptop ≤ 1024px */
@media (max-width:1024px) {
  .lineas-bg {
    width: 70vw;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.35;
  }
  
}

/* Tablet ≤ 768px */
@media (max-width:768px) {
  .lineas-bg {
    width: 80vw;
    top: 4rem;
    opacity: 0.25;
  }
}

/* mobile rules removed (handled separately) */

@media (max-width: 768px) {
  .block-3 {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .block-3-title h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    width: 95%;
    margin: 0 auto 1.5rem;
  }

  .block-3-cell {
    width: 95%;
    margin: 0 auto 1rem;
  }
}


.block-3-title h1 {
  font-size: clamp(2.2rem, 4vw, 5rem);
  width: clamp(300px, 80%, 1100px);
  padding: clamp(15px, 2vw, 30px) clamp(25px, 3vw, 40px);
  color: white;
  background: rgba(17, 62, 118, 0.85);
  clip-path: polygon(0 0, 95% 0, 100% 30%, 95% 60%, 100% 100%, 0 100%);
  margin-bottom: 2rem;
}

.block-3-cell {
  width: clamp(250px, 40vw, 420px);
  padding: clamp(0.7rem, 1vw, 1.5rem);
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(3px);
  margin-bottom: 1rem;
}

.block-3-cell img {
  width: clamp(30px, 3vw, 45px);
}

.block-3-cell p {
  color: white;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 600;
}

/* COLORES DE CARDS */
.block-3-cell-01 { background-color: rgba(6, 32, 83, 0.6); }
.block-3-cell-02 { background-color: rgba(11, 47, 109, 0.6); }
.block-3-cell-03 { background-color: rgba(11, 56, 115, 0.6); }
.block-3-cell-04 { background-color: rgba(0, 64, 146, 0.6); }
.block-3-cell-05 { background-color: rgba(44, 116, 163, 0.6); }

/* =======================================================
     MEDIA QUERIES PARA LAPTOPS
========================================================== */

/* Laptop grande 1440px */
/*@media (max-width: 1440px) {
  .block-1-image-1 img { max-height: 60vh; }
}*/

/* Laptop promedio 1280px */
@media (max-width: 1280px) {
  /*.block-1 {
    padding-top: 7rem;
  }*/
  .block-1-image-1 img {
    
    max-height: 100vh;
  }

  .block-3 {
    padding: 2rem;
  }
}

/* ============================================================
   BLOCK 4 (full screen, fondo, overlay)
============================================================ */


.block-4-wrapper {
  position: relative;
  background-image: url("../img/img_new/inicio/background_03_casos.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.block-4-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;  
  background: rgba(198, 198, 198, 0.9); /* overlay */
  z-index: 0;
}

.block-4 {
  width: 100%;
  min-height: 100vh;
  /*padding: 3vh 0;*/
  display: flex;
  justify-content: center;
  align-items: center;
}

.block-4::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(198, 198, 198, 0.5);
}

.block-4 > * {
  position: relative;
}

/* Contenido */
.block-4-content {
  width: 85%;
  max-width: 90vw;
  text-align: left;
  /*margin-top: 3vh;*/
}
/*
.block-4-content {
  text-align: center;
  margin-top: 40px;
}
*/

/* Títulos */
.block-4-title-container {
  position: relative;
  /*display: inline-block;*/
  margin-bottom: 40px;
  
  font-size: large;
  color: #001164;
  z-index: 100;
}


.block-4-title {
  font-size: clamp(4rem, 1.45vw, 2rem);
  /*font-size: clamp(3.2rem, 1.45vw, 2rem);/* Revisar responsividad
  /*font-size: clamp(1.2rem, 1.45vw, 2rem); antiguo responsividad*/
  font-weight: bold;
}
/*



/* Logos 4 – 5 – 4 */
.block-4-grid {
  width: 100%;
  gap: 3vh;
  display: flex;
  flex-direction: column;
  /*gap: 35px;*/
  align-items: center;
}



.block-4-row {
  width: 100%; /*Adedd xd*/
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 2vw;
  /*gap: 25px;*/
}

.block-4-row-1 {
  grid-template-columns: repeat(5, 18%);  
  /*grid-template-columns: repeat(4, 20%);
  /*grid-template-columns: repeat(4, 1fr);*/
}

.block-4-row-2 {
  grid-template-columns: repeat(4, 20%);
  /*grid-template-columns: repeat(5, 18%);
  /*grid-template-columns: repeat(5, 1fr);*/
}

.block-4-row-3 {
  grid-template-columns: repeat(5, 18%);
  /*grid-template-columns: repeat(4, 20%);
  /*grid-template-columns: repeat(4, 1fr);*/
}

.block-4-row img {
  width: 100%;
  max-width: clamp(120px, 18vw, 260px);
  max-height: clamp(80px, 15vh, 200px);
  object-fit: contain;
  padding: 10px;
}

/*.block-4-row img {

  width: 100%; /*Adedd xd* /
  max-width: 13vw;
  max-height: 10vh;
  object-fit: contain;
  padding: 10px;

  /*max-width: 250px;
  max-height: 200px;
  object-fit: contain;
  padding: 10px;
  revisar esta monda* /
 
  }
/*
/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet landscape */
@media (max-width: 1024px) {
  .block-4-row-1,
  .block-4-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .block-4-row-2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .block-4-row-1,
  .block-4-row-2,
  .block-4-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .block-4-row img {
    max-width: 15vw;
  }
}

/* Tablet pequeña */
@media (max-width: 768px) {
  .block-4-title {
    font-size: clamp(1rem, 3vw, 1.8rem);
  }

  .block-4-row-1,
  .block-4-row-2,
  .block-4-row-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5vw;
  }

  .block-4-row img {
    max-width: 90px;
    max-height: 80px;
  }

  .block-4-content {
    width: 95%;
  }

  .block-4-title-bg{
    padding: 1.5vw 2vw 0.2vw 3vw;
  }

  /*.block-4-title-fg {
    top: 12px;
    left: 12px;
  }*/
}

/* mobile rules removed (handled separately) */
