/* Vista previa de Inicio: solo las cuatro tarjetas de familias. */
body.page-inicio #familias{scroll-margin-top:110px}
body.page-inicio .home-family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
body.page-inicio .home-family-card{min-width:0;background:#FFFEFB;border:1px solid #DED6CB;overflow:hidden}
body.page-inicio .home-family-card>img,
body.page-inicio .home-family-card>.home-family-placeholder{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;max-width:100%}
body.page-inicio .home-family-card>div:last-child{padding:26px 28px 30px}
body.page-inicio .home-family-card>div:last-child>span:first-child{font-size:13px;font-weight:600;letter-spacing:.09em;color:#55634F}
body.page-inicio .home-family-card h3{font-size:clamp(1.9rem,2.8vw,2.7rem);line-height:1.12;margin:12px 30px 0 0;color:#333A32;overflow-wrap:anywhere}
body.page-inicio .home-family-card .category-arrow{color:#55634F;font-size:26px}
body.page-inicio .home-family-card:hover{border-color:#8E9B8A;background:#FCFAF6}
body.page-inicio .home-family-card:focus-visible{outline:3px solid #55634F;outline-offset:5px}
body.page-inicio .home-family-card>.home-family-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;background:#EEE9E1;color:#55634F;position:relative}
body.page-inicio .home-family-placeholder::before{content:"";position:absolute;inset:18px;border:1px solid #D4CCBF;pointer-events:none}
body.page-inicio .home-family-placeholder>span{font:500 clamp(3.5rem,7vw,6rem)/1 var(--serif);letter-spacing:-.04em;color:#7A8771}
body.page-inicio .home-family-placeholder>p{font-size:14px;line-height:1.6;max-width:240px;text-align:center;margin:0;color:#55584F}
@media(max-width:600px){
 body.page-inicio .home-family-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 body.page-inicio .home-family-card>div:last-child{padding:22px 20px 26px}
 body.page-inicio .home-family-card h3{font-size:1.9rem}
}

/* Inicio: correcciones autorizadas del 23 de octubre de 2026. */
body.site-page.page-inicio .home-family-card>img{
 width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center;
 background:#FCFAF6;
}
body.site-page.page-inicio .site-footer{background:#D6C8B7;color:#333A32}
/* El carrusel móvil conserva todas sus reglas anteriores. */
@media(min-width:761px){
 body.site-page.page-inicio .home-main .hero{width:100%;height:min(620px,calc(100svh - 160px));aspect-ratio:auto;min-height:360px;max-height:none}
 body.site-page.page-inicio .home-main .hero .hero-original-photo{width:100%;height:100%;object-fit:cover;object-position:50% 38%}
 body.site-page.page-inicio .home-main .hero .hero-slide:nth-child(n) .hero-inner{
  left:11%;top:18%;right:auto;bottom:auto;width:32%;max-width:460px;margin:0;padding:0;
 }
 body.site-page.page-inicio .home-main .hero .hero-slide:nth-child(n) h1{
  font-size:clamp(30px,3.45vw,52px);font-weight:600;line-height:1.18;margin:0 0 12px;color:#293E2E;
 }
 body.site-page.page-inicio .home-main .hero .hero-inner .button{margin:0;min-height:44px}
}
/* Revisión local: tarjetas uniformes; fotografías originales sin editar. */
body.site-page.page-inicio .home-family-card{display:grid;grid-template-rows:auto 132px}
body.site-page.page-inicio .home-family-card>div:last-child{height:132px;min-height:0}
@media(max-width:600px){body.site-page.page-inicio .home-family-card{grid-template-rows:auto 126px}body.site-page.page-inicio .home-family-card>div:last-child{height:126px}}
/* Solo escritorio: líneas reservadas para alinear títulos y enlaces. */
@media(min-width:761px){
 body.site-page.page-inicio .home-main .hero .hero-slide:nth-child(n) .hero-inner{display:grid;grid-template-rows:20px auto 44px;row-gap:8px}
 body.site-page.page-inicio .home-main .hero .hero-inner .eyebrow,
 body.site-page.page-inicio .home-main .hero .hero-inner .eyebrow:empty{display:block;min-height:20px;margin:0}
 body.site-page.page-inicio .home-main .hero .hero-slide:nth-child(n) h1{min-height:2.36em;margin:0}
 body.site-page.page-inicio .home-main .hero .hero-inner .button{justify-self:start;align-self:start}
 body.site-page.page-inicio .home-main .hero .hero-inner:before{content:"";position:absolute;inset:-24px -32px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 36% 46%,rgba(255,253,247,.60),rgba(255,253,247,.30) 43%,rgba(255,253,247,0) 75%)}
 body.site-page.page-inicio .home-main .hero .hero-text-soft .hero-inner:before{background:radial-gradient(ellipse at 36% 46%,rgba(255,253,247,.95),rgba(255,253,247,.77) 42%,rgba(255,253,247,0) 76%)}
}
/* Inicio: controles compactos sin numeración decorativa. */
body.site-page.page-inicio #hero-count{display:none}
body.site-page.page-inicio .hero-controls{background:transparent;padding:0;gap:10px}

/* Evita cortar títulos de dos líneas en teléfonos pequeños. */
@media(max-width:360px){
body.site-page.page-inicio .home-family-card{grid-template-rows:auto 160px}
body.site-page.page-inicio .home-family-card>div:last-child{height:160px}
}

/* Cuatro familias: ritmo compacto y fotografía original íntegra. */
body.site-page.page-inicio .home-selection{max-width:1244px;margin:auto;padding:48px 32px}
body.site-page.page-inicio .home-selection .section-head{margin-bottom:24px;gap:28px;align-items:end}
body.site-page.page-inicio .home-selection .section-head h2{font-size:clamp(30px,3.1vw,42px);line-height:1.1}
body.site-page.page-inicio .home-family-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
body.site-page.page-inicio .home-family-card{display:block;background:#fcfaf6;border:0;overflow:visible}
body.site-page.page-inicio .home-family-card>img{display:block;width:100%;height:210px;max-height:210px;aspect-ratio:auto;object-fit:contain;object-position:center;background:#f4f0e9}
body.site-page.page-inicio .home-family-card>div:last-child{height:auto;min-height:88px;padding:16px 0 8px;border-top:1px solid #ded6cb}
body.site-page.page-inicio .home-family-card>div:last-child>span:first-child{font-size:10px;letter-spacing:.12em}
body.site-page.page-inicio .home-family-card h3{font-size:clamp(22px,1.9vw,27px);line-height:1.12;margin:8px 24px 0 0;overflow-wrap:normal}
body.site-page.page-inicio .home-family-card .category-arrow{right:0;bottom:12px;font-size:21px}
body.site-page.page-inicio .intro-strip{padding:24px 32px;min-height:0}
@media(max-width:900px){body.site-page.page-inicio .home-family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.site-page.page-inicio .home-selection{padding:34px 16px}body.site-page.page-inicio .home-selection .section-head{display:block;margin-bottom:20px}body.site-page.page-inicio .home-section-intro{margin-top:16px}body.site-page.page-inicio .home-family-grid{gap:22px 14px}body.site-page.page-inicio .home-family-card>img{height:160px;max-height:160px}body.site-page.page-inicio .home-family-card h3{font-size:22px}body.site-page.page-inicio .home-family-card>div:last-child{min-height:94px;padding-top:12px}body.site-page.page-inicio .intro-strip{padding:20px 16px}}
/* Revisión puntual: familias del Inicio en dos columnas, fotografía íntegra. */
body.site-page.page-inicio #familias .home-family-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px;margin-inline:auto;gap:32px 48px;justify-items:center;align-items:start}
body.site-page.page-inicio #familias .home-family-card{display:flex;flex-direction:column;align-items:center;width:max-content;max-width:100%;background:transparent;border:0;grid-template-rows:none}
body.site-page.page-inicio #familias .home-family-card>img{display:block;width:auto;height:300px;max-width:100%;max-height:300px;aspect-ratio:auto;object-fit:contain;object-position:center;background:transparent;margin:0 auto}
body.site-page.page-inicio #familias .home-family-card>div:last-child{width:100%;height:auto;min-height:0;padding:14px 0 0;border:0;text-align:center}
body.site-page.page-inicio #familias .home-family-card h3{font-size:clamp(23px,2.1vw,28px);line-height:1.2;margin:0;text-align:center;overflow-wrap:normal}
body.site-page.page-inicio #familias .home-family-card>div:last-child>span{display:none}
body.site-page.page-inicio #familias .home-family-card:hover{background:transparent}
@media(max-width:600px){body.site-page.page-inicio #familias .home-family-grid{grid-template-columns:minmax(0,1fr);gap:30px;max-width:320px}body.site-page.page-inicio #familias .home-family-card>img{height:300px;max-height:300px}body.site-page.page-inicio #familias .home-family-card h3{font-size:25px}}

/* Solo familias en celular: marco uniforme con la imagen original completa. */
@media(max-width:760px), (max-width:1000px) and (max-device-width:1000px){
 body.site-page.page-inicio #familias .home-family-card{
  width:min(260px,100%);max-width:100%;align-items:stretch;
 }
 body.site-page.page-inicio #familias .home-family-card>img{
  width:100%;height:auto;max-height:none;aspect-ratio:auto;
  object-fit:contain;object-position:center;background:transparent;
 }
 body.site-page.page-inicio #familias .home-family-card>div:last-child{
  width:100%;height:auto;min-height:0;padding:12px 0 0;text-align:center;
 }
 body.site-page.page-inicio #familias .home-family-card h3{
  margin:0;line-height:1.2;text-align:center;
 }
}
