/*
 Theme Name:   GeneratePress Child - Relojes
 Template:     generatepress
 Version:      1.0
*/

/* ---- FONDO BLANCO UNIFORME ---- */
body,
.site,
.site-content,
.content-area,
.inside-article,
.entry-content,
.post-image,
.page-hero,
.container {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* ---- HEADER: LOGO + MENU ---- */
.site-header {
    background: #1a1a2e !important;
    border-bottom: 1px solid #0d0d1a !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.inside-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 40px !important;
    gap: 20px;
}

/* Logo */
.site-logo,
.site-branding-container {
    flex-shrink: 0;
    padding-left: 12px;
}

.site-logo a,
.custom-logo-link {
    display: flex;
    align-items: center;
}

.site-logo img,
.header-image,
.custom-logo {
    max-height: 65px !important;
    width: auto !important;
}

/* Ocultar titulo texto */
.site-branding .main-title,
.site-branding .site-description {
    display: none !important;
}

/* Ocultar navegacion */
.main-navigation,
#site-navigation,
.menu-toggle {
    display: none !important;
}

/* ---- OCULTAR COMENTARIOS ---- */
.comments-area,
#comments,
.comment-form,
.comment-respond {
    display: none !important;
}

/* ---- RESPONSIVE HEADER ---- */
@media (max-width: 768px) {
    .inside-header {
        padding: 10px 16px !important;
        gap: 12px;
    }

    .site-logo img,
    .header-image,
    .custom-logo {
        max-height: 38px !important;
    }
}

@media (max-width: 480px) {
    .site-logo img,
    .header-image,
    .custom-logo {
        max-height: 32px !important;
    }
}

/* ============================================================
   LISTADO DE PRODUCTOS (ARCHIVE / BLOG)
   ============================================================ */

.site-main > .post,
.site-main > article {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 24px !important;
    padding: 0 !important;
    background: #fff;
}

.site-main > .post:hover,
.site-main > article:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.site-main .post-image {
    display: block !important;
    background: #fafafa !important;
    margin: 0 !important;
    padding: 24px !important;
    text-align: center;
}

.site-main .post-image a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.site-main .post-image img {
    max-height: 240px;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    margin: 0 auto;
}

.site-main > .post .inside-article,
.site-main > article .inside-article {
    padding: 0 !important;
    background: #fff !important;
}

.site-main > .post .entry-header,
.site-main > article .entry-header {
    padding: 20px 24px 0 !important;
    margin: 0 !important;
}

.site-main .entry-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    color: #1a1a2e;
}

.site-main .entry-title a {
    color: #1a1a2e !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.site-main .entry-title a:hover {
    color: #3483fa !important;
}

.site-main .entry-summary,
.site-main .entry-content:not(:has(.producto-afiliado-container)) {
    padding: 0 24px 20px !important;
    margin: 0 !important;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.site-main .entry-meta {
    display: none !important;
}

/* Paginacion */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links .page-numbers:hover {
    border-color: #3483fa;
    color: #3483fa;
}

.nav-links .page-numbers.current {
    background: #3483fa;
    border-color: #3483fa;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #f8f9fa !important;
    color: #999 !important;
    border-top: 1px solid #eee;
}

.site-footer a {
    color: #3483fa !important;
}

.copyright-bar {
    display: none;
}

/* ---- HOME FULL WIDTH ---- */
body.home-fullwidth .site-content .content-area {
    width: 100% !important;
}

body.home-fullwidth .site-content .content-area,
body.home-fullwidth .inside-article,
body.home-fullwidth .entry-content,
body.home-fullwidth .container.grid-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home-fullwidth #right-sidebar,
body.home-fullwidth .sidebar,
body.home-fullwidth .entry-header,
body.home-fullwidth .entry-meta {
    display: none !important;
}

/* ============================================================
   HEADER: DROPDOWN CATEGORIAS
   ============================================================ */

/* Dropdowns container */
.nav-dropdowns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 6px;
}

.nav-dropdown-toggle:hover {
    color: #fff159;
    background: rgba(255, 255, 255, 0.08);
}

.nav-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 6px;
    list-style: none;
    z-index: 9999;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.nav-dropdown-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.nav-dropdown-menu li:first-child {
    border-radius: 10px 10px 0 0;
}

.nav-dropdown-menu li:last-child {
    border-radius: 0 0 10px 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
}

.nav-dropdown-menu {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 300px;
    padding: 6px 0;
    margin: 0;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 11px 20px;
    font-size: 13.5px;
    color: #333;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.nav-dropdown-menu li a:hover {
    background: #f5f7ff;
    color: #3483fa;
}

/* ---- RESPONSIVE NAV ELEMENTS ---- */
@media (max-width: 768px) {
    .site-logo,
    .site-branding-container {
        padding-left: 0;
    }

    .nav-dropdown-toggle {
        padding: 8px 10px;
        font-size: 13px;
    }

    .nav-dropdown-menu {
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .nav-dropdown-menu {
        position: fixed;
        left: 16px;
        right: 16px;
        top: auto;
        min-width: auto;
        width: auto;
    }
}
