
/*
Theme Name: Natural Nort
Description: Tema optimizado para Natural Nort - Vitaminas y Suplementos Naturales
Version: 2.0
*/

/* Reset y configuraciones base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header original mantenido para compatibilidad */
.site-header {
    padding: 2em 0;
    text-align: center;
}

.site-branding {
    margin-bottom: 1em;
}

.site-title {
    margin: 25px 0 20px 0;
}

.site-title a {
    text-decoration: none;
}

.site-description {
    font-size: 14px;
    font-style: italic;
    margin: -15px 0 35px 0;
}

/* Navegación original mantenida */
.main-navigation {
    background-color: #fff;
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 15px 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0 auto;
    padding: 3px 0;
    display: table;
}

.main-navigation li {
    display: inline;
    float: left;
    margin: 0 1em;
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: #222;
}

/* Contenido principal */
.site-content {
    padding: 20px 0;
}

.site-main {
    min-height: 60vh;
}

/* Grid de productos original mejorado */
.grid.portfoliogrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.portfoliogrid article.hentry {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
}

.portfoliogrid article.hentry:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.entry-thumbnail {
    padding: 0;
}

.entry-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.portfoliogrid article.hentry:hover .entry-thumbnail img {
    opacity: 0.9;
}

.entry-header {
    padding: 20px;
}

.entry-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.entry-title a {
    color: #2c5530;
    text-decoration: none;
}

.entry-title a:hover {
    color: #4a7c59;
}

/* Categorías de productos mejoradas */
a.portfoliotype {
    display: inline-block;
    background: #e8f5e8;
    color: #2c5530;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-right: 8px;
    margin-bottom: 5px;
    text-decoration: none;
    font-style: normal;
}

a.portfoliotype:after {
    content: none;
}

a.portfoliotype:last-child {
    margin-right: 0;
}

/* Footer mejorado */
.site-footer {
    background: #2c5530;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.site-footer a {
    color: #a3d9a5;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .container {
    max-width: 800px;
}

/* Paginación */
.pagination {
    text-align: center;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination .current {
    background: #4a7c59;
    color: white;
    border-color: #4a7c59;
}

.pagination a:hover {
    background: #f8f9fa;
}

/* Botón volver arriba */
.smoothup {
    position: fixed;
    bottom: 80px;
    right: 25px;
    background: #4a7c59;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.smoothup:hover {
    opacity: 1;
}

/* Mapa de Google */
.mapa-google {
    width: 100%;
    line-height: 0;
}


.mapa-google iframe {
    display: block;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .main-navigation ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #222;
        font-size: 14px;
        margin: 0 auto;
        text-transform: uppercase;
        padding: 10px 20px;
    }
    
    .main-navigation.toggled .nav-menu {
        display: block;
    }
    
    .main-navigation li {
        float: none;
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0 15px;
        padding: 0;
    }
    
    .site-header {
        padding: 1em 0;
    }
    
    .grid.portfoliogrid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 0;
    }
    
    .site-footer {
        padding: 30px 0;
    }
    
    .site-footer p {
        margin-bottom: 10px;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Compatibilidad con WooCommerce */
.woocommerce ul.products li.product {
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Mejoras de accesibilidad */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===== ESTILOS NATURAL NORT - ACTUALIZADOS ===== */

/* Header Natural Nort */
.naturalnort-header {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.naturalnort-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.naturalnort-tagline {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 20px;
    color: #e8f5e8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Navegación Natural Nort */
.naturalnort-nav {
    background: #f8f9fa;
    border-top: 3px solid #4a7c59;
    border-bottom: 3px solid #4a7c59;
}

.naturalnort-nav .menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 15px 0;
}

.naturalnort-nav .menu li {
    margin: 0 20px;
}

.naturalnort-nav .menu a {
    color: #2c5530;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.naturalnort-nav .menu a:hover {
    color: #4a7c59;
    background: rgba(74, 124, 89, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .naturalnort-nav .menu {
        flex-direction: column;
        align-items: center;
    }
    
    .naturalnort-nav .menu li {
        margin: 10px 0;
    }
    
    .naturalnort-tagline {
        font-size: 1em;
        padding: 0 15px;
    }
}