/*
Theme Name: Suvetek Base
Theme URI: https://suvetek.es/
Author: Suvetek
Author URI: https://suvetek.es/
Description: Tema propio ligero para Suvetek. Cabecera tecnológica, desplegables accesibles, navegación móvil, footer y compatibilidad con Gutenberg/HTML personalizado.
Version: 1.0.11
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: suvetek-base
*/

:root{
  --sv-navy:#071b46;
  --sv-navy-2:#0a2d69;
  --sv-blue:#0758d9;
  --sv-cyan:#10c3ea;
  --sv-ink:#0d1830;
  --sv-muted:#62708a;
  --sv-line:#e5eaf2;
  --sv-bg:#f7f9fc;
  --sv-white:#fff;
  --sv-shadow:0 18px 50px rgba(7,27,70,.14);
  --sv-radius:16px;
  --sv-ease:cubic-bezier(.22,.61,.36,1);
  --sv-max:1440px;
}

html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--sv-ink);
  background:var(--sv-white);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.sv-menu-open{overflow:hidden}
img{max-width:100%;height:auto}
a{color:inherit}
.sv-skip{
  position:fixed;left:12px;top:-100px;z-index:100000;
  background:var(--sv-navy);color:#fff;padding:12px 16px;border-radius:8px;
  text-decoration:none;font-weight:700;
}
.sv-skip:focus{top:12px}
#primary{min-height:45vh}
.page-template-default #primary,.page #primary{width:100%}
.entry-content{margin:0}
.entry-content:after{content:"";display:table;clear:both}

/* Header */
#sv-theme-header{
  position:sticky;top:0;z-index:10000;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid rgba(7,27,70,.08);
  backdrop-filter:saturate(150%) blur(14px);
  -webkit-backdrop-filter:saturate(150%) blur(14px);
  transition:box-shadow .3s var(--sv-ease),border-color .3s var(--sv-ease);
}
body.admin-bar #sv-theme-header{top:32px}
#sv-theme-header.is-scrolled{
  border-color:transparent;
  box-shadow:0 8px 28px rgba(7,27,70,.09);
}
.sv-header-inner{
  max-width:var(--sv-max);height:82px;margin:0 auto;padding:0 clamp(20px,3.2vw,50px);
  display:flex;align-items:center;gap:clamp(18px,2.1vw,34px);
  box-sizing:border-box;
}
.sv-brand{
  flex:0 0 auto;display:flex;align-items:center;text-decoration:none;
  border-radius:8px;
}
.sv-brand:focus-visible,.sv-nav a:focus-visible,.sv-header-phone:focus-visible,
.sv-header-cta:focus-visible,.sv-mobile-toggle:focus-visible,.sv-drawer a:focus-visible,
.sv-drawer button:focus-visible,.sv-mobile-bar a:focus-visible{
  outline:3px solid rgba(16,195,234,.5);outline-offset:3px;
}
.sv-brand img{display:block;width:clamp(175px,13vw,224px);height:auto}
.sv-nav{margin-left:auto;align-self:stretch;display:flex;align-items:stretch}
.sv-nav-list{
  display:flex;align-items:stretch;gap:2px;margin:0;padding:0;list-style:none;
}
.sv-nav-item{position:relative;display:flex;align-items:stretch}
.sv-nav-link{
  position:relative;display:flex;align-items:center;gap:7px;padding:0 13px;
  text-decoration:none;color:#26334c;font-size:14px;font-weight:650;white-space:nowrap;
  transition:color .25s var(--sv-ease);
}
.sv-nav-link::after{
  content:"";position:absolute;left:13px;right:13px;bottom:19px;height:2px;
  background:linear-gradient(90deg,var(--sv-blue),var(--sv-cyan));
  transform:scaleX(0);transform-origin:left;transition:transform .28s var(--sv-ease);
}
.sv-nav-item:hover>.sv-nav-link,.sv-nav-item:focus-within>.sv-nav-link{color:var(--sv-blue)}
.sv-nav-item:hover>.sv-nav-link::after,.sv-nav-item:focus-within>.sv-nav-link::after{transform:scaleX(1)}
.sv-chevron{width:12px;height:12px;transition:transform .25s var(--sv-ease)}
.sv-nav-item:hover>.sv-nav-link .sv-chevron,.sv-nav-item:focus-within>.sv-nav-link .sv-chevron{transform:rotate(180deg)}
.sv-dropdown{
  position:absolute;top:calc(100% - 8px);left:50%;width:352px;padding:10px;
  transform:translate(-50%,10px);opacity:0;visibility:hidden;pointer-events:none;
  border:1px solid var(--sv-line);background:#fff;border-radius:18px;box-shadow:var(--sv-shadow);
  transition:opacity .22s var(--sv-ease),transform .22s var(--sv-ease),visibility .22s;
}
.sv-dropdown::before{content:"";position:absolute;left:0;right:0;top:-14px;height:16px}
.sv-nav-item:hover>.sv-dropdown,.sv-nav-item:focus-within>.sv-dropdown{
  opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0);
}
.sv-dropdown a{
  display:block;padding:12px 13px;border-radius:11px;text-decoration:none;
  transition:background .2s var(--sv-ease),transform .2s var(--sv-ease);
}
.sv-dropdown a:hover,.sv-dropdown a:focus-visible{background:#f4f8ff;transform:translateX(2px)}
.sv-drop-title{display:block;color:var(--sv-ink);font-size:14px;font-weight:750;line-height:1.25}
.sv-drop-desc{display:block;margin-top:3px;color:var(--sv-muted);font-size:11.5px;line-height:1.42}
.sv-header-actions{display:flex;align-items:center;gap:15px;flex:0 0 auto}
.sv-header-phone{
  display:flex;flex-direction:column;text-decoration:none;line-height:1.15;
}
.sv-header-phone small{
  color:#7b879d;font-size:9px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;
}
.sv-header-phone strong{margin-top:4px;color:var(--sv-navy);font-size:14px;font-weight:800;letter-spacing:.01em}
.sv-header-cta{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;
  border-radius:11px;background:linear-gradient(135deg,var(--sv-blue),#0649bc);
  box-shadow:0 9px 22px rgba(7,88,217,.20);color:#fff;text-decoration:none;
  font-size:12px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;
  transition:transform .25s var(--sv-ease),box-shadow .25s var(--sv-ease);
}
.sv-header-cta:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(7,88,217,.27)}
.sv-mobile-toggle{
  display:none;margin-left:auto;width:46px;height:46px;padding:0;border:1px solid var(--sv-line);
  border-radius:12px;background:#fff;color:var(--sv-navy);cursor:pointer;
}
.sv-mobile-toggle span,.sv-mobile-toggle::before,.sv-mobile-toggle::after{
  content:"";display:block;width:20px;height:2px;margin:4px auto;background:currentColor;
  border-radius:2px;transition:transform .3s var(--sv-ease),opacity .2s;
}
.sv-menu-open .sv-mobile-toggle span{opacity:0}
.sv-menu-open .sv-mobile-toggle::before{transform:translateY(6px) rotate(45deg)}
.sv-menu-open .sv-mobile-toggle::after{transform:translateY(-6px) rotate(-45deg)}

/* Mobile drawer */
.sv-drawer-overlay{
  position:fixed;inset:0;z-index:10020;background:rgba(5,17,43,.48);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s,var(--sv-ease),visibility .3s;
}
.sv-drawer{
  visibility:hidden;
  position:fixed;right:0;top:0;bottom:0;z-index:10030;width:min(92vw,440px);
  padding:96px 22px 90px;background:#fff;overflow:auto;box-sizing:border-box;
  transform:translateX(105%);transition:transform .36s var(--sv-ease);
  box-shadow:-20px 0 60px rgba(7,27,70,.17);
}
body.admin-bar .sv-drawer{padding-top:128px}
.sv-menu-open .sv-drawer-overlay{opacity:1;visibility:visible;pointer-events:auto}
.sv-menu-open .sv-drawer{transform:none;visibility:visible}
.sv-drawer-list,.sv-drawer-sub{list-style:none;margin:0;padding:0}
.sv-drawer-item{border-bottom:1px solid #edf0f5}
.sv-drawer-row{display:flex;align-items:center}
.sv-drawer-row>a{
  flex:1;padding:17px 2px;text-decoration:none;color:var(--sv-ink);font-size:16px;font-weight:750;
}
.sv-submenu-toggle{
  width:44px;height:44px;border:0;background:transparent;color:var(--sv-navy);cursor:pointer;
  display:grid;place-items:center;border-radius:10px;
}
.sv-submenu-toggle svg{width:16px;height:16px;transition:transform .25s var(--sv-ease)}
.sv-drawer-item.is-open>.sv-drawer-row .sv-submenu-toggle svg{transform:rotate(180deg)}
.sv-drawer-sub{display:none;padding:0 0 10px 12px}
.sv-drawer-item.is-open>.sv-drawer-sub{display:block}
.sv-drawer-sub a{
  display:block;padding:10px 12px;border-left:2px solid #e5ecf8;
  text-decoration:none;color:#58657c;font-size:14px;font-weight:600;
}
.sv-drawer-sub a:hover{color:var(--sv-blue);border-color:var(--sv-cyan)}
.sv-drawer-contact{margin-top:26px;padding:18px;border-radius:16px;background:#f4f8ff}
.sv-drawer-contact-label{font-size:11px;color:var(--sv-muted);font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.sv-drawer-contact strong{display:block;margin-top:6px;color:var(--sv-navy);font-size:21px}
.sv-drawer-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}
.sv-drawer-actions a{
  display:flex;justify-content:center;align-items:center;min-height:44px;border-radius:10px;
  text-decoration:none;font-size:12px;font-weight:800;
}
.sv-drawer-actions .primary{background:var(--sv-blue);color:#fff}
.sv-drawer-actions .secondary{background:#fff;border:1px solid #dce5f4;color:var(--sv-navy)}

/* Footer */
#sv-theme-footer{
  position:relative;z-index:2;background:#061533;color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
.sv-footer-inner{max-width:var(--sv-max);margin:0 auto;padding:66px clamp(20px,4vw,56px) 28px}
.sv-footer-grid{
  display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:clamp(30px,4vw,70px);
}
.sv-footer-brand{font-size:25px;font-weight:900;letter-spacing:.08em}
.sv-footer-brand span{background:linear-gradient(90deg,#3abfff,#0c72ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.sv-footer-desc{max-width:37ch;margin:15px 0 0;color:#aebbd0;font-size:14px;line-height:1.72}
.sv-footer-title{margin:0 0 16px;color:#fff;font-size:11px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
.sv-footer-links{list-style:none;margin:0;padding:0}
.sv-footer-links li+li{margin-top:10px}
.sv-footer-links a{color:#aebbd0;text-decoration:none;font-size:14px;transition:color .2s}
.sv-footer-links a:hover{color:#fff}
.sv-footer-contact a{display:block;color:#fff;text-decoration:none;font-size:15px;font-weight:720;margin-bottom:9px}
.sv-footer-contact p{margin:12px 0 0;color:#97a7c0;font-size:13px;line-height:1.65}
.sv-footer-bottom{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin-top:48px;padding-top:22px;border-top:1px solid rgba(255,255,255,.12);
  color:#8797b1;font-size:12px;
}
.sv-footer-legal{display:flex;flex-wrap:wrap;gap:16px}
.sv-footer-legal a{color:#9eacc1;text-decoration:none}
.sv-footer-legal a:hover{color:#fff}

/* Mobile fixed actions */
.sv-mobile-bar{display:none}

/* WordPress fallback content */
.sv-content-shell{max-width:1180px;margin:0 auto;padding:64px 24px}
.sv-content-shell h1,.sv-content-shell h2,.sv-content-shell h3{color:var(--sv-navy);line-height:1.15}
.sv-content-shell a{color:var(--sv-blue)}
.sv-content-shell p,.sv-content-shell li{line-height:1.75}
.sv-404{text-align:center;padding:110px 24px}
.sv-404 h1{font-size:clamp(38px,7vw,72px);margin:0;color:var(--sv-navy)}
.sv-404 p{color:var(--sv-muted);font-size:18px}
.sv-404 a{display:inline-flex;margin-top:18px;padding:13px 20px;border-radius:10px;background:var(--sv-blue);color:#fff;text-decoration:none;font-weight:800}

/* Responsive */
@media (max-width:1320px){
  .sv-header-phone{display:none}
  .sv-header-inner{gap:16px}
  .sv-nav-link{padding-left:10px;padding-right:10px;font-size:13px}
}
@media (max-width:1080px){
  .sv-nav,.sv-header-cta{display:none}
  .sv-mobile-toggle{display:block}
  .sv-header-inner{height:72px}
  .sv-brand img{width:190px}
  .sv-footer-grid{grid-template-columns:1.25fr 1fr 1fr}
  .sv-footer-grid>div:nth-child(4){grid-column:2/4}
}
@media (max-width:782px){
  body.admin-bar #sv-theme-header{top:46px}
}
@media (max-width:720px){
  body{padding-bottom:62px}
  .sv-header-inner{padding:0 16px}
  .sv-brand img{width:165px}
  .sv-drawer{width:100%;padding-left:20px;padding-right:20px}
  .sv-footer-inner{padding-top:52px}
  .sv-footer-grid{grid-template-columns:1fr;gap:34px}
  .sv-footer-grid>div:nth-child(4){grid-column:auto}
  .sv-footer-bottom{align-items:flex-start;flex-direction:column}
  .sv-mobile-bar{
    position:fixed;left:0;right:0;bottom:0;z-index:9990;height:62px;
    display:grid;grid-template-columns:repeat(3,1fr);background:#fff;
    border-top:1px solid #dce4f1;box-shadow:0 -10px 28px rgba(7,27,70,.10);
  }
  .sv-mobile-bar a{
    position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    color:#34425a;text-decoration:none;font-size:10px;font-weight:800;
  }
  .sv-mobile-bar a+a::before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:1px;background:#e5eaf2}
  .sv-mobile-bar svg{width:18px;height:18px;color:var(--sv-blue)}
  .sv-mobile-bar .sv-mobile-budget{color:#fff;background:linear-gradient(135deg,var(--sv-blue),#0649bc)}
  .sv-mobile-bar .sv-mobile-budget svg{color:#fff}
  .sv-mobile-bar .sv-mobile-budget::before{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* Mantener el botón de cierre por encima del panel móvil. */
.sv-menu-open #sv-theme-header{z-index:10040}

/* Contraste del texto azul sobre tarjetas claras de packs. */
.sv-packs-page .sv-pack-card:not(.sv-pack-card--featured) .sv-pack-card__tag,
.sv-packs-page .sv-btn--ghost,
.sv-packs-page .sv-software-card--monthly .sv-software-card__badge{color:#1d4ed8}


/* Equipos nuevos y acceso informativo a VeriFactu. */
#primary .sv-product-condition{
  display:inline-flex;align-items:center;gap:8px;max-width:100%;box-sizing:border-box;
  margin:16px 0 4px;padding:8px 12px;border:1px solid #a7e3c6;border-radius:10px;
  background:#ecfdf5;color:#14532d;font-family:inherit;font-size:13px;font-weight:700;line-height:1.5;
}
#primary .sv-product-condition span{flex:none;font-size:16px;line-height:1}
#primary .sv-vf-cta{padding:48px clamp(20px,4vw,56px);background:#eef5ff;color:#0d1830}
.sv-vf-cta-inner{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:28px}
#primary .sv-vf-eyebrow{margin:0 0 8px;color:#0758d9;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
#primary .sv-vf-cta h2{margin:0;color:#071b46;font-size:clamp(24px,3vw,32px);line-height:1.2;letter-spacing:-.02em}
#primary .sv-vf-copy{max-width:65ch;margin:12px 0 0;color:#465773;font-size:16px;line-height:1.65}
#primary .sv-vf-button{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 22px;border-radius:12px;background:#0758d9;color:#fff;text-decoration:none;font-size:14px;font-weight:800;box-sizing:border-box}
#primary .sv-vf-button:hover{background:#0648b1}
#primary .sv-vf-button:focus-visible{outline:3px solid #071b46;outline-offset:4px}
.sv-footer-new{max-width:37ch;margin:14px 0 0;color:#d9f7e8;font-size:13px;font-weight:700;line-height:1.6}
#instalaciones-reales{scroll-margin-top:130px}
@media(max-width:1440px){.sv-header-phone{display:none}.sv-header-inner{gap:16px}.sv-nav-link{padding-left:10px;padding-right:10px;font-size:13px}}
@media(max-width:1180px){.sv-nav,.sv-header-cta{display:none}.sv-mobile-toggle{display:block}.sv-header-inner{height:72px}.sv-brand img{width:190px}}
@media(max-width:720px){.sv-vf-cta-inner{align-items:flex-start;flex-direction:column;gap:22px}#primary .sv-vf-button{width:100%}.sv-brand img{width:165px}}

/* VeriFactu: identificación del software junto a los packs. */
#primary .sv-vf-product-proof{margin:12px 0 20px}
#primary a.sv-verifactu-badge{display:inline-flex;align-items:center;gap:10px;max-width:100%;box-sizing:border-box;padding:8px 12px;margin:6px 0 16px;border:1px solid #dbe5f2;border-radius:10px;background:#fff;color:#183755;text-decoration:none;font-family:inherit;font-size:13px;font-weight:700;line-height:1.4;vertical-align:middle}
#primary a.sv-verifactu-badge img{display:block;flex:none;width:112px;max-width:100%;height:auto;margin:0;border:0;border-radius:0;box-shadow:none;object-fit:contain}
#primary a.sv-verifactu-badge span{min-width:0}
#primary a.sv-verifactu-badge:hover{border-color:#2563eb;color:#0758d9}
#primary a.sv-verifactu-badge:focus-visible{outline:3px solid #0758d9;outline-offset:4px}
#primary .sv-vf-guide-brand{margin:20px 0}
#primary .sv-vf-guide-brand img{display:block;width:220px;max-width:100%;height:auto;padding:10px 14px;border-radius:12px;background:#fff;box-sizing:border-box}
@media(max-width:480px){#primary a.sv-verifactu-badge{gap:8px;flex-wrap:wrap}#primary a.sv-verifactu-badge img{width:104px}}

/* Contraste de etiquetas e indicadores informativos. */
#primary .suvetek-cashkeeper-modular .sv-arrow{color:#52627a}
#primary .sv-price-cashdro .sv-price-cashdro-incl li{color:#174ea6}
#primary .sv-price-cashdro .sv-price-cashdro-tag,
#primary .sv-price-cashdro .sv-price-cashdro-ico{color:#174ea6}
#primary .sv-price-cashdro .sv-price-cashdro-dark .sv-price-cashdro-hl p{color:#e2e8f0}

/* Contraste de la tarjeta de integración y del botón de WhatsApp del artículo. */
#primary .sv-price-cashdro .sv-price-cashdro-dark .sv-price-cashdro-flow .sv-price-cashdro-hl{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
#primary .sv-price-cashdro .sv-price-cashdro-dark .sv-price-cashdro-hl p{color:#fff}
#primary .sv-price-cashdro .sv-price-cashdro-dark .sv-price-cashdro-tag{color:#93c5fd}
#primary .sv-price-cashdro .sv-price-cashdro-btn--wa{background:#166534;color:#fff}
#primary .sv-price-cashdro .sv-price-cashdro-btn--wa:hover{background:#14532d;color:#fff}

/* Lectura de etiquetas y acciones en la guía de rentabilidad. */
#primary .sv-worth-cashdro .sv-worth-cashdro-tag,
#primary .sv-worth-cashdro .sv-worth-cashdro-ico,
#primary .sv-worth-cashdro .sv-worth-cashdro-link{color:#174ea6}
#primary .sv-worth-cashdro .sv-worth-cashdro-dark .sv-worth-cashdro-tag{color:#93c5fd}
#primary .sv-worth-cashdro .sv-worth-cashdro-dark .sv-worth-cashdro-flow .sv-worth-cashdro-hl{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
#primary .sv-worth-cashdro .sv-worth-cashdro-dark .sv-worth-cashdro-hl p{color:#fff}
#primary .sv-worth-cashdro .sv-worth-cashdro-btn--wa{background:#166534;color:#fff}
#primary .sv-worth-cashdro .sv-worth-cashdro-btn--wa:hover{background:#14532d;color:#fff}

/* Guías de apoyo: bloque breve al final de las fichas comerciales. */
#primary .sv-related-guides{padding:28px clamp(20px,4vw,56px);border-top:1px solid #dbe4f0;background:#f8fafc;color:#0f172a}
.sv-related-guides-inner{max-width:1180px;margin:0 auto}
#primary .sv-related-guides h2{margin:0 0 14px;font-size:21px;line-height:1.3;color:#0f172a}
#primary .sv-related-guides ul{display:flex;flex-wrap:wrap;gap:10px 34px;margin:0;padding-left:20px;list-style:disc}
#primary .sv-related-guides li{margin:0;line-height:1.6}
#primary .sv-related-guides a{color:#174ea6;text-decoration:underline;text-underline-offset:3px}
@media(max-width:720px){#primary .sv-related-guides ul{display:grid;gap:10px}}
