/* ==========================================================
   HOMEPAGE — Tienda Excelencia
   ========================================================== */

.home-wrapper {
    width: 100%;
}

/* ---- Quitar padding GP en la home ---- */
.page-template-template-home .site-content,
.page-template-template-home .content-area,
.page-template-template-home .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ---- Sección inner centrada ---- */
.te-section-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 52px 24px;
}

.te-section-inner h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 28px;
    line-height: 1.2;
}

/* ==========================================================
   HERO
   ========================================================== */
.te-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #1a73e8 100%);
    padding: 64px 24px;
    text-align: center;
    color: #fff;
}

.te-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.te-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.3px;
}

.te-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 auto 32px;
    max-width: 560px;
    line-height: 1.6;
}

.te-hero-btn {
    display: inline-block;
    padding: 15px 36px;
    background: #fff159;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.te-hero-btn:hover {
    background: #ffe600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #1a1a2e;
    text-decoration: none;
}

/* ==========================================================
   CATEGORÍAS GRID
   ========================================================== */
.te-categorias-section {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.te-cats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.te-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    text-align: center;
}

.te-cat-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 18px rgba(26, 115, 232, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.te-cat-icon {
    font-size: 32px;
    line-height: 1;
    display: block;
}

.te-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

.te-cat-count {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

/* ==========================================================
   PRODUCTOS GRID
   ========================================================== */
.te-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.te-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.te-card:hover {
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
    border-color: #1a73e8;
}

.te-card-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.te-card-img {
    background: #fafafa;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.te-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.25s ease;
}

.te-card:hover .te-card-img img {
    transform: scale(1.04);
}

.te-card-noimg {
    font-size: 36px;
    opacity: 0.25;
}

.te-card-cat {
    display: block;
    font-size: 11px;
    color: #1a73e8;
    font-weight: 600;
    padding: 10px 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.te-card h3 {
    font-size: 13.5px;
    font-weight: 600;
    margin: 4px 0 0;
    padding: 0 12px 14px;
    color: #1a1a2e;
    line-height: 1.4;
    flex: 1;
}

.te-card-btn {
    display: block;
    text-align: center;
    background: #fff159;
    color: #1a1a2e !important;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 12px;
    text-decoration: none !important;
    border-top: 1px solid #f0e800;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.te-card-btn:hover {
    background: #ffe600;
    text-decoration: none !important;
    color: #1a1a2e !important;
}

/* Paginación */
.te-paginacion {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.te-paginacion .page-numbers:hover,
.te-paginacion .page-numbers.current {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* ==========================================================
   TRUST BAR
   ========================================================== */
.te-trust {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 28px 24px;
}

.te-trust-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.te-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.te-trust-icon {
    font-size: 22px;
}

/* ==========================================================
   ARCHIVE — cabecera de categoría
   ========================================================== */
.archivo-wrapper {
    width: 100%;
}

.archivo-header {
    background: #f0f4ff;
    border-bottom: 1px solid #dde8fb;
    padding: 28px 24px 24px;
}

.archivo-header-inner {
    max-width: 1260px;
    margin: 0 auto;
}

.archivo-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.archivo-breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
}

.archivo-breadcrumb a:hover {
    text-decoration: underline;
}

.archivo-titulo {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.2;
}

.archivo-descripcion {
    font-size: 15px;
    color: #555;
    max-width: 680px;
    line-height: 1.6;
    margin: 0;
}

.archivo-content-wrapper {
    max-width: 1260px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.archivo-grid .te-card h2 {
    font-size: 13.5px;
    font-weight: 600;
    margin: 4px 0 0;
    padding: 0 12px 14px;
    color: #1a1a2e;
    line-height: 1.4;
    flex: 1;
}

.archivo-sin-resultados {
    text-align: center;
    color: #888;
    padding: 48px 0;
    font-size: 16px;
}

/* Forzar sin sidebar en archivos */
.archive .widget-area,
.archive #right-sidebar,
.archive .sidebar,
.category .widget-area,
.category #right-sidebar,
.category .sidebar {
    display: none !important;
}

.archive .content-area,
.category .content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1060px) {
    .te-cats-grid    { grid-template-columns: repeat(4, 1fr); }
    .te-grid         { grid-template-columns: repeat(3, 1fr); }
    .te-hero h1      { font-size: 38px; }
}

@media (max-width: 768px) {
    .te-hero         { padding: 48px 20px; }
    .te-hero h1      { font-size: 30px; }
    .te-hero p       { font-size: 16px; }
    .te-cats-grid    { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .te-grid         { grid-template-columns: repeat(2, 1fr); }
    .te-section-inner{ padding: 36px 16px; }
    .te-trust-inner  { gap: 16px; }
    .te-trust-item   { font-size: 13px; }
}

@media (max-width: 480px) {
    .te-hero h1      { font-size: 26px; }
    .te-cats-grid    { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .te-cat-icon     { font-size: 26px; }
    .te-cat-name     { font-size: 12px; }
    .te-grid         { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .te-section-inner{ padding: 28px 12px; }
}
