/* Índice del Blog IDERMADOF · estilos encapsulados y mobile first */
.idermadof-blog{
  --blog-marfil:#F7F6F1;
  --blog-petroleo:#174C49;
  --blog-salvia:#A8BAA8;
  --blog-terracota:#C86A4B;
  --blog-blanco:#FFFFFF;
  --blog-gris:#E2E2E2;
  --blog-texto:#29413F;
  --blog-muted:#687573;
  padding:28px 0 88px;
  overflow-x:clip;
  background:var(--blog-marfil);
  color:var(--blog-texto);
  font-family:"DM Sans",sans-serif;
}

.idermadof-blog *,
.idermadof-blog *::before,
.idermadof-blog *::after{box-sizing:border-box}

.idermadof-blog__inner{padding-inline:20px}

.idermadof-blog__header{
  max-width:900px;
  margin:0 auto 34px;
  text-align:center;
}

.idermadof-blog__header h1{
  max-width:18ch;
  margin:0 auto 28px;
  color:var(--blog-petroleo);
  font-family:"Manrope",sans-serif;
  font-size:clamp(30px,8vw,42px);
  font-weight:750;
  line-height:1.08;
  letter-spacing:-.04em;
}

.idermadof-blog__filters{
  display:flex;
  width:calc(100% + 20px);
  margin-right:-20px;
  gap:10px;
  padding:2px 20px 10px 0;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  text-align:left;
}

.idermadof-blog__filters::-webkit-scrollbar{display:none}

.idermadof-blog__filter{
  flex:0 0 auto;
  min-height:48px;
  padding:10px 18px;
  border:1px solid var(--blog-petroleo);
  border-radius:999px;
  background:transparent;
  color:var(--blog-petroleo);
  font:600 14px/1.2 "DM Sans",sans-serif;
  white-space:nowrap;
  cursor:pointer;
  scroll-snap-align:start;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}

.idermadof-blog__filter:hover,
.idermadof-blog__filter.is-active,
.idermadof-blog__filter[aria-pressed="true"]{
  border-color:var(--blog-petroleo);
  background:var(--blog-petroleo);
  color:var(--blog-blanco);
}

.idermadof-blog__filter:active{transform:translateY(1px)}

.idermadof-blog__status{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.idermadof-blog__feature{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:100%;
  margin-bottom:58px;
  overflow:hidden;
  border:1px solid rgba(23,76,73,.1);
  border-radius:12px;
  background:var(--blog-blanco);
  box-shadow:0 12px 36px rgba(23,76,73,.07);
}

.idermadof-blog__feature-media{
  display:block;
  width:100%;
  min-height:250px;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--blog-gris);
}

.idermadof-blog__feature-media img,
.idermadof-blog__card-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.idermadof-blog__feature-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:28px 22px 32px;
}

.idermadof-blog__tag{
  display:inline-flex;
  width:fit-content;
  margin-bottom:13px;
  padding:6px 10px;
  border:1px solid var(--blog-salvia);
  border-radius:999px;
  background:rgba(168,186,168,.17);
  color:var(--blog-petroleo);
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.idermadof-blog__feature h2{
  max-width:18ch;
  margin:0;
  color:var(--blog-petroleo);
  font-family:"Manrope",sans-serif;
  font-size:clamp(28px,7vw,42px);
  font-weight:750;
  line-height:1.1;
  letter-spacing:-.035em;
}

.idermadof-blog__feature p{
  max-width:56ch;
  margin:18px 0 24px;
  color:var(--blog-muted);
  font-size:16px;
  line-height:1.6;
}

.idermadof-blog__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:12px 22px;
  border-radius:12px;
  background:var(--blog-terracota);
  color:var(--blog-blanco);
  font-weight:700;
  text-decoration:none;
  transition:background-color .2s ease,transform .2s ease;
}

.idermadof-blog__cta:hover{background:#AD573D;transform:translateY(-2px)}

.idermadof-blog__section-heading{margin-bottom:28px}
.idermadof-blog__section-heading h2{
  max-width:720px;
  margin:0;
  color:var(--blog-petroleo);
  font-family:"Manrope",sans-serif;
  font-size:clamp(25px,6vw,36px);
  line-height:1.16;
  letter-spacing:-.03em;
}

.idermadof-blog__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
}

.idermadof-blog__card{
  display:flex;
  min-width:0;
  min-height:100%;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(23,76,73,.1);
  border-radius:12px;
  background:var(--blog-blanco);
  box-shadow:0 8px 26px rgba(23,76,73,.05);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.idermadof-blog__card:hover{
  border-color:var(--blog-salvia);
  box-shadow:0 14px 34px rgba(23,76,73,.09);
  transform:translateY(-4px);
}

.idermadof-blog__card-media{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--blog-gris);
}

.idermadof-blog__card-content{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:22px 20px 0;
}

.idermadof-blog__card h3{
  display:-webkit-box;
  min-height:4.2em;
  margin:0 0 24px;
  overflow:hidden;
  color:var(--blog-petroleo);
  font-family:"Manrope",sans-serif;
  font-size:20px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:-.018em;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

.idermadof-blog__card footer{
  margin:auto -20px 0;
  padding:16px 20px;
  border-top:1px solid rgba(23,76,73,.08);
  background:#F0F1ED;
  color:#65716F;
  font-size:13px;
  line-height:1.45;
}

.idermadof-blog__empty{
  margin:24px 0 0;
  padding:24px;
  border:1px solid var(--blog-salvia);
  border-radius:12px;
  color:var(--blog-petroleo);
  text-align:center;
}

.idermadof-blog [hidden]{display:none!important}

.idermadof-blog__filter:focus-visible,
.idermadof-blog__cta:focus-visible{
  outline:3px solid rgba(200,106,75,.45);
  outline-offset:3px;
}

@media (min-width:768px){
  .idermadof-blog{padding:42px 0 104px}
  .idermadof-blog__inner{padding-inline:24px}
  .idermadof-blog__header{margin-bottom:44px}
  .idermadof-blog__filters{width:100%;margin:0;justify-content:center;padding:2px 0 10px}
  .idermadof-blog__feature{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:430px;margin-bottom:80px}
  .idermadof-blog__feature-media{height:100%;min-height:430px;aspect-ratio:auto}
  .idermadof-blog__feature-content{padding:42px}
  .idermadof-blog__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .idermadof-blog__section-heading{margin-bottom:34px}
}

@media (min-width:1100px){
  .idermadof-blog__feature-content{padding:56px}
  .idermadof-blog__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
}

@media (prefers-reduced-motion:reduce){
  .idermadof-blog *,
  .idermadof-blog *::before,
  .idermadof-blog *::after{scroll-behavior:auto!important;transition-duration:.01ms!important}
}
