:root {
    --primary: #2d3436;
    --accent: #00b894;
    --text: #636e72;
    --light: #f9f9f9;
    --border: #e1e8ed;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--light);
    margin: 0;
    padding: 0 0 2rem 0; /* Removido el padding top general para que el header pegue arriba */
}

/* FILA DE ENCABEZADO (HEADER) */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}
.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido horizontalmente */
    gap: 12px;
}
.site-logo {
    height: 40px; /* Tamaño ideal y sutil para el logo */
    width: auto;
    display: block;
}
.site-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
    text-decoration: none;
}
.site-title span {
    color: var(--accent);
}

/* Contenedor Principal Asimétrico */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: start;
    box-sizing: border-box;
}

/* COLUMNA IZQUIERDA: STICKY WRAPPER */
.sidebar-container {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* PANEL DE VENTA DEL DOMINIO */
.sidebar-sale {
    background: #E8F5E9;
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    text-align: center;
}
.sidebar-sale .badge {
    background: #e6f8f4;
    /*color: var(--accent);*/
    color: black;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}
.sidebar-sale h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--primary);
}
.sidebar-sale h2 span { color: var(--accent); }
.sidebar-sale p {
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.btn-sale {
    display: block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.btn-sale:hover { background: #000; }

/* PANEL DE MENÚ DE CATEGORÍAS */
.sidebar-menu {
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.sidebar-menu h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    color: var(--primary);
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.5rem;
}
.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li {
    margin-bottom: 0.5rem;
}
.sidebar-menu li a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.sidebar-menu li a.active, .sidebar-menu li a:hover {
    background: var(--light);
    color: var(--accent);
    font-weight: bold;
}

/* COLUMNA DERECHA: CONTENIDO Y TARJETAS */
.content-area {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.content-area h1 {
    font-size: 2rem;
    margin: 0 0 2.5rem 0;
    color: var(--primary);
    text-align: center;
}
.content-area .subtitle {
    color: var(--text);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    display: none;

}

/* Grilla de Tarjetas */
.grid-resources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Tarjetas */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.card-image-wrapper {
    width: 100%;
    height: 250px;
    background-color: #ffffff; /* Fondo blanco para que combine con la tarjeta */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Margen interno opcional para que el logo no toque los bordes */
    box-sizing: border-box;
}
.card-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Fuerza a la imagen a reducirse por completo sin recortarse */
    display: block;
}
.card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary);
    text-align: center;
}
.card-content p {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.5;
}
.btn-link {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    margin-top: auto;
    transition: background 0.3s;
}
.btn-link:hover { background: #009d7e; }


/* RESPONSIVE */
@media (max-width: 900px) {
    .site-header { padding: 1rem; margin-bottom: 1.5rem; }
    .main-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .sidebar-container { position: static; }
    .content-area { padding: 2rem 1rem; }
}

/* Ocultar header en pantallas chicas (Celulares) */
@media (max-width: 768px) {
    .site-header {
        display: none !important;
    }
}


/* ARTICULO */

    /* GRILA DERECHA DE DOS COLUMNAS */
        .article-layout {
            display: grid;
            grid-template-columns: 1fr 260px;
            gap: 2.5rem;
            align-items: start;
        }

        /* COLUMNA ARTÍCULO */
        .article-main {
            background: white;
            padding: 3rem 2.5rem;
            border-radius: 12px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        }
        .article-meta-badge {
            display: inline-block;
            background: #e6f8f4;
            color: var(--accent);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }
        .article-main h1 {
            font-size: 2.5rem;
            margin: 0 0 1.5rem 0;
            color: var(--primary);
            line-height: 1.2;
        }
        .article-body {
            color: var(--primary);
            font-size: 1.1rem;
            line-height: 1.8;
        }
        .article-body p { margin-bottom: 1.5rem; }
        .article-body h2 { font-size: 1.6rem; margin: 2rem 0 1rem 0; }
        .article-body h3 { font-size: 1.3rem; margin: 1.5rem 0 1rem 0; }

        /* COLUMNA LATERAL (Anti-AdBlock) */
        .article-related-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            min-width: 260px;
        }
        .resource-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            transition: transform 0.2s;
            display: block;
        }
        .resource-card:hover { transform: translateY(-2px); }
        .resource-card a {
            display: block;
            text-decoration: none;
            width: 100%;
            height: 100%;
        }
        .resource-image-wrapper {
            background-color: #ffffff;
            height: 350px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
            box-sizing: border-box;
        }
        .resource-image-wrapper img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }

       /* RESPONSIVE */
        @media (max-width: 1024px) {
            .article-layout { grid-template-columns: 1fr; gap: 2rem; }
            .article-related-sidebar {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
                gap: 1.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .article-main { padding: 2rem 1.5rem; }
            .article-main h1 { font-size: 2rem; }
        }




 /* PRODUCTO */       

              /* CONTENEDOR ESTILO WOOCOMMERCE PRODUCTO */
        .product-container {
            background: white;
            padding: 3rem 2.5rem;
            border-radius: 12px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            display: grid;
            grid-template-columns: 1fr 1fr; /* Mitad imagen, mitad detalles */
            gap: 3rem;
        }

        /* Izquierda: Imagen */
        .product-image {
            background-color: #ffffff;
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            height: 350px;
        }
        .product-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }

        /* Derecha: Info */
        .product-details {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .product-details h1 {
            font-size: 2.2rem;
            margin: 0 0 1rem 0;
            color: var(--primary);
            line-height: 1.2;
        }
        .product-meta-badge {
            align-self: flex-start;
            background: #e6f8f4;
            color: var(--accent);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
        }
        .product-details .description {
            color: var(--text);
            font-size: 1.05rem;
            line-height: 1.7;
            margin: 0 0 2.5rem 0;
        }

        /* Botón de Compra / Redirección de Publicidad */
        .btn-checkout {
            display: inline-block;
            background: var(--accent);
            color: white;
            text-decoration: none;
            padding: 16px 30px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 1.1rem;
            text-align: center;
            transition: background 0.3s;
            box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
        }
        .btn-checkout:hover {
            background: #009d7e;
        }

        /* NUEVA SECCIÓN: HTML Libre inferior (Estilo descripción larga de WooCommerce) */
        .product-long-description {
            grid-column: 1 / -1; /* Ocupa las dos columnas de la grilla */
            border-top: 1px solid var(--border);
            padding-top: 2.5rem;
            margin-top: 1rem;
        }
        .product-long-description h2 {
            font-size: 1.5rem;
            color: var(--primary);
]        }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            .product-container { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
            .product-image { height: 260px; }
            .product-details h1 { font-size: 1.8rem; }
        }
   