/*
Theme Name: Exdoo Blog
Theme URI: https://exdoo.mx/
Author: Exdoo TI
Author URI: https://exdoo.mx/
Description: Tema oficial del blog de Exdoo. Mantiene la identidad visual del sitio principal: azul Exdoo (#0A7099) y dorado (#F1B500) sobre tipografía Plus Jakarta Sans + Inter. Incluye navbar sticky, footer corporativo, botón flotante de WhatsApp y diseño responsive.
Version: 2.0.6
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exdoo
Tags: blog, business, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================================
   VARIABLES (idénticas al sitio HTML)
   ============================================================================ */
:root {
  --color-primary: #0A7099;
  --color-primary-dark: #075874;
  --color-primary-light: #2891B8;
  --color-accent: #F1B500;
  --color-accent-dark: #d49d00;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7f9;
  --color-bg-alt: #fafbfc;
  --color-text: #0f172a;
  --color-text-soft: #475569;
  --color-text-muted: #6f6b7a;
  --color-border: #e8e3ea;
  --color-success: #00a09d;
  --color-error: #e74c3c;
  --shadow-sm: 0 1px 2px rgba(26, 22, 37, 0.05);
  --shadow-md: 0 4px 16px rgba(10, 112, 153, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 112, 153, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================================================
   NAVBAR (idéntico al sitio HTML)
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.navbar-logo img {
  height: 32px;
  width: auto;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.navbar-menu > li { position: relative; }
.navbar-menu > li > a,
.navbar-menu > li > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.navbar-menu > li > a:hover,
.navbar-menu > li > .dropdown-toggle:hover,
.navbar-menu > li > a.active,
.navbar-menu > li > .dropdown-toggle.active {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}
.navbar-menu > li > a.active,
.navbar-menu > li > .dropdown-toggle.active {
  font-weight: 600;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.navbar-menu li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text-soft);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.dropdown a:hover,
.dropdown a.active {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}
.dropdown-badge {
  display: inline-block;
  padding: 1px 7px;
  background: #059669;
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  line-height: 1.4;
  flex-shrink: 0;
}
.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(10, 112, 153, 0.25);
}
.navbar-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 112, 153, 0.35);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ============================================================================
   BLOG HERO (cabecera del blog)
   ============================================================================ */
.blog-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(241, 181, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.blog-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(241, 181, 0, 0.18);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 24px;
  border: 1px solid rgba(241, 181, 0, 0.3);
}
.blog-hero .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: white;
}
.blog-hero .subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================================
   BLOG CONTENT (lista y artículo individual)
   ============================================================================ */
.blog-main {
  padding: 80px 0;
  background: var(--color-bg);
  min-height: 60vh;
}

/* Layout con sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Lista de artículos */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  align-items: stretch;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}
.post-card-image {
  /* La imagen define el alto de toda la tarjeta */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-soft);
  position: relative;
}
.post-card-image::after {
  /* Overlay azul muy sutil que aparece en hover para unificar visualmente */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 112, 153, 0) 0%, rgba(10, 112, 153, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.post-card:hover .post-card-image::after {
  opacity: 1;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-image img {
  transform: scale(1.04);
}
.post-card-content {
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Limitar altura para que no exceda la imagen */
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.post-card-meta .category {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(10, 112, 153, 0.12) 0%, rgba(10, 112, 153, 0.06) 100%);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.6px;
  border: 1px solid rgba(10, 112, 153, 0.15);
  transition: all 0.2s ease;
}
.post-card-meta .category:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.post-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  line-height: 1.25;
  /* Máximo 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card h2 a {
  color: var(--color-text);
  transition: color 0.2s ease;
}
.post-card h2 a:hover { color: var(--color-primary); }
.post-card-excerpt {
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-bottom: 8px;
  /* Máximo 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  align-self: flex-start;
  transition: gap 0.2s ease;
}
.post-card-readmore:hover { gap: 10px; }

/* SIDEBAR */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.widget {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-bg-soft);
}
.widget ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.widget li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text-soft);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.widget li a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  transform: translateX(2px);
}
.widget li a .count {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* SEARCH FORM */
.search-form {
  display: flex;
  gap: 8px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}
.search-form input[type="search"]:focus { border-color: var(--color-primary); }
.search-form button {
  padding: 10px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-form button:hover { background: var(--color-primary-dark); }

/* ============================================================================
   ARTÍCULO INDIVIDUAL (single.php)
   ============================================================================ */
.single-post-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.single-post-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(241, 181, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.single-post-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.single-post-hero .breadcrumb {
  font-size: 13px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.75);
}
.single-post-hero .breadcrumb a { color: var(--color-accent); }
.single-post-hero .breadcrumb a:hover { text-decoration: underline; }
.single-post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: white;
}
.single-post-hero .post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.single-post-hero .post-meta > span,
.single-post-hero .post-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-post-content {
  background: var(--color-bg);
  padding: 60px 0;
}
.single-post-content-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.featured-image {
  margin: 0 auto 40px;
  max-width: 800px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Imágenes del contenido del artículo (importadas desde Zyro)
   Centradas, con tope de tamaño, sin que se encimen al hero */
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: var(--radius-md);
}
.entry-content figure {
  margin: 28px auto;
  text-align: center;
}
.entry-content figure img {
  margin: 0 auto;
}
.entry-content figcaption {
  font-size: 13.5px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
  letter-spacing: -0.5px;
}
.entry-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
}
.entry-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.6em 0 0.5em;
}
.entry-content a {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px dashed var(--color-primary-light);
}
.entry-content a:hover {
  border-bottom-style: solid;
  color: var(--color-primary-dark);
}
.entry-content strong { font-weight: 700; color: var(--color-text); }
.entry-content em { font-style: italic; }
.entry-content ul, .entry-content ol { margin: 1em 0 1.4em 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 0 16px 24px;
  margin: 2em 0;
  font-style: italic;
  font-size: 1.1em;
  color: var(--color-text-soft);
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content code {
  background: var(--color-bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--color-primary-dark);
}
.entry-content pre {
  background: var(--color-text);
  color: #f0e9f4;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
}
.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.entry-content iframe {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5em 0;
}

/* TAGS Y CATEGORÍAS DEL POST */
.post-tags {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.post-tags-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-soft);
  color: var(--color-text-soft);
  font-size: 13px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.post-tags a:hover {
  background: var(--color-primary);
  color: white;
}

/* NAVEGACIÓN ENTRE POSTS */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.post-nav-link {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s ease;
}
.post-nav-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.post-nav-link .nav-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.post-nav-link h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.post-nav-link.next { text-align: right; }

/* COMENTARIOS */
.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--color-border);
}
.comments-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.comment-list {
  list-style: none;
  margin: 0 0 32px 0;
}
.comment {
  padding: 20px;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.comment-author {
  font-weight: 700;
  color: var(--color-primary);
}
.comment-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* ============================================================================
   FOOTER (idéntico al sitio HTML)
   ============================================================================ */
.site-footer {
  background: #0f172a;
  color: #c9c2d1;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 14px;
  color: #9990a3;
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: #9990a3;
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--color-accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #9990a3;
  margin-bottom: 10px;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #6f6678;
}

/* ============================================================================
   WHATSAPP FLOAT
   ============================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ============================================================================
   PAGINACIÓN
   ============================================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-soft);
  transition: all 0.2s ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .post-card {
    grid-template-columns: 240px 1fr;
    gap: 20px;
  }
  .post-card-content { padding: 20px 24px 20px 0; }
  .post-card h2 { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .post-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* En móvil mantenemos el 16:9 panorámico de los banners */
  .post-card-content { padding: 24px 24px; }
}
@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .menu-toggle { display: block; }
  .navbar-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  .navbar-cta { display: none; }
  .blog-main { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .post-navigation { grid-template-columns: 1fr; }
  .featured-image { margin: -80px auto 32px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .navbar-inner { padding: 14px 16px; }
}

/* ============================================================================
   ALIGNMENT (WordPress core classes)
   ============================================================================ */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 100vw; }
.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* WordPress block: gallery, embed */
.wp-block-image figcaption,
.wp-caption-text {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}
.wp-block-embed iframe { width: 100%; }

/* Skip link (accesibilidad) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================================================
   AVISO DE PRIVACIDAD MODAL
   ============================================================================ */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.privacy-modal.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 40, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.privacy-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  height: min(85vh, 800px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.privacy-modal.open .privacy-modal-content {
  transform: translateY(0) scale(1);
}
.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
  flex-shrink: 0;
}
.privacy-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.3px;
}
.privacy-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.privacy-modal-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}
.privacy-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  color: var(--color-text);
  font-size: 14.5px;
  line-height: 1.7;
}
.privacy-modal-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 24px 0 10px 0;
  letter-spacing: -0.2px;
}
.privacy-modal-body h3:first-of-type { margin-top: 16px; }
.privacy-modal-body p {
  margin-bottom: 12px;
  color: var(--color-text-soft);
}
.privacy-modal-body strong { color: var(--color-text); }
.privacy-modal-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(10, 112, 153, 0.3);
  text-underline-offset: 2px;
}
.privacy-modal-body a:hover {
  text-decoration-color: var(--color-primary);
}
.privacy-modal-body ul {
  margin: 8px 0 14px 22px;
  padding: 0;
}
.privacy-modal-body ul li {
  margin-bottom: 6px;
  color: var(--color-text-soft);
}
.privacy-updated {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(10, 112, 153, 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.3px;
  margin-bottom: 8px !important;
}
.privacy-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--color-border);
  background: #fafbfc;
  flex-shrink: 0;
  text-align: right;
}
.privacy-modal-btn-close {
  padding: 10px 22px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.privacy-modal-btn-close:hover {
  background: var(--color-primary-dark);
}
@media (max-width: 600px) {
  .privacy-modal { padding: 0; }
  .privacy-modal-content {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  .privacy-modal-body {
    padding: 22px 22px;
    font-size: 13.5px;
  }
  .privacy-modal-title { font-size: 15px; }
}
