/* Variables de Color */
:root {
    --color-verde: #2C5904;
    --color-amarillo: #FFD22F;
    --color-texto-oscuro: #2C5904;
    --color-texto-claro: #f1fce3;
}

/* Estilos de la Sección Contenedora */
.section-items-pro {
    background-color: #f1fce3;
}

/* Wrapper enlace del card */
.card-item-pro-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-item-pro-link:hover .card-item-pro {
    transform: translateY(-4px);
}

.card-item-pro-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Estilos de la Tarjeta Individual */
.card-item-pro {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 360px;
}

/* 1. Columnas (para escritorio) */
@media (min-width: 576px) {
    .card-item-pro > div {
        flex-basis: 50%;
        max-width: 50%;
    }
}

/* 2. Columna de Imagen */
.col-img {
    position: relative;
    overflow: hidden;
}

.item-image {
    height: 100%;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-title-overlay {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: var(--color-texto-claro);
    font-size: 1.8rem;
    font-weight: bold;
    padding: 5px 10px;
    line-height: 1.2;
    z-index: 2;
}

/* Degradado sobre imagen */
.col-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.0) 100%
    );
}

/* 3. Columna de Contenido */
.col-content {
    position: relative;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
}

/* Alternancia de Colores */
.bg-verde {
    background-color: var(--color-verde);
    color: var(--color-texto-claro);
}

.bg-amarillo {
    background-color: var(--color-amarillo);
    color: var(--color-texto-oscuro);
}

/* Flecha Superior Derecha — ahora es decorativa, no enlace */
.arrow-link-top {
    position: absolute;
    top: 15px;
    right: 15px;
    color: inherit;
    font-size: 1.5rem;
}

.pro_prod .content p {
    color: #453D3B;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width: 600px) {
    .pro_prod .content p { font-size: 15px; }
    .pro_prod .content h2 { font-size: 24px; }
    .card-item-pro {
        border-radius: 10px;
        height: auto;
    }
    .item-title-overlay {
        bottom: 1rem;
        left: 1rem;
    }
}