/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme para Astra - Nashi Argan
Author: Tu Nombre
Author URI: https://tu-sitio.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/


/* ==========================================================================
   HEADER PERSONALIZADO NASHI ARGAN
   ========================================================================== */

/* Header principal */
.nashi-header {
    background-color: #392e2e;
    padding: 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Línea decorativa superior */
.nashi-header-line {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #e8dcc8 20%, 
        #e8dcc8 80%, 
        transparent 100%
    );
}

/* Container del header */
.nashi-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.nashi-logo {
    flex-shrink: 0;
}

.nashi-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.nashi-logo .site-title {
    color: #e8dcc8;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: lowercase;
    text-decoration: none;
    font-family: 'Georgia', serif;
}

/* Navegación */
.nashi-navigation {
    flex: 1;
    display: flex;
    justify-content: end;
}

.nashi-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.nashi-menu li {
    position: relative;
}

.nashi-menu a {
    color: #e8dcc8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
}

.nashi-menu a:hover,
.nashi-menu .current-menu-item a {
    color: #ffffff;
}

/* Submenú */
.nashi-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3d3532;
    min-width: 200px;
    padding: 15px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nashi-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nashi-menu .sub-menu li {
    padding: 0;
}

.nashi-menu .sub-menu a {
    padding: 10px 25px;
    display: block;
}

.nashi-menu .sub-menu a:hover {
    background-color: rgba(232, 220, 200, 0.1);
}

/* Botón menú móvil */
.nashi-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: #e8dcc8;
    transition: all 0.3s ease;
}

/* Header sticky */
.nashi-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .nashi-header-container {
        padding: 15px 20px;
    }
    
    .nashi-menu {
        gap: 25px;
    }
    
    .nashi-menu a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nashi-mobile-toggle {
        display: flex;
        z-index: 10000; /* Botón hamburguesa siempre visible */
    }
    
    .nashi-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: #3d3532;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 9999; /* Menú arriba del overlay */
        overflow-y: auto;
    }
    
    .nashi-navigation.active {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .nashi-menu {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }
    
    .nashi-menu li {
        border-bottom: 1px solid rgba(232, 220, 200, 0.1);
    }
    
    .nashi-menu a {
        padding: 15px 0;
    }
    
    .nashi-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }
    
    .nashi-menu li.menu-item-has-children > a::after {
        content: '+';
        float: right;
        font-size: 20px;
    }
    
    .nashi-menu li.menu-item-has-children.open > a::after {
        content: '−';
    }
    
    .nashi-menu li.menu-item-has-children.open > .sub-menu {
        display: block;
    }
    
    /* Overlay para cerrar menú móvil */
    body.mobile-menu-active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 20; /* Overlay debajo del menú */
    }
    
    .nashi-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nashi-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .nashi-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .nashi-logo img {
        max-height: 40px;
    }
    
    .nashi-header-container {
        padding: 12px 15px;
    }
}

/* ==========================================================================
   FOOTER PERSONALIZADO NASHI ARGAN
   ========================================================================== */

/* Footer principal */
.nashi-footer {
    background-color: #3d3532;
    color: #e8dcc8;
    margin-top: 60px;
}

.nashi-footer-main {
    padding: 60px 0 40px;
}

.nashi-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Columnas del footer */
.nashi-footer-column {
}

/* Logo y descripción */
.nashi-footer-about {
}

.nashi-footer-logo img {
    max-height: 45px;
    width: auto;
    margin-bottom: 20px;
}

.footer-site-title {
    color: #e8dcc8;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: lowercase;
    margin: 0 0 20px 0;
    font-family: 'Georgia', serif;
}

.nashi-footer-description {
    color: rgba(232, 220, 200, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Redes sociales */
.nashi-social-links {
    display: flex;
    gap: 15px;
}

.nashi-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(232, 220, 200, 0.1);
    border-radius: 50%;
    color: #e8dcc8;
    transition: all 0.3s ease;
}

.nashi-social-links a:hover {
    background-color: #e8dcc8;
    color: #3d3532;
    transform: translateY(-3px);
}

/* Títulos de columnas */
.nashi-footer-title {
    color: #e8dcc8;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

/* Menús del footer */
.nashi-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nashi-footer-menu li {
    margin-bottom: 12px;
}

.nashi-footer-menu a {
    color: rgba(232, 220, 200, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nashi-footer-menu a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Información de contacto */
.nashi-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nashi-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(232, 220, 200, 0.8);
    font-size: 14px;
}

.nashi-footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.nashi-footer-contact a {
    color: rgba(232, 220, 200, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nashi-footer-contact a:hover {
    color: #ffffff;
}

/* Línea decorativa */
.nashi-footer-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(232, 220, 200, 0.3) 20%, 
        rgba(232, 220, 200, 0.3) 80%, 
        transparent 100%
    );
    margin: 0 30px;
}

/* Footer bottom */
.nashi-footer-bottom {
    padding: 25px 0;
}

.nashi-footer-bottom .nashi-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none;
}

.nashi-copyright {
    font-size: 14px;
    color: rgba(232, 220, 200, 0.7);
}

.nashi-copyright p {
    margin: 0;
}

.nashi-copyright a {
    color: #e8dcc8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nashi-copyright a:hover {
    color: #ffffff;
}

/* Menú bottom */
.nashi-footer-bottom-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nashi-footer-bottom-menu li {
}

.nashi-footer-bottom-menu a {
    color: rgba(232, 220, 200, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.nashi-footer-bottom-menu a:hover {
    color: #ffffff;
}

/* ==========================================================================
   FOOTER RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .nashi-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
    
    .nashi-footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nashi-footer-main {
        padding: 40px 0 30px;
    }
    
    .nashi-footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 20px;
    }
    
    .nashi-footer-about {
        grid-column: auto;
        text-align: center;
    }
    
    .nashi-footer-logo img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .nashi-social-links {
        justify-content: center;
    }
    
    .nashi-footer-bottom .nashi-footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nashi-footer-bottom-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nashi-footer-line {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .nashi-footer-main {
        padding: 30px 0 20px;
    }
    
    .nashi-footer-container {
        padding: 0 15px;
    }
    
    .nashi-footer-title {
        font-size: 18px;
    }
    
    .nashi-copyright {
        font-size: 12px;
    }
    
    .nashi-footer-bottom-menu a {
        font-size: 12px;
    }
}

/* ==========================================================================
   MAPA
   ========================================================================== */
   
#mi-mapa {
    border: 3px solid #3d3532;
    position: relative;
    z-index: 10;
}

#mi-mapa::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #e8dcc8 20%, 
        #e8dcc8 80%, 
        transparent 100%
    );
    z-index: 1000;
}

/* Personalizar popups del mapa */
.leaflet-popup-content-wrapper {
    background-color: #3d3532 !important;
    color: #e8dcc8 !important;
    border-radius: 8px !important;
}

.leaflet-popup-content-wrapper b {
    color: #e8dcc8 !important;
}

.leaflet-popup-content-wrapper p {
    color: rgba(232, 220, 200, 0.8) !important;
}

.leaflet-popup-tip {
    background-color: #3d3532 !important;
}

/* Botón de cerrar popup */
.leaflet-popup-close-button {
    color: #e8dcc8 !important;
}

.leaflet-popup-close-button:hover {
    color: #ffffff !important;
}