/*
Theme Name: Plastimyr Child
Description: Tema hijo de Astra para las personalizaciones de Plastimyr.
Author: Plastimyr
Template: astra
Version: 1.0.0
Text Domain: plastimyr-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Estilos propios de Plastimyr. Astra carga sus estilos desde el tema padre. */

/* Blog: índice dinámico y fotografías completas en las entradas. */
.pm-blog-index { width:100%; margin:48px auto 72px; }
.pm-blog-intro { max-width:760px; margin-bottom:40px; }
.pm-blog-intro .pm-eyebrow { color:var(--ast-global-color-0); font-size:12px; margin-bottom:12px; }
.pm-blog-intro h1 { font-size:clamp(34px,4vw,52px); line-height:1.12; letter-spacing:-1px; margin-bottom:20px; }
.pm-blog-intro > p { max-width:66ch; }
.pm-blog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px 28px; }
.pm-blog-card { min-width:0; }
.pm-blog-cover { display:block; background:var(--ast-global-color-6,#f0f6f7); border-radius:14px; overflow:hidden; }
.pm-blog-cover img { display:block; width:100%; height:240px; padding:16px; box-sizing:border-box; object-fit:contain; }
.pm-blog-card-copy { padding:20px 0 0; }
.pm-blog-category { color:var(--ast-global-color-0); font-size:12px; font-weight:800; margin-bottom:10px; }
.pm-blog-card h2 { font-size:23px; line-height:1.25; margin-bottom:12px; }
.pm-blog-card h2 a { color:var(--ast-global-color-2); text-decoration:none; }
.pm-blog-card h2 a:hover { text-decoration:underline; text-underline-offset:4px; }
.pm-blog-card-copy > p:not(.pm-blog-category) { font-size:15px; line-height:1.6; margin-bottom:14px; }
.pm-blog-read { font-weight:800; text-underline-offset:4px; }
.pm-blog-index a:focus-visible { outline:3px solid var(--ast-global-color-0); outline-offset:4px; }
.pm-blog-article .pm-blog-photo { margin:28px 0; }
.pm-blog-article .pm-blog-photo img { display:block; width:100%; max-height:420px; object-fit:contain; border-radius:12px; }
.pm-blog-article .pm-blog-photo figcaption { color:var(--ast-global-color-3); font-size:14px; line-height:1.5; text-align:center; margin-top:12px; }
.pm-blog-article .pm-blog-back { border-top:1px solid var(--ast-global-color-7); padding-top:24px; margin-top:36px; }
.pm-blog-article .entry-title { font-size:clamp(30px,3.5vw,44px); line-height:1.15; }
@media(max-width:921px) {
 .pm-blog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 24px; }
}
@media(max-width:600px) {
 .pm-blog-index { margin:28px auto 48px; }
 .pm-blog-grid { grid-template-columns:minmax(0,1fr); gap:32px; }
 .pm-blog-card h2 { font-size:24px; }
 .pm-blog-cover img { height:240px; }
 .pm-blog-intro { margin-bottom:32px; }
}

/* Cabecera nativa de Astra: permanece visible sin sacarla del flujo de la página.
   clip evita que el overflow horizontal de Astra cree un contenedor de scroll
   que impida el posicionamiento sticky. */
body { overflow-x: clip; }
#masthead { position: sticky; top: 0; }
html { scroll-padding-top: var(--pm-header-clearance, 0px); }
@media (min-width: 783px) {
 body.admin-bar #masthead { top: 32px; }
}
@media (min-width: 601px) and (max-width: 782px) {
 body.admin-bar #masthead { top: 46px; }
}
/* Hasta 600px la barra de WordPress se desplaza con la página. */

@font-face{font-family:'Plastimyr Nunito';src:url('assets/fonts/nunito-variable.ttf') format('truetype');font-weight:200 1000;font-style:normal;font-display:swap}
/* Ajustes de contenido: el kit global, cabecera y pie permanecen en Astra. */
.pm-page{box-sizing:border-box}.pm-eyebrow{text-transform:uppercase;letter-spacing:.13em;font-weight:800}.pm-hero-photo img,.pm-family-photo img{mix-blend-mode:multiply}.pm-family-photo{overflow:hidden}.pm-family-photo img{transition:transform .25s}.pm-family-photo:hover img{transform:scale(1.025)}.pm-family-title a{text-decoration:none}.pm-contact-intro .wp-block-image img{mix-blend-mode:multiply}.pm-hero-columns{align-items:center!important}.pm-home-caption{border-bottom:1px solid var(--ast-global-color-7)}.pm-page .wp-block-image{margin-bottom:0}.pm-page .wp-block-buttons{margin-top:0}.pm-page .wp-block-column{min-width:0}.pm-page .wp-block-heading{overflow-wrap:normal}.pm-page a:focus-visible{outline:3px solid var(--ast-global-color-0);outline-offset:4px}.pm-section-heading{letter-spacing:-.7px}
@media(max-width:781px){.pm-page{padding-left:24px!important;padding-right:24px!important}.pm-hero-columns{gap:28px!important}.pm-hero-copy .wp-block-heading{font-size:clamp(38px,7.5vw,56px)!important;letter-spacing:-1.5px!important}.pm-family-columns{gap:24px!important}.pm-contact-columns{gap:32px!important}.pm-home-caption{gap:12px!important}.pm-contact-strip{gap:18px!important;align-items:flex-start!important}.pm-contact-intro h1.wp-block-heading{font-size:40px!important}.pm-catalog-intro .wp-block-heading{font-size:36px!important}.pm-contact-strip .wp-block-heading{font-size:23px!important}.pm-hero-photo img{max-height:390px}.pm-contact-photo{display:none}}
@media(max-width:480px){.pm-page{padding-left:20px!important;padding-right:20px!important}.pm-hero-photo{overflow:hidden}.pm-family-photo img{max-height:220px}.pm-contact-strip{padding:24px!important}.pm-home-caption p{font-size:11px!important}.pm-hero-copy .wp-block-heading{font-size:39px!important;line-height:1.12!important}}
@media(prefers-reduced-motion:reduce){.pm-family-photo img{transition:none}}
/* Fotografía de contacto y tratamiento de imagen del diseño aprobado. */
.pm-contact-photo{max-width:340px}.pm-hero-photo img{mix-blend-mode:normal}.pm-family-title a{color:var(--ast-global-color-2);text-decoration:none!important}

/* Longitud de línea de las guías editoriales. */
.pm-editorial-page #primary{max-width:800px;margin-left:auto;margin-right:auto;float:none}
.pm-editorial-page .entry-content h2{margin-top:1.4em}
.pm-editorial-page .entry-content a{text-underline-offset:3px}

/* Fotos de referencia en guías, con espacio para el título y la comparación. */
.pm-editorial-page .ast-single-post-featured-section{max-width:800px;margin:0 auto 24px}
.pm-editorial-page .ast-single-post-featured-section img{width:100%;max-height:260px;object-fit:contain}
.pm-editorial-page .wp-block-table{overflow-x:auto}
.pm-editorial-page .wp-block-table td,.pm-editorial-page .wp-block-table th{overflow-wrap:break-word;vertical-align:top}

/* Home: tratamiento de fotografía y galería de categorías.
   Fondos, radios, medidas y espaciados se editan en los bloques nativos. */
.pm-editorial-product-photo img,.pm-category-photo img{mix-blend-mode:multiply}
.pm-home-story-photo img{width:100%;display:block}
.pm-category-photo a{display:block}
.pm-category-photo img{width:100%;transition:transform .3s cubic-bezier(.22,1,.36,1)}
.pm-category-card:hover .pm-category-photo img{transform:scale(1.035)}
.pm-category-title a{color:var(--ast-global-color-2);text-decoration:none!important}
.pm-category-title a:hover{text-decoration:underline!important;text-underline-offset:4px}
.pm-category-card:focus-within .pm-category-photo{outline:3px solid var(--ast-global-color-0);outline-offset:4px}
.pm-home-category-section>p{max-width:72ch}
.pm-home-category-section>h2{margin-top:0;margin-bottom:18px}
.pm-home-category-section a{text-underline-offset:3px}
/* WooCommerce: la fotografía se gestiona en Productos → Categorías. */
.pm-category-cover{float:right;width:260px;margin:0 0 24px 32px;padding:22px;background:var(--ast-global-color-6);border-radius:16px}
.pm-category-cover img{display:block;width:100%;height:210px;object-fit:contain;mix-blend-mode:multiply}
.tax-product_cat ul.products{clear:both}
@media(max-width:781px){
 .pm-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 16px!important}
 .pm-category-photo{padding:12px!important}
 .pm-category-photo img{height:150px!important}
 .pm-category-title{font-size:16px!important}
 .pm-home-story-photo img{height:300px!important}
 .pm-category-cover{float:none;width:100%;max-width:400px;margin:0 0 24px}
}
@media(max-width:480px){
 .pm-category-photo img{height:120px!important}
 .pm-home-story{padding:24px!important}
 .pm-home-story-photo img{height:270px!important}
}
@media(prefers-reduced-motion:reduce){.pm-category-photo img{transition:none}.pm-category-card:hover .pm-category-photo img{transform:none}}

/* Índice de guías: secciones y fotografías editables en bloques nativos. */
.pm-guides-index #primary{max-width:1120px;width:100%;margin:56px auto 72px}
.pm-guides-index .entry-header{margin-bottom:24px}
.pm-guides-index #primary .entry-title{max-width:900px;font-size:clamp(32px,4vw,48px);font-weight:800;line-height:1.15;text-wrap:balance}
.pm-guides-index .entry-content .pm-guides-intro{max-width:72ch;margin:0 0 24px}
.pm-guides-index .pm-guides-jumps{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0 0 48px;padding:0 0 24px;border-bottom:1px solid var(--ast-global-color-7,#d8e1e2)}
.pm-guides-jumps a{display:inline-flex;min-height:44px;align-items:center;font-weight:800;color:var(--ast-global-color-2,#214b54)}
.pm-guides-index .entry-content .pm-guide-section{margin:0 0 56px;padding:0;scroll-margin-top:32px}
.pm-guides-index .pm-guide-section>h2{margin:0 0 24px;font-size:32px;font-weight:800;line-height:1.2}
.pm-guides-index .pm-guides-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;align-items:stretch}
.pm-guides-index .pm-guides-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.pm-guides-index .pm-guide-card{display:flex;flex-direction:column;min-width:0;margin:0;padding:0}
.pm-guides-index .pm-guide-photo{margin:0 0 20px;padding:24px;background:var(--ast-global-color-6,#e6f3f7);border-radius:16px;overflow:hidden}
.pm-guide-section--comidas .pm-guide-photo{background:#f4e0d4}
.pm-guide-section--juego .pm-guide-photo{background:#eeeae0}
.pm-guide-section--descanso .pm-guide-photo{background:#e6f3f7}
.pm-guide-photo a{display:block}
.pm-guide-photo img{display:block;width:100%;height:240px;object-fit:contain;mix-blend-mode:multiply}
.pm-guides-index .pm-guide-card h3{margin:0 0 12px;font-size:23px;line-height:1.3;font-weight:800;text-wrap:balance}
.pm-guides-index .entry-content .pm-guide-card h3 a{color:var(--ast-global-color-2,#214b54);text-decoration:none}
.pm-guides-index .entry-content .pm-guide-card h3 a:hover{text-decoration:underline}
.pm-guide-card p{margin:0 0 16px;line-height:1.65}
.pm-guide-card .pm-guide-read{margin-top:auto;margin-bottom:0;font-weight:800}
.pm-guide-read a{display:inline-flex;align-items:center;min-height:44px}
.pm-guides-index .pm-guides-help{padding:32px;background:#e6f3f7;border-radius:16px}
.pm-guides-index .pm-guides-help h2{margin:0 0 16px;font-size:28px;line-height:1.25}
.pm-guides-help p{max-width:72ch;margin:0}
.pm-guides-index .entry-content a:focus-visible{outline:3px solid var(--ast-global-color-0,#087c92);outline-offset:4px}
@media(max-width:921px){
 .pm-guides-index #primary{margin:40px auto 56px}
 .pm-guides-index .pm-guides-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 .pm-guide-photo img{height:200px}
 .pm-guides-index .pm-guide-card h3{font-size:21px}
}

/* Adaptación de los bloques propios a tablet y móvil. */
.pm-page .wp-block-heading{overflow-wrap:break-word}
.pm-guide-section{scroll-margin-top:120px!important}
.pm-page [id]{scroll-margin-top:120px}
.site-footer .footer-nav-wrap a{display:inline-flex;align-items:center;min-height:44px}
#masthead .custom-logo-link{display:inline-flex;align-items:center;min-height:44px}
#masthead .menu-toggle{min-width:44px;min-height:44px}
.ast-mobile-header-content{max-height:calc(100dvh - 124px);overflow-y:auto;overscroll-behavior:contain}

@media(max-width:1024px){
 .pm-contact-columns{flex-wrap:wrap!important;gap:32px!important}
 .pm-contact-columns>.wp-block-column{flex-basis:100%!important}
 .pm-contact-intro h1.wp-block-heading{font-size:clamp(34px,5vw,44px)!important;letter-spacing:-1px!important}
 .pm-contact-intro>p{max-width:65ch}
 .pm-contact-photo{display:none}
 .pm-home-routines-columns{gap:24px!important}
 .pm-editorial-product-photo{padding:12px!important}
 .pm-editorial-product-photo img{height:190px!important}
 .pm-home-story .wp-block-columns{gap:28px!important}
 .pm-contact-strip{flex-wrap:wrap!important;gap:20px!important}
 .pm-contact-strip>*{min-width:0}
 .pm-contact-strip>p>a{display:inline-flex;align-items:center;min-height:44px}
 .pm-category-title a,.pm-family-title a,.pm-home-routines-columns p>a{display:inline-flex;align-items:center;min-height:44px}
 .woocommerce .woocommerce-ordering select{max-width:100%;min-height:44px;font-size:16px}
 .woocommerce .woocommerce-breadcrumb{overflow-wrap:anywhere}
 .single-product .summary .product_title{font-size:clamp(28px,4vw,36px);line-height:1.2}
 .woocommerce div.product .woocommerce-tabs ul.tabs li a{min-height:44px;box-sizing:border-box}
}

@media(max-width:781px){
 .pm-page{padding-top:32px!important;padding-bottom:32px!important}
 .pm-hero-photo img{height:clamp(230px,60vw,340px)!important}
 .pm-editorial-product-photo img{height:220px!important}
 .pm-home-story .wp-block-columns{gap:24px!important}
}

@media(max-width:480px){
 .pm-hero-copy .wp-block-heading{font-size:clamp(32px,9.5vw,39px)!important;letter-spacing:-1px!important}
 .pm-catalog-intro .wp-block-heading{font-size:clamp(30px,8.5vw,36px)!important;letter-spacing:-1px!important}
 .pm-home-story-photo img{height:230px!important}
 .pm-contact-strip .wp-block-heading{overflow-wrap:break-word}
}
@media(max-width:680px){
 .pm-guides-index #primary{margin:32px auto 48px}
 .pm-guides-index .pm-guides-jumps{gap:4px 20px;margin-bottom:32px;padding-bottom:16px}
 .pm-guides-index .entry-content .pm-guide-section{margin-bottom:40px}
 .pm-guides-index .pm-guide-section>h2{font-size:28px;margin-bottom:20px}
 .pm-guides-index .pm-guides-grid,.pm-guides-index .pm-guides-grid--two{grid-template-columns:1fr;gap:32px}
 .pm-guide-photo img{height:220px}
 .pm-guides-index .pm-guides-help{padding:24px}
}
