/*
Theme Name: Macarena
Theme URI: https://oreate.ai
Description: Tema minimalista: header configurable con logo centrado y menu elegante (tamaño, colores y espaciado horizontal ajustables desde el Personalizar), fondo configurable, sin sidebars ni footer. Diseñado para mostrar solo un shortcode.
Version: 2.1.0
Author: OreateAI
Author URI: https://oreate.ai
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: macarena
Tags: minimal, custom-background, custom-logo, menu, blank
*/

/* === RESET COMPLETO === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}

/* === CONTENEDOR PRINCIPAL === */
.site-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

/* === HEADER CONFIGURABLE === */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 25px 20px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* === LOGO CENTRADO DENTRO DEL HEADER === */
.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 15px;
    width: 100%;
}

.site-logo img {
    max-width: 300px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-logo .site-title-text {
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
}

/* === MENU DE NAVEGACION ELEGANTE === */
.site-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 0 18px;
}

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

.site-nav ul li {
    position: relative;
    margin: 0;
    padding: 0;
}

.site-nav ul li a {
    display: block;
    padding: 10px 22px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
}

/* Linea animada debajo del link */
.site-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2px;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.site-nav ul li a:hover::after,
.site-nav ul li a:focus::after,
.site-nav ul li.current-menu-item > a::after,
.site-nav ul li.current_page_item > a::after {
    transform: translateX(-50%) scaleX(1);
}

/* Submenu desplegable elegante */
.site-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 999;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
}

.site-nav ul li:hover > ul,
.site-nav ul li:focus-within > ul {
    display: flex;
}

.site-nav ul ul li a {
    padding: 10px 20px;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0.3px;
}

.site-nav ul ul li a::after {
    display: none;
}

.site-nav ul ul li a:hover {
    background: rgba(128,128,128,0.08);
}

/* Separador sutil entre items del menu */
.site-nav ul > li + li::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    vertical-align: middle;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Ocultar separador en submenu */
.site-nav ul ul li + li::before {
    display: none;
}

/* Menu vacio - ocultar contenedor */
.site-nav.nav-empty {
    display: none;
}

/* === COLOR DEL MENU: se controla dinamicamente con CSS custom properties === */
/* Valores por defecto (header claro) */
.site-header {
    --nav-text: #555;
    --nav-text-hover: #111;
    --nav-line: #333;
    --nav-separator: #ddd;
    --submenu-bg: #ffffff;
    --submenu-hover: rgba(0,0,0,0.04);
    --submenu-text: #555;
    --submenu-text-hover: #111;
    --logo-text: #333;
}

/* Variante oscura: se agrega clase .header-dark al header via functions.php */
.site-header.header-dark {
    --nav-text: rgba(255,255,255,0.85);
    --nav-text-hover: #ffffff;
    --nav-line: rgba(255,255,255,0.7);
    --nav-separator: rgba(255,255,255,0.2);
    --submenu-bg: #2a2a2a;
    --submenu-hover: rgba(255,255,255,0.08);
    --submenu-text: rgba(255,255,255,0.8);
    --submenu-text-hover: #ffffff;
    --logo-text: #ffffff;
}

.site-nav ul li a { color: var(--nav-text); }
.site-nav ul li a:hover,
.site-nav ul li a:focus,
.site-nav ul li.current-menu-item > a,
.site-nav ul li.current_page_item > a { color: var(--nav-text-hover); }
.site-nav ul li a::after { background: var(--nav-line); }
.site-nav ul > li + li::before { background: var(--nav-separator); }
.site-nav ul ul { background: var(--submenu-bg); }
.site-nav ul ul li a { color: var(--submenu-text); }
.site-nav ul ul li a:hover { background: var(--submenu-hover); color: var(--submenu-text-hover); }
.site-logo .site-title-text { color: var(--logo-text); }

/* === AREA DEL SHORTCODE === */
.site-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    padding: 30px 20px 40px;
}

.site-content .entry-content {
    width: 100%;
}

/* === OCULTAR TODO LO DEMAS === */
/* Sidebar */
.sidebar,
.widget-area,
#secondary,
#sidebar,
aside,
.sidebar-widget,
aside.widget,
.wp-block-columns .wp-block-column:not(:first-child) {
    display: none !important;
}

/* Footer */
.site-footer,
footer,
#colophon,
#footer,
.footer-widgets,
.footer-widget-area,
.site-info,
.wp-block-group.footer,
.wp-block-template-part.footer {
    display: none !important;
}

/* Header nav por defecto de otros temas (no la nuestra .site-nav) */
.main-navigation,
.primary-menu,
.menu-toggle,
.main-nav,
.mobile-menu,
.header-nav {
    display: none !important;
}

/* Comentarios */
.comments-area,
#comments,
.comment-respond,
.no-comments {
    display: none !important;
}

/* Meta del post */
.entry-meta,
.entry-header,
.posted-on,
.post-meta,
.cat-links,
.tags-links,
.edit-link {
    display: none !important;
}

/* Breadcrumbs */
.breadcrumb,
.breadcrumbs,
.wp-block-breadcrumbs {
    display: none !important;
}

/* Pagination */
.navigation.pagination,
.nav-links,
.posts-navigation {
    display: none !important;
}

/* Widgets residuales */
.widget,
.widgettitle,
.widget-title {
    display: none !important;
}