/* ============================================ */
/* ESTILOS DEL INDEX - Wiltronis.store          */
/* SEO OPTIMIZADO                               */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f1a;
    color: #fff;
    line-height: 1.6;
}

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

/* BREADCRUMB */
.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 30px;
}
.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.breadcrumb-list li::after {
    content: '/';
    color: rgba(255, 255, 255, 0.15);
    margin-left: 8px;
}
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}
.breadcrumb-list a:hover { color: #e94560; }
.breadcrumb-list li:last-child a { color: rgba(255, 255, 255, 0.6); font-weight: 500; }

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(233, 69, 96, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.hero-section h1 span { color: #e94560; }
.hero-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-seo-text {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 1;
}
.hero-seo-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    line-height: 1.6;
}
.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.hero-buttons .btn-primary {
    background: #e94560;
    color: #fff;
    border: none;
}
.hero-buttons .btn-primary:hover {
    background: #c23152;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.3);
}
.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* SECTION HEADER */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title i { color: #e94560; }
.page-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    margin: 0;
}
.ver-mas {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ver-mas:hover { color: #e94560; }

/* CATEGORÍAS */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}
.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}
.categoria-card:hover {
    background: rgba(233, 69, 96, 0.08);
    border-color: rgba(233, 69, 96, 0.2);
    color: #e94560;
    transform: translateY(-3px);
}
.categoria-card small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    display: block;
    margin-top: 2px;
}

/* PRODUCTOS GRID */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* PRODUCTO CARD - VERSIÓN CLICABLE MEJORADA */
.producto-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}
.producto-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Enlace que cubre toda la card */
.producto-link {
    display: block;
    flex: 1;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

/* Asegurar que los botones internos no hereden el cursor pointer de la card */
.producto-card .btn-favorito,
.producto-card .btn-agregar,
.producto-card .btn-ver,
.producto-card .acciones a,
.producto-card .acciones button {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.producto-card .imagen-container {
    position: relative;
    overflow: hidden;
    background: #0f0f1a;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.producto-card .imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.producto-card:hover .imagen-container img { transform: scale(1.05); }
.producto-card .imagen-container .sin-imagen {
    color: rgba(255, 255, 255, 0.05);
    font-size: 50px;
}
.producto-card .badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    z-index: 2;
}
.producto-card .badge {
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.producto-card .badge-oferta { background: #e94560; color: #fff; }
.producto-card .badge-nuevo { background: #2ecc71; color: #fff; }
.producto-card .badge-destacado { background: #f39c12; color: #fff; }

/* Botón favorito */
.producto-card .btn-favorito {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 15, 26, 0.8);
    border: none;
    color: rgba(255, 255, 255, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    z-index: 3;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.producto-card .btn-favorito:hover {
    transform: scale(1.1);
    background: rgba(15, 15, 26, 0.9);
}
.producto-card .btn-favorito.activo {
    color: #e94560;
    background: rgba(233, 69, 96, 0.15);
    border-color: rgba(233, 69, 96, 0.2);
}
.producto-card .btn-favorito.activo:hover { background: rgba(233, 69, 96, 0.25); }

.producto-card .info {
    padding: 16px 20px 0px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.producto-card .categoria-nombre {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.producto-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    min-height: 44px;
}
.producto-card h3 {
    color: #fff;
}
.producto-card .precios {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.producto-card .precio-actual {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.producto-card .precio-oferta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
}
.producto-card .stock-info {
    font-size: 12px;
    margin-bottom: 10px;
}
.producto-card .stock-info .disponible { color: #27ae60; }
.producto-card .stock-info .ultimas { color: #f39c12; }
.producto-card .stock-info .agotado { color: #e74c3c; }

.producto-card .acciones {
    display: flex;
    gap: 8px;
    padding: 0 20px 18px 20px;
    margin-top: auto;
}
.producto-card .btn-ver {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.producto-card .btn-ver:hover { background: rgba(255, 255, 255, 0.1); }
.producto-card .btn-agregar {
    flex: 1;
    background: #e94560;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.producto-card .btn-agregar:hover { background: #c23152; }
.producto-card .btn-agregar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Efecto de escala al tocar en móviles */
.producto-card:active {
    transform: scale(0.98);
}

/* SEO CONTENT */
.seo-content-section {
    margin-top: 60px;
    padding: 40px;
    background: #1a1a2e;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.seo-content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.seo-content-section > p {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}
.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.seo-content-grid h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.seo-content-grid h3 i { color: #e94560; margin-right: 8px; }
.seo-content-grid p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    line-height: 1.6;
}

.faq-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 20px;
}
.faq-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
}
.faq-item:hover { background: rgba(255, 255, 255, 0.04); }
.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}
.faq-item p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ESTADO VACÍO */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.3);
}
.empty-state i {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.1);
}
.empty-state h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.5);
}


/* NOTIFICACIONES */
.notificacion-flotante {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes likeAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.btn-favorito.animar { animation: likeAnimation 0.4s ease; }
.btn-favorito.loading { pointer-events: none; opacity: 0.6; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .productos-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
    .hero-section h1 { font-size: 32px; }
}
@media (max-width: 768px) {
    .hero-section { padding: 40px 20px; }
    .hero-section h1 { font-size: 26px; }
    .hero-section p { font-size: 15px; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { padding: 10px 20px; font-size: 14px; }
    .productos-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 15px; }
    .producto-card .imagen-container { height: 170px; }
    .producto-card .info { padding: 12px 12px 0px 12px; }
    .producto-card h3 { font-size: 14px; min-height: 36px; }
    .producto-card .acciones { padding: 0 12px 14px 12px; }
    .page-title { font-size: 22px; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .seo-content-section { padding: 20px; }
    .seo-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .productos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .producto-card .imagen-container { height: 130px; }
    .producto-card .info { padding: 10px 10px 0px 10px; }
    .producto-card h3 { font-size: 12px; min-height: 30px; }
    .producto-card .precio-actual { font-size: 15px; }
    .producto-card .btn-ver,
    .producto-card .btn-agregar { font-size: 11px; padding: 6px 8px; }
    .producto-card .acciones { padding: 0 10px 12px 10px; gap: 5px; }
    .hero-section h1 { font-size: 22px; }
    .hero-section { padding: 30px 15px; }
    .container { padding: 10px; }
}
