/* ==========================================================================
   DISEÑO HOME PREMIUM (Totalmente aislado con prefijos prm-)
   ========================================================================== */


/* Contenedores Base */

.prm-main-section {
    padding: 100px 0;
    background-color: #fafbfc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.prm-main-section--alt {
    background-color: #0f1216;
    color: #ffffff;
}

.prm-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* Encabezados Profesionales */

.prm-header-block {
    text-align: center;
    margin-bottom: 60px;
}

.prm-tagline {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #60a630;
    font-weight: 700;
    margin-bottom: 12px;
}

.prm-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1e24;
    letter-spacing: -0.03em;
    margin: 0;
}

.prm-main-section--alt .prm-section-title {
    color: #ffffff;
}


/* Grillas */

.prm-grid-categories,
.prm-grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}


/* ==========================================================================
   TARJETAS DE CATEGORÍA
   ========================================================================== */

.prm-card-cat {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 36px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.prm-card-cat:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}


/* Efecto de iluminación premium en hover */

.prm-card-cat__glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #60a630, #8ce83d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prm-card-cat:hover .prm-card-cat__glow {
    opacity: 1;
}

.prm-card-cat__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1e24;
    margin: 0 0 14px 0;
}

.prm-card-cat__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #606873;
    margin: 0 0 28px 0;
}

.prm-card-cat__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60a630;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.prm-card-cat__action:hover {
    gap: 12px;
}


/* ==========================================================================
   TARJETAS DE PRODUCTO (MODO OSCURO PREMIUM)
   ========================================================================== */

.prm-card-prod {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.prm-card-prod:hover {
    transform: translateY(-10px);
    border-color: rgba(96, 166, 48, 0.4);
}

.prm-card-prod__preview {
    position: relative;
    height: 220px;
    width: 100%;
    background: #0f1216;
    overflow: hidden;
}

.prm-card-prod__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.prm-card-prod:hover .prm-card-prod__img {
    transform: scale(1.08);
}

.prm-card-prod__fallback {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    background: linear-gradient(135deg, #242c37, #0f1216);
    color: rgba(255, 255, 255, 0.1);
    font-size: 4rem;
    font-weight: 900;
}

.prm-card-prod__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prm-card-prod__badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #60a630;
    background: rgba(96, 166, 48, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.prm-card-prod__name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.4;
    min-height: 50px;
}

.prm-card-prod__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prm-card-prod__price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #8ce83d;
}

.prm-card-prod__btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, border-color 0.2s;
}

.prm-card-prod__btn:hover {
    background: #60a630;
    border-color: #60a630;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .prm-main-section {
        padding: 60px 0;
    }
    .prm-section-title {
        font-size: 2rem;
    }
}