@import 'hero.css';
@import 'home.css';

/* ===================================== */
/* ===== CATÁLOGO DE PRODUCTOS ===== */
/* ===================================== */

.dv-catalog {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 140px auto;
    padding: 40px 20px;
}

.dv-catalog-header {
    text-align: center;
    margin-bottom: 60px;
}

.dv-catalog-header .dv-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dv-catalog-header .dv-title span {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.dv-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FILTROS ===== */
.dv-filters-wrapper {
    margin-bottom: 50px;
}

.dv-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dv-filter-group {
    display: flex;
    flex-direction: column;
}

.dv-filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dv-filter-group select,
.dv-filter-group input {
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dv-filter-group select:hover,
.dv-filter-group select:focus,
.dv-filter-group input:hover,
.dv-filter-group input:focus {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    outline: none;
}

.dv-filter-group select option {
    background: #0a1f3f;
    color: #fff;
}

.dv-count {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.dv-count strong {
    color: #00d4ff;
    font-weight: 700;
}

/* ===== GRID DE PRODUCTOS ===== */
.dv-products-grid {
    position: relative;
}

.dv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.dv-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dv-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.dv-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dv-card-img {
    width: 100%;
    height: 200px;
    margin: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.dv-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dv-card:hover .dv-card-img img {
    transform: scale(1.05);
}

.dv-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dv-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #c4b5fd;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dv-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.dv-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.dv-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding-top: 12px;
}

.dv-sectors {
    font-size: 0.85rem;
    color: rgba(0, 212, 255, 0.8);
}

.dv-cta {
    font-size: 0.9rem;
    color: #00d4ff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dv-card:hover .dv-cta {
    color: #7c3aed;
}

/* ===== ESTADOS ===== */
.dv-loading,
.dv-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.dv-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dv-empty svg {
    margin-bottom: 20px;
    color: rgba(0, 212, 255, 0.5);
}

/* ===================================== */
/* ===== DETALLE DEL PRODUCTO ===== */
/* ===================================== */

.dv-product-detail {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px 20px;
}

.dv-breadcrumb {
    display: block;
    margin-bottom: 40px;
}

.dv-breadcrumb a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dv-breadcrumb a:hover {
    color: #7c3aed;
}

.dv-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.dv-detail-media figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 212, 255, 0.05);
}

.dv-detail-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.dv-detail-media .dv-btn {
    display: block;
    margin-top: 20px;
}

.dv-detail-info .dv-title {
    font-size: 2.5rem;
    margin: 20px 0;
}

.dv-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.dv-specs {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.dv-specs th,
.dv-specs td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.dv-specs th {
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.dv-specs td {
    color: rgba(255, 255, 255, 0.8);
}

.dv-detail-cta {
    margin-top: 30px;
}

/* ===== BOTONES ===== */
.dv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dv-btn-primary {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
    border: none;
}

.dv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.dv-btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.dv-btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dv-catalog-header .dv-title {
        font-size: 2rem;
    }

    .dv-filters {
        grid-template-columns: 1fr;
    }

    .dv-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .dv-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dv-detail-info .dv-title {
        font-size: 1.8rem;
    }
}
