/*
Theme Name: TPVy Canvas
Theme URI: https://tpvytiendaonline.com
Author: AHB Estudio de Creación Digital, S.L.
Author URI: https://estudiodecreaciondigital.com
Description: Plantilla oficial de TPVy Store. Capa WordPress ligera, conectada al Builder, Diseño, cabecera, pie, tipografías, identidad visual y tienda pública de TPVy.
Version: 2.0.4
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: tpvy-store-theme
*/

:root{
    --tpvy-canvas-container:1240px;
    --tpvy-canvas-gutter:24px;
    --tpvy-canvas-bg:#f7f7fa;
    --tpvy-canvas-surface:#fff;
    --tpvy-canvas-text:#161925;
    --tpvy-canvas-muted:#697083;
}
html{box-sizing:border-box}
*,*:before,*:after{box-sizing:inherit}
body{margin:0;background:var(--tpvy-public-bg,var(--tpvy-canvas-bg));color:var(--tpvy-public-text,var(--tpvy-canvas-text));font-family:var(--tpvy-store-font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)}
img{max-width:100%;height:auto}
.tpvy-canvas-fallback-shell{min-height:100vh;display:flex;flex-direction:column}
.tpvy-canvas-fallback-header,.tpvy-canvas-fallback-footer{padding:20px var(--tpvy-canvas-gutter);background:#111a45;color:#fff}
.tpvy-canvas-fallback-header a,.tpvy-canvas-fallback-footer a{color:inherit}
.tpvy-canvas-fallback-brand{font-weight:800;text-decoration:none}
.tpvy-canvas-fallback-main{width:min(var(--tpvy-canvas-container),calc(100% - 48px));margin:0 auto;padding:56px 0;flex:1}
.tpvy-canvas-wordpress-content{width:min(var(--tpvy-public-container,1240px),calc(100% - 40px));margin:0 auto;padding:54px 0 76px}
.tpvy-canvas-wordpress-content article{max-width:920px}
.tpvy-canvas-wordpress-content h1{margin:0 0 24px;font-family:var(--tpvy-store-font-headings,inherit);font-size:clamp(36px,5vw,68px);line-height:1.04}
.tpvy-canvas-wordpress-content h2,.tpvy-canvas-wordpress-content h3{font-family:var(--tpvy-store-font-headings,inherit)}
.tpvy-canvas-wordpress-content p,.tpvy-canvas-wordpress-content li{font-size:var(--tpvy-store-text-base,17px);line-height:var(--tpvy-store-line-height,1.55)}
.tpvy-canvas-wordpress-content a{color:var(--tpvy-store-link-color,var(--tpvy-public-primary,#2f4df4))}
.tpvy-canvas-post-list{display:grid;gap:18px}
.tpvy-canvas-post-card{padding:24px;border:1px solid color-mix(in srgb,var(--tpvy-public-text,#161925) 12%,transparent);border-radius:var(--tpvy-public-radius,18px);background:var(--tpvy-public-card,#fff)}
.tpvy-canvas-post-card h2{margin:0 0 9px}
.tpvy-canvas-post-card h2 a{color:inherit;text-decoration:none}
.tpvy-canvas-post-card p{margin:0;color:var(--tpvy-public-muted,#697083)}
body.tpvy-width-wide .tpvy-canvas-wordpress-content{width:min(1560px,calc(100% - 32px))}
body.tpvy-width-full .tpvy-canvas-wordpress-content{width:100%;max-width:none;padding-left:24px;padding-right:24px}
@media(max-width:620px){
    .tpvy-canvas-wordpress-content{width:calc(100% - 26px);padding:34px 0 52px}
    body.tpvy-width-full .tpvy-canvas-wordpress-content{width:100%;padding-left:13px;padding-right:13px}
}


/* TPVy Canvas 2.0.1 · the plugin is the visual authority */
body.tpvy-canvas-theme{
    min-height:100vh;
}


/* =========================================================
   TPVy Canvas 2.0.4 · Builder documents are not article pages
   ========================================================= */
.tpvy-canvas-builder-document{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    overflow:visible;
}
.tpvy-canvas-builder-document article,
.tpvy-canvas-builder-article{
    width:100%;
    max-width:none!important;
    margin:0;
    padding:0;
    overflow:visible;
}
.tpvy-canvas-builder-document .tpvy-builder-page{
    width:100%;
    max-width:none;
    margin:0;
}
body.tpvy-canvas-builder-active .tpvy-canvas-wordpress-content{
    width:100%!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
}
body.tpvy-canvas-builder-active .tpvy-canvas-wordpress-content article{
    max-width:none!important;
}
