/*
Theme Name: Hello Elementor Child
Description: Child theme para Hello Elementor - OffenAiEra
Author: Fernando Medina López / OffenAiEra
Template: hello-elementor
Version: 1.3.4
*/

/* ========= VARIABLES DE MARCA ========= */
:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --success: #10b981;
  --error: #ef4444;
}

/* ========= FIX LITESPEED DARK MODE BUG ========= */
@media (prefers-color-scheme: dark) {
  body[class*="litespeed"]:not(.litespeed-lightmode) {
    background-color: #0b0d14;
    color: inherit;
  }
}

/* ========= CHAT CONSENT BOX ========= */
#chatConsent {
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
  #chatConsent {
    bottom: 10px !important;
    right: 10px !important;
    left: 10px !important;
    max-width: none !important;
  }
}

/* ========= LOGOS: OCULTAR EN HEADER ========= */
.site-header .site-logo,
.site-header .custom-logo-link,
.site-header .custom-logo,
header .site-branding,
header .site-logo,
nav .site-logo,
.elementor-location-header .site-logo,
.elementor-location-header .custom-logo-link {
  display: none !important;
  visibility: hidden !important;
}

footer .site-logo,
.site-footer .site-logo,
.site-footer .custom-logo-link,
footer .custom-logo-link {
  display: block !important;
  visibility: visible !important;
}

/* Ocultar transición de Elementor / overlays típicos */
.e-page-transition,
.elementor-page-transition,
e-page-transition,
.elementor-page-transition-wrap,
.elementor-loading,
.elementor-loading-spinner,
.litespeed-overlay,
.litespeed-loader,
body [class*="preloader"],
body [id*="preloader"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* ========================================
   FIX DEFINITIVO: LOGO VISIBLE EN HOME
   ======================================== */

/* Forzar que el logo del brand SÍ se vea */
.nav .brand img,
nav .brand img,
.brand img {
  display: block !important;
  visibility: visible !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  transition: transform .3s !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Efecto hover */
.nav .brand:hover img,
nav .brand:hover img,
.brand:hover img {
  transform: rotate(360deg) scale(1.1) !important;
}

/* Asegurar que el contenedor brand también sea visible */
.nav .brand,
nav .brand,
.brand {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override específico para navegación */
.nav-inner .brand img {
  display: block !important;
  visibility: visible !important;
}
/* ========================================
   LOGO FORZADO - Solución LiteSpeed
   ======================================== */
.brand img,
.nav .brand img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  background: url('https://offenaiera.com/wp-content/uploads/2023/03/favicon-512-300x300.png') center/cover no-repeat !important;
  content: url('https://offenaiera.com/wp-content/uploads/2023/03/favicon-512-300x300.png') !important;
}

/* Si LiteSpeed convierte a webp */
.brand img[data-src*="favicon"] {
  background: url('https://offenaiera.com/wp-content/uploads/2023/03/favicon-512-300x300.png') center/cover no-repeat !important;
  content: url('https://offenaiera.com/wp-content/uploads/2023/03/favicon-512-300x300.png') !important;
}

/* ========================================
   DESACTIVAR PAGE TRANSITION COMPLETAMENTE
   ======================================== */
e-page-transition,
.e-page-transition,
.e-page-transition--entering,
.e-page-transition--entered,
.e-page-transition--exiting {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Forzar visibilidad del logo inmediatamente */
.brand,
.brand img,
.nav {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

body {
  opacity: 1 !important;
}
/* ========================================
   BLOG POSTS N8N - ESTILO DIVISUAL + COLORES OFFENAIERA
   ======================================== */

/* Wrapper - Fondo limpio */
.oe-blog-wrapper {
  margin: 0;
  padding: 40px 20px 80px;
  background: #f8f9fa;
  min-height: 100vh;
}

/* Tarjeta principal */
.oe-blog-wrapper .blog-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 50px 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Header con favicon izquierda */
.oe-blog-wrapper .header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.oe-blog-wrapper .header-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
}

.oe-blog-wrapper .header-text {
  flex: 1;
}

.oe-blog-wrapper .logo-text {
  color: #1f2937;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.oe-blog-wrapper .meta-info {
  color: #6b7280;
  font-size: 14px;
  margin: 4px 0 0 0;
  font-weight: 500;
}

/* Cover image grande */
.oe-blog-wrapper .cover-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 0 40px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* H1 - Título */
.oe-blog-wrapper h1 {
  color: #111827;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 30px 0;
  padding: 0;
  border: none;
}

/* Tiempo de lectura */
.oe-blog-wrapper .reading-time {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 30px;
  font-weight: 500;
}

/* H2 - Secciones */
.oe-blog-wrapper h2 {
  color: #1f2937;
  font-size: 32px;
  font-weight: 700;
  margin: 50px 0 25px 0;
  padding: 0;
  border: none;
  line-height: 1.3;
}

/* H3 - Subsecciones */
.oe-blog-wrapper h3 {
  color: #374151;
  font-size: 24px;
  font-weight: 700;
  margin: 35px 0 20px 0;
  padding: 0;
  border: none;
}

/* Párrafos */
.oe-blog-wrapper p,
.oe-blog-wrapper li {
  color: #374151 !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
  text-align: left !important;
  font-weight: 400 !important;
}

/* Enlaces - COLORES CORPORATIVOS */
.oe-blog-wrapper a {
  color: #667eea !important;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.oe-blog-wrapper a:hover {
  color: #764ba2 !important;
}

/* Puntos clave - COLORES CORPORATIVOS */
.oe-blog-wrapper .key-points {
  background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
  border-left: 4px solid #667eea;
  border-radius: 6px;
  padding: 25px 30px;
  margin: 35px 0;
}

.oe-blog-wrapper .key-points h3 {
  color: #667eea;
  margin: 0 0 15px 0;
  font-size: 20px;
}

.oe-blog-wrapper .key-points ul {
  margin: 0;
  padding-left: 25px;
}

.oe-blog-wrapper .key-points li {
  color: #1f2937 !important;
  margin-bottom: 12px;
  font-size: 17px !important;
  font-weight: 500 !important;
}

/* TOC */
.oe-blog-wrapper .toc {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 25px 30px;
  margin: 35px 0;
}

.oe-blog-wrapper .toc h3 {
  color: #111827;
  margin: 0 0 15px 0;
  font-size: 20px;
}

.oe-blog-wrapper .toc ul {
  margin: 0;
  padding-left: 25px;
}

.oe-blog-wrapper .toc li {
  margin-bottom: 10px;
  font-size: 16px !important;
}

.oe-blog-wrapper .toc a {
  color: #667eea !important;
  text-decoration: none;
  font-weight: 500;
}

.oe-blog-wrapper .toc a:hover {
  color: #764ba2 !important;
  text-decoration: underline;
}

/* Blockquote */
.oe-blog-wrapper blockquote {
  border-left: 4px solid #667eea;
  padding: 20px 25px;
  margin: 30px 0;
  background: rgba(102,126,234,0.05);
  font-style: italic;
  color: #4b5563;
}

/* FAQ */
.oe-blog-wrapper .faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 25px;
  margin: 20px 0;
  transition: all 0.2s;
}

.oe-blog-wrapper .faq-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}

.oe-blog-wrapper .faq-question {
  color: #667eea;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 12px;
}

.oe-blog-wrapper .faq-answer {
  color: #4b5563 !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

/* CTA Section - GRADIENTE CORPORATIVO */
.oe-blog-wrapper .cta-section {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
  text-align: center;
  padding: 40px;
  margin: 50px 0 30px 0;
}

.oe-blog-wrapper .cta-section h3 {
  color: #ffffff;
  font-size: 28px;
  margin: 0 0 15px 0;
}

.oe-blog-wrapper .cta-section p {
  color: #ffffff !important;
  font-size: 17px !important;
  margin-bottom: 20px;
}

.oe-blog-wrapper .cta-section a {
  color: #667eea !important;
  background: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.oe-blog-wrapper .cta-section a:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Listas */
.oe-blog-wrapper ul,
.oe-blog-wrapper ol {
  margin: 20px 0;
  padding-left: 30px;
}

.oe-blog-wrapper ul li::marker {
  color: #667eea;
}

/* Strong/Bold con color corporativo */
.oe-blog-wrapper strong {
  color: #667eea;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .oe-blog-wrapper {
    padding: 20px 10px 60px;
  }

  .oe-blog-wrapper .blog-container {
    padding: 30px 25px;
  }

  .oe-blog-wrapper .header {
    gap: 12px;
  }

  .oe-blog-wrapper .header-logo {
    width: 40px;
    height: 40px;
  }

  .oe-blog-wrapper .logo-text {
    font-size: 20px;
  }

  .oe-blog-wrapper h1 {
    font-size: 32px;
  }

  .oe-blog-wrapper h2 {
    font-size: 26px;
  }

  .oe-blog-wrapper h3 {
    font-size: 22px;
  }

  .oe-blog-wrapper p,
  .oe-blog-wrapper li {
    font-size: 17px !important;
  }

  .oe-blog-wrapper .key-points,
  .oe-blog-wrapper .toc,
  .oe-blog-wrapper .faq-item {
    padding: 20px;
  }

  .oe-blog-wrapper .cta-section {
    padding: 30px 20px;
  }
}
/* ========================================
   FIX ENLACES BLOG - TODA LA TARJETA CLICKEABLE
   ======================================== */
.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .3s;
}

.article-card-link:hover {
  text-decoration: none;
}

.article-card-link:focus {
  outline: 2px solid rgba(102, 126, 234, 0.5);
  outline-offset: 2px;
}
/* ====== ELIMINAR OVERLAY DE ELEMENTOR QUE BLOQUEA CLICKS ====== */
e-page-transition,
.e-page-transition,
.e-page-transition--entering {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}
/* ====== FIX: Hero no debe bloquear clicks en tarjetas ====== */
.hero-blog-content {
  pointer-events: none !important;
}

.hero-blog-content * {
  pointer-events: auto !important;
}

/* Asegurar que las tarjetas tengan z-index correcto */
.blog-section {
  position: relative;
  z-index: 10;
}

.article-card-link {
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
}