/* ============================
   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%;
  background: var(--gray);
  margin: 0 auto;
}
  
.contact__box{
  width: var(--container-width);
  max-width: var(--container-max);
  margin:0 auto; 
  text-align: center;
}
 
.contact__box h3{
  width: 70%;
  margin:0 auto; 
}
    @media (max-width: 768px){  .contact__box h3{ width: 100%; }}

.contact__container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  gap: clamp(40px, 4vw, 60px);
}

@media (max-width: 900px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
}

/* ---- Columna izquierda ---- */

.contact__info p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text);
  margin-top: 6px;
  margin-bottom: 40px;
  max-width: 300px;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 22px;
  transition: transform 0.3s ease;
  transform-origin: left center;
}

.contact__list li:hover {
  transform: scale(1.01);
}

.contact__list li img {
  width: auto;
  height: auto;
  padding: 6px;
  background: none;
}

.contact__txt {
  display: flex;
  flex-direction: column;
}

.contact__list li p,
.contact__list li span {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text);
  margin: 0;
}

.contact__list li a {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text);
  text-decoration: none;
}

.contact__list li a:hover {
  text-decoration: underline;
}

    @media (max-width: 900px) {
      .contact__info { text-align: center; display: grid; grid-template-columns: 1fr 1.3fr; }
      .contact__info p { margin-left: auto; margin-right: auto; text-align: left;}
      .contact__list { align-items: center; }
      .contact__list li {justify-content: left; align-items: left; 
          transform-origin: center center; min-width: 200px;}
          .contact__list li img {width: 45px; padding: 0 10px; }
      .contact__txt { align-items: center  }
      .contact__list li p, .contact__list li span, .contact__list li a {text-align: left;}
    }

    @media (max-width: 560px) {
      .contact__info { grid-template-columns: 1fr; grid-template-rows: auto auto;}
      .contact__info p {  text-align: center;}
    }

/* ----Columna derecha  ---- */

.contact__form-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  padding: clamp(24px, 3vw, 30px);
}
    @media (max-width: 720px) {  .contact__form-box { padding: 24px 20px;} }

/* ---- form ---- */

.form {
  display: grid;
  gap: clamp(14px, 1.5vw, 20px);
  padding: 0; margin: 0;
  background: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 15px);
}
    @media (max-width: 720px) { .grid-2 {  grid-template-columns: 1fr; }}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input,
.textarea {
  font: inherit;
  font-size: clamp(15px, 1.4vw, 17px);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-dark);
  padding: 8px 4px;
  border-radius: 0;
  transition: border-color .2s ease;
}

.textarea {
  min-height: clamp(100px, 24vh, 140px);
  resize: vertical;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--orange);
}

.input::placeholder,
.textarea::placeholder {
  color: color-mix(in srgb, var(--text) 55%, transparent);
}

.was-submitted .input:invalid,
.was-submitted .textarea:invalid {
  border-bottom-color: #e74c3c; /* rojo */
}

.actions { text-align: left; }
.actions button { width: 170px; }
    @media (max-width: 900px) { .actions button { width: 150px; } }
    @media (max-width: 560px) { .actions button { width: 130px; } }

  
/* Popup */
.form-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.form-popup.is-visible {
  display: flex;
}

.form-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.form-popup__content {
  position: relative;
  z-index: 1;
  background: var(--bg, #fff);
  padding: 24px 28px;
  max-width: 420px;
  width: calc(100% - 40px);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.form-popup__content h4 {
  margin: 0 0 8px;
}

.form-popup__content p {
  margin: 0;
}

.form-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}
















