/*
Theme Name:   OmniaTech
Theme URI:    https://omniaestudio.es/
Description:  Tema hijo de GeneratePress con el sistema de diseño de OmniaPlugins (paleta naranja/navy, tipografía, botones, badges y componentes de tarjeta).
Author:       Agencia Omnia
Author URI:   https://omniaestudio.es/
Template:     generatepress
Version:      1.0.0
Text Domain:  omniatech
*/

/* =====================================================================
   1. TOKENS — variables del sistema de diseño OmniaPlugins
   ===================================================================== */
:root{
  /* Naranja de marca */
  --op-orange-600:#E23F00;
  --op-orange-500:#FB4601;
  --op-orange-400:#FF6E32;
  --op-orange-300:#FF8151;
  --op-orange-tint:#FFDCCF;
  --op-orange-tint-text:#DA3C00;

  /* Azul secundario (marca agencia) */
  --op-blue:#2A2ACA;

  /* Navy / fondos oscuros */
  --op-navy-900:#08052A;
  --op-navy-800:#100C33;
  --op-navy-700:#15132D;
  --op-navy-line:rgba(255,255,255,.08);

  /* Neutros */
  --op-black:#0A0A0A;
  --op-white:#FFFFFF;
  --op-gray-900:#141414;
  --op-gray-600:#5B5B63;
  --op-gray-400:#8A8A92;
  --op-gray-200:#E2E2E6;
  --op-gray-150:#EDEDF0;
  --op-gray-100:#F3F3F5;
  --op-gray-disabled-bg:#DBDBDB;
  --op-gray-disabled-text:#8B8B8B;

  /* Tipografía: pila de sistema, sin dependencia externa (evita el problema
     de RGPD de servir Google Fonts desde el navegador del visitante).
     Si más adelante se auto-aloja Inter, basta con añadir el @font-face
     al final de este archivo y cambiar --op-font. */
  --op-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radios */
  --op-r-sm:8px;
  --op-r-md:12px;
  --op-r-lg:20px;
  --op-r-pill:999px;

  /* Sombras / halo */
  --op-glow-orange:0 0 0 1px rgba(251,70,1,.05), 0 10px 30px -6px rgba(251,70,1,.55);
  --op-glow-orange-hover:0 0 0 1px rgba(251,70,1,.08), 0 16px 44px -4px rgba(251,70,1,.78);
  --op-shadow-card:0 1px 2px rgba(20,20,20,.04), 0 8px 24px -12px rgba(20,20,20,.10);

  /* Espaciado (base 8pt) */
  --op-s1:4px; --op-s2:8px; --op-s3:12px; --op-s4:16px; --op-s5:24px;
  --op-s6:32px; --op-s7:48px; --op-s8:64px; --op-s9:96px;
}

/* =====================================================================
   2. BASE — tipografía y color de texto general
   ===================================================================== */
body{
  font-family:var(--op-font);
  color:var(--op-black);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,h5,h6{
  font-family:var(--op-font);
  font-weight:700;
  color:var(--op-black);
  letter-spacing:-0.01em;
}
h1{ font-size:40px; line-height:1.2; }

.entry-content p,
.entry-content li{
  color:var(--op-gray-600);
  line-height:1.7;
  font-size:15.5px;
}
.entry-content h2{
  font-size:22px;
  margin:var(--op-s7) 0 var(--op-s3);
}
.entry-content h2:first-child{ margin-top:0; }
.entry-content h3{
  font-size:17px;
  margin:var(--op-s5) 0 var(--op-s3);
}
.entry-content ul,
.entry-content ol{ margin:0 0 var(--op-s4); padding-left:1.3em; }
.entry-content li{ margin-bottom:6px; }
.entry-content a{ text-decoration:underline; text-underline-offset:2px; }
.entry-content strong{ color:var(--op-black); }
.entry-content table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 var(--op-s5);
  font-size:14px;
}
@media (max-width:600px){
  .entry-content table{ display:block; overflow-x:auto; white-space:nowrap; }
}
.entry-content table th,
.entry-content table td{
  text-align:left;
  padding:10px 12px;
  border:1px solid var(--op-gray-150);
}
.entry-content table th{ background:var(--op-gray-100); font-weight:600; }
.entry-content hr{ border:none; border-top:1px solid var(--op-gray-150); margin:var(--op-s6) 0; }

/* Columna angosta solo para la plantilla "Textos legales" (page-legal.php);
   el resto de páginas sin bloques (como el checkout de EDD, que también
   pasa por .entry-content) se quedan a ancho completo. */
.op-legal-wrap{ max-width:760px; margin:0 auto; }

a{ color:var(--op-orange-500); }
a:hover{ color:var(--op-orange-600); }

/* =====================================================================
   3. CABECERA (header.php propio del tema)
   ===================================================================== */
.op-header{
  background-color:var(--op-navy-900);
  border-bottom:1px solid var(--op-navy-line);
  position:sticky;
  top:0;
  z-index:100;
}
.op-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--op-s5);
  padding:24px var(--op-s7);
  min-height:24px;
}
.op-logo{
  display:flex;
  align-items:center;
  color:var(--op-white);
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  flex-shrink:0;
}
.op-logo .custom-logo-link{ display:flex; align-items:center; }
.op-logo img,
.op-logo .custom-logo{
  max-height:38px !important;
  height:auto !important;
  width:auto !important;
  max-width:200px !important;
  display:block;
}

.op-nav{ flex:1; display:flex; justify-content:center; }
.op-nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:28px;
  margin:0;
  padding:0;
}
.op-nav a{
  color:rgba(255,255,255,.75);
  text-decoration:none;
  font-size:14px;
}
.op-nav a:hover{ color:var(--op-white); }

/* ---------- Segundo nivel (submenús) ---------- */
.op-nav li.menu-item-has-children{ position:relative; }
.op-nav li.menu-item-has-children > a{
  display:flex;
  align-items:center;
  gap:5px;
}
.op-nav li.menu-item-has-children > a::after{
  content:"";
  width:6px;
  height:6px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
  opacity:.6;
  margin-top:-3px;
}

.op-nav ul.sub-menu{
  list-style:none;
  flex-direction:column;
  align-items:stretch;
  gap:2px;
  margin:8px 0 0;
  padding:8px;
  position:absolute;
  top:100%;
  left:0;
  min-width:210px;
  background:var(--op-navy-800);
  border:1px solid var(--op-navy-line);
  border-radius:var(--op-r-md);
  box-shadow:0 16px 36px -10px rgba(0,0,0,.45);
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s;
  z-index:60;
}
.op-nav li.menu-item-has-children:hover > ul.sub-menu,
.op-nav li.menu-item-has-children:focus-within > ul.sub-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.op-nav ul.sub-menu li{ width:100%; }
.op-nav ul.sub-menu a{
  display:block;
  padding:9px 10px;
  border-radius:6px;
  font-size:13.5px;
  color:rgba(255,255,255,.75);
}
.op-nav ul.sub-menu a:hover{ background:rgba(255,255,255,.06); color:var(--op-white); }
.op-nav ul.sub-menu li.menu-item-has-children > a::after{ transform:rotate(-45deg); margin-top:0; }

/* Botón de despliegue del submenú, solo visible en móvil (ver JS) */
.op-submenu-toggle{
  display:none;
  position:absolute;
  right:0;
  top:0;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  cursor:pointer;
  padding:0 !important;
  box-sizing:border-box;
}
.op-submenu-toggle span{
  width:8px;
  height:8px;
  border-right:1.5px solid var(--op-white);
  border-bottom:1.5px solid var(--op-white);
  transform:rotate(45deg);
  transition:transform .15s ease;
  display:block;
}
.op-submenu-toggle.is-open span{ transform:rotate(-135deg); }

.op-header-cta{ flex-shrink:0; }

.op-cart-link{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  flex-shrink:0;
  color:var(--op-white);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--op-r-md);
  text-decoration:none;
  transition:border-color .15s ease;
}
.op-cart-link:hover{ border-color:var(--op-orange-500); }
.op-cart-count{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border-radius:var(--op-r-pill);
  background:var(--op-orange-500);
  color:var(--op-white);
  font-size:10.5px;
  font-weight:700;
  line-height:17px;
  text-align:center;
}

.op-menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:36px;
  height:36px;
  padding:0 !important;
  background:transparent !important;
  border:1px solid rgba(255,255,255,.2) !important;
  border-radius:var(--op-r-sm);
  box-shadow:none !important;
  cursor:pointer;
  flex-shrink:0;
  box-sizing:border-box;
}
.op-menu-toggle span{
  display:block;
  width:16px;
  height:2px;
  margin:0 auto;
  background:var(--op-white);
  transition:transform .15s ease, opacity .15s ease;
}
.op-menu-toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.op-menu-toggle.is-open span:nth-child(2){ opacity:0; }
.op-menu-toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:900px){
  .op-menu-toggle{ display:flex; }
  .op-nav{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--op-navy-900);
    border-bottom:1px solid var(--op-navy-line);
    max-height:0;
    overflow:hidden;
    transition:max-height .2s ease;
  }
  .op-nav.is-open{ max-height:80vh; overflow-y:auto; }
  .op-nav ul{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px var(--op-s5) 16px;
  }
  .op-nav ul li{ width:100%; }
  .op-nav a{ display:block; padding:10px 0; }
  .op-header-cta{ display:none; } /* en móvil el CTA vive dentro del menú desplegable, ver header.php */
  .op-nav .op-header-cta-mobile{ display:inline-flex; justify-content:center; margin:8px var(--op-s5) 16px; }

  /* Submenú en acordeón, no desplegable flotante */
  .op-nav li.menu-item-has-children{ position:relative; }
  .op-nav li.menu-item-has-children > a::after{ display:none; } /* el toggle ya trae su propia flecha */
  .op-nav ul.sub-menu{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    box-shadow:none;
    border:none;
    background:transparent;
    padding:0 0 0 var(--op-s4);
    margin:0;
    max-height:0;
    overflow:hidden;
    transition:max-height .2s ease;
  }
  .op-nav ul.sub-menu.is-open{ max-height:600px; }
  .op-nav ul.sub-menu a{ padding:8px 0; font-size:13.5px; }
  .op-submenu-toggle{ display:flex; }
}
@media (min-width:901px){
  .op-header-cta-mobile{ display:none; }
}

/* =====================================================================
   4. HERO oscuro — añade la clase "op-hero-dark" al contenedor de página
   (bloque de grupo en Gutenberg o sección de Elementor/GenerateBlocks)
   ===================================================================== */
.op-hero-dark{
  background:
    repeating-linear-gradient(115deg, rgba(251,70,1,.10) 0px, rgba(251,70,1,.10) 1px, transparent 1px, transparent 64px),
    linear-gradient(160deg,var(--op-navy-900) 0%,var(--op-navy-700) 100%);
  color:var(--op-white);
  padding:var(--op-s9) var(--op-s7) var(--op-s8);
  border-radius:0;
}
.op-hero-dark h1,
.op-hero-dark h2{ color:var(--op-white); }
.op-hero-dark h1{ font-size:48px; line-height:1.15; font-weight:700; }
.op-hero-dark p{ color:rgba(255,255,255,.68); }

/* Variante con eyebrow (ficha de plugin): un poco menos de aire arriba,
   ya que el eyebrow ocupa ese hueco, y un filo naranja abajo para que se
   note que es el hero de un producto y no el genérico de la home. */
.op-hero-dark--producto{
  padding-top:var(--op-s8);
  border-bottom:1px solid rgba(251,70,1,.35);
}
.op-eyebrow--centrado{ display:inline-flex; margin-left:auto; margin-right:auto; }

/* =====================================================================
   5. BOTONES — sustituye el .button por defecto de GeneratePress
   ===================================================================== */
.button,
button,
input[type="submit"],
.wp-block-button__link,
.wp-element-button,
.edd-submit{
  font-family:var(--op-font);
  font-weight:600;
  font-size:14.5px;
  border:none;
  cursor:pointer;
  padding:13px 24px;
  border-radius:var(--op-r-md);
  background:linear-gradient(90deg,var(--op-orange-500),var(--op-orange-300)) !important;
  color:var(--op-white) !important;
  box-shadow:var(--op-glow-orange);
  transition:box-shadow .18s ease, filter .18s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover{
  filter:brightness(1.04);
  box-shadow:var(--op-glow-orange-hover);
  color:var(--op-white) !important;
}

/* Botón secundario (outline blanco): añade la clase "op-btn-secondary" */
.op-btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link{
  background:var(--op-white) !important;
  color:var(--op-gray-600) !important;
  border:1px solid var(--op-gray-200) !important;
  box-shadow:none !important;
  transition:border-color .15s ease, color .15s ease;
}
.op-btn-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover{
  border-color:var(--op-orange-500) !important;
  color:var(--op-black) !important;
}

/* Botón secundario sobre fondo oscuro */
.op-hero-dark .op-btn-secondary{
  background:transparent !important;
  color:var(--op-white) !important;
  border:1px solid rgba(255,255,255,.25) !important;
}
.op-hero-dark .op-btn-secondary:hover{
  border-color:var(--op-orange-500) !important;
  color:var(--op-white) !important;
}

/* Botón secundario relleno gris: añade la clase "op-btn-filled-gray" */
.op-btn-filled-gray{
  background:var(--op-gray-disabled-bg) !important;
  color:var(--op-gray-900) !important;
  border:1px solid transparent !important;
  box-shadow:none !important;
  transition:border-color .15s ease;
}
.op-btn-filled-gray:hover{
  border-color:var(--op-orange-500) !important;
}

/* Botón desactivado */
.op-btn-disabled,
.button:disabled,
button:disabled{
  background:var(--op-gray-disabled-bg) !important;
  color:var(--op-gray-disabled-text) !important;
  box-shadow:none !important;
  cursor:not-allowed;
}

/* Enlace tipo texto con flecha, ej. "Ver el plugin ↗" */
.op-link{
  color:var(--op-orange-500);
  font-weight:600;
  font-size:14px;
  text-decoration:none;
}
.op-link:hover{ color:var(--op-orange-600); }

/* =====================================================================
   6. BADGES / EYEBROWS
   ===================================================================== */
.op-badge{
  display:inline-flex;
  padding:5px 12px;
  border-radius:var(--op-r-pill);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.01em;
  background:var(--op-orange-tint);
  color:var(--op-orange-tint-text);
}

.op-badge-outline{
  display:inline-flex;
  padding:5px 12px;
  border-radius:var(--op-r-pill);
  font-size:11.5px;
  font-weight:700;
  border:1px solid var(--op-gray-200);
  color:var(--op-gray-600);
}

.op-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  color:var(--op-orange-500);
  margin-bottom:var(--op-s3);
  text-transform:uppercase;
  letter-spacing:.02em;
}
.op-eyebrow::before{
  content:"";
  width:14px;
  height:14px;
  flex-shrink:0;
  background:url('assets/img/logomark.svg') no-repeat center / contain;
  display:inline-block;
}

/* =====================================================================
   7. TARJETAS
   ===================================================================== */
.op-card{
  background:var(--op-white);
  border:1px solid var(--op-gray-150);
  border-radius:var(--op-r-lg);
  padding:var(--op-s5);
  box-shadow:var(--op-shadow-card);
}
.op-card h3{ font-size:18px; margin:var(--op-s3) 0 8px; }
.op-card p{ font-size:14px; color:var(--op-gray-600); line-height:1.6; }
.op-plan-descripcion{ margin:0 0 var(--op-s4) !important; }

.op-plan-price{ display:flex; align-items:baseline; gap:6px; margin:0 0 var(--op-s4); }
.op-plan-price .op-price{ font-size:28px; font-weight:700; }
.op-plan-price .op-price-sub{ font-size:12px; color:var(--op-gray-400); }

.op-plan-footer{
  margin-top:var(--op-s4);
  padding-top:var(--op-s4);
  border-top:1px solid var(--op-gray-150);
}
.op-plan-footer .button,
.op-plan-footer .edd-submit{
  display:flex;
  width:100%;
  justify-content:center;
  box-sizing:border-box;
}

.op-plan-nota{ font-size:13px; color:var(--op-gray-400); margin:var(--op-s5) 0 0; }

/* Interruptor Mensual / Anual */
.op-periodo-toggle{
  display:inline-flex;
  max-width:100%;
  background:var(--op-gray-100);
  border-radius:var(--op-r-pill);
  padding:4px;
  margin-bottom:var(--op-s6);
}
.op-periodo-toggle button{
  border:none;
  background:transparent !important;
  padding:8px 22px;
  border-radius:var(--op-r-pill);
  font-family:var(--op-font);
  font-size:13.5px;
  font-weight:600;
  color:var(--op-gray-600) !important;
  cursor:pointer;
  box-shadow:none !important;
  transition:background .15s ease, color .15s ease;
}
@media (max-width:360px){
  .op-periodo-toggle button{ padding:8px 14px; font-size:12.5px; }
}
.op-periodo-toggle button:hover{ color:var(--op-black) !important; }

/* Mensual activo: blanco */
.op-periodo-toggle button[data-periodo="mensual"].is-active{
  background:var(--op-white) !important;
  color:var(--op-black) !important;
  box-shadow:var(--op-shadow-card) !important;
}
/* Anual activo: naranja, para que destaque más */
.op-periodo-toggle button[data-periodo="anual"].is-active{
  background:linear-gradient(90deg,var(--op-orange-500),var(--op-orange-300)) !important;
  color:var(--op-white) !important;
  box-shadow:var(--op-glow-orange) !important;
}

/* Bloque de precio por periodo dentro de cada tarjeta: solo se ve el activo */
.op-plan-periodo{ display:none; }
.op-plan-periodo.is-active{ display:block; }

.op-plan-trial{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  color:var(--op-orange-tint-text);
  background:var(--op-orange-tint);
  padding:3px 9px;
  border-radius:var(--op-r-pill);
  margin-bottom:10px;
}
.op-plan-signup-fee{
  font-size:11.5px;
  color:var(--op-gray-400);
  margin-top:2px;
}

.op-card ul{ list-style:none; margin:0 0 var(--op-s5); padding:0; }
.op-card li{
  font-size:13.5px;
  padding:6px 0 6px 18px;
  position:relative;
  color:var(--op-gray-900);
}
.op-card li::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:var(--op-orange-500);
  position:absolute; left:0; top:13px;
}

.op-card-price{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding-top:var(--op-s4);
  border-top:1px solid var(--op-gray-150);
}
.op-card-price .op-price{ font-size:20px; font-weight:700; }
.op-card-price .op-price-sub{ font-size:11.5px; color:var(--op-gray-400); }

/* Tarjeta destacada, ej. plan "más pedido" */
.op-card--highlight{
  border-color:var(--op-orange-500);
  box-shadow:var(--op-glow-orange);
}
.op-card--highlight-tag{
  display:inline-block;
  margin-bottom:var(--op-s3);
  font-size:11px;
  font-weight:700;
  color:var(--op-white);
  background:var(--op-orange-500);
  padding:4px 10px;
  border-radius:var(--op-r-pill);
}

/* =====================================================================
   8. BLOQUE DE ESTADÍSTICAS (fondo oscuro)
   ===================================================================== */
.op-stat-row{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:var(--op-s6);
  background:rgba(255,255,255,.04);
  border:1px solid var(--op-navy-line);
  border-radius:var(--op-r-lg);
  padding:var(--op-s5) var(--op-s6);
  max-width:820px;
  margin:var(--op-s7) auto 0;
  text-align:left;
}
.op-stat .op-stat-num{ font-size:32px; font-weight:700; color:var(--op-white); }
.op-stat .op-stat-label{ font-size:12.5px; color:rgba(255,255,255,.55); margin-top:2px; line-height:1.5; }

@media (max-width:640px){
  .op-stat-row{ grid-template-columns:1fr; gap:var(--op-s5); }
}

/* =====================================================================
   9. PASOS NUMERADOS
   ===================================================================== */
.op-step{ border-top:1px solid var(--op-gray-150); padding-top:var(--op-s4); }
.op-step .op-step-n{
  font-size:12px; font-weight:700; color:var(--op-orange-500);
  letter-spacing:.03em; margin-bottom:6px;
}
.op-step h4{ font-size:15px; margin:0 0 6px; }
.op-step p{ font-size:13px; color:var(--op-gray-600); line-height:1.55; }
.op-pasos-nota{ font-size:12.5px; color:var(--op-gray-400); margin:var(--op-s5) 0 0; line-height:1.7; }

/* Variante oscura: añade la clase "op-band-dark" a la sección (se activa
   con el campo "Fondo oscuro" del bloque) */
.op-band-dark .op-step{ border-top-color:rgba(255,255,255,.14); }
.op-band-dark .op-step h4{ color:var(--op-white); }
.op-band-dark .op-step p{ color:rgba(255,255,255,.6); }
.op-band-dark .op-pasos-nota{ color:rgba(255,255,255,.45); }

/* =====================================================================
   10. FAQ (acordeón simple con <details>)
   ===================================================================== */
.op-faq-item{ border-bottom:1px solid var(--op-gray-150); }
.op-faq-item summary{
  padding:var(--op-s4) 0;
  font-size:15px;
  font-weight:500;
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--op-black);
}
.op-faq-item summary::-webkit-details-marker{ display:none; }
.op-faq-item summary::after{
  content:"+";
  color:var(--op-orange-500);
  font-size:18px;
}
.op-faq-item[open] summary::after{ content:"–"; }
.op-faq-item p{ padding-bottom:var(--op-s4); color:var(--op-gray-600); font-size:14px; }

/* =====================================================================
   11. BUSCADOR / INPUT
   ===================================================================== */
.op-search{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--op-white);
  border:1px solid var(--op-gray-200);
  border-radius:var(--op-r-md);
  padding:12px 16px;
  width:100%;
  max-width:340px;
  box-shadow:var(--op-shadow-card);
}
.op-search input{
  border:none; outline:none; font-family:var(--op-font);
  font-size:14px; width:100%; background:transparent;
}

/* =====================================================================
   11b. SECCIONES / LAYOUT — bandas alternas
   ===================================================================== */
.op-section-gray{ background:var(--op-gray-100); }

/* =====================================================================
   12. PIE DE PÁGINA (footer.php propio del tema)
   ===================================================================== */
.op-footer{
  background-color:var(--op-navy-900);
  color:rgba(255,255,255,.65);
}
.op-footer-top{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:var(--op-s7);
  padding:var(--op-s9) var(--op-s7) var(--op-s7);
}
.op-footer-brand{ max-width:320px; }
.op-footer-brand .op-logo{ margin-bottom:20px; }
.op-footer-brand p{ font-size:13px; line-height:1.7; color:rgba(255,255,255,.5); margin:0 0 var(--op-s5); }

.op-footer-social{ display:flex; gap:14px; flex-wrap:wrap; }
.op-footer-social a{ color:rgba(255,255,255,.6); font-size:12.5px; text-decoration:none; border:1px solid rgba(255,255,255,.15); border-radius:var(--op-r-pill); padding:5px 12px; }
.op-footer-social a:hover{ color:var(--op-white); border-color:rgba(255,255,255,.35); }

.op-footer-col-title{
  font-size:13px;
  font-weight:700;
  color:var(--op-white);
  margin-bottom:18px;
  letter-spacing:.02em;
}
.op-footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:13px; }
.op-footer-col a{ color:rgba(255,255,255,.65); text-decoration:none; font-size:13.5px; }
.op-footer-col a:hover{ color:var(--op-white); }

.op-footer-bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  padding:var(--op-s5) var(--op-s7) var(--op-s7);
  border-top:1px solid var(--op-navy-line);
  font-size:12px;
  color:rgba(255,255,255,.4);
}
.op-footer-legal{ display:flex; gap:20px; flex-wrap:wrap; }
.op-footer-legal a{ color:rgba(255,255,255,.4); text-decoration:none; }
.op-footer-legal a:hover{ color:var(--op-white); }

/* =====================================================================
   13b. LAYOUT DE PÁGINA — usado por front-page.php (home)
   ===================================================================== */
.op-container{
  max-width:1200px;
  margin:0 auto;
}
.op-band{ padding:var(--op-s8) var(--op-s7); }
.op-band-gray{ background:var(--op-gray-100); }

.op-section-head{ max-width:640px; margin-bottom:var(--op-s6); }
.op-section-head h2{ font-size:28px; margin:0 0 6px; }
.op-section-head > p{ font-size:15px; color:var(--op-gray-600); line-height:1.6; margin:0; }

.op-grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:var(--op-s5);
}
.op-grid-4{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:var(--op-s5) var(--op-s6);
}
@media (max-width:900px){
  .op-grid-3{ grid-template-columns:repeat(2, 1fr); }
  .op-grid-4{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:600px){
  .op-grid-3{ grid-template-columns:1fr; }
  .op-grid-4{ grid-template-columns:1fr; }
}

/* Tarjeta simple de información (Cómo trabajamos / notas de licencias) */
.op-info-card{
  background:var(--op-white);
  border:1px solid var(--op-gray-150);
  border-radius:var(--op-r-lg);
  padding:var(--op-s5);
}
.op-info-card--muted{
  background:var(--op-gray-150);
  border-color:var(--op-gray-150);
}
.op-info-card .op-label{
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--op-gray-400);
  margin-bottom:10px;
}
.op-info-card h4{ font-size:16px; margin:0 0 8px; }
.op-info-card p{ font-size:13.5px; color:var(--op-gray-600); line-height:1.6; margin:0 0 var(--op-s3); }
.op-info-card .op-link{ display:inline-block; margin-top:4px; }

/* Callout "a medida": banda gris con texto a la izquierda y CTA a la derecha */
.op-callout{
  background:var(--op-gray-100);
  border-radius:var(--op-r-lg);
  padding:var(--op-s6) var(--op-s6);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--op-s6);
  flex-wrap:wrap;
}
.op-callout h3{ font-size:18px; margin:0 0 6px; }
.op-callout p{ font-size:14px; color:var(--op-gray-600); margin:0; max-width:560px; }
.op-callout .op-btn-shrink{ flex-shrink:0; }

/* Indicador "explora" del hero (animado: un punto de luz recorre la línea en bucle) */
.op-explore{
  text-align:center;
  margin-top:var(--op-s7);
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  color:rgba(255,255,255,.55);
}
.op-explore .line{
  position:relative;
  width:1px;
  height:40px;
  background:rgba(255,255,255,.14);
  margin:10px auto 0;
  overflow:hidden;
}
.op-explore .line::after{
  content:"";
  position:absolute;
  top:-14px;
  left:0;
  width:100%;
  height:14px;
  background:linear-gradient(var(--op-orange-500), transparent);
  animation:op-explore-flow 1.8s ease-in-out infinite;
}
@keyframes op-explore-flow{
  0%{ transform:translateY(0); opacity:0; }
  20%{ opacity:1; }
  80%{ opacity:1; }
  100%{ transform:translateY(54px); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .op-explore .line::after{
    animation:none;
    opacity:1;
    transform:translateY(13px);
  }
}

/* Sección CTA final oscura */
.op-cta-dark{
  background:var(--op-navy-900);
  color:var(--op-white);
  text-align:center;
  padding:var(--op-s9) var(--op-s7);
}
.op-cta-dark h2{ color:var(--op-white); font-size:34px; margin:0 0 var(--op-s4); }
.op-cta-dark p{ color:rgba(255,255,255,.65); max-width:520px; margin:0 auto var(--op-s6); font-size:15px; }
.op-contact-line{
  margin-top:var(--op-s6);
  font-size:14px;
  color:rgba(255,255,255,.55);
}
.op-contact-line a{ color:var(--op-white); }
.op-contact-line .sep{ margin:0 14px; color:rgba(255,255,255,.25); }

@media (max-width:782px){
  .op-band{ padding-left:var(--op-s5); padding-right:var(--op-s5); }
  .op-band-dark{ padding-left:var(--op-s5); padding-right:var(--op-s5); }
  .op-header-inner{ padding-left:var(--op-s5); padding-right:var(--op-s5); }
  .op-footer-top,
  .op-footer-bottom{ padding-left:var(--op-s5); padding-right:var(--op-s5); }
  .op-hero-dark{ padding:var(--op-s7) var(--op-s5) var(--op-s6); }
  .op-hero-dark h1{ font-size:32px; }
  .op-cta-dark{ padding:var(--op-s7) var(--op-s5); }
  .op-cta-dark h2{ font-size:26px; }
  .op-callout{ flex-direction:column; align-items:flex-start; }
}
@media (max-width:480px){
  /* El logo tenía flex-shrink:0 + hasta 200px de ancho: en los móviles
     más estrechos se comía el hueco del botón de menú y del carrito, o
     directamente desbordaba la cabecera. Se limita aquí a un tamaño que
     siempre deja sitio para los dos. */
  .op-logo img,
  .op-logo .custom-logo{ max-width:130px !important; max-height:30px !important; }
}

/* =====================================================================
   13c. COMPARATIVA A DOS COLUMNAS (ficha de plugin)
   ===================================================================== */
.op-compare-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--op-s5);
}
@media (max-width:782px){ .op-compare-grid{ grid-template-columns:1fr; } }

.op-compare-col{
  border-radius:var(--op-r-lg);
  padding:var(--op-s6);
}
.op-compare-col--muted{
  background:var(--op-gray-100);
  color:var(--op-black);
}
.op-compare-col--dark{
  background:var(--op-navy-900);
  color:var(--op-white);
}
.op-compare-col h4{ font-size:16px; margin:0 0 var(--op-s4); }
.op-compare-col--dark h4{ color:var(--op-white); }
.op-compare-col ul{ list-style:none; margin:0; padding:0; }
.op-compare-col li{
  font-size:13.5px;
  padding:8px 0 8px 26px;
  position:relative;
  border-top:1px solid rgba(0,0,0,.06);
}
.op-compare-col--dark li{ border-top:1px solid rgba(255,255,255,.08); color:rgba(255,255,255,.75); }
.op-compare-col li:first-of-type{ border-top:none; }
.op-compare-col--muted li::before{ content:"✕"; position:absolute; left:0; color:var(--op-gray-400); font-size:12px; top:9px; }
.op-compare-col--dark li::before{ content:"✓"; position:absolute; left:0; color:var(--op-orange-400); font-size:12px; top:9px; }

/* =====================================================================
   13d. LA SOLUCIÓN / ANALÍTICA — layout a dos columnas
   ===================================================================== */
.op-solucion{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--op-s7);
  align-items:center;
}
@media (max-width:900px){ .op-solucion{ grid-template-columns:1fr; } }

.op-solucion--invertido .op-solucion-texto{ order:2; }
.op-solucion--invertido .op-texto-imagen-media,
.op-solucion--invertido .op-texto-html-media{ order:1; }
@media (max-width:900px){
  .op-solucion--invertido .op-solucion-texto,
  .op-solucion--invertido .op-texto-imagen-media,
  .op-solucion--invertido .op-texto-html-media{ order:initial; }
}

.op-texto-imagen-media img{
  width:100%;
  height:auto;
  display:block;
  border-radius:var(--op-r-lg);
}

.op-texto-html-media{
  width:100%;
}
.op-texto-html-media iframe,
.op-texto-html-media video,
.op-texto-html-media embed{
  width:100%;
  border-radius:var(--op-r-lg);
  border:none;
}

.op-solucion-texto h2{ margin:0 0 var(--op-s4); }
.op-solucion-texto p{ margin:0 0 var(--op-s5); line-height:1.6; }
.op-solucion-texto .button{ margin-top:var(--op-s5); }

.op-solucion-texto ul.op-dark-bullets{
  list-style:none;
  margin:var(--op-s4) 0 var(--op-s6);
  padding:0;
}
.op-solucion-texto ul.op-dark-bullets li{
  font-size:14px;
  padding:8px 0 8px 20px;
  position:relative;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.7);
}
.op-solucion-texto ul.op-dark-bullets li:first-child{ border-top:none; }
.op-solucion-texto ul.op-dark-bullets li::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background:var(--op-orange-500);
  position:absolute; left:0; top:15px;
}
.op-eyebrow--dark{ /* el eyebrow ya es naranja por defecto; se mantiene igual sobre fondo oscuro */ }

.op-band-dark{
  background:var(--op-navy-900);
  color:var(--op-white);
  padding:var(--op-s8) var(--op-s7);
}
.op-band-dark h2{ color:var(--op-white); }
.op-band-dark p{ color:rgba(255,255,255,.65); }

/* =====================================================================
   13e. DEMO ANIMADA DEL BUSCADOR ("La solución")
   ===================================================================== */
.op-search-demo{
  background:var(--op-white);
  border:1px solid var(--op-gray-150);
  border-radius:var(--op-r-lg);
  padding:var(--op-s5);
  box-shadow:var(--op-shadow-card);
}
.op-search-demo-bar{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--op-gray-200);
  border-radius:var(--op-r-md);
  padding:12px 16px;
  margin-bottom:var(--op-s4);
  font-family:var(--op-font);
  font-size:14px;
  min-height:20px;
}
.op-search-demo-icon{ color:var(--op-gray-400); font-size:14px; }
.op-search-demo-typed{ color:var(--op-black); }
.op-search-demo-cursor{
  display:inline-block;
  width:1px;
  height:16px;
  background:var(--op-orange-500);
  margin-left:1px;
  animation:op-blink 1s steps(1) infinite;
  vertical-align:middle;
}
@keyframes op-blink{ 50%{ opacity:0; } }

.op-search-demo-results{ display:flex; flex-direction:column; gap:2px; }
.op-search-demo-result{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 4px;
  border-top:1px solid var(--op-gray-150);
  opacity:0;
  transform:translateY(6px);
  transition:opacity .35s ease, transform .35s ease;
}
.op-search-demo-result.is-visible{ opacity:1; transform:translateY(0); }
.op-search-demo-result:first-child{ border-top:none; }
.op-search-demo-thumb{
  width:34px; height:34px; flex-shrink:0;
  border-radius:8px;
  background:var(--op-gray-150);
}
.op-search-demo-info{ flex:1; min-width:0; }
.op-search-demo-name{ font-size:13.5px; font-weight:600; }
.op-search-demo-meta{ font-size:11.5px; color:var(--op-gray-400); }
.op-search-demo-price{ font-size:13.5px; font-weight:700; flex-shrink:0; }
.op-search-demo-footer{ text-align:center; margin-top:var(--op-s3); padding-top:var(--op-s3); border-top:1px solid var(--op-gray-150); }

@media (prefers-reduced-motion: reduce){
  .op-search-demo-cursor{ animation:none; }
  .op-search-demo-result{ transition:none; }
}

/* =====================================================================
   13f. PANEL DE ANALÍTICA (animado)
   ===================================================================== */
.op-analytics-panel{
  background:var(--op-white);
  color:var(--op-black);
  border-radius:var(--op-r-lg);
  padding:var(--op-s5);
}
.op-analytics-panel-title{
  font-size:13px;
  font-weight:600;
  color:var(--op-gray-600);
  margin-bottom:var(--op-s4);
}
.op-metrics-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:var(--op-s4);
  padding-bottom:var(--op-s4);
  border-bottom:1px solid var(--op-gray-150);
  margin-bottom:var(--op-s4);
}
@media (max-width:420px){
  .op-metrics-grid{ grid-template-columns:repeat(2, 1fr); }
}
.op-metric-num{ font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
.op-metric-label{ font-size:11px; color:var(--op-gray-400); margin-top:2px; }

.op-analytics-table-wrap{ margin-bottom:var(--op-s4); }
.op-analytics-table-title{
  font-size:11px;
  font-weight:700;
  letter-spacing:.03em;
  color:var(--op-gray-400);
  margin-bottom:8px;
}
.op-analytics-table{ width:100%; border-collapse:collapse; font-size:13px; }
.op-analytics-table th{
  text-align:left;
  font-size:10.5px;
  text-transform:uppercase;
  color:var(--op-gray-400);
  font-weight:600;
  padding:6px 4px;
  border-bottom:1px solid var(--op-gray-150);
}
.op-analytics-table td{ padding:8px 4px; border-bottom:1px solid var(--op-gray-150); }
.op-analytics-table tr:last-child td{ border-bottom:none; }
.op-analytics-table tr[data-highlight]{
  opacity:0;
  transform:translateX(-6px);
  transition:opacity .35s ease, transform .35s ease;
  transition-delay:calc(var(--row-i, 0) * 90ms);
}
.op-analytics-table tr[data-highlight].is-visible{ opacity:1; transform:translateX(0); }
.op-analytics-badge{
  display:inline-block;
  background:var(--op-orange-tint);
  color:var(--op-orange-tint-text);
  font-weight:700;
  font-size:12px;
  padding:2px 8px;
  border-radius:var(--op-r-pill);
}
.op-analytics-nota{ font-size:11.5px; color:var(--op-gray-400); margin:var(--op-s3) 0 0; }

@media (prefers-reduced-motion: reduce){
  .op-analytics-table tr[data-highlight]{ transition:none; }
}

/* =====================================================================
   13g. LIMPIEZA DE MARCADO PROPIO DE EDD
   ===================================================================== */
.single-download .edd_download_purchase_form{ margin-bottom:0; }
.op-card .edd_download_purchase_form{ margin:0; }
.op-card .edd_purchase_submit_wrapper{ margin:0; }

/* =====================================================================
   13h. FORMULARIO DE CONTACTO (Contact Form 7)
   ===================================================================== */
.op-form-puntos{
  list-style:none;
  margin:var(--op-s4) 0 0;
  padding:0;
}
.op-form-puntos li{
  font-size:14px;
  color:var(--op-gray-600);
  padding:8px 0 8px 20px;
  position:relative;
  border-top:1px solid var(--op-gray-150);
}
.op-form-puntos li:first-child{ border-top:none; }
.op-form-puntos li::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background:var(--op-orange-500);
  position:absolute; left:0; top:15px;
}

.op-contact-form-card{
  background:var(--op-white);
  border:1px solid var(--op-gray-150);
  border-radius:var(--op-r-lg);
  padding:var(--op-s6);
  box-shadow:var(--op-shadow-card);
}

/* Contact Form 7 pinta sus propias clases (wpcf7-*); las estilamos aquí
   en vez de tocar el HTML del formulario. */
.op-contact-form-card .wpcf7-form p{ margin:0 0 var(--op-s4); }

/* Fila de dos campos en línea (ej. nombre + email), envuélvelos en
   <div class="op-cf7-row">...</div> en el formulario de CF7. */
.op-contact-form-card .op-cf7-row{
  display:flex;
  gap:var(--op-s4);
}
.op-contact-form-card .op-cf7-row > p{
  flex:1;
  min-width:0;
  margin:0 0 var(--op-s4);
}
@media (max-width:600px){
  .op-contact-form-card .op-cf7-row{ flex-direction:column; gap:0; }
}
.op-contact-form-card .wpcf7-form label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--op-gray-900);
  margin-bottom:6px;
}
.op-contact-form-card .wpcf7-form-control-wrap{ display:block; margin-top:6px; }

.op-contact-form-card input[type="text"],
.op-contact-form-card input[type="email"],
.op-contact-form-card input[type="tel"],
.op-contact-form-card textarea,
.op-contact-form-card select{
  width:100%;
  box-sizing:border-box;
  font-family:var(--op-font);
  font-size:14px;
  color:var(--op-black);
  background:var(--op-white);
  border:1px solid var(--op-gray-200);
  border-radius:var(--op-r-md);
  padding:12px 14px;
  transition:border-color .15s ease;
}
.op-contact-form-card textarea{ min-height:120px; resize:vertical; }
.op-contact-form-card input:focus,
.op-contact-form-card textarea:focus,
.op-contact-form-card select:focus{
  outline:none;
  border-color:var(--op-orange-500);
}

.op-contact-form-card .wpcf7-acceptance{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:12.5px;
  color:var(--op-gray-600);
  margin:0 0 var(--op-s4);
}
.op-contact-form-card .wpcf7-acceptance .wpcf7-list-item{ margin:0; }
.op-contact-form-card .wpcf7-acceptance label{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-weight:400;
}
.op-contact-form-card .wpcf7-acceptance input{ margin-top:3px; }
.op-contact-form-card .wpcf7-acceptance a{ color:var(--op-orange-500); }

.op-contact-form-card input.wpcf7-submit{
  width:100%;
  margin-top:4px;
}

.op-contact-form-card .wpcf7-not-valid-tip{
  display:block;
  font-size:12px;
  color:#d1442c;
  margin-top:4px;
}
.op-contact-form-card .wpcf7-response-output{
  margin:var(--op-s4) 0 0;
  padding:12px 14px;
  border-radius:var(--op-r-md);
  font-size:13px;
  border:1px solid var(--op-gray-200);
}
.op-contact-form-card form.sent .wpcf7-response-output{
  border-color:#bfe3c8;
  background:#f1faf3;
  color:#1a7f37;
}
.op-contact-form-card form.failed .wpcf7-response-output,
.op-contact-form-card form.aborted .wpcf7-response-output{
  border-color:#f3c6bb;
  background:#fdf2ef;
  color:#d1442c;
}
.op-contact-form-card form.invalid .wpcf7-response-output{
  border-color:var(--op-gray-200);
  background:var(--op-gray-100);
  color:var(--op-gray-600);
}
.op-contact-form-card .wpcf7-spinner{ margin-left:8px; }

@media (max-width:900px){ .op-contact-form-card{ padding:var(--op-s5); } }

/* =====================================================================
   14. EDD CHECKOUT — página "Finalizar compra"
   ===================================================================== */
#edd_checkout_form_wrap{
  font-family:var(--op-font);
  color:var(--op-black);
  display:grid;
  grid-template-columns:1fr;
  gap:var(--op-s6);
}
@media (min-width:900px){
  #edd_checkout_form_wrap{
    grid-template-columns:1fr 380px;
    align-items:start;
  }
  #edd_checkout_form_wrap .edd-blocks__logged-in{ grid-column:1 / -1; }
  #edd_checkout_form_wrap .edd-blocks__purchase-form{ grid-column:1; grid-row:2; }
  #edd_checkout_form_wrap .edd-blocks__cart{
    grid-column:2;
    grid-row:2;
    position:sticky;
    top:calc(var(--op-s6) + 90px);
  }
}

.edd-blocks__logged-in{
  background:var(--op-gray-100);
  border-radius:var(--op-r-md);
  padding:12px 16px;
  font-size:13.5px;
  color:var(--op-gray-600);
  margin:0;
}
.edd-blocks__logged-in a{ color:var(--op-orange-500); }

/* ---------- Carrito ---------- */
.edd-blocks-cart{
  background:var(--op-white);
  border:1px solid var(--op-gray-150);
  border-radius:var(--op-r-lg);
  overflow:hidden;
}
.edd-blocks-cart__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--op-s4);
  padding:16px 20px;
  border-bottom:1px solid var(--op-gray-150);
}
.edd-blocks-cart__row:last-child{ border-bottom:none; }
.edd-blocks-cart__row-header{
  background:var(--op-gray-100);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--op-gray-400);
}
.edd_cart_item_name{ display:flex; align-items:flex-start; gap:12px; flex:2 !important; min-width:0; }
.edd_checkout_cart_item_title{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13.5px;
  font-weight:600;
  color:var(--op-black);
  line-height:1.4;
}
.edd_cart_item_image img{ width:40px !important; height:40px !important; border-radius:2px !important; display:block; flex-shrink:0; }
.eddr-notice.eddr-cart-item-notice{
  font-size:11.5px;
  color:var(--op-gray-400);
  margin:4px 0 0;
  font-style:normal;
}
.edd_cart_item_price{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:14px;
  font-weight:700;
  color:var(--op-black);
}
.edd-blocks-form__cart .edd-blocks-cart__row > div:last-of-type:not(:first-of-type),
.edd-blocks-form__cart .edd_cart_footer_row > div:last-of-type:not(:first-of-type){
  flex:1 !important;
}
.edd_cart_actions a.edd_cart_remove_item_btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--op-gray-100);
  position:relative;
  text-decoration:none;
  flex-shrink:0;
}
.edd_cart_actions a.edd_cart_remove_item_btn::before,
.edd_cart_actions a.edd_cart_remove_item_btn::after{
  content:"";
  position:absolute;
  width:10px;
  height:1.5px;
  background:var(--op-gray-600);
  top:50%; left:50%;
}
.edd_cart_actions a.edd_cart_remove_item_btn::before{ transform:translate(-50%,-50%) rotate(45deg); }
.edd_cart_actions a.edd_cart_remove_item_btn::after{ transform:translate(-50%,-50%) rotate(-45deg); }
.edd_cart_actions a.edd_cart_remove_item_btn:hover{ background:var(--op-orange-tint); }
.edd_cart_actions a.edd_cart_remove_item_btn:hover::before,
.edd_cart_actions a.edd_cart_remove_item_btn:hover::after{ background:var(--op-orange-tint-text); }

.edd_cart_total{ font-size:15px; font-weight:700; color:var(--op-black); }
.edd_cart_total .edd_cart_amount{ color:var(--op-orange-500); }

.edd-blocks-cart__row-buttons{ justify-content:flex-end; background:var(--op-gray-100); }
#edd-save-cart-button.edd-cart-saving-button{
  background:var(--op-white) !important;
  color:var(--op-gray-600) !important;
  border:1px solid var(--op-gray-200) !important;
  box-shadow:none !important;
  padding:9px 18px !important;
  font-size:13px !important;
}
#edd-save-cart-button.edd-cart-saving-button:hover{ border-color:var(--op-orange-500) !important; color:var(--op-black) !important; }

/* ---------- Formulario (datos personales y pago) ---------- */
.edd-blocks-form__purchase fieldset{
  border:none;
  padding:0;
  margin:0 0 var(--op-s6);
}
.edd-blocks-form__purchase legend{
  font-size:17px;
  font-weight:700;
  color:var(--op-black);
  padding:0 0 var(--op-s4);
  width:100%;
}
.cfm-el{ margin-bottom:var(--op-s4); }
.edd-blocks-form__purchase .edd-label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--op-gray-900);
  margin-bottom:4px;
}
.edd-blocks-form__purchase .edd-required-indicator{ color:var(--op-orange-500); }
.edd-blocks-form__purchase .edd-description{
  display:block;
  font-size:12px;
  color:var(--op-gray-400);
  margin-bottom:6px;
}
.edd-blocks-form__purchase input[type="text"],
.edd-blocks-form__purchase input[type="email"],
.edd-blocks-form__purchase input[type="tel"]{
  width:100%;
  box-sizing:border-box;
  font-family:var(--op-font);
  font-size:14px;
  color:var(--op-black);
  background:var(--op-white);
  border:1px solid var(--op-gray-200);
  border-radius:var(--op-r-md);
  padding:10px 12px !important;
  transition:border-color .15s ease;
}
.edd-blocks-form__purchase input:focus{ outline:none; border-color:var(--op-orange-500); }

#edd_secure_site_wrapper{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--op-gray-100);
  border-radius:var(--op-r-md);
  padding:12px 16px;
  font-size:12.5px;
  color:var(--op-gray-600);
  margin-bottom:var(--op-s4);
}
#edd_secure_site_wrapper .padlock svg{ width:14px; height:auto; fill:var(--op-gray-400); }

#edd-card-wrap{
  border:1px solid var(--op-gray-200);
  border-radius:var(--op-r-md);
  padding:16px;
  background:var(--op-white);
}

#edd_final_total_wrap{
  background:var(--op-gray-100);
  border-radius:var(--op-r-md);
  padding:16px 18px;
  font-size:14px;
  color:var(--op-gray-600);
  margin:0 0 var(--op-s5);
  line-height:1.6;
}
#edd_final_total_wrap strong{ color:var(--op-black); }
.edd_recurring_trial_total{ font-size:22px; font-weight:700; color:var(--op-orange-500); }
.edd_recurring_trial_total_sep{ margin:0 4px; }
.edd_recurring_trial_total_note{ display:block; font-size:12px; margin-top:4px; }

input#edd-purchase-button.edd-submit{
  width:100%;
  font-size:15px !important;
  padding:15px 24px !important;
}

@media (max-width:600px){
  .edd-blocks-cart__row{ padding:14px 16px; }
}

/* =====================================================================
   14b. SIDE CART DE EDD (Web Component con Shadow DOM)
   ===================================================================== */
/* Las clases normales (.cart-preview__item...) no llegan porque viven
   dentro de un shadow root; hay que estilar vía ::part(). El nombre del
   elemento personalizado se deduce del id de la plantilla
   ("edd-cart-preview-item-template" → <edd-cart-preview-item>), que es
   la convención habitual de WordPress para estos componentes. */

edd-cart-preview-item::part(item){
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 0;
  border-bottom:1px solid var(--op-gray-150);
}

edd-cart-preview-item::part(item-image){
  width:48px;
  height:48px;
  border-radius:8px;
  object-fit:cover;
  flex-shrink:0;
  background:var(--op-gray-100);
}

edd-cart-preview-item::part(item-details){
  flex:1;
  min-width:0;
}

edd-cart-preview-item::part(item-name){
  font-family:var(--op-font);
  font-size:13.5px;
  font-weight:600;
  color:var(--op-black);
  margin:0 0 4px;
  line-height:1.4;
}

edd-cart-preview-item::part(item-price){
  font-family:var(--op-font);
  font-size:13px;
  font-weight:700;
  color:var(--op-orange-500);
}

edd-cart-preview-item::part(item-quantity){ margin-top:8px; }
edd-cart-preview-item::part(quantity-control){
  display:flex;
  align-items:center;
  gap:8px;
}
edd-cart-preview-item::part(quantity-button){
  width:22px;
  height:22px;
  border-radius:6px;
  border:1px solid var(--op-gray-200);
  background:var(--op-white);
  color:var(--op-gray-600);
  cursor:pointer;
  transition:border-color .15s ease;
}
edd-cart-preview-item::part(quantity-button):hover{ border-color:var(--op-orange-500); }
edd-cart-preview-item::part(quantity-display){
  font-family:var(--op-font);
  font-size:13px;
  min-width:20px;
  text-align:center;
}

edd-cart-preview-item::part(item-fees){ margin-top:6px; }
edd-cart-preview-item::part(fees-list){
  font-size:11.5px;
  color:var(--op-gray-400);
}

edd-cart-preview-item::part(item-remove){
  width:26px;
  height:26px;
  flex-shrink:0;
  border:none;
  border-radius:50%;
  background:var(--op-gray-100);
  color:var(--op-gray-600);
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
edd-cart-preview-item::part(item-remove):hover{
  background:var(--op-orange-tint);
  color:var(--op-orange-tint-text);
}

/* ---------- Cajón del carrito: <edd-cart-preview> ---------- */
edd-cart-preview::part(dialog){
  font-family:var(--op-font);
  border:none;
}
edd-cart-preview::part(header){
  border-bottom:1px solid var(--op-gray-150);
}

/* Pie con los dos botones */
edd-cart-preview::part(footer){
  display:flex;
  gap:12px;
  border-top:1px solid var(--op-gray-150);
}

/* Base común a los dos botones (part="button ...") */
edd-cart-preview::part(button){
  flex:1;
  font-family:var(--op-font);
  font-weight:600;
  font-size:14px;
  line-height:1.2;
  padding:13px 20px;
  border-radius:var(--op-r-md);
  border:none;
  cursor:pointer;
  text-align:center;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:box-shadow .18s ease, filter .18s ease, border-color .15s ease;
}

/* "Seguir comprando" — secundario, como op-btn-secondary */
edd-cart-preview::part(continue-button){
  background:var(--op-white);
  color:var(--op-black);
  border:1px solid var(--op-gray-200);
}
edd-cart-preview::part(continue-button):hover{
  border-color:var(--op-orange-500);
}

/* "Finalizar compra" — primario, como .button */
edd-cart-preview::part(checkout-button){
  background:linear-gradient(90deg,var(--op-orange-500),var(--op-orange-300));
  color:var(--op-white);
  box-shadow:var(--op-glow-orange);
}
edd-cart-preview::part(checkout-button):hover{
  filter:brightness(1.04);
}

/* =====================================================================
   14c. COMPARATIVA LITE VS PRO (tabla)
   ===================================================================== */
.op-lp-table-wrap{
  background:var(--op-white);
  border:1px solid var(--op-gray-150);
  border-radius:var(--op-r-lg);
  overflow:hidden;
  width:100%;
}
.op-lp-table{ width:100%; border-collapse:collapse; table-layout:fixed; }
.op-lp-table th:first-child,
.op-lp-table td:first-child{ width:55%; }
.op-lp-table th:not(:first-child),
.op-lp-table td:not(:first-child){ width:22.5%; }
.op-lp-table th,
.op-lp-table td{
  padding:14px 16px;
  text-align:center;
  border-bottom:1px solid var(--op-gray-150);
  font-size:14px;
}
.op-lp-table tr:last-child td{ border-bottom:none; }
.op-lp-table th{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--op-gray-600);
  background:var(--op-gray-100);
}
.op-lp-caracteristica{ text-align:left; font-weight:600; color:var(--op-black); }
.op-lp-col-pro{ background:var(--op-orange-tint); }
th.op-lp-col-pro{ color:var(--op-orange-tint-text); background:var(--op-orange-tint); }
.op-lp-check{ color:var(--op-orange-500); font-weight:700; }
.op-lp-cross{ color:var(--op-gray-400); }

@media (max-width:480px){
  .op-lp-table th, .op-lp-table td{ padding:10px 8px; font-size:13px; }
}

/* =====================================================================
   13. WOOCOMMERCE (opcional — mismo lenguaje visual en precios/CTA)
   ===================================================================== */
.woocommerce .price,
.woocommerce-Price-amount{
  color:var(--op-orange-500);
  font-weight:700;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit{
  background:linear-gradient(90deg,var(--op-orange-500),var(--op-orange-300));
  color:var(--op-white) !important;
}
