/* FAUSTO 2026 · Parche de presentación reversible y acotado. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.fausto-interiores-activo main { overflow-wrap: anywhere; }
body.fausto-interiores-activo main img { max-width: 100%; }
/* No ocultar imágenes correctas por un evento onload no disparado. */
body.fausto-interiores-activo main .show-visual > img,
body.fausto-interiores-activo main .card-visual > img,
body.fausto-interiores-activo main .show-image > img {
  opacity: 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #102945;
}
body.fausto-interiores-activo main figure img { object-fit: contain; object-position: center; height: auto; }
body.fausto-interiores-activo .fausto-rem-ficha {
  background: #fff; border: 1px solid #d3dfec; border-left: 4px solid #315fa7;
  padding: 20px 22px; margin: 14px 0 29px; color: #233e5a; font-family: Arial, Helvetica, sans-serif;
}
body.fausto-interiores-activo .fausto-rem-ficha p { font: 400 clamp(15px, 1.5vw, 18px)/1.6 Arial, Helvetica, sans-serif; margin: 0 0 10px; color: #40546b; }
body.fausto-interiores-activo .fausto-rem-ficha .fausto-rem-obra {
  font: 400 clamp(23px, 2.7vw, 33px)/1.2 Georgia, 'Times New Roman', serif; color: #0c2341; margin: 0 0 12px;
}
body.fausto-interiores-activo .fausto-rem-ficha a { display: inline-block; text-decoration: underline; font-size: 15px; font-weight: 700; color: #315fa7; margin-top: 7px; }
body.fausto-interiores-activo .fausto-cueva-logo { display: block; margin: 0 0 15px; }
body.fausto-interiores-activo .fausto-cueva-logo img { display: block; width: min(210px, 65%); height: auto; object-fit: contain; }
body.fausto-interiores-activo .fausto-cueva-subtitulo {
  font: 700 clamp(14px, 1.8vw, 17px)/1.5 Arial, Helvetica, sans-serif !important; color: #315fa7;
  margin: 15px 0; max-width: 760px;
}
body.fausto-interiores-activo .fausto-cueva-descripcion {
  font: 400 clamp(16px, 2vw, 20px)/1.6 Arial, Helvetica, sans-serif !important;
  color: #40546b; max-width: 800px; margin: 0 0 22px;
}
body.fausto-interiores-activo .fausto-foto-alternativa { display: flex; align-items: center; justify-content: center;
  min-height: 160px; padding: 20px; color: #fff; background: #173555; font: 400 18px/1.3 Georgia, serif; text-align:center; }
@media (max-width: 767px) {
  body.fausto-interiores-activo main h1 { font-size: clamp(35px, 8.5vw, 44px) !important; line-height: 1.13 !important; letter-spacing: -.035em !important; }
  body.fausto-interiores-activo main h2 { font-size: clamp(28px, 7vw, 35px) !important; line-height: 1.16 !important; letter-spacing: -.035em !important; }
  body.fausto-interiores-activo main h3 { font-size: clamp(23px, 6vw, 30px) !important; line-height: 1.2 !important; letter-spacing: -.02em !important; }
  body.fausto-interiores-activo main p { max-width: 100%; line-height: 1.58; }
  body.fausto-interiores-activo main .show-visual,
  body.fausto-interiores-activo main .card-visual { height: auto !important; min-height: 190px; aspect-ratio: 16 / 10; }
  body.fausto-interiores-activo .fausto-rem-ficha { padding: 17px; margin: 12px 0 24px; }
}

/* Revisión 0.2.0: todas las vistas Fausto; Elementor y la 1030 quedan fuera. */
body[data-fausto-correcciones] .show-visual>img{opacity:1!important;object-fit:contain!important;object-position:center!important}
body[data-fausto-correcciones] .interior-main .show-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body[data-fausto-correcciones] .interior-main .show-info h3{font-size:clamp(25px,2.4vw,34px);line-height:1.15;overflow-wrap:break-word;hyphens:auto}
body[data-fausto-correcciones] .interior-main .show-info p{min-height:0;font-size:14px}
body[data-fausto-correcciones] .interior-main .show-visual{height:330px}
body[data-fausto-correcciones] .photo-gallery{align-items:start}
body[data-fausto-correcciones] .photo-gallery img{display:block;height:auto;max-height:none;background:transparent}
body[data-fausto-correcciones] .work-photo{height:auto;background:transparent}
body[data-fausto-correcciones] .fausto-rem-ficha{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:24px;align-items:start}
body[data-fausto-correcciones] .fausto-rem-ficha figure{margin:0}
body[data-fausto-correcciones] .fausto-rem-ficha figure img{display:block;width:100%;height:auto;object-fit:contain}
body[data-fausto-correcciones] .fausto-rem-ficha figcaption{font-size:12px;color:#52687b;margin-top:8px}
body[data-fausto-correcciones] .collab-grid{align-items:center;gap:32px;grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-fausto-correcciones] .collab-grid>div{display:flex;align-items:center;justify-content:center;min-height:100px;padding:16px;border:0}
body[data-fausto-correcciones] .collab-grid img{margin:0 auto;max-width:100%;max-height:70px;width:auto;height:auto;object-fit:contain}
body[data-fausto-correcciones] .collab-grid>div:first-child{min-width:230px}
body[data-fausto-correcciones] .collab-grid>div:last-child img{max-width:130px}
body[data-fausto-correcciones] .fausto-credito-obligatorio{font-size:12px;line-height:1.65;max-width:650px;color:#52687b}
@media(max-width:1000px){
body[data-fausto-correcciones] .interior-main .show-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-fausto-correcciones] .collab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-fausto-correcciones] .collab-grid>div:first-child{min-width:0}
}
@media(max-width:650px){
body[data-fausto-correcciones] .page-lead{padding:38px 0 23px}
body[data-fausto-correcciones] .page-lead h1{font-size:clamp(34px,8.5vw,44px);line-height:1.12;overflow-wrap:break-word}
body[data-fausto-correcciones] .interior-main .show-grid{grid-template-columns:1fr;gap:24px}
body[data-fausto-correcciones] .interior-main .show-visual{height:290px;min-height:0;aspect-ratio:auto}
body[data-fausto-correcciones] .interior-main .show-info{padding:20px}
body[data-fausto-correcciones] .interior-main .show-info h3{font-size:29px}
body[data-fausto-correcciones] .fausto-rem-ficha{grid-template-columns:1fr;gap:20px;padding:20px}
body[data-fausto-correcciones] .fausto-rem-ficha figure{max-width:270px;margin:0 auto}
body[data-fausto-correcciones] .collab-grid{gap:18px}
body[data-fausto-correcciones] .collab-grid>div{padding:10px;min-height:95px}
body[data-fausto-correcciones] .collab-grid img{max-height:65px}
body[data-fausto-correcciones] .collab-grid>div:first-child{grid-column:1/-1}
body[data-fausto-correcciones] .collab-grid>div:first-child img{max-width:300px;width:100%}
body[data-fausto-correcciones] .collab-grid>div:last-child{grid-column:1/-1}
}
