
  /* ============================
   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; }
    }
  


  /* ============================
   CARD
============================= */

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

.card-txt {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.54vw, 17px); 
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  padding: 0;
  margin: 0;
}

.card-space-sm {
  height: 20px;
}

.grid {
  width:  var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
    @media (max-width: 920px) {.grid { grid-template-columns: 1fr 1fr; }}
    @media (max-width: 619px){ .grid { max-width: 420px; grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.thumb {
  aspect-ratio: 16/9;
  width: 100%;
  background-size: cover;
  position: relative;
}

.thumb .label {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
}

  .card .thumb{
    filter: grayscale(100%);
    transition: filter .35s ease, transform .35s ease;
    will-change: filter, transform;
  }

  .card:hover .thumb,
  .card:focus-within .thumb{
    filter: none;          
    transform: scale(1.01);
  }
    @media (prefers-reduced-motion: reduce){ .card .thumb{ transition: none; } }

.card-body {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.title {
  margin: 0 0 14px;
}

.subtitle {
  margin: 0 0 24px;
}

.btn-close {
  max-width: 140px;
  padding: 14px;
  font-size: clamp(13px, 1.54vw, 15px);
}

.btn-inline {
  padding: 12px;
  max-width: 120px;
  font-size: clamp(13px, 1.54vw, 15px);
}
@media (max-width: 768px) { .btn-inline { max-width: 104px; }}


/* ============================
  CARD (open)
============================= */

.detail {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  margin-top: 36px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  display: none;
}

.detail.show {
  display: block;
}

.detail-head {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 25px;
  padding: 22px 22px 0px;
  height: auto;
  overflow: hidden;      
}
    @media (max-width: 920px) { .detail-head { grid-template-columns: 1fr; margin-bottom: 25px; } }

.detail-thumb {
  display: flex;
  justify-content: center; 
  align-items: center;     
  overflow: hidden;          
  height: auto;
  width: 100%;
  border-radius: 10px;
}

.detail-thumb img{
  max-height: 270px;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
}

.detail-meta h3 {
  font-size: clamp(21px, 3.08vw, 35px); /* 40px a 1300px */
  margin: 30px 0 10px 0;
}
  
.detail-body {
  padding: 0 22px 22px;
}

.detail-body h5{
  font-size: clamp(18px, 1.7vw, 22px);
  margin-bottom: 10px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.toolbar {
  display: flex;
  justify-content: right;
  padding: 14px 22px;
  border-top: 1px solid var(--gray-dark);
  background: var(--white);
}

.left {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.chip {
  background: rgba(0, 0, 0, .65);
  color: var(--white);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
}

.close {
  background: var(--white);
  border: 1px solid var(--gray-dark);
}

  /* ============================
   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;}









