/*
Theme Name: SQ Theme
Theme URI: https://sebastianquerelos.com
Description: Tema liviano de sebastianquerelos.com, sin Elementor. Header y footer propios, design system .sq-v5 (DM Serif Display, Inter, JetBrains Mono).
Author: Sebastián Querelos
Author URI: https://sebastianquerelos.com
Version: 2.0.0
Requires PHP: 7.4
Text Domain: sq-theme
*/

/* ---- Base (reset de Hello Elementor) ---- */
html{line-height:1.15;-webkit-text-size-adjust:100%}*,:after,:before{box-sizing:border-box}body{background-color:#fff;color:#333;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,'Inter',sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1rem;font-weight:400;line-height:1.5;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{color:inherit;font-family:inherit;font-weight:500;line-height:1.2;margin-block-end:1rem;margin-block-start:.5rem}h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.75rem}h4{font-size:1.5rem}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-block-end:.9rem;margin-block-start:0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em;white-space:pre-wrap}a{background-color:transparent;color:#c36;text-decoration:none}a:active,a:hover{color:#336}a:not([href]):not([tabindex]),a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}abbr[title]{border-block-end:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;height:auto;max-width:100%}details{display:block}summary{display:list-item}figcaption{color:#333;font-size:16px;font-style:italic;font-weight:400;line-height:1.4}[hidden],template{display:none}@media print{*,:after,:before{background:transparent!important;box-shadow:none!important;color:#000!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre{white-space:pre-wrap!important}blockquote,pre{-moz-column-break-inside:avoid;border:1px solid #ccc;break-inside:avoid}thead{display:table-header-group}img,tr{-moz-column-break-inside:avoid;break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{-moz-column-break-after:avoid;break-after:avoid}}label{display:inline-block;line-height:1;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:1rem;line-height:1.5;margin:0}input[type=date],input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{border:1px solid #666;border-radius:3px;padding:.5rem 1rem;transition:all .3s;width:100%}input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{border-color:#333}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;width:auto}[type=button],[type=submit],button{background-color:transparent;border:1px solid #c36;border-radius:3px;color:#c36;display:inline-block;font-size:1rem;font-weight:400;padding:.5rem 1rem;text-align:center;transition:all .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}[type=button]:focus:not(:focus-visible),[type=submit]:focus:not(:focus-visible),button:focus:not(:focus-visible){outline:none}[type=button]:focus,[type=button]:hover,[type=submit]:focus,[type=submit]:hover,button:focus,button:hover{background-color:#c36;color:#fff;text-decoration:none}[type=button]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}select{display:block}table{background-color:transparent;border-collapse:collapse;border-spacing:0;font-size:.9em;margin-block-end:15px;width:100%}table td,table th{border:1px solid hsla(0,0%,50%,.502);line-height:1.5;padding:15px;vertical-align:top}table th{font-weight:700}table tfoot th,table thead th{font-size:1em}table caption+thead tr:first-child td,table caption+thead tr:first-child th,table colgroup+thead tr:first-child td,table colgroup+thead tr:first-child th,table thead:first-child tr:first-child td,table thead:first-child tr:first-child th{border-block-start:1px solid hsla(0,0%,50%,.502)}table tbody>tr:nth-child(odd)>td,table tbody>tr:nth-child(odd)>th{background-color:hsla(0,0%,50%,.071)}table tbody tr:hover>td,table tbody tr:hover>th{background-color:hsla(0,0%,50%,.102)}table tbody+tbody{border-block-start:2px solid hsla(0,0%,50%,.502)}@media(max-width:767px){table table{font-size:.8em}table table td,table table th{line-height:1.3;padding:7px}table table th{font-weight:400}}dd,dl,dt,li,ol,ul{background:transparent;border:0;font-size:100%;margin-block-end:0;margin-block-start:0;outline:0;vertical-align:baseline}

/* ---- Base (theme.css de Hello Elementor) ---- */
.comments-area a,.page-content a{text-decoration:underline}.alignright{float:right;margin-left:1rem}.alignleft{float:left;margin-right:1rem}.aligncenter{clear:both;display:block;margin-inline:auto}.alignwide{margin-inline:-80px}.alignfull{margin-inline:calc(50% - 50vw);max-width:100vw}.alignfull,.alignfull img{width:100vw}.wp-caption{margin-block-end:1.25rem;max-width:100%}.wp-caption.alignleft{margin:5px 20px 20px 0}.wp-caption.alignright{margin:5px 0 20px 20px}.wp-caption img{display:block;margin-inline:auto}.wp-caption-text{margin:0}.gallery-caption{display:block;font-size:.8125rem;line-height:1.5;margin:0;padding:.75rem}.pagination{display:flex;justify-content:space-between;margin:20px auto}.sticky{display:block;position:relative}.bypostauthor{font-size:inherit}.hide{display:none!important}.post-password-form{margin:50px auto;max-width:500px}.post-password-form p{align-items:flex-end;display:flex;width:100%}.post-password-form [type=submit]{margin-inline-start:3px}.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#eee;clip:auto!important;clip-path:none;color:#333;display:block;font-size:1rem;height:auto;left:5px;line-height:normal;padding:12px 24px;text-decoration:none;top:5px;width:auto;z-index:100000}.post .entry-title a{text-decoration:none}.post .wp-post-image{max-height:500px;-o-object-fit:cover;object-fit:cover;width:100%}@media(max-width:991px){.post .wp-post-image{max-height:400px}}@media(max-width:575px){.post .wp-post-image{max-height:300px}}#comments .comment-list{font-size:.9em;list-style:none;margin:0;padding:0}#comments .comment,#comments .pingback{position:relative}#comments .comment .comment-body,#comments .pingback .comment-body{border-block-end:1px solid #ccc;display:flex;flex-direction:column;padding-block-end:30px;padding-block-start:30px;padding-inline-end:0;padding-inline-start:60px}#comments .comment .avatar,#comments .pingback .avatar{border-radius:50%;left:0;margin-inline-end:10px;position:absolute}body.rtl #comments .comment .avatar,body.rtl #comments .pingback .avatar,html[dir=rtl] #comments .comment .avatar,html[dir=rtl] #comments .pingback .avatar{left:auto;right:0}#comments .comment-meta{display:flex;justify-content:space-between;margin-block-end:.9rem}#comments .comment-metadata,#comments .reply{font-size:11px;line-height:1}#comments .children{list-style:none;margin:0;padding-inline-start:30px;position:relative}#comments .children li:last-child{padding-block-end:0}#comments ol.comment-list .children:before{content:"↪";display:inline-block;font-size:1em;font-weight:400;left:0;line-height:100%;position:absolute;top:45px;width:auto}body.rtl #comments ol.comment-list .children:before,html[dir=rtl] #comments ol.comment-list .children:before{content:"↩";left:auto;right:0}@media(min-width:768px){#comments .comment-author,#comments .comment-metadata{line-height:1}}@media(max-width:767px){#comments .comment .comment-body{padding:30px 0}#comments .children{padding-inline-start:20px}#comments .comment .avatar{float:left;position:inherit}body.rtl #comments .comment .avatar,html[dir=rtl] #comments .comment .avatar{float:right}}.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{margin-inline-end:auto;margin-inline-start:auto;width:100%}@media(max-width:575px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{padding-inline-end:10px;padding-inline-start:10px}}@media(min-width:576px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{max-width:500px}.site-footer.footer-full-width .footer-inner,.site-header.header-full-width .header-inner{max-width:100%}}@media(min-width:768px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{max-width:600px}.site-footer.footer-full-width,.site-header.header-full-width{max-width:100%}}@media(min-width:992px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{max-width:800px}.site-footer.footer-full-width,.site-header.header-full-width{max-width:100%}}@media(min-width:1200px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{max-width:1140px}.site-footer.footer-full-width,.site-header.header-full-width{max-width:100%}}.site-header+.elementor{min-height:calc(100vh - 320px)}

/* ---- Estilos globales (antes kit de Elementor) ---- */

.sq-kit{--e-global-color-primary:#1A1A1A;--e-global-color-secondary:#5C5C5C;--e-global-color-text:#1A1A1A;--e-global-color-accent:#D4570A;--e-global-typography-primary-font-family:"Inter";--e-global-typography-primary-font-weight:300;--e-global-typography-secondary-font-family:"Inter";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Inter";--e-global-typography-text-font-weight:300;--e-global-typography-accent-font-family:"Inter";--e-global-typography-accent-font-weight:500;background-color:#F9F7F4;color:#333333;font-family:'Inter', Sans-serif;font-size:1.05rem;}
.sq-kit e-page-transition{background-color:#FFBC7D;}
.sq-kit a{color:#0F1562;}
.sq-kit h1{font-family:"DM Serif Display", Georgia, serif;}
.sq-kit h2{color:#607FE0;font-size:25px;}
/* ---- Design system SQ (antes child theme) ---- */
:root{
  --cream:#FAF9F5;
  --ink:#141413;
  --gold:#B8860B;
  --gold-soft:#D4A628;
  --line:rgba(20,20,19,.08);
  --line-s:rgba(20,20,19,.18);
  --mute:#6F6D67;
}

*{box-sizing:border-box}

html,body{background:var(--cream);color:var(--ink);font-family:'Inter',system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;margin:0;padding:0}

/* En v7 el header global lo provee Elementor Theme Builder (sticky flotante).
 * La home no usaba padding-top global, asÃ­ que las pages migradas tampoco
 * lo necesitan. Si el fallback .sq-hdr se llegara a renderear, se reinstaura
 * vÃ­a clase body.sq-hdr-fallback.
 */
body.sq-hdr-fallback{padding-top:96px}
@media (max-width:960px){body.sq-hdr-fallback{padding-top:72px}}

a{color:inherit}
img{max-width:100%;height:auto;display:block}

/* ============ HEADER ============ */
.sq-hdr{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(250,249,245,.92);backdrop-filter:saturate(160%) blur(12px);-webkit-backdrop-filter:saturate(160%) blur(12px);border-bottom:1px solid var(--line)}
.sq-hdr-inner{max-width:1280px;margin:0 auto;padding:20px 32px;display:flex;align-items:center;gap:24px}
.sq-hdr a.sq-hdr-brand{font-family:'DM Serif Display',Georgia,serif;font-size:22px;font-weight:400;letter-spacing:-.01em;text-decoration:none;color:var(--ink) !important;flex-shrink:0}
.sq-hdr a.sq-hdr-brand:hover{color:var(--gold) !important}
.sq-hdr-nav{display:flex;gap:28px;margin-left:auto;align-items:center}
.sq-hdr .sq-hdr-nav a{text-decoration:none;color:var(--ink) !important;font-size:14px;font-weight:500;letter-spacing:-.005em;transition:color .2s}
.sq-hdr .sq-hdr-nav a:hover{color:var(--gold) !important}
.sq-hdr .sq-hdr-nav a.current{color:var(--gold) !important}
.sq-hdr a.sq-hdr-cta{display:inline-flex;align-items:center;justify-content:center;background:var(--ink) !important;color:var(--cream) !important;padding:11px 22px;border-radius:999px;font-size:13px;font-weight:600;letter-spacing:.01em;text-decoration:none;transition:background .2s,transform .15s}
.sq-hdr a.sq-hdr-cta:hover{background:var(--gold) !important;color:var(--ink) !important;transform:translateY(-1px)}
.sq-hdr-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer;font-size:22px;color:var(--ink);margin-left:auto}

@media (max-width:960px){
  body{padding-top:72px}
  .sq-hdr-inner{padding:16px 20px}
  .sq-hdr-toggle{display:block}
  .sq-hdr-nav,.sq-hdr-cta{display:none}
  .sq-hdr.is-open .sq-hdr-nav{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;padding:8px 20px 24px;background:var(--cream);border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(0,0,0,.08)}
  .sq-hdr.is-open .sq-hdr-nav a{padding:14px 0;border-bottom:1px solid var(--line);font-size:16px}
  .sq-hdr.is-open a.sq-hdr-cta{display:inline-flex;margin:16px 20px 0;align-self:flex-start}
}

/* ============ CONTENT WRAPPER (para pages sin self-contained snapshot) ============ */
.sq-main{max-width:1120px;margin:0 auto;padding:48px 32px 96px}
.sq-main h1{font-family:'DM Serif Display',Georgia,serif;font-size:clamp(40px,5vw,72px);line-height:1.05;letter-spacing:-.02em;margin:0 0 24px}
.sq-main p{font-size:17px;line-height:1.65;color:#3a3832;max-width:72ch}

/* ============ FOOTER ============ */
.sq-foot{--f-cream:#FAF9F5;--f-ink:#141413;--f-gold:#B8860B;--f-gold-soft:#D4A628;--f-txt:#C9C7C1;--f-line:rgba(250,249,245,.12);--f-line-s:rgba(250,249,245,.2);--f-mute:#8a8782;background:var(--f-ink);color:var(--f-txt);font-family:'Inter',system-ui,-apple-system,Segoe UI,sans-serif;padding:72px 32px 40px;margin-top:120px}
.sq-foot-inner{max-width:1280px;margin:0 auto}
.sq-foot-top{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:48px;padding-bottom:56px;border-bottom:1px solid var(--f-line)}
.sq-foot-brand{display:flex;flex-direction:column;gap:18px}
.sq-foot-brand h2{font-family:'DM Serif Display',Georgia,serif;color:var(--f-cream);font-size:24px;font-weight:400;margin:0;letter-spacing:-.01em}
.sq-foot-brand p{margin:0;font-size:14px;line-height:1.55;max-width:36ch}
.sq-foot-cta{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:14px 22px;background:var(--f-gold);color:var(--f-ink);text-decoration:none;border-radius:999px;font-weight:600;font-size:13px;letter-spacing:.01em;align-self:flex-start;transition:background .2s,transform .15s}
.sq-foot-cta:hover{background:var(--f-gold-soft);transform:translateY(-1px)}
.sq-foot-col h3{font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;color:var(--f-mute);font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;margin:0 0 18px}
.sq-foot-col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.sq-foot-col a{color:var(--f-txt);text-decoration:none;font-size:14px;transition:color .2s}
.sq-foot-col a:hover{color:var(--f-cream)}
.sq-foot-col .sq-foot-arrow{color:var(--f-gold);font-weight:500;margin-top:6px;display:inline-block}
.sq-foot-col .sq-foot-arrow:hover{color:var(--f-gold-soft)}
.sq-foot-work-item{display:flex;flex-direction:column;gap:2px}
.sq-foot-work-item span{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.1em;color:var(--f-mute);text-transform:uppercase}
.sq-foot-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:32px;flex-wrap:wrap}
.sq-foot-copy{font-size:12px;color:var(--f-mute);letter-spacing:.02em}
.sq-foot-copy strong{color:var(--f-cream);font-weight:500}
.sq-foot-made{font-family:'DM Serif Display',Georgia,serif;font-style:italic;font-size:13px;color:var(--f-mute)}
.sq-foot-sitemap{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;color:var(--f-mute);text-decoration:none;letter-spacing:.08em;text-transform:uppercase}
.sq-foot-sitemap:hover{color:var(--f-txt)}

@media (max-width:960px){
  .sq-foot{padding:56px 20px 32px;margin-top:72px}
  .sq-foot-top{grid-template-columns:1fr;gap:40px}
  .sq-foot-bottom{flex-direction:column;align-items:flex-start;gap:12px}
}


/* ================================================ */

/* ================================================ */
/* sq-home-polish v2 · 2026-04-18                   */
/* Typography unify + Industrias compact            */
/* Targets ALL h2 on home (widget-html + headings)  */
/* ================================================ */
body.sq-home h2,
body.sq-home h2,
body.sq-home .elementor-widget-html h2,
body.sq-home .elementor-widget-heading h2.elementor-heading-title{
  font-family:'DM Serif Display','Playfair Display',Georgia,serif !important;
  font-weight:500 !important;
  letter-spacing:-.015em !important;
  line-height:1.14 !important;
  color:#121212 !important;
}
body.sq-home h1,
body.sq-home h1{
  font-family:'DM Serif Display','Playfair Display',Georgia,serif !important;
  font-weight:500 !important;
  letter-spacing:-.02em !important;
  line-height:1.06 !important;
}
/* Hero H1 — tightening */
body.sq-home .elementor-widget-heading h1.elementor-heading-title,
body.sq-home h1{
  font-size:clamp(40px,5.4vw,78px) !important;
}
/* Testimonios "Lo que dicen..." h2 en italic si existe em */
body.sq-home h2 em{ font-style:italic; color:#b8946a; }
/* Whitespace — apretar padding vertical de top-sections */
body.sq-home section.elementor-top-section{
  padding-top:clamp(48px,5vw,76px) !important;
  padding-bottom:clamp(48px,5vw,76px) !important;
}
/* Industrias (section 3930911) — compactar más */
body.sq-home .elementor-element-3930911{
  padding-top:32px !important;
  padding-bottom:32px !important;
}
body.sq-home .elementor-element-3930911 h2{
  font-size:clamp(26px,3vw,34px) !important;
  margin-bottom:20px !important;
}
body.sq-home .elementor-element-3930911 .elementor-icon-box-wrapper{
  padding:14px 10px !important;
}
body.sq-home .elementor-element-3930911 .elementor-icon-box-title,
body.sq-home .elementor-element-3930911 .elementor-icon-box-title span{
  font-size:15px !important;
  font-family:'Inter',system-ui,sans-serif !important;
  font-weight:500 !important;
  letter-spacing:-.005em !important;
  color:#121212 !important;
}
/* Charlas section — fix empty/broken state visual */
body.sq-home .elementor-element-c5f9b73{
  min-height:0 !important;
}


/* ============ SQ THEME: HEADER (pill flotante) ============ */
.sq-skip{position:absolute;left:-9999px;top:0;z-index:10001;background:#141413;color:#FAF9F5;padding:10px 16px;border-radius:8px}
.sq-skip:focus{left:16px;top:16px}
.sqh{position:fixed;top:0;left:0;right:0;z-index:9999;padding:18px 24px 0;pointer-events:none}
.admin-bar .sqh{top:32px}
@media (max-width:782px){.admin-bar .sqh{top:46px}}
.sqh-pill{pointer-events:auto;box-sizing:border-box;max-width:1280px;min-height:76px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 28px;background:rgba(255,255,255,.55);-webkit-backdrop-filter:saturate(1.8) blur(24px);backdrop-filter:saturate(1.8) blur(24px);border:1px solid rgba(20,20,19,.1);border-radius:100px;box-shadow:0 8px 24px rgba(20,20,19,.05),0 1px 3px rgba(20,20,19,.04);position:relative}
.sqh-brand{font-family:'DM Serif Display',Georgia,serif;font-size:22px;font-weight:400;letter-spacing:-.01em;color:#191816!important;text-decoration:none!important;white-space:nowrap}
.sqh-nav{display:block}
.sqn-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center}
.sqn-menu li{list-style:none;margin:0;padding:0;position:relative}
.sqn-menu a{display:block;font-family:Inter,sans-serif;font-size:14px;font-weight:600;line-height:18px;color:#57534e!important;padding:12px 18px;text-decoration:none!important;border-radius:100px;transition:color .15s ease,background-color .15s ease}
.sqn-menu a:hover,.sqn-menu a:focus-visible{color:#141413!important}
.sqn-menu>li.current-menu-item>a,.sqn-menu>li.current-menu-ancestor>a,.sqn-menu>li.current-page-ancestor>a{color:#141413!important}
.sqn-menu>li:last-child>a{background:#141413;color:#FAF9F5!important;padding:14px 26px;margin-left:8px}
.sqn-menu>li:last-child>a:hover{background:#2a2a28;color:#FAF9F5!important}
.sqn-menu>li.menu-item-has-children>a::after{content:"";display:inline-block;margin-left:8px;vertical-align:2px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor}
.sqn-menu .sub-menu{list-style:none;margin:0;padding:8px;position:absolute;top:100%;left:0;min-width:250px;background:#fff;border:1px solid rgba(20,20,19,.08);border-radius:14px;box-shadow:0 18px 40px rgba(20,20,19,.10),0 2px 6px rgba(20,20,19,.05);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .15s ease,transform .15s ease,visibility .15s}
.sqn-menu li:hover>.sub-menu,.sqn-menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.sqn-menu .sub-menu a{font-weight:500;font-size:13.5px;color:#33373d!important;padding:10px 14px;border-radius:8px;white-space:nowrap}
.sqn-menu .sub-menu a:hover{background:#F4F1EA;color:#141413!important}
.sqh-tog{display:none}
@media (max-width:1024px){
  .sqh{padding:12px 12px 0}
  .sqh-pill{min-height:0;padding:8px 8px 8px 20px;gap:12px}
  .sqh-brand{font-size:18px}
  .sqh-tog{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
  .sqh-tog span{display:block;width:20px;height:2px;background:#141413;border-radius:2px;transition:transform .2s ease,opacity .2s ease}
  .sqh.open .sqh-tog span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .sqh.open .sqh-tog span:nth-child(2){opacity:0}
  .sqh.open .sqh-tog span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .sqh-nav{display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;box-sizing:border-box;max-height:calc(100vh - 110px);overflow:auto;background:#FAF9F5;border:1.5px solid #1a1a1a;border-radius:18px;box-shadow:6px 8px 0 #1a1a1a;padding:10px}
  .sqh.open .sqh-nav{display:block}
  .sqn-menu{flex-direction:column;align-items:stretch}
  .sqn-menu a{font-size:15px;color:#1a1a1a!important;padding:12px 14px;border-radius:10px}
  .sqn-menu .sub-menu{position:static;display:none;opacity:1;visibility:visible;transform:none;min-width:0;padding:0 0 6px 12px;background:transparent;border:0;box-shadow:none}
  .sqn-menu li.open>.sub-menu{display:block}
  .sqn-menu .sub-menu a{white-space:normal;font-size:14.5px}
  .sqn-menu>li:last-child>a{margin:8px 0 2px;text-align:center}
}
html{scroll-behavior:smooth}
[id]{scroll-margin-top:110px}

/* ============ SQ THEME: posts (antes en custom CSS del header) ============ */
body.single-post .sq-main p a,body.single-post .sq-main li a{overflow-wrap:anywhere;word-break:break-word}
@media (max-width:767px){html,body{overflow-x:clip!important}body.single-post .sq-main figure.wp-block-table{overflow-x:auto;-webkit-overflow-scrolling:touch}body.single-post .sq-main table{font-size:13px}}
body.single-post .sq-main figure.sq-fig{margin:34px 0 30px!important;max-width:100%}
body.single-post .sq-main figure.sq-fig img{display:block;width:100%;height:auto;border:2px solid #1a1a1a;border-radius:12px;box-shadow:6px 8px 0 #1a1a1a}
body.single-post .sq-main h2{color:#1a1a1a!important;font-family:"DM Serif Display",Georgia,serif!important;font-weight:400!important;letter-spacing:-.005em}

/* ============ SQ THEME: formulario ============ */
.sq-form-msg{display:none}
.sq-form-msg.ok,.sq-form-msg.err{display:block;margin:0 0 16px;padding:14px 16px;border-radius:10px;font-family:Inter,sans-serif;font-size:14.5px;line-height:1.5}
.sq-form-msg.ok{background:#EEF6EE;border:1px solid #9cc69c;color:#1d4d1d}
.sq-form-msg.err{background:#FBEDEA;border:1px solid #e0a093;color:#6b2214}
.yt-lite{display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;margin:0;cursor:pointer;background-color:#000;background-size:cover;background-position:center;position:relative}
.yt-lite .yt-play{position:absolute;left:50%;top:50%;width:68px;height:48px;transform:translate(-50%,-50%);background:#f00;border-radius:12px;opacity:.9}
.yt-lite .yt-play::before{content:"";position:absolute;left:27px;top:14px;border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff}

/* ============ SQ THEME: footer (antes plantilla 198) ============ */
@keyframes a { 
  0% { transform: rotate(0deg); }
  100% { transform: rotate(359deg); }
}
.elementor *, .elementor ::after, .elementor ::before { box-sizing: border-box; }
.elementor a { box-shadow: none; text-decoration: none; }
.elementor-element { --flex-direction: initial; --flex-wrap: initial; --justify-content: initial; --align-items: initial; --align-content: initial; --gap: initial; --flex-basis: initial; --flex-grow: initial; --flex-shrink: initial; --order: initial; --align-self: initial; align-self: var(--align-self); flex-basis: var(--flex-basis); flex-grow: var(--flex-grow); flex-shrink: var(--flex-shrink); order: var(--order); }
@keyframes eicon-spin { 
  0% { transform: rotate(0deg); }
  100% { transform: rotate(359deg); }
}
.elementor-section { position: relative; }
.elementor-section .elementor-container { display: flex; margin-inline: auto; position: relative; }
@media (max-width: 1024px){.elementor-section .elementor-container { flex-wrap: wrap; }}
.elementor-section.elementor-section-stretched { position: relative; width: 100%; }
.elementor-widget-wrap { align-content: flex-start; flex-wrap: wrap; position: relative; width: 100%; }
.elementor:not(.elementor-bc-flex-widget) .elementor-widget-wrap { display: flex; }
.elementor-widget-wrap > .elementor-element { width: 100%; }
.elementor-widget { position: relative; }
.elementor-column { display: flex; min-height: 1px; position: relative; }
@media (min-width: 768px){.elementor-column.elementor-col-100, .elementor-column[data-col="100"] { width: 100%; }}
@media (max-width: 767px){.elementor-column { width: 100%; }}
.elementor-element:where(:not(.e-con)):where(:not(.e-div-block-base)) .elementor-widget-container, .elementor-element:where(:not(.e-con)):where(:not(.e-div-block-base)):not(:has(.elementor-widget-container)) { transition: background .3s,border .3s,border-radius .3s,box-shadow .3s,transform var(--e-transform-transition-duration,.4s); }
@media (prefers-reduced-motion: reduce){html * { transition-delay: 0s !important; transition-duration: 0s !important; }}
.elementor-kit-6 a { color: rgb(15, 21, 98); }
.elementor-element { --widgets-spacing: 20px 20px; --widgets-spacing-row: 20px; --widgets-spacing-column: 20px; }
.elementor-198 .elementor-element.elementor-element-w1v567d { margin-top: 0px; margin-bottom: 0px; padding: 0px; }
.elementor-198 .elementor-element.elementor-element-uuwfr4i > .elementor-element-populated { margin: 0px; --e-column-margin-right: 0px; --e-column-margin-left: 0px; padding: 0px; }
@keyframes hide-scroll { 
  0%, 100% { overflow: hidden; }
}
body.sq-home section.elementor-top-section { padding-top: clamp(48px, 5vw, 76px) !important; padding-bottom: clamp(48px, 5vw, 76px) !important; }
body.sq-home .muted, body.sq-home .meta, body.sq-home .tag, body.sq-home small { color: rgb(90, 90, 90) !important; }
@keyframes marquee-scroll { 
  0% { transform: translateX(0px); }
  100% { transform: translateX(calc(-50%)); }
}
@media (max-width: 767px){@keyframes bounceRight { 
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(6px); }
}@keyframes fadeOutHint { 
  0%, 70% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}}
/* SQ THEME: espacio del header */
body{padding-top:120px}
@media (max-width:960px){body{padding-top:72px}}

.elementor-section.elementor-section-stretched{width:100%!important;left:auto!important}

/* SQ THEME: sq-v5 fixes (meta-row y chapter-nav) */
.sq-v5 .meta-label{display:block;font-family:"JetBrains Mono",monospace;font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#8a8273;margin-bottom:8px}
.sq-v5 .meta-value{display:block;font-size:15.5px;line-height:1.5;color:#1a1a1a}
.sq-v5 .chapter-nav .wrap{display:flex;gap:28px 36px;justify-content:center;flex-wrap:wrap}
.sq-v5 .chapter-nav .chapter-link{display:inline-flex;align-items:baseline;gap:8px}
.sq-v5 .chapter-nav .chapter-link-num{color:#b8884d}
.sq-v5 .chapter-nav br{display:none}
