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

/* Contenedor raíz */
.hero{
  width:100%; 
  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; 
}

.hero__title{
  height: 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: 80%;
  max-width: 1100px;
  margin-bottom: 30px;
}

.hero__title-inner h4{
  color: var(--white); 
  width: 80%;
  max-width: 800px;
  line-height: 1.5;
}

    @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; }
    }


/* ===== Bloques de servicio ===== */

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

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

.service__box h3{
  padding: 28px 24px 0px ;
  border-radius: 0;
  border-bottom: none;
  border-top: none;
  border-left: 14px solid #EE9C00;
  border-right: none;
}

.service__grid{
  width:  100%;
  height: auto;
  display: grid; gap: 3.5%; 
  grid-template-columns: 61.5% 35%; 
  grid-template-areas: "sT sI";
  align-items: start; 
}

.grid-rg { display: grid; gap: 5%; grid-template-columns: 35% 60%; align-items: start;  grid-template-areas: "sI sT";}

    @media (max-width: 768px){
      .service__grid{ grid-template-columns: 1fr;  grid-template-rows: 1fr auto; grid-template-areas: "sI" "sT";}
      .grid-rg {  grid-template-columns: 1fr;  grid-template-rows: 1fr auto; grid-template-areas: "sI" "sT";}
    }

.service__grid p{
  margin-bottom: 20px;
}

.service__media{
  width: 100%; 
  height: 100%; 
  padding-bottom: 10px;
  filter: grayscale(100%);
  transition: filter .45s ease, transform .35s ease;
  will-change: filter, transform;
}

.service__media:hover {
  filter: none;          
  transform: scale(1.01);
}

.service__media img{
  width: 100%;
  height: 100%; 
  object-fit: cover;
  border-radius: var(--radius);
  display: block;           /* quita espacios raros debajo */
  isolation: isolate;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

    @media (max-width: 768px){
      .service__media{  width: 100%; height: auto; }
      .service__media img{ width: 100%; height: auto; max-height: 220px; }
    }
    @media (min-width: 769px) and (max-width: 1024px){
      .service__media img{ height: 65%; min-height: 280px; }
    }

.service__list{ position:relative; padding-left:24px; margin-bottom: 20px;}
.service__list li{ 
  font-family: var(--font-body);
  font-size: clamp(16px, 1.54vw, 17px); 
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* ===== Pastillas ===== */
.benefits{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px ;
  margin: 10px 0;
  max-width: 600px;
}
.benefit{ display:flex; flex-direction:column; gap:6px; }

.pill{
  display:inline-block;
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: 9px 12px 8px 15px;
  font-size: clamp(14px, 1.8vw, 17px); 
  font-weight: 600;
  line-height: 1;
  color: var(--orange);
  background: none;
  white-space: nowrap;   
  max-width: 170px;
}

.benefit__note{
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  max-width: 180px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .service__box{ grid-template-columns: 1fr; }
  .media--reduced{ max-width: none; justify-self: start; }
  .benefits{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .benefits{ grid-template-columns: 1fr; }
  .pill{ width: max-content; }
}


    /* ============================
   PROCESO
============================= */

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

.process__steps{
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 25px;
  justify-content: center; 
}

.process__step{
  background: var(--white);
  border: none;
  border-radius: 12px;
  padding: 28px 12px;
  text-align: center;
  position: relative;
  min-width: 170px;
  flex: 1 1 170px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.process__step::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -15px;
  left: 12px;
  background: var(--white);
  color: var(--orange);
  border-radius: 999px;
  border: 2px solid var(--orange);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
}

.process__step span{
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}

.process__step small{
  color: var(--black);
}
  
  @media (max-width: 980px){
    .service--alt .service__media, .service--alt .service__content{ order: initial; }
  }
  
  
    /* ============================
   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;}