/*
Theme Name: OmniXImpulso &amp; OmniX Pro
Theme URI: https://omniximpulso.com
Author: OmniXImpulso Team
Author URI: https://omniximpulso.com
Description: Tema premium a medida para OmniXImpulso (Agencia de IA y Operativa Conectada) y OmniX Pro (La red de profesionales que trabajan de forma inteligente). Incluye 5 landings de captación de alta conversión, página de alta de empresas y soporte para Contact Form 7, WPForms y Fluent Forms.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omniximpulso
Tags: custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* Los estilos principales se cargan modularmente desde css/styles.css y css/directorio.css */

/* ==========================================================================
   Plantillas genéricas: single, archive, search y 404
   ========================================================================== */
.omni-tpl-main { min-height: 65vh; padding: 72px 0 96px; background: var(--bg-primary); }
.omni-tpl-narrow { max-width: 760px; }
.omni-tpl-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-orange); margin-bottom: 12px; }
.omni-tpl-title { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 16px; }
.omni-tpl-lead { font-size: 1.1rem; line-height: 1.7; color: var(--text-secondary); max-width: 620px; }
.omni-tpl-page-head { margin-bottom: 48px; }
.omni-tpl-page-head .omni-tpl-search { margin-top: 24px; }

.omni-tpl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.omni-tpl-tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); background: var(--bg-accent-soft); color: var(--accent-orange); font-size: 0.78rem; font-weight: 700; text-decoration: none; }

/* Entrada individual */
.omni-tpl-article-head { margin-bottom: 32px; }
.omni-tpl-featured { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.omni-tpl-featured img { display: block; width: 100%; height: auto; }
.omni-tpl-content { font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); }
.omni-tpl-content > * + * { margin-top: 1.25em; }
.omni-tpl-content h2, .omni-tpl-content h3 { color: var(--text-primary); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin-top: 2em; }
.omni-tpl-content a { color: var(--accent-orange); text-decoration: underline; text-underline-offset: 3px; }
.omni-tpl-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.omni-tpl-content ul, .omni-tpl-content ol { padding-left: 1.4em; }
.omni-tpl-content blockquote { border-left: 4px solid var(--accent-orange); padding: 4px 0 4px 20px; color: var(--text-primary); font-weight: 600; }
.omni-tpl-article-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.omni-tpl-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border-subtle); }
.omni-tpl-postnav-link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); text-decoration: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.omni-tpl-postnav-link:hover { border-color: var(--border-orange); box-shadow: var(--shadow-md); }
.omni-tpl-postnav-link span { font-size: 0.8rem; font-weight: 700; color: var(--accent-orange); }
.omni-tpl-postnav-link strong { color: var(--text-primary); font-size: 0.95rem; line-height: 1.35; }
.omni-tpl-postnav-link.is-next { text-align: right; grid-column: 2; }

/* Rejilla de tarjetas (archivo y búsqueda) */
.omni-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.omni-tpl-card { display: flex; flex-direction: column; background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth); }
.omni-tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-orange); }
.omni-tpl-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-tertiary); }
.omni-tpl-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.omni-tpl-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.omni-tpl-card-title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.omni-tpl-card-title a { color: var(--text-primary); text-decoration: none; }
.omni-tpl-card-title a:hover { color: var(--accent-orange); }
.omni-tpl-card-excerpt { font-size: 0.95rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 18px; }
.omni-tpl-more { margin-top: auto; font-size: 0.9rem; font-weight: 700; color: var(--accent-orange); text-decoration: none; }

/* Paginación */
.omni-tpl-pagination { margin-top: 56px; }
.omni-tpl-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.omni-tpl-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); text-decoration: none; }
.omni-tpl-pagination .page-numbers.current, .omni-tpl-pagination a.page-numbers:hover { background: var(--accent-orange); border-color: var(--accent-orange); color: #fff; }

/* Buscador */
.omni-tpl-search { display: flex; gap: 10px; max-width: 520px; }
.omni-tpl-search input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 1px solid var(--border-medium); border-radius: var(--radius-full); font: inherit; font-size: 0.95rem; color: var(--text-primary); background: var(--bg-primary); }
.omni-tpl-search input[type="search"]:focus { outline: none; border-color: var(--accent-orange); box-shadow: 0 0 0 3px var(--accent-orange-glow); }
.omni-tpl-search .btn-pill-orange { flex-shrink: 0; border: 0; cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Estados vacíos y 404 */
.omni-tpl-empty { padding: 48px 32px; text-align: center; background: var(--bg-secondary); border: 1px dashed var(--border-medium); border-radius: var(--radius-lg); color: var(--text-secondary); }
.omni-tpl-empty p { margin-bottom: 20px; }
.omni-tpl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.omni-tpl-btn-ghost { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border: 1px solid var(--border-medium); border-radius: var(--radius-full); font-size: 0.92rem; font-weight: 700; color: var(--text-primary); text-decoration: none; transition: border-color var(--transition-fast), color var(--transition-fast); }
.omni-tpl-btn-ghost:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.omni-tpl-404 { text-align: center; }
.omni-tpl-404 .omni-tpl-lead, .omni-tpl-404 .omni-tpl-search { margin-left: auto; margin-right: auto; }
.omni-tpl-404 .omni-tpl-search { margin-top: 32px; }
.omni-tpl-404-code { display: block; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent-orange); opacity: 0.9; margin-bottom: 8px; }

@media (max-width: 640px) {
  .omni-tpl-main { padding: 48px 0 64px; }
  .omni-tpl-postnav { grid-template-columns: 1fr; }
  .omni-tpl-postnav-link.is-next { grid-column: auto; }
  .omni-tpl-search { flex-direction: column; }
  .omni-tpl-search .btn-pill-orange { justify-content: center; }
}
