@charset "utf-8";
/*
Theme Name: FlexiTheme PRO
Theme URI: https://masterpubli.com/
Author: JMT
Author URI: https://masterpubli.com/
Description: Tema profesional, limpio, rápido y flexible, optimizado para SEO, Adsense y plugins by JMT. Panel PRO y Premium listos para escalar.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flexitheme-pro
Tags: limpio, profesional, responsive, rápido, seo, adsense, personalizable, premium-ready

📝 MEMORIA FLEXITHEME PRO (Julio 2025):
“FlexiTheme PRO ya tiene una base visual WOW, modular y rápida, con ticker animado, header limpio, hero editable, grid responsive, CTA, sidebar y footer PRO, todo listo para seguir escalando. Pendiente de panel de opciones visual, demo importer, widgets propios, footer/header configurables, publicidad nativa, integración total plugins JMT, optimización SEO/velocidad/accesibilidad/legal y guía visual. Próximo paso: decidir el módulo clave a implementar y avanzar a la plantilla definitiva.”
*/

/* ===== VARIABLES ===== */
:root {
  --color-primario: #2058b0;
  --color-secundario: #44e7ee;
  --color-acento: #FFD700;
  --color-footer: #223255;
  --color-bg: #f8fafd;
  --color-txt: #1a202c;
  --radius-main: 24px;
  --radius-btn: 18px;
  --radius-card: 16px;
  --sombra-suave: 0 2px 16px rgba(32,88,176,.11);
  --sombra-hero: 0 10px 36px -12px #2058b088;
  --sombra-card: 0 1px 8px rgba(0,0,0,0.08);
  --sombra-card-hover: 0 12px 32px -8px var(--color-acento)88;
  --trans-fast: .18s;
  --header-height: 70px;
}

/* ===== RESET Y BASE ===== */
html, body {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-txt);
  min-height: 100%;
}
*, *:before, *:after { box-sizing: inherit; }
a {
  color: var(--color-acento);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* ===== TICKER HOT NEWS ===== */
.ticker-bar {
  width: 100%;
  background: #111;
  color: #fff;
  padding: 0;
  text-align: left;
  font-size: 0.96em;
  font-weight: 600;
  border-bottom: 2px solid #20c7ff;
  box-shadow: 0 2px 9px -8px #0ff3;
  display: flex;
  align-items: center;
  min-height: 18px;
  height: 22px;
  position: relative;
  overflow: hidden;
  z-index: 100;
}
.ticker-label {
  color: #E53935;
  font-weight: bold;
  padding: 0 10px;
  font-size: 1em;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.ticker-content-scroll {
  flex: 1;
  overflow: hidden;
  height: 22px;
  display: flex;
  align-items: center;
}
.ticker-scroll-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll-anim 35s linear infinite;
}
@keyframes ticker-scroll-anim {
  0% { transform: translateX(100%);}
  100% { transform: translateX(-100%);}
}
.ticker-news-item {
  display: inline-block;
  margin-right: 28px;
  font-weight: 500;
  font-size: 1em;
  color: #fff;
}
.ticker-news-item a {
  color: #20c7ff;
  text-decoration: none;
  font-weight: bold;
  transition: color .15s;
}
.ticker-news-item a:hover {
  color: var(--color-acento);
  text-decoration: underline;
}

/* ===== HEADER WOW ===== */
.site-header {
  background: linear-gradient(90deg, var(--color-primario) 0%, #2f80ed 70%, var(--color-secundario) 100%);
  color: #fff;
  min-height: 114px;
  box-shadow: 0 3px 36px -7px #2058b080;
  border-radius: 0 0 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 62px 0 26px;
  position: relative;
  z-index: 50;
  margin-bottom: 0;
  height: var(--header-height);
}
.sticky-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--color-primario) 0%, #2f80ed 70%, var(--color-secundario) 100%);
  box-shadow: 0 8px 28px -10px #2058b088;
  z-index: 999;
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-title { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.logo-img img { max-height: 96px !important; width: auto; }
.logo-fallback .site-title { font-size: 1.5em; font-weight: 800; color: var(--color-acento);}
.site-info { display: flex; flex-direction: column; margin-left: 8px;}
.site-title { font-size: 1.36em; color: var(--color-acento); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; text-shadow: 0 2px 7px #2223; }
.site-desc { font-size: 1em; color: #fff; font-weight: 400; opacity: 0.82; margin-top: -2px; }

/* ==== MENÚ MEJORADO ==== */
.main-menu-list {
  display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0;
  list-style: none; font-size: 1em; font-weight: 700;
}
.main-menu-list li { margin: 0; }
.main-menu-list a {
  color: #fff;
  text-decoration: none;
  transition: color .18s, border-bottom .18s, background .18s;
  border-bottom: 2px solid transparent;
  padding: 7px 15px;
  border-radius: 10px;
  font-size: 1em;
  background: linear-gradient(90deg, #2569d0 0%, #188ecf 100%);
  box-shadow: 0 2px 12px -8px #1113;
  position: relative;
}
.main-menu-list a:hover {
  background: linear-gradient(90deg, var(--color-acento) 0%, #ffae00 100%);
  color: var(--color-primario);
  border-bottom: 2px solid var(--color-acento);
  text-shadow: 0 1px 3px #fff7;
}

/* ==== BOTÓN CTA HEADER ==== */
/* BOTÓN CTA QUITADO POR REQUERIMIENTO */
/* Puedes eliminar el bloque o dejarlo oculto */
/*
.header-cta .btn-header-cta {
  display: none !important;
}
*/

/* ==== BOTÓN MODO OSCURO ==== */
.darkmode-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.36em;
  margin-left: 12px;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background .14s;
  outline: none;
  display: inline-flex;
  align-items: center;
}
.darkmode-toggle:hover {
  background: #2058b077;
}
.icon-moon { font-size: 1.28em; line-height: 1; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ===== MENÚ MÓVIL PRO ===== */
.menu-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 12px;
  padding: 7px 9px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
}
.menu-mobile-toggle span {
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 3px;
  display: block;
  transition: all 0.2s;
}
.main-menu-mobile {
  display: none;
  background: linear-gradient(90deg, var(--color-primario) 0%, var(--color-secundario) 100%);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  box-shadow: 0 2px 16px -4px #2058b055;
  z-index: 99;
  padding: 20px 0;
}
.main-menu-mobile.menu-mobile-open {
  display: block;
  animation: fadeInMenuMobile .25s;
}
@keyframes fadeInMenuMobile {
  from { opacity: 0; transform: translateY(-16px);}
  to   { opacity: 1; transform: translateY(0);}
}

/* ==== HERO ANIMADO PRO ==== */
.hero-animated {
  width: 100%;
  min-height: 340px;
  background: linear-gradient(120deg, var(--color-primario) 55%, var(--color-secundario) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 54px 0;
  border-radius: 0 0 34px 34px;
  margin-bottom: 2em;
  overflow: hidden;
  box-shadow: var(--sombra-hero);
  animation: hero-bg-move 11s ease-in-out infinite alternate;
  transition: box-shadow var(--trans-fast);
}
@keyframes hero-bg-move {
  0% {background-position: 0% 50%;}
  100% {background-position: 100% 50%;}
}
.hero-inner {
  text-align: left;
  z-index: 2;
  padding: 40px 64px 48px 64px;
  max-width: 760px;
}
.hero-title {
  font-size: 2.6em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(32,88,176,.12);
}
.hero-desc {
  font-size: 1.21em;
  color: #fff;
  margin-bottom: 28px;
  max-width: 550px;
}
.hero-btn {
  background: var(--color-acento);
  color: var(--color-primario);
  font-weight: 700;
  border-radius: 20px;
  padding: 13px 42px;
  font-size: 1.13em;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(32,88,176,.11);
  transition: .18s;
  display: inline-block;
}
.hero-btn:hover {
  background: var(--color-primario);
  color: #fff;
}
.hero-icon {
  font-size: 3em;
  color: var(--color-acento);
  line-height: 1;
  display: inline-block;
  margin-bottom: 10px;
}

/* ===== GRID/CARDS ===== */
.main-content {
  display: flex;
  gap: 32px;
  max-width: 1300px;
  margin: 40px auto 0;
}
.articles-grid > div {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--sombra-card);
  padding: 20px;
  min-height: 370px;
  max-height: 470px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow .22s, transform .18s;
}
.post-card img {
  max-height: 180px;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
}
.post-card:hover {
  box-shadow: var(--sombra-card-hover);
  transform: translateY(-7px) scale(1.025);
}

/* ===== SIDEBAR ===== */
.sidebar,
#secondary.widget-area {
  color: var(--color-primario);
  font-size: 1em;
  padding: 12px 6px;
}
.sidebar h2, .sidebar h3, .sidebar h4,
#secondary .widget-title {
  color: var(--color-primario);
  font-size: 1.13em;
  font-weight: 700;
}
.sidebar a, #secondary a {
  color: var(--color-primario);
  text-decoration: none;
  transition: color .18s;
}
.sidebar a:hover, #secondary a:hover {
  color: var(--color-acento);
}
.sidebar li,
.sidebar ul,
#secondary li,
#secondary ul {
  color: #181818;
  font-size: 1em;
}

/* ===== SIDEBAR MODO OSCURO MEJORADO ===== */
body.modo-oscuro .sidebar,
body.modo-oscuro #secondary.widget-area {
  color: #a0cfff; /* azul claro legible */
}
body.modo-oscuro .sidebar h2,
body.modo-oscuro .sidebar h3,
body.modo-oscuro .sidebar h4,
body.modo-oscuro #secondary .widget-title {
  color: #6ec1ff; /* azul más visible */
}
body.modo-oscuro .sidebar a,
body.modo-oscuro #secondary a {
  color: #6ec1ff; /* azul enlaces legible */
}
body.modo-oscuro .sidebar a:hover,
body.modo-oscuro #secondary a:hover {
  color: var(--color-acento);
}
body.modo-oscuro .sidebar li,
body.modo-oscuro .sidebar ul,
body.modo-oscuro #secondary li,
body.modo-oscuro #secondary ul {
  color: #d3e7ff;
}

/* ===== SIDEBAR STICKY ===== */
.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

/* ===== FOOTER WOW ===== */
.footer-wow {
  background: linear-gradient(90deg, var(--color-primario) 0%, var(--color-secundario) 100%);
  color: #fff;
  padding: 48px 0 18px 0;
  border-top: 4px solid var(--color-acento);
  box-shadow: 0 -3px 34px -7px #2058b080;
  margin-top: 56px;
}
.footer-content {
  display: flex;
  max-width: 1200px;
  margin: 0 auto 16px auto;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 42px;
}
.footer-col {
  min-width: 180px;
  flex: 1;
}
.footer-col h4 {
  font-size: 1.15em;
  margin-bottom: 14px;
  color: var(--color-acento);
  letter-spacing: 0.03em;
  font-weight: bold;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 7px;
}
.footer-col ul li a {
  color: var(--color-footer);
  opacity: 0.93;
  background: #fff8;
  padding: 2px 9px;
  border-radius: 6px;
  margin-right: 2px;
  font-weight: 500;
}
.footer-col ul li a:hover {
  color: var(--color-acento);
  background: var(--color-primario);
  text-decoration: underline;
}
.footer-copy {
  border-top: 1.5px solid #fff8;
  margin: 0 auto;
  text-align: center;
  padding: 10px 0 0 0;
  font-size: 0.99em;
  color: #fff;
  opacity: 0.90;
  letter-spacing: 0.02em;
}

/* ===== FULLWIDTH PAGE STYLES ===== */
.page-fullwidth .site-main {
  padding-top: 28px;
}
.fullwidth-article {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--sombra-suave);
  padding: 38px 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .fullwidth-article { padding: 18px 8px; }
}

/* ===== ANIMACIONES WOW (solo en lo esencial) ===== */
@media (hover: hover) {
  .hero-btn, .btn-header-cta, .main-menu-list a, .post-card, .cta-sidebar-btn {
    will-change: transform, box-shadow;
    transition: box-shadow 0.18s, transform 0.16s;
  }
  .hero-btn:hover,
  .btn-header-cta:hover,
  .cta-sidebar-btn:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 12px 36px -14px var(--color-acento)77;
  }
  .post-card:hover {
    box-shadow: var(--sombra-card-hover);
    transform: translateY(-7px) scale(1.028);
  }
}

/* ===== PREMIUM RIBBON / DEMO BADGE ===== */
.flexi-premium-ribbon {
  position: absolute;
  top: -8px; left: -8px;
  background: linear-gradient(90deg, var(--color-acento), #2058b0);
  color: #fff;
  font-weight: 700;
  font-size: 1em;
  padding: 4px 16px;
  border-radius: 14px 0 18px 0;
  box-shadow: 0 2px 8px #2058b055;
  z-index: 22;
  letter-spacing: 0.02em;
}

/* ===== WIDGET CTA (Sidebar PRO Ready) ===== */
.widget-cta .cta-sidebar-btn {
  display: block;
  width: 100%;
  background: var(--color-primario);
  color: #fff;
  font-weight: 700;
  padding: 12px 0;
  margin: 12px 0 0 0;
  border-radius: var(--radius-btn);
  text-align: center;
  box-shadow: var(--sombra-suave);
  transition: background var(--trans-fast), color var(--trans-fast), box-shadow var(--trans-fast);
}
.widget-cta .cta-sidebar-btn:hover {
  background: var(--color-acento);
  color: var(--color-primario);
}

/* ===== GUTENBERG OPTIMIZACIÓN ===== */
.alignfull, .wp-block-cover.alignfull, .wp-block-group.alignfull {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
  width: 100vw;
}
.wp-block-image img {
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
}
.wp-block-button__link {
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1.09em;
  background: var(--color-acento);
  color: var(--color-primario);
  box-shadow: var(--sombra-suave);
  transition: background .16s, color .16s;
}
.wp-block-button__link:hover {
  background: var(--color-primario);
  color: #fff;
}

/* ===== PREMIUM READY & UTILS ===== */
.premium-badge {
  display: inline-block;
  color: #fff;
  background: #2058b0;
  border-radius: 9px;
  padding: 3px 9px;
}

/* ===== CTA FINAL ===== */
.cta-final {
  width: 100%;
  max-width: 780px;
  margin: 48px auto 32px auto;
  background: linear-gradient(90deg,#2058b0 70%,#e6b800 120%);
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(32,88,176,.11);
  padding: 38px 32px;
  text-align: center;
}
.cta-title {
  color: #fff;
  font-size: 1.7em;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-desc {
  color: #fff;
  font-size: 1.15em;
  margin-bottom: 22px;
}
.cta-btn {
  background: #fff;
  color: #2058b0;
  font-weight: 700;
  border-radius: 18px;
  padding: 11px 38px;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(32,88,176,.07);
  transition: .18s;
  display: inline-block;
}
.cta-btn:hover {
  background: #2058b0;
  color: #fff;
  box-shadow: 0 4px 24px -6px #e6b80066;
}

/* ==== RESPONSIVE & MOBILE FIRST ==== */
@media (max-width: 1200px) {
  .main-content, .footer-content { max-width: 98vw; }
  .articles-grid > div { grid-template-columns: repeat(2,1fr);}
}
@media (max-width: 900px) {
  .main-content { flex-direction: column; gap: 20px;}
  .sidebar { position: relative; top: unset; }
  .articles-grid > div { grid-template-columns: 1fr;}
  .hero-inner { padding: 30px 16px 28px 16px;}
  .menu-mobile-toggle { display: inline-flex; }
  .main-menu { display: none !important; }
  .main-menu-mobile { display: block; }
}
@media (max-width: 700px) {
  .site-header { padding: 0 8px; border-radius: 0 0 18px 18px;}
  .main-content { margin-top: 20px; }
  .footer-content { flex-direction: column; gap: 18px;}
  .hero-title { font-size: 1.6em; }
  .post-card { min-height: 240px; padding: 9px;}
}

/* ==== ANIMACIONES WOW/ANIMATE.CSS PRO READY ==== */
.animate__animated, .wow {
  visibility: visible !important;
}

/* ===== MODO OSCURO PRO ACTIVADO ===== */
body.modo-oscuro, .modo-oscuro {
  --color-bg: #12191f;
  --color-txt: #f5f8fd;
  --color-footer: #222c3a;
  --color-primario: #141e30;
  --color-secundario: #1e466c;
  --color-acento: #FFD700;
  background: var(--color-bg) !important;
  color: var(--color-txt) !important;
}
body.modo-oscuro .footer-wow,
.modo-oscuro .footer-wow {
  background: linear-gradient(90deg, #141e30 0%, #1e466c 100%);
}
body.modo-oscuro .site-header,
.modo-oscuro .site-header {
  background: linear-gradient(90deg, #141e30 0%, #1e466c 100%);
}
body.modo-oscuro .main-menu-list a,
.modo-oscuro .main-menu-list a {
  background: linear-gradient(90deg, #192437 0%, #27406c 100%);
  color: #f5f8fd;
}
body.modo-oscuro .main-menu-list a:hover,
.modo-oscuro .main-menu-list a:hover {
  background: linear-gradient(90deg, #FFD700 0%, #ffe888 100%);
  color: #141e30;
}
body.modo-oscuro .btn-header-cta,
.modo-oscuro .btn-header-cta {
  background: #FFD700;
  color: #1e466c;
}
body.modo-oscuro .btn-header-cta:hover,
.modo-oscuro .btn-header-cta:hover {
  background: #141e30;
  color: #FFD700;
}
body.modo-oscuro .cta-final,
.modo-oscuro .cta-final {
  background: linear-gradient(90deg,#232b3a 70%,#e6b800 120%);
}
body.modo-oscuro .cta-btn,
.modo-oscuro .cta-btn {
  background: #FFD700;
  color: #1e466c;
}
body.modo-oscuro .cta-btn:hover,
.modo-oscuro .cta-btn:hover {
  background: #232b3a;
  color: #FFD700;
}
body.modo-oscuro .post-card,
.modo-oscuro .fullwidth-article {
  background: #1d2630;
  color: #f5f8fd;
}
body.modo-oscuro .footer-copy {
  border-top: 1.5px solid #FFD70033;
  color: #FFD700bb;
}
