/* ============================
   HERO
============================= */

  /* Contenedor raíz */
  .hero{
    width:100%; 
    height:auto; 
    background:#0f0f0f; 
    background-color: var(--white);
    position:relative;
  }

  .hero::before{
    content:""; 
    position:absolute; 
    inset:0;
  }

  .hero__box{
    position:relative; 
    z-index:1; 
    width:100%; 
    margin:0 auto; 
    display:flex; 
    flex-direction:column; 
    height:auto; 
  }

  .hero__title{
    width:100%; 
    height: auto; 
    margin:0 auto; 
    display:grid; 
    place-items:center;  
    background-image: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.8) 100%), url(../assets/img/hero-byn.webp); 
    background-position: top; 
    background-size: cover; 
    background-repeat: none;
  }

  .hero__title-inner{ 
    width: var(--container-width); 
    max-width: var(--container-max); 
    margin: 0 auto; 
    text-align:left;
  }

  .hero__title-inner h1{
    width: 90%;
    max-width: 1250px;
  }

  .hero__title-inner h4{
    color: var(--white); 
    width: 80%;
    max-width: 1100px;
    margin-top: 40px;
    margin-bottom: 48px;
  }

    @media (max-width: 619px){
      .hero__title-inner{ text-align:center; }
      .hero__title-inner h1{ width: 100%; margin-left: auto; margin-right: auto; }
      .hero__title-inner h4{ width: 95%; margin-left: auto; margin-right: auto; }
    }


/* ============================
   SERVICIOS
============================= */

.services {
  width: 100%;
  background-color: var(--gray);
  height: auto;
}

.services__box {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
}

.services__title {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}
    @media (max-width: 560px){ .services__title { width: 95%; }}


/* ---- Tarjeta ----- */

.service__grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, max-height);
  grid-template-rows: auto 1fr 1fr auto;
  grid-template-areas: ". i1 t1 t1" "iC iC i2 t2" "iC iC i3 t3" ". i4 t4 t4" ;
  gap: 0%;
  margin-bottom: 24px;
}

    @media (max-width: 768px){ 
      .service__grid { place-items: center; row-gap: 20px;
        grid-template-columns: auto auto; grid-template-rows: repeat(5, auto);
        grid-template-areas:  "t1 t1 i1" "i2 t2 t2" "t3 t3 i3" "i4 t4 t4" "iC iC iC"; }
      }

    @media (max-width: 460px){ 
      .service__grid { row-gap: 0px;
        grid-template-columns: 1fr; grid-template-rows: repeat(9, auto);
        grid-template-areas:  "i1" "t1" "i2" "t2" "i3" "t3" "i4" "t4" "iC"; }
      .service__item { text-align: center; }
      }

.service__imgC {
  height: auto;
  position: relative;
  max-width: 300px;
  max-height: auto;
  justify-self: center;
  filter: drop-shadow(0px 8px 15px rgba(0,0,0,0.1));
}

.service__imgC img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service__img {
  width: 100%;
  height: auto;
  max-width: 200px;
  display: block;
  transition: transform 0.35s cubic-bezier(.25,.46,.45,.94);
  filter: drop-shadow(0px 8px 15px rgba(0,0,0,0.1));
  padding: 0 24px 24px 20px;
}

    @media (max-width: 920px){ 
      .service__imgC { max-width: 270px; place-items: center; margin: auto; }
      .service__img { max-width: 170px;  padding: 0 24px 18px 20px; }
    }

    @media (max-width: 769px){ 
      .service__imgC { max-width: 250px; place-items: center; margin-top: 25px;}
      .service__img { max-width: 160px;  padding: 0 24px 18px 10px; min-width: 120px; }
      .si2 img {transform: scaleX(-1);}
      .si4 img {transform: scaleX(-1) scaleY(-1);}
    }

    @media (max-width: 460px){ 
      .service__img { padding-top: 30px;}
      .si2 img {transform: scaleX(1);}
      .si3 img {transform: scaleY(-1);}
      .si4 img {transform: scaleX(1) scaleY(-1);}
      }


.service__img:hover {
  transform: translateX(-10px) scale(1.03);
}

.service__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service__item {
  margin: 10px 0;
}

.service__item p{
  max-width: 470px;
}

.service__item h5 {
  max-width: 470px;
  margin-bottom: 10px;
}

/* ============================
   PROYECTOS
============================= */

.project {
  width: 100%;
  height: auto;
  background-color: var(--gray-dark);
}

.project__box {
  width: var(--container-width);
  max-width: var(--container-max);
  height: auto;
  margin: 0 auto;
}

.project__title {
  height: auto;
  margin: 0 auto;
  text-align: center;
  max-width: 85%;
}
@media (max-width: 560px){ .project__title { max-width: 90%; }}

/* ---- Galeria ----- */

.project__galery {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Card */
.project__img{
  flex: 1 1 calc((100% - 40px) / 3); /* 3 columnas con 2 gaps de 20px */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  background: var(--white);
  display: flex;
  flex-direction: column;
  max-width: calc((100% - 40px) / 3);
}

/* Imagen */
.project__img img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;              /* ajusta si quieres otra proporción */
  object-fit: cover;
  display: block;
  filter: grayscale(1) saturate(.95) contrast(1.05);
  transform: scale(1.02);
  transition: filter .35s ease, transform .35s ease;
}

.project__img h5{
  margin: 8px 0;
  padding: 14px 16px 18px;
  color: var(--black);
  text-align: left;                
}

.project__img:hover img,
.project__img:focus-within img{
  filter: grayscale(0);
  transform: scale(1.06);
}

    @media (max-width: 920px){
      .project__galery { width: 100%; margin: 0 auto; }
      .project__img{ flex: 1 1 calc((100% - 20px) / 2);  max-width: calc((100% - 20px) / 2); }
    }

    @media (max-width: 560px){
      .project__galery{ width: 100%; }
      .project__img{ flex: 1 1 100%; max-width: 350px; margin: 0 auto;}
    }


/* ---- Boton ----- */

.project__btn {
  width: 100%;
  text-align: center;
}

/* ============================
   COMO TRABAJAMOS / PROCESS
============================= */

.process {
  width: 100%;
  height: auto;
  background-color: var(--gray);
}

.process__box {
  width: var(--container-width);
  max-width: var(--container-max);
  height: auto;
  margin: 0 auto;
}

.process__title {
  width: 85%;
  height: auto;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 560px){ .process__title { width: 90%; }}

/* ---- grafica ----- */

.process__graph {
  width: 100%;
  height: auto;
}

.process__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  column-gap: 50px;
}
    @media (max-width: 560px){ 
      .process__grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        row-gap: 40px;
      }
    }

.process__block {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr max-content 1fr;
  grid-template-areas: "p1 p1" "p2 p3" "p4 p4";
  margin: 0 auto;
  column-gap: 20px;
  row-gap: 20px;
}
    @media (max-width: 1024px){ 
      .process__block {
        grid-template-columns: 1fr ; grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas: "p1" "p2" "p3" "p4";
        margin: 0 auto; row-gap: 0px;
      }
    }

.process__txt {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.process__txt h5 {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.process__img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  text-align: center;
}

.process__img img {
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(.25,.46,.45,.94);
  filter: drop-shadow(0px 8px 15px rgba(0,0,0,0.1));
  padding: 20px 26px 26px 0;
  margin: 0 auto;
}

.process__img img:hover {
  transform: translateY(-10px) scale(1.03);
}
    @media (max-width: 1024px){ 
      .process__img img { width: 100%; max-width: 160px; padding:  0; margin-right: 80px;}
    }
    @media (max-width: 560px){ 
      .process__img img { max-width: 160px; margin-right: 10px;}
    }

.p1{
  width: 100%;
  grid-area: p1;
}

.p2{
  grid-area: p2;
}

.p3{
  grid-area: p3;
}

.p4{
  width: 100%;
  text-align: right;
  grid-area: p4;
}
    @media (max-width: 1024px){ .p4{ text-align: left; margin-top: 30px; }}
    @media (max-width: 560px){ .p1, .p2, .p3, .p4{ text-align: center }}


/* ============================
   NOSOTROS
============================= */

.about {
  width: 100%;
  height: auto;
  background-image: url(../assets/img/we-byn.webp);
  background-repeat: no-repeat;
  background-size: cover;
}

.about__box {
  width: var(--container-width);
  max-width: var(--container-max);
  background-color: #0f0f0fbc;
  height: auto;
  margin: 0 auto;
}

.about__title {
  width: 85%;
  height: auto;
  margin: 0 auto;
  text-align: left;
}

.about__title h3{
  color: var(--text-wh);
  width: 90%;
}

.about__grid {
  text-align: left;
  color: var(--text-wh);
  width: 85%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 65% 28%;
  grid-template-rows: auto auto;
  grid-template-areas: "t1 t3" "t2 t3";
  column-gap: 7%;
  row-gap: 30px;
}

@media (max-width: 1240px){ 
  .about__grid { grid-template-columns: 62% 32%; grid-template-areas: "t1 t1" "t2 t3";
    column-gap: 6%; row-gap: 20px; }
}

@media (max-width: 840px){ 
  .about__grid { grid-template-columns: 58% 37%; grid-template-areas: "t1 t1" "t2 t3";
    column-gap: 5%; row-gap: 20px; }
}

@media (max-width: 768px){ 
  .about__grid { grid-template-columns: 100%; grid-template-rows: auto max-content auto;
    grid-template-areas: "t1" "t3" "t2";
    column-gap: 0%; row-gap: 20px; }
}

.about__txt {
  grid-area: t1;
}

.about__txt p {
  color: var(--text-wh);
  max-width: 95%;
  margin-top: 20px;
}

.about__items {
  align-content: end;
  grid-area: t2;
}

.about__items ul {
 padding-left: 25px;
 margin: 0;
}

.about__items ul li p {
  color: var(--text-wh);
  margin-top: 20px;
  margin-left: 5px;
  width: 100%;
}

.about__items ul li p strong{
  font-weight: 600;
}

.about__img {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-end;   
  width: 100%;
  gap: 40px;
  object-fit: cover;
  grid-area: t3;
}

.about__img img{
  width: 100%;
  height: auto;
  display: block;
}

    @media (max-width: 768px){ 
      .about__img { width: 50%; flex-direction: row-reverse; margin-left: 47%; }
    }

    @media (max-width: 470px){ 
      .about__img { width: 70%; flex-direction: column; margin-left: 10%; margin-top: 20px; gap: 30px; }
    }

/* ============================
   CONTACTO
============================= */

.contact{
  width: 100%;
  margin:0 auto; 
  background:var(--gray);
}
.contact__box{
  width: var(--container-width);
  max-width: var(--container-max);
  margin:0 auto; 
}
.contact__box h3,  .contact__box h2{
  max-width: 800px;
  margin:0 auto; 
  text-align: center;
}

.whats { text-align: center; }
.whats p { margin: 40px 0; }
.whats a {display: flex; justify-content: center; text-decoration: none;}
.whats a button {display: flex; flex-direction: row; justify-content: center; max-width: 200px;}
.whats a button img { width: 24px; padding-left: 7px;}

.mail p{display: inline-flex;}
.mailto {font-weight: 500; color: var(--black);
        transition: transform .12s ease; will-change: transform; letter-spacing: 0.03em;}
.mailto:hover{ transform: scale(1.02); text-decoration: underline;}
