/* ==========================================================
   HOMEPAGE — Repuestos de Autos
   ========================================================== */

/* Hero */
.hero-repuestos {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.hero-repuestos h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
    color: #fff;
}

.hero-repuestos p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 28px;
}

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

.hero-repuestos .btn-hero:hover {
    background: #ffe600;
    transform: translateY(-2px);
}

/* Secciones del home */
.home-section {
    padding: 48px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-section-alt {
    background: #f8f9fa;
}

.home-section-alt .home-section {
    max-width: 1200px;
    margin: 0 auto;
}

.home-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 28px;
}

/* Grid de categorias destacadas */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s ease;
    gap: 10px;
}

.categoria-card .cat-icon {
    font-size: 32px;
    line-height: 1;
}

.categoria-card:hover {
    border-color: #3483fa;
    color: #3483fa;
    box-shadow: 0 4px 16px rgba(52,131,250,0.12);
    transform: translateY(-2px);
}

/* Grid de productos */
.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.home-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    transform: translateY(-2px);
    border-color: #3483fa;
}

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

.home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

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

/* Marcas de autos */
.marcas-autos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.marca-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.marca-tag:hover {
    border-color: #3483fa;
    color: #3483fa;
    background: #f0f7ff;
}

/* FAQ */
.faq-home {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
    list-style: none;
    background: #fff;
    transition: all 0.2s ease;
}

.faq-item summary:hover {
    background: #f8f9fa;
    color: #3483fa;
}

.faq-item p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    background: #fff;
}

/* Texto SEO del footer del home */
.home-seo-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.home-seo-content h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
}

/* Placeholder sin imagen */
.home-card-noimg {
    font-size: 40px;
    opacity: 0.3;
}

/* Paginacion */
.home-paginacion {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.home-paginacion .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}
.home-paginacion .page-numbers.current,
.home-paginacion .page-numbers:hover {
    background: #3483fa;
    border-color: #3483fa;
    color: #fff;
}

/* Wrapper general */
.home-page-wrapper {
    width: 100%;
}

/* Quitar padding del contenido 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;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
    .home-grid { grid-template-columns: repeat(3, 1fr); }
    .categorias-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-repuestos h1 { font-size: 32px; }
}

@media (max-width: 768px) {
    .home-grid { grid-template-columns: repeat(2, 1fr); }
    .categorias-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-repuestos h1 { font-size: 26px; }
    .hero-repuestos p { font-size: 16px; }
}

@media (max-width: 480px) {
    .home-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .categorias-grid { grid-template-columns: repeat(2, 1fr); }
    .home-section { padding: 32px 16px; }
}
