/*
Theme Name: AuraWP
Theme URI: https://agenciaaura.mx
Author: Agencia Aura
Author URI: https://agenciaaura.mx
Description: Tema minimalista optimizado para Elementor con menú horizontal y tipografía Poppins moderna. Ligero, limpio y 100% compatible con maquetadores visuales. Desarrollado por Agencia Aura.
Version: 1.7.1
Requires at least: 6.0
Tested up to: 6.4
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: aurawp
Tags: elementor, minimal, lightweight, page-builder, flexible-header
*/

/* ==========================================================================
   RESET BÁSICO
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ==========================================================================
   TIPOGRAFÍA BASE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #005177;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT MINIMAL - NO INTERFERIR CON ELEMENTOR
   ========================================================================== */

.aura-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.aura-content {
    padding: 40px 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
    transition: max-height 0.3s ease;
}

.site-header.scrolled .custom-logo {
    max-height: 50px;
}

/* Logo de Agencia Aura - ajustes específicos */
.site-branding .custom-logo-link {
    line-height: 0;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* ==========================================================================
   NAVEGACIÓN
   ========================================================================== */

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #0073aa;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0073aa;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Submenús */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 12px 20px;
    display: block;
}

.nav-menu .sub-menu a::after {
    display: none;
}

/* Header Actions (Búsqueda y Menú Mobile) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle,
.menu-toggle {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
}

.search-toggle:hover,
.menu-toggle:hover {
    color: #0073aa;
    background: rgba(0,115,170,0.1);
}

.search-toggle:active,
.menu-toggle:active {
    transform: scale(0.95);
}

/* Menú toggle (hamburguesa) */
.menu-toggle {
    display: none;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown de búsqueda */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-close {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: #0073aa;
}

/* Responsive - Tablet y móvil */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .custom-logo {
        max-height: 45px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 9999;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        padding: 15px 0;
        width: 100%;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* Submenús en móvil */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu li.menu-item-has-children > a::before {
        content: '+';
        float: right;
        font-size: 20px;
        line-height: 1;
    }
    
    .nav-menu li.menu-item-has-children.open > a::before {
        content: '−';
    }
    
    .nav-menu li.menu-item-has-children.open > .sub-menu {
        max-height: 500px;
    }
    
    /* Overlay cuando el menú está abierto */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9998;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .header-wrapper {
        gap: 15px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #f8f8f8;
    border-top: 1px solid #eee;
    padding: 30px 0;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

/* ==========================================================================
   POSTS Y PÁGINAS
   ========================================================================== */

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: #666;
    font-size: 0.875rem;
}

.entry-content {
    margin-bottom: 2rem;
}

/* ==========================================================================
   WORDPRESS CORE
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    padding: 0.5rem 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
