/*
Theme Name: Edel Aceves Legal
Theme URI: https://edelacevesabogado.com
Author: Antigravity AI
Author URI: https://edelacevesabogado.com
Description: Tema premium, ultra-compacto, moderno y optimizado para el despacho de abogados del Lic. Jesús Edel Aceves Nájera en Ciudad Juárez, Chihuahua. Especializado en Derecho Familiar, Civil, Mercantil y Juicio de Amparo.
Version: 1.4.2
Requires at least: 5.8
Tested up to: 7.2
Requires PHP: 7.4
License: Proprietary
Text Domain: edel-legal
*/

:root {
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* PALETA INSTITUCIONAL OFICIAL */
  --color-primary: #0e1b38;
  /* Azul Marino Profundo Institucional */
  --color-primary-light: #182b52;
  /* Navy Medio */
  --color-accent: #c59b27;
  /* Dorado Institucional (Balanza de Justicia) */
  --color-accent-hover: #ad861a;
  /* Dorado Oscuro */
  --color-accent-soft: rgba(197, 155, 39, 0.08);

  --color-bg: #f8fafc;
  /* Slate 50 - Limpio y descansado */
  --color-surface: #ffffff;
  /* Blanco Puro */
  --color-text: #1e293b;
  /* Slate 800 - Alta legibilidad */
  --color-text-muted: #64748b;
  /* Slate 500 */
  --color-border: #e2e8f0;
  /* Slate 200 */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 27, 56, 0.07);
  --shadow-lg: 0 10px 25px rgba(14, 27, 56, 0.10);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* RESET COMPACTO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 15px;
  /* Más compacto y legible */
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 0;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* TOPBAR COMPACTA Y RESPONSIVA */
.site-topbar {
  background: var(--color-primary);
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.2;
}

.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.topbar-divider {
  color: rgba(255, 255, 255, 0.2);
}

.topbar-right a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar-right a:hover {
  color: var(--color-accent);
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .site-topbar {
    padding: 6px 0;
    font-size: 0.78rem;
  }
  .topbar-lawyer,
  .topbar-divider-lawyer,
  .topbar-social,
  .topbar-divider-social {
    display: none !important;
  }
}

/* Celular y Móvil (< 768px) */
@media (max-width: 767px) {
  .site-topbar {
    padding: 6px 0;
    font-size: 0.76rem;
    min-height: 32px;
    display: flex;
    align-items: center;
  }
  .site-topbar .container {
    padding: 0 14px;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
  }
  .topbar-lawyer,
  .topbar-divider-lawyer,
  .topbar-email,
  .topbar-divider-email,
  .topbar-social,
  .topbar-divider-social {
    display: none !important;
  }
  .topbar-left {
    gap: 0;
  }
  .topbar-right {
    gap: 0;
  }
  .topbar-phone a {
    color: #f1c40f !important;
    font-weight: 700;
  }
}

/* CABECERA PRINCIPAL */
.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(14, 27, 56, 0.08);
  height: 76px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

/* COMPATIBILIDAD CON BARRA DE ADMINISTRADOR DE WORDPRESS */
body.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0 !important;
  }
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.main-logo-img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 2px;
  position: relative;
  display: block;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.header-cta-btn {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 2px 5px rgba(197, 155, 39, 0.25);
  transition: all 0.2s ease !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center !important;
}

.header-cta-btn:hover {
  background: var(--color-accent-hover) !important;
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  padding: 6px 10px;
  font-size: 1.3rem;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* HERO SECTION COMPACTO */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #162b53 100%);
  color: #ffffff;
  padding: 38px 0 32px;
  position: relative;
  border-bottom: 3px solid var(--color-accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197, 155, 39, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(197, 155, 39, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-title {
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-trust-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card {
  background: #ffffff;
  color: var(--color-text);
  padding: 24px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.hero-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.hero-card-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* STATS STRIP COMPACTO */
.stats-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* SECCIONES GLOBALES COMPACTAS */
.section {
  padding: 38px 0;
}

.section-alt {
  background: #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 26px;
}

.section-tag {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* SERVICIOS CARDS GRID (4 Columnas en 1 sola fila en escritorio) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 155, 39, 0.4);
}

.service-card .service-icon,
.service-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(14, 27, 56, 0.05);
  border: 1px solid rgba(14, 27, 56, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 14px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover .service-icon,
.service-card:hover .service-card-icon {
  background: rgba(197, 155, 39, 0.12);
  border-color: rgba(197, 155, 39, 0.35);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.service-card-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.service-card-links li {
  font-size: 0.83rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.35;
  list-style: none !important;
}

.service-card-links li::before {
  content: "›";
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}
}

.service-card-links li a {
  color: var(--color-primary);
  text-decoration: none;
}

.service-card-links li a:hover {
  color: var(--color-accent);
}

.service-btn-link {
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.service-btn-link:hover {
  color: var(--color-accent);
}

/* BLOG GRID EVERGREEN & COMPACT */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-card-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-card h3 a {
  color: var(--color-primary);
}

.blog-card h3 a:hover {
  color: var(--color-accent);
}

.blog-card p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  flex-grow: 1;
  margin-bottom: 12px;
}

/* ESTILOS DE CONTACT FORM 7 - 100% CUADRADO, COMPACTO Y ELEGANTE */
.theme-styled-contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-styled-contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.theme-styled-contact-form .col-lg-6 {
  padding: 0;
}

.theme-styled-contact-form .fullwidth,
.theme-styled-contact-form .col-lg-12,
.theme-styled-contact-form .submit-area {
  grid-column: 1 / -1;
  padding: 0;
}

.theme-styled-contact-form p {
  margin: 0;
}

.theme-styled-contact-form input[type="text"],
.theme-styled-contact-form input[type="email"],
.theme-styled-contact-form input[type="tel"],
.theme-styled-contact-form select,
.theme-styled-contact-form textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 9px 12px !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  color: var(--color-text) !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.theme-styled-contact-form input:focus,
.theme-styled-contact-form select:focus,
.theme-styled-contact-form textarea:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2) !important;
}

.theme-styled-contact-form textarea {
  height: 90px !important;
  resize: vertical !important;
}

.theme-styled-contact-form input[type="submit"] {
  width: 100% !important;
  background-color: var(--color-accent) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 11px 20px !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.3) !important;
  transition: all 0.2s ease !important;
}

.theme-styled-contact-form input[type="submit"]:hover {
  background-color: var(--color-accent-hover) !important;
  transform: translateY(-1px);
}

.wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 10px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.85rem !important;
  border: 1px solid transparent !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}

/* BOTÓN OUTLINE PARA FONDOS CLAROS */
.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 27, 56, 0.15);
}

/* FAQ SECTION ACCORDION - ELEGANTE Y MODERNO */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(197, 155, 39, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}

.faq-question:hover {
  color: var(--color-accent-hover);
  background: #f8fafc;
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-left: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

/* FINAL CALL TO ACTION BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #162b53 100%);
  color: #ffffff;
  padding: 48px 0;
  text-align: center;
  position: relative;
  border-top: 3px solid var(--color-accent);
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.cta-banner .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-banner .btn-primary:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================
   TIPOGRAFÍA DESATURADA Y LECTURA LIMPIA PARA ARTÍCULOS
   ========================================================== */
.article-single-body {
  background: var(--color-surface);
  padding: 44px 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.84;
  letter-spacing: -0.003em;
}

/* Párrafos con aire y descanso visual */
.article-single-body p {
  margin-bottom: 22px;
  color: #334155;
}

/* Encabezados H2: Separadores visuales amplios */
.article-single-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 48px;
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

/* Encabezados H3 */
.article-single-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 34px;
  margin-bottom: 14px;
  line-height: 1.35;
}

/* Listas ordenadas y desordenadas limpias */
.article-single-body ul,
.article-single-body ol {
  margin: 18px 0 26px 22px;
  padding-left: 8px;
}

.article-single-body li {
  margin-bottom: 12px;
  line-height: 1.75;
  color: #334155;
}

.article-single-body li strong {
  color: var(--color-primary);
}

/* Separadores HR sutiles y elegantes */
.article-single-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0 25%, #e2e8f0 75%, transparent);
  margin: 42px 0;
}

/* Citas y avisos destacados (Blockquote) */
.article-single-body blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--color-accent);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
}

.article-single-body blockquote p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1e293b;
}

/* ========================================================
   TABLAS RESPONSIVAS E IMÁGENES FLUIDAS (MÓVIL Y DESKTOP)
   ======================================================== */
.table-responsive-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.table-responsive-wrapper table,
.article-single-body table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  font-size: 0.92rem;
  white-space: normal !important;
  word-wrap: break-word;
  table-layout: auto;
}

.article-single-body table th {
  background: var(--color-primary);
  color: #ffffff;
  padding: 13px 16px;
  font-weight: 700;
  text-align: left;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  white-space: normal;
  border-bottom: 2px solid var(--color-accent);
}

.article-single-body table td {
  padding: 13px 16px;
  border-top: 1px solid var(--color-border);
  line-height: 1.6;
  vertical-align: top;
  white-space: normal !important;
  word-break: break-word;
  font-size: 0.88rem;
  color: #334155;
}

.article-single-body table tr:nth-child(even) td {
  background: #f8fafc;
}

/* Imagen destacada y fotos dentro de artículos: 100% fluidas y proporcionadas */
.article-featured-image-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(11, 19, 41, 0.08);
  margin-bottom: 28px;
}

.article-featured-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.article-single-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 6px;
  margin: 20px auto;
}

/* Enlaces integrados con subrayado moderno */
.article-single-body a {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.article-single-body a:hover {
  color: var(--color-accent);
}

/* Cajas de llamada a la acción y destacados */
.article-single-body div[style*="background-color: #f0fdf4"],
.article-single-body div[style*="background: #f0fdf4"] {
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.08) !important;
  margin: 36px 0 !important;
}

/* FOOTER COMPACTO */
.site-footer {
  background: var(--color-primary);
  color: #94a3b8;
  padding: 35px 0 16px;
  border-top: 3px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.footer-links,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
}

.footer-links a,
.footer-contact-list a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact-list a:hover {
  color: var(--color-accent);
}

.footer-contact-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 72px;
  }

  .main-logo-img {
    height: 54px !important;
    max-height: 54px !important;
  }

  .site-nav ul,
  .header-cta-btn {
    display: none;
  }

  .site-nav.active {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--color-accent);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
  }

  .site-nav.active ul {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .site-nav.active a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
  }

  .site-nav.active .header-cta-btn {
    display: block !important;
    text-align: center;
    margin-top: 6px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  /* Desaturación en móviles para artículos */
  .article-single-body {
    padding: 24px 18px;
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .article-single-body h2 {
    font-size: 1.35rem;
    margin-top: 36px;
  }

  .article-single-body h3 {
    font-size: 1.15rem;
    margin-top: 26px;
  }

  .table-responsive-wrapper {
    margin: 20px 0;
    border-radius: 6px;
  }

  .table-responsive-wrapper::-webkit-scrollbar {
    height: 5px;
  }
  .table-responsive-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
  }
  .table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
  }

  .article-single-body table {
    min-width: 480px;
    font-size: 0.85rem;
    white-space: normal !important;
  }

  .article-single-body table th,
  .article-single-body table td {
    padding: 10px 12px;
    font-size: 0.83rem;
    line-height: 1.5;
  }

  .article-featured-image-wrapper {
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    border-radius: 6px;
  }

  .article-single-body div[style*="display: grid"],
  .article-single-body div[style*="display:grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
}
/* Download & Official Cost Cards */
.legal-download-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(14, 27, 56, 0.05);
}
.legal-download-card .download-btn {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.legal-download-card .download-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  color: #ffffff !important;
}
.official-cost-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

/* ========================================================
   BOTÓN FLOTANTE INTELIGENTE DE WHATSAPP (MÓVIL Y ESCRITORIO)
   ======================================================== */
.edel-float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background-color 0.2s ease;
  font-family: var(--font-body);
}

.edel-float-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}

.edel-float-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .edel-float-whatsapp {
    bottom: 20px;
    right: 20px;
    padding: 14px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  }

  .edel-float-whatsapp span {
    display: none;
  }
}

/* ========================================================
   BANNER CTA Y BOTÓN WHATSAPP PROFESIONAL EN ARTÍCULOS
   ======================================================== */
.article-cta-box {
  background: #0e1b38;
  color: #ffffff;
  padding: 32px 26px;
  border-radius: 12px;
  text-align: center;
  margin: 36px 0;
  box-shadow: 0 10px 25px -5px rgba(14, 27, 56, 0.25);
}

.article-cta-box h3 {
  color: #ffffff !important;
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-cta-box p {
  color: #cbd5e1 !important;
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 24px !important;
}

.btn-whatsapp-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff !important;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
  line-height: 1.2;
}

.btn-whatsapp-cta:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  color: #ffffff !important;
}

.btn-whatsapp-cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ========================================================
   BANNER BINACIONAL USA / EL PASO RESPONSIVO
   ======================================================== */
.banner-binacional {
  background: linear-gradient(135deg, #0e1b38 0%, #1e3a5f 100%);
  color: #ffffff;
  padding: 38px 20px;
  border-top: 3px solid #c59b27;
  border-bottom: 3px solid #c59b27;
}

.banner-binacional-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.banner-binacional-content {
  flex: 1 1 auto;
}

.banner-binacional-badge {
  background: rgba(197, 155, 39, 0.25);
  color: #f1c40f;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 8px;
}

.banner-binacional-title {
  color: #ffffff !important;
  font-size: 1.45rem;
  margin: 6px 0 10px;
  font-weight: 800;
  line-height: 1.3;
}

.banner-binacional-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.banner-binacional-action {
  flex-shrink: 0;
}

.btn-binacional {
  background: #25d366 !important;
  color: #ffffff !important;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.98rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-binacional:hover {
  background: #20ba5a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .banner-binacional {
    padding: 26px 20px;
  }
  .banner-binacional-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }
  .banner-binacional-content {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
  }
  .banner-binacional-title {
    font-size: 1.3rem;
    margin: 6px 0 8px;
  }
  .banner-binacional-text {
    max-width: 620px;
    margin: 0 auto;
  }
  .banner-binacional-action {
    width: 100%;
    margin-top: 4px;
  }
  .btn-binacional {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    justify-content: center;
  }
}

/* Celular / Móvil (< 768px) */
@media (max-width: 767px) {
  .banner-binacional {
    padding: 22px 14px;
  }
  .banner-binacional-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }
  .banner-binacional-content {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
  }
  .banner-binacional-badge {
    font-size: 0.76rem;
    padding: 4px 10px;
    margin-bottom: 6px;
  }
  .banner-binacional-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 4px 0 8px;
  }
  .banner-binacional-text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 auto;
  }
  .banner-binacional-action {
    width: 100%;
    margin-top: 4px;
  }
  .btn-binacional {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.92rem;
    justify-content: center;
  }
}


