/*
Theme Name: WebsDirect Blog
Theme URI: https://www.websdirect.es/
Author: WebsDirect
Author URI: https://www.websdirect.es/
Description: Tema de blog para WebsDirect. Homepage del blog con bloques por categoría, listado de categoría y entrada individual, con barra lateral izquierda.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: websdirect
*/


  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy: #0D1B2A;
    --navy-mid: #1A2E45;
    --teal: #00A896;
    --teal-light: #E0F5F3;
    --teal-dark: #007A6C;
    --accent: #FF6B35;
    --accent-light: #FFF0EB;
    --gray-100: #F8F9FA;
    --gray-200: #EAECEF;
    --gray-400: #9BA3AE;
    --gray-600: #5C6370;
    --gray-900: #1C2128;
    --white: #FFFFFF;
    --font: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, 'Segoe UI', system-ui, sans-serif;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  }

  html { scroll-behavior: smooth; }
  body { font-family: var(--font-sans); color: var(--gray-900); background: var(--white); line-height: 1.7; font-size: 16px; }

  /* NAV */
  body > nav { position: sticky; top: 0; z-index: 100; background: var(--navy); padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .logo { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: -0.3px; text-decoration: none; }
  .logo span { color: var(--teal); }
  .nav-links { display: flex; gap: 28px; align-items: center; }
  .nav-links a { color: rgba(255,255,255,0.72); font-size: 13px; text-decoration: none; transition: color .2s; }
  .nav-links a:hover, .nav-links a.active { color: var(--white); }
  .nav-cta { background: var(--teal); color: var(--white) !important; padding: 8px 18px; border-radius: var(--radius); font-weight: 600; font-size: 13px !important; transition: background .2s !important; }
  .nav-cta:hover { background: var(--teal-dark) !important; }

  /* BREADCRUMB */
  .breadcrumb { background: var(--gray-100); border-bottom: 1px solid var(--gray-200); padding: 12px 40px; }
  .breadcrumb-inner { max-width: 1180px; margin: 0 auto; font-size: 13px; color: var(--gray-400); }
  .breadcrumb-inner a { color: var(--gray-600); text-decoration: none; }
  .breadcrumb-inner a:hover { color: var(--teal-dark); }
  .breadcrumb-inner span { margin: 0 8px; color: var(--gray-400); }
  .breadcrumb-inner .current { color: var(--gray-900); font-weight: 500; }

  /* HERO */
  .hero { background: var(--navy); padding: 64px 40px 56px; position: relative; overflow: hidden; }
  .hero::before { content: ''; position: absolute; top: -120px; right: -80px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(0,168,150,0.12) 0%, transparent 70%); pointer-events: none; }
  .hero-inner { max-width: 1180px; margin: 0 auto; position: relative; }
  .hero-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,168,150,0.15); border: 1px solid rgba(0,168,150,0.3); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px; }
  .hero-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
  .hero-pill span { font-size: 12px; color: var(--teal); font-weight: 500; letter-spacing: 0.04em; }
  .hero h1 { font-family: var(--font); font-size: 42px; font-weight: 700; color: var(--white); line-height: 1.18; margin-bottom: 18px; letter-spacing: -0.5px; }
  .hero-lead { font-size: 17px; color: rgba(255,255,255,0.70); max-width: 720px; line-height: 1.7; }

  /* ACCESO CATEGORÍAS */
  .cat-access { background: var(--navy-mid); padding: 22px 40px; }
  .cat-access-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .cat-access-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); flex-shrink: 0; }
  .cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .cat-chip { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.82); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 15px; text-decoration: none; transition: all .2s; }
  .cat-chip:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

  /* LAYOUT */
  .layout { max-width: 1180px; margin: 0 auto; padding: 56px 40px; display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
  .layout .sidebar { order: -1; }
  .layout main { order: 0; }
  .section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px; display: block; }
  h2 { font-family: var(--font); font-size: 28px; font-weight: 700; color: var(--gray-900); line-height: 1.25; letter-spacing: -0.3px; }

  /* RECENT GRID */
  .feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
  .posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .post-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
  .post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-100); }
  .post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
  .post-card:hover .post-thumb img { transform: scale(1.04); }
  .post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
  .post-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
  .post-cat { font-size: 11px; font-weight: 600; color: var(--teal-dark); background: var(--teal-light); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
  .post-cat:hover { background: var(--teal); color: var(--white); }
  .post-card h3 { font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 9px; }
  .post-card h3 a { color: var(--gray-900); text-decoration: none; }
  .post-card h3 a:hover { color: var(--teal-dark); }
  .post-excerpt { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin: 0 0 14px; flex: 1; }
  .post-more { font-size: 13px; font-weight: 600; color: var(--teal-dark); text-decoration: none; align-self: flex-start; }
  .post-more:hover { color: var(--teal); }
  .no-results { display: none; padding: 40px 0; color: var(--gray-600); font-size: 15px; }

  /* SEARCH */
  .search-box { position: relative; margin-bottom: 28px; }
  .search-box input { width: 100%; padding: 12px 16px 12px 42px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; font-family: var(--font-sans); background: var(--gray-100); color: var(--gray-900); transition: border-color .2s, background .2s; }
  .search-box input:focus { outline: none; border-color: var(--teal); background: var(--white); }
  .search-box::before { content: '⌕'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--gray-400); }

  /* SIDEBAR */
  .sidebar { position: sticky; top: 80px; }
  .widget { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 22px 22px 24px; margin-bottom: 22px; }
  .widget-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-900); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
  .cat-list { list-style: none; }
  .cat-list > li { margin-bottom: 4px; }
  .cat-list a { font-size: 14px; color: var(--gray-900); text-decoration: none; display: block; padding: 6px 0; transition: color .2s; }
  .cat-list > li > a { font-weight: 600; }
  .cat-list a:hover { color: var(--teal-dark); }
  .subcat-list { list-style: none; margin: 2px 0 8px 14px; padding-left: 12px; border-left: 1px solid var(--gray-200); }
  .subcat-list a { font-size: 13px; color: var(--gray-600); padding: 4px 0; }
  .subcat-list a::before { content: '→ '; color: var(--gray-400); }
  .recent-list { list-style: none; }
  .recent-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--gray-200); }
  .recent-item:last-child { border-bottom: none; padding-bottom: 0; }
  .recent-thumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--gray-100); }
  .recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .recent-item a.recent-link { font-size: 13px; font-weight: 500; color: var(--gray-900); text-decoration: none; line-height: 1.4; }
  .recent-item a.recent-link:hover { color: var(--teal-dark); }
  .widget-cta { background: var(--navy); border-radius: var(--radius-lg); padding: 24px 22px; }
  .widget-cta h4 { color: var(--white); font-family: var(--font); font-size: 18px; margin-bottom: 8px; }
  .widget-cta p { color: rgba(255,255,255,0.65); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
  .widget-cta a { background: var(--teal); color: var(--white); display: block; text-align: center; padding: 11px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s; }
  .widget-cta a:hover { background: var(--teal-dark); }

  /* CATEGORY SECTIONS */
  .cat-sections { max-width: 1180px; margin: 0 auto; padding: 0 40px 64px; }
  .cat-section { padding-top: 44px; border-top: 1px solid var(--gray-200); margin-top: 44px; }
  .cat-section:first-child { border-top: none; margin-top: 0; padding-top: 0; }
  .cat-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
  .cat-section-head h2 { font-size: 24px; }
  .ver-todo { font-size: 14px; font-weight: 600; color: var(--teal-dark); text-decoration: none; white-space: nowrap; }
  .ver-todo:hover { color: var(--teal); }
  .cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .mini-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
  .mini-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
  .mini-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-100); }
  .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .mini-body { padding: 13px 14px 15px; }
  .mini-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 6px; display: block; }
  .mini-card h3 { font-size: 13px; font-weight: 600; line-height: 1.4; }
  .mini-card h3 a { color: var(--gray-900); text-decoration: none; }
  .mini-card h3 a:hover { color: var(--teal-dark); }

  /* PAGINATION */
  .pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
  .pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--gray-600); text-decoration: none; transition: all .2s; }
  .pagination a:hover { border-color: var(--teal); color: var(--teal-dark); }
  .pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .pagination .dots { border: none; color: var(--gray-400); }

  /* SERVICES BAND */
  .services-band { background: var(--gray-100); border-top: 1px solid var(--gray-200); padding: 64px 40px; }
  .services-inner { max-width: 1180px; margin: 0 auto; }
  .services-inner .section-label { text-align: center; }
  .services-inner h2 { text-align: center; margin-bottom: 36px; }
  .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .service-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; text-decoration: none; display: block; transition: box-shadow .2s, transform .2s; }
  .service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .service-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
  .service-card h3 { font-size: 15px; color: var(--gray-900); margin-bottom: 6px; }
  .service-card p { font-size: 13px; color: var(--gray-600); margin: 0; line-height: 1.55; }

  /* CTA BANNER */
  .cta-section { padding: 64px 40px; }
  .cta-banner { max-width: 1180px; margin: 0 auto; background: var(--navy); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; }
  .cta-banner .section-label { color: var(--teal); }
  .cta-banner h2 { color: var(--white); margin-bottom: 14px; }
  .cta-banner p { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 32px; font-size: 16px; }
  .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .btn-primary { background: var(--teal); color: var(--white); padding: 14px 30px; border-radius: var(--radius); font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s, transform .1s; display: inline-block; }
  .btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
  .btn-ghost { background: transparent; color: var(--white); padding: 14px 30px; border-radius: var(--radius); font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid rgba(255,255,255,0.25); transition: border-color .2s, background .2s; display: inline-block; }
  .btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
  .cta-contact { font-size: 13px; color: rgba(255,255,255,0.40); margin-top: 20px; }
  .cta-contact a { color: var(--teal); text-decoration: none; }

  /* FOOTER */
  footer { background: var(--gray-900); padding: 56px 40px 32px; }
  .footer-inner { max-width: 1180px; margin: 0 auto; }
  .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.10); }
  .footer-brand .logo { font-size: 22px; }
  .footer-brand p { color: var(--gray-400); font-size: 13px; line-height: 1.7; margin-top: 14px; }
  .footer-brand .contact-line { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 14px; }
  .footer-brand .contact-line a { color: var(--teal); text-decoration: none; }
  .footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 9px; }
  .footer-col a { color: var(--gray-400); font-size: 13px; text-decoration: none; transition: color .2s; }
  .footer-col a:hover { color: var(--white); }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; }
  .footer-bottom p { color: var(--gray-400); font-size: 12px; margin: 0; }
  .footer-bottom .legal { display: flex; gap: 16px; flex-wrap: wrap; }
  .footer-bottom .legal a { color: var(--gray-400); font-size: 12px; text-decoration: none; }
  .footer-bottom .legal a:hover { color: var(--white); }

  /* RESPONSIVE */
  @media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; gap: 36px; }
    .layout .sidebar { order: 1; }
    .layout main { order: 0; }
    .sidebar { position: static; }
    .cat-row { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 680px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .breadcrumb, .hero, .cat-access, .services-band, .cta-section { padding-left: 20px; padding-right: 20px; }
    .layout, .cat-sections { padding-left: 20px; padding-right: 20px; }
    .hero { padding-top: 48px; padding-bottom: 44px; }
    .hero h1 { font-size: 30px; }
    .hero-lead { font-size: 15px; }
    .posts-grid { grid-template-columns: 1fr; }
    .cat-row { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    h2 { font-size: 24px; }
    .cta-banner { padding: 40px 24px; }
  }

  /* HOME — BLOQUES POR CATEGORÍA (3 columnas) */
  .cat-block { margin-bottom: 56px; }
  .cat-block:last-child { margin-bottom: 0; }
  .cat-block-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:22px; padding-bottom:14px; border-bottom:1px solid var(--gray-200); flex-wrap:wrap; }
  .cat-block-head h2 { font-family:var(--font); font-size:26px; font-weight:700; line-height:1.2; letter-spacing:-0.3px; margin-bottom:6px; }
  .cat-block-head h2 a { color:var(--gray-900); text-decoration:none; }
  .cat-block-head h2 a:hover { color:var(--teal-dark); }
  .cat-block-desc { font-size:14px; color:var(--gray-600); margin:0; max-width:560px; line-height:1.55; }
  .cat-block-head .ver-todo { font-size:14px; font-weight:600; color:var(--teal-dark); text-decoration:none; white-space:nowrap; flex-shrink:0; }
  .cat-block-head .ver-todo:hover { color:var(--teal); }
  .cat-block-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }

  /* Acceso a todas las categorías incluye también un enlace a "ver todas" */
  .cat-access-link { font-size:13px; font-weight:600; color:var(--teal); text-decoration:none; margin-left:6px; white-space:nowrap; }
  .cat-access-link:hover { color:var(--white); }

  @media (max-width:980px){
    .cat-block-grid { grid-template-columns:1fr 1fr; }
  }
  @media (max-width:680px){
    .cat-block-grid { grid-template-columns:1fr; }
    .cat-block-head h2 { font-size:22px; }
  }


  /* CATEGORY EXTRAS */
  .cat-hero-chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:22px; }
  .cat-hero-chips a { font-size:13px; font-weight:500; color:rgba(255,255,255,0.82); background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14); border-radius:999px; padding:6px 15px; text-decoration:none; transition:all .2s; }
  .cat-hero-chips a:hover, .cat-hero-chips a.active { background:var(--teal); border-color:var(--teal); color:var(--white); }
  .cat-desc { max-width:1180px; margin:0 auto; padding:0 40px; }
  .cat-desc-inner { background:var(--gray-100); border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:28px 32px; margin-top:8px; }
  .cat-desc-inner h2 { font-size:20px; margin-bottom:10px; }
  .cat-desc-inner p { font-size:15px; color:var(--gray-600); margin:0; line-height:1.7; }
  @media (max-width:680px){ .cat-desc{ padding:0 20px; } .cat-desc-inner{ padding:22px 20px; } }


  /* POST EXTRAS */
  .post-header { max-width:1180px; margin:0 auto; padding:48px 40px 0; }
  .post-header .post-cats { margin-bottom:14px; }
  .post-header h1 { font-family:var(--font); font-size:40px; font-weight:700; line-height:1.2; letter-spacing:-0.5px; color:var(--gray-900); margin-bottom:18px; }
  .post-meta { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding-bottom:22px; border-bottom:1px solid var(--gray-200); }
  .post-author-mini { display:flex; align-items:center; gap:10px; }
  .author-avatar { width:42px; height:42px; border-radius:50%; background:var(--navy); color:var(--teal); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; flex-shrink:0; }
  .post-author-mini .name { font-size:14px; font-weight:600; color:var(--gray-900); }
  .post-author-mini .role { font-size:12px; color:var(--gray-400); }
  .post-meta .dot { color:var(--gray-200); }
  .post-meta .meta-item { font-size:13px; color:var(--gray-600); }
  .post-share { display:flex; gap:8px; margin-left:auto; }
  .post-share a { width:34px; height:34px; border-radius:50%; border:1px solid var(--gray-200); display:flex; align-items:center; justify-content:center; font-size:14px; color:var(--gray-600); text-decoration:none; transition:all .2s; }
  .post-share a:hover { border-color:var(--teal); color:var(--teal-dark); background:var(--teal-light); }
  .feature-image { max-width:1180px; margin:28px auto 0; padding:0 40px; }
  .feature-image img { width:100%; border-radius:var(--radius-lg); display:block; aspect-ratio:16/7; object-fit:cover; }

  .post-layout { max-width:1180px; margin:0 auto; padding:48px 40px 16px; display:grid; grid-template-columns:300px 1fr; gap:48px; align-items:start; }
  .post-layout .sidebar { order:-1; position:static; top:auto; }
  .post-layout article.prose { order:0; min-width:0; }
  .post-layout .toc { position:static; }

  .toc { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:28px 26px; margin-bottom:22px; }
  .toc .widget-title { font-size:14px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--gray-900); margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--gray-200); }
  .toc ol { list-style:none; counter-reset:toc; }
  .toc li { counter-increment:toc; margin-bottom:6px; }
  .toc a { font-size:15px; color:var(--gray-600); text-decoration:none; display:flex; align-items:flex-start; gap:11px; padding:7px 0; line-height:1.5; transition:color .2s; }
  .toc a::before { content:counter(toc); font-weight:700; color:var(--teal-dark); flex-shrink:0; }
  .toc a:hover, .toc a.active { color:var(--teal-dark); }

  .prose h2 { font-family:var(--font); font-size:26px; font-weight:700; color:var(--gray-900); line-height:1.3; margin:38px 0 14px; scroll-margin-top:76px; letter-spacing:-0.3px; }
  .prose h2:first-child { margin-top:0; }
  .prose h3 { font-size:19px; font-weight:600; color:var(--gray-900); margin:26px 0 10px; }
  .prose p { font-size:16.5px; color:var(--gray-600); line-height:1.8; margin-bottom:18px; }
  .prose ul { margin:0 0 20px 4px; padding-left:22px; }
  .prose li { font-size:16px; color:var(--gray-600); line-height:1.75; margin-bottom:8px; }
  .prose strong { color:var(--gray-900); }
  .prose blockquote { border-left:3px solid var(--teal); background:var(--gray-100); padding:18px 22px; border-radius:0 var(--radius) var(--radius) 0; margin:24px 0; font-size:16px; color:var(--gray-900); font-style:italic; }

  .inline-cta { background:var(--navy); border-radius:var(--radius-lg); padding:32px 36px; margin:36px 0; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
  .inline-cta-text h3 { font-family:var(--font); font-size:21px; color:var(--white); margin-bottom:6px; }
  .inline-cta-text p { font-size:14px; color:rgba(255,255,255,0.65); margin:0; line-height:1.6; }
  .inline-cta a { background:var(--teal); color:var(--white); padding:13px 26px; border-radius:var(--radius); font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap; transition:background .2s; }
  .inline-cta a:hover { background:var(--teal-dark); }

  .faq-block { margin:40px 0 8px; }
  .faq-block h2 { font-family:var(--font); font-size:26px; margin-bottom:18px; }
  .faq-item { border-bottom:1px solid var(--gray-200); }
  .faq-q { width:100%; text-align:left; background:none; border:none; padding:18px 0; font-size:16px; font-weight:600; color:var(--gray-900); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; font-family:var(--font-sans); line-height:1.4; }
  .faq-icon { flex-shrink:0; width:24px; height:24px; border-radius:50%; border:1.5px solid var(--gray-400); display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--gray-400); transition:all .2s; }
  .faq-q.open .faq-icon { background:var(--teal); border-color:var(--teal); color:var(--white); transform:rotate(45deg); }
  .faq-a { font-size:15.5px; color:var(--gray-600); padding-bottom:18px; line-height:1.75; display:none; }
  .faq-a.open { display:block; }

  .author-box { display:flex; gap:18px; align-items:flex-start; background:var(--gray-100); border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:24px; margin:36px 0; }
  .author-box .author-avatar { width:56px; height:56px; font-size:18px; }
  .author-box h4 { font-size:16px; color:var(--gray-900); margin-bottom:4px; }
  .author-box .role { font-size:13px; color:var(--teal-dark); font-weight:600; margin-bottom:8px; }
  .author-box p { font-size:14px; color:var(--gray-600); margin:0; line-height:1.65; }

  /* RELACIONADOS */
  .related { max-width:1180px; margin:0 auto; padding:24px 40px 56px; }
  .related h2 { font-family:var(--font); font-size:26px; margin-bottom:24px; }
  .related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }

  @media (max-width:980px){
    .post-layout { grid-template-columns:1fr; gap:32px; }
    .post-layout .sidebar { order:1; position:static; }
    .post-layout .toc { position:static; max-height:none; overflow:visible; }
    .related-grid { grid-template-columns:1fr 1fr; }
  }
  @media (max-width:680px){
    .post-header { padding:36px 20px 0; }
    .post-header h1 { font-size:28px; }
    .feature-image { padding:0 20px; }
    .feature-image img { aspect-ratio:16/10; }
    .post-layout { padding:36px 20px 8px; }
    .post-share { margin-left:0; }
    .related { padding:16px 20px 44px; }
    .related-grid { grid-template-columns:1fr; }
    .inline-cta { padding:26px 22px; }
  }



































/* =====================================================
   WEBS DIRECT HEADER DESKTOP + MOBILE
   CSS limpio definitivo
   Desktop + Android Chrome + iOS Safari
===================================================== */

/* ===============================
   VARIABLES GLOBALES
=============================== */

:root {
  --wd-header-height: 56px;
  --wd-admin-offset: 0px;
}

@media (min-width: 783px) {
  body.admin-bar {
    --wd-admin-offset: 32px;
  }
}

@media (max-width: 782px) {
  body.admin-bar {
    --wd-admin-offset: 46px;
  }
}

body {
  margin: 0 !important;
  padding-top: var(--wd-header-height) !important;
}

.page,
.page-wrapper,
.page-body {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html,
body {
  overflow-x: hidden !important;
}

body.wd-menu-open {
  overflow: hidden !important;
}

/* ===============================
   RESET HEADER DIVI
=============================== */

.et-l--header,
.et-l--header .et_builder_inner_content,
.et-l--header .et_pb_section,
.et-l--header .et_pb_row,
.et-l--header .et_pb_column,
.et-l--header .et_pb_module,
.et-l--header .et_pb_code,
.et-l--header .et_pb_code_inner {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.wd-header-section,
.wd-header-row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* ===============================
   VARIABLES DEL MENÚ
=============================== */

#wd-megamenu,
#wd-mobile-menu {
  --navy: #0D1B2A;
  --teal: #00A896;
  --teal-bg: #E0F5F3;
  --teal-dk: #007A6C;
  --gray-50: #F8F9FA;
  --gray-100: #EAECEF;
  --gray-200: #D1D5DB;
  --gray-400: #9BA3AE;
  --gray-600: #5C6370;
  --gray-900: #1C2128;
  --white: #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --r: 8px;
  --rl: 14px;

  font-family: var(--font);
  box-sizing: border-box;
}

#wd-megamenu *,
#wd-megamenu *::before,
#wd-megamenu *::after,
#wd-mobile-menu *,
#wd-mobile-menu *::before,
#wd-mobile-menu *::after {
  box-sizing: border-box;
}

#wd-megamenu a,
#wd-mobile-menu a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   LOGOS
=============================== */

.logo-img {
  display: flex !important;
  align-items: center !important;
}

.logo-img img {
  display: block !important;
  width: auto !important;
  object-fit: contain !important;
}

#wd-megamenu .logo-img img {
  height: 24px !important;
  max-width: 220px !important;
  transform: scale(1.55) !important;
  transform-origin: left center !important;
}

#wd-mobile-menu .mobile-logo img {
  height: 90px !important;
  max-width: 190px !important;
  transform: scale(1.22) !important;
  transform-origin: left center !important;
}

#wd-mobile-menu .drawer-logo img {
  height: 32px !important;
  max-width: 150px !important;
}

/* =====================================================
   MENÚ ESCRITORIO
===================================================== */

#wd-megamenu {
  display: block;
  width: 100%;
  line-height: 1;
  position: relative;
  z-index: 99999;
}

#wd-megamenu .wd-desktop-nav {
  position: fixed;
  top: var(--wd-admin-offset) !important;
  left: 0;
  right: 0;
  z-index: 99999;
  width: 100%;
  height: var(--wd-header-height);
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: none;
}

#wd-megamenu .logo {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-right: 24px;
  white-space: nowrap;
  flex-shrink: 0;
}

#wd-megamenu .logo span {
  color: var(--teal);
}

#wd-megamenu .nav-items {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 0 1 auto;
  margin-left: auto;
}

#wd-megamenu .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

#wd-megamenu .nav-btn,
#wd-megamenu .nav-link-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: var(--wd-header-height);
  padding: 0 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  white-space: nowrap;
  line-height: 1;
  transition: color .15s, background .15s;
}

#wd-megamenu .nav-btn {
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

#wd-megamenu .nav-btn:hover,
#wd-megamenu .nav-btn.active,
#wd-megamenu .nav-item:hover .nav-btn,
#wd-megamenu .nav-link-simple:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

#wd-megamenu .nav-btn svg {
  display: block;
  width: 10px;
  height: 6px;
  margin: 0;
  position: relative;
  top: 1px;
  flex-shrink: 0;
  transition: transform .2s;
}

#wd-megamenu .nav-btn.active svg,
#wd-megamenu .nav-item:hover .nav-btn svg {
  transform: rotate(180deg);
}

#wd-megamenu .nav-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  line-height: 1;
  font-size: 10px;
  background: var(--teal);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 600;
}

#wd-megamenu .nav-end {
  margin-left: 16px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 10px;
  flex-shrink: 0;
}

#wd-megamenu .btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  background: var(--teal);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  line-height: 1;
}

#wd-megamenu .btn-nav-cta:hover {
  background: var(--teal-dk);
  color: #fff;
}

/* ===============================
   MEGA MENÚ ESCRITORIO
=============================== */

#wd-megamenu .mega {
  position: absolute;
  top: var(--wd-header-height);
  left: -20px;
  z-index: 999999;
  min-width: 680px;
  padding: 28px;
  display: none;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 0 0 var(--rl) var(--rl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .13);
}

#wd-megamenu .mega.wide {
  min-width: 860px;
}

#wd-megamenu .nav-item:hover .mega,
#wd-megamenu .nav-item.open .mega,
#wd-megamenu .nav-btn.active + .mega,
#wd-megamenu .mega:hover {
  display: flex;
}

#wd-megamenu .mega-col {
  flex: 1;
  min-width: 0;
}

#wd-megamenu .mega-col + .mega-col {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--gray-100);
}

#wd-megamenu .mega-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

#wd-megamenu .mega-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r);
  transition: background .15s;
  cursor: pointer;
  color: var(--gray-900);
}

#wd-megamenu .mega-link:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

#wd-megamenu .mega-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

#wd-megamenu .mega-link-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}

#wd-megamenu .mega-link-desc {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.4;
  margin-top: 2px;
}

#wd-megamenu .mega-sub {
  padding-left: 8px;
  margin-top: 4px;
}

#wd-megamenu .mega-sub a {
  display: block;
  font-size: 12px;
  color: var(--gray-600);
  padding: 4px 8px;
  border-radius: 5px;
  transition: color .15s, background .15s;
}

#wd-megamenu .mega-sub a:hover {
  color: var(--teal-dk);
  background: var(--teal-bg);
}

#wd-megamenu .mega-sub a::before {
  content: "›  ";
  color: var(--teal);
}

#wd-megamenu .mega-cta-box {
  background: var(--navy);
  border-radius: var(--r);
  padding: 16px;
  margin-top: 16px;
}

#wd-megamenu .mega-cta-box p {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 10px;
}

#wd-megamenu .mega-cta-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
}

#wd-megamenu .mega-cta-btn:hover {
  background: var(--teal-dk);
  color: #fff;
}

/* =====================================================
   MENÚ MÓVIL BASE
===================================================== */

#wd-mobile-menu {
  display: none;
}

#wd-mobile-menu .wd-mobile-nav {
  position: fixed;
  top: var(--wd-admin-offset);
  left: 0;
  right: 0;
  z-index: 2147483005;
  width: 100%;
  height: var(--wd-header-height);
  min-height: var(--wd-header-height);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

#wd-mobile-menu .mobile-logo {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  height: var(--wd-header-height);
  max-width: calc(100% - 70px);
  overflow: visible;
  position: relative;
  z-index: 1;
}

#wd-mobile-menu .mobile-logo span {
  color: var(--teal);
}

/* Hamburguesa */
#wd-mobile-menu .hamburger {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r);
  position: relative;
  z-index: 2147483006;
  pointer-events: auto;
}

#wd-mobile-menu .ham-line {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
}

#wd-mobile-menu .hamburger.open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#wd-mobile-menu .hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

#wd-mobile-menu .hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
#wd-mobile-menu .drawer-overlay {
  position: fixed;
  top: calc(var(--wd-admin-offset) + var(--wd-header-height));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483001;
  width: 100vw;
  height: auto;
  min-height: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

#wd-mobile-menu .drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Drawer */
#wd-mobile-menu .drawer {
  position: fixed;
  top: calc(var(--wd-admin-offset) + var(--wd-header-height));
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 2147483002;
  width: 94vw;
  max-width: 460px;
  height: auto;
  min-height: 0;
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  -webkit-transform: translate3d(100%, 0, 0);
  transition: transform .3s ease;
  will-change: transform;
}

#wd-mobile-menu .drawer.open {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* Ocultamos la cabecera interna del drawer.
   El header principal se queda visible siempre. */
#wd-mobile-menu .drawer-header {
  display: none !important;
}

#wd-mobile-menu .drawer-logo {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

#wd-mobile-menu .drawer-logo span {
  color: var(--teal);
}

#wd-mobile-menu .drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, .75);
  font-size: 22px;
  line-height: 1;
  padding: 4px;
}

/* Contenido drawer */
#wd-mobile-menu .drawer-body {
  flex: 1;
  padding: 22px 0 48px;
}

#wd-mobile-menu .drawer-section {
  margin-bottom: 10px;
}

#wd-mobile-menu .drawer-section-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  transition: background .15s;
  background: none;
  border: none;
  font-family: var(--font);
  text-align: left;
}

#wd-mobile-menu .drawer-section-head > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

#wd-mobile-menu .drawer-section-head:active {
  background: var(--gray-50);
}

#wd-mobile-menu .ds-icon {
  font-size: 16px;
}

#wd-mobile-menu .drawer-chevron {
  font-size: 12px;
  color: var(--gray-400);
  transition: transform .25s;
}

#wd-mobile-menu .drawer-section.open .drawer-chevron {
  transform: rotate(180deg);
}

#wd-mobile-menu .drawer-pill {
  font-size: 9px;
  background: var(--teal);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 4px;
}

#wd-mobile-menu .drawer-sub {
  display: none;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 8px 0;
}

#wd-mobile-menu .drawer-section.open .drawer-sub {
  display: block;
}

#wd-mobile-menu .drawer-sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px 13px 52px;
  font-size: 15px;
  color: var(--gray-600);
  transition: background .15s, color .15s;
}

#wd-mobile-menu .drawer-sub a:hover,
#wd-mobile-menu .drawer-sub a:active {
  background: var(--teal-bg);
  color: var(--teal-dk);
}

#wd-mobile-menu .drawer-sub-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 12px 24px 6px;
}

/* Enlaces simples móvil */
#wd-mobile-menu .drawer-simple-link {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  transition: background .15s, color .15s;
}

#wd-mobile-menu .drawer-simple-link:hover,
#wd-mobile-menu .drawer-simple-link:active {
  background: var(--teal-bg);
  color: var(--teal-dk);
}

/* CTA móvil */
#wd-mobile-menu .drawer-cta-area {
  padding: 24px;
  border-top: 1px solid var(--gray-100);
  margin-top: 8px;
}

#wd-mobile-menu .drawer-cta-btn {
  display: block;
  text-align: center;
  background: var(--teal);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .1s;
}

#wd-mobile-menu .drawer-cta-btn:hover {
  background: var(--teal-dk);
  color: #fff;
}

#wd-mobile-menu .drawer-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--gray-600);
}

#wd-mobile-menu .drawer-tel a {
  color: var(--navy);
  font-weight: 600;
}

/* =====================================================
   RESPONSIVE DESKTOP PEQUEÑO
===================================================== */

@media (max-width: 1100px) {
  #wd-megamenu .wd-desktop-nav {
    padding: 0 18px;
  }

  #wd-megamenu .logo {
    margin-right: 20px;
  }

  #wd-megamenu .nav-btn,
  #wd-megamenu .nav-link-simple {
    padding: 0 9px;
    font-size: 12px;
  }

  #wd-megamenu .mega,
  #wd-megamenu .mega.wide {
    min-width: 720px;
  }
}

/* =====================================================
   CAMBIO DESKTOP / MÓVIL + RESET DIVI
===================================================== */

@media (max-width: 980px) {
  #wd-megamenu {
    display: none !important;
  }

  /* Evita que Divi altere el header móvil */
  .et-l--header,
  .et-l--header .et_builder_inner_content,
  .et-l--header .et_pb_section,
  .et-l--header .et_pb_row,
  .et-l--header .et_pb_column,
  .et-l--header .et_pb_module,
  .et-l--header .et_pb_code,
  .et-l--header .et_pb_code_inner {
    display: block !important;
    height: var(--wd-header-height) !important;
    min-height: var(--wd-header-height) !important;
    max-height: var(--wd-header-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    background: transparent !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .et-l--header {
    position: fixed !important;
    top: var(--wd-admin-offset) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2147482990 !important;
    width: 100% !important;
    background: transparent !important;
  }
}

/* =====================================================
   FIX FINAL IOS + ANDROID
   No aplicar transform al contenedor padre #wd-mobile-menu
===================================================== */

@media (max-width: 980px) {

  body {
    padding-top: var(--wd-header-height) !important;
  }

  body.wd-menu-open {
    overflow: hidden !important;
  }

  /* Contenedor principal: SIN transform en iOS */
  #wd-mobile-menu {
    display: block !important;
    position: fixed !important;
    top: var(--wd-admin-offset) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--wd-header-height) !important;
    min-height: var(--wd-header-height) !important;
    background: #0D1B2A !important;
    z-index: 999999990 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
  }

  /* Header móvil siempre visible */
  #wd-mobile-menu .wd-mobile-nav,
  #wd-mobile-menu.drawer-is-open .wd-mobile-nav {
    display: flex !important;
    position: fixed !important;
    top: var(--wd-admin-offset) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--wd-header-height) !important;
    min-height: var(--wd-header-height) !important;
    background: #0D1B2A !important;
    z-index: 999999995 !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
  }

  /* Botón hamburguesa / X */
  #wd-mobile-menu .hamburger {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    position: relative !important;
    z-index: 999999996 !important;
    pointer-events: auto !important;
  }

  /* Quitamos la cabecera interna del drawer */
  #wd-mobile-menu .drawer-header {
    display: none !important;
  }

  /* Overlay debajo del header */
  #wd-mobile-menu .drawer-overlay {
    position: fixed !important;
    top: calc(var(--wd-admin-offset) + var(--wd-header-height)) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    background: rgba(0, 0, 0, .55) !important;
    z-index: 999999991 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .25s ease, visibility .25s ease !important;
  }

  #wd-mobile-menu .drawer-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Drawer grande debajo del header */
  #wd-mobile-menu .drawer {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: calc(var(--wd-admin-offset) + var(--wd-header-height)) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 94vw !important;
    max-width: 460px !important;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
    z-index: 999999992 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateX(100%) !important;
    -webkit-transform: translateX(100%) !important;
    transition: transform .3s ease !important;
    will-change: transform !important;
  }

  #wd-mobile-menu .drawer.open {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
  }
}

/* =====================================================
   AJUSTE MÓVILES PEQUEÑOS
===================================================== */

@media (max-width: 480px) {
  #wd-mobile-menu .drawer {
    width: 94vw !important;
    max-width: none !important;
  }

  #wd-mobile-menu .mobile-logo img {
    max-width: 140px !important;
    transform: scale(1.18) !important;
  }

  #wd-mobile-menu .drawer-section-head {
    font-size: 15px !important;
    padding: 15px 22px !important;
  }

  #wd-mobile-menu .drawer-sub a {
    font-size: 14px !important;
    padding: 12px 22px 12px 48px !important;
  }

  #wd-mobile-menu .drawer-simple-link {
    font-size: 15px !important;
    padding: 15px 22px !important;
  }
}


/* =====================================================
   FIX DESKTOP — MEGAMENÚS ALINEADOS A LA DERECHA
   Sin salirse de pantalla
===================================================== */

@media (min-width: 981px) {

  #wd-megamenu .mega {
    position: fixed !important;
    top: calc(var(--wd-admin-offset) + var(--wd-header-height)) !important;

    left: auto !important;
    right: 32px !important;
    transform: none !important;

    width: min(680px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 64px) !important;

    z-index: 999999 !important;
  }

  #wd-megamenu .mega.wide {
    width: min(860px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 64px) !important;
  }

  #wd-megamenu .mega-col {
    min-width: 0 !important;
  }

  #wd-megamenu .nav-items > .nav-item:nth-child(1) .mega,
  #wd-megamenu .nav-items > .nav-item:nth-child(2) .mega {
    position: absolute !important;
    top: var(--wd-header-height) !important;
    left: -20px !important;
    right: auto !important;
    transform: none !important;

    width: min(680px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 64px) !important;

    z-index: 999999 !important;
  }
}

