/* =========================================
   CARDS.CSS - Estils de Bento Cards
   Compatible amb el plugin projecte-share-cards
   Projecte Share Theme
========================================= */

/* Section wrapper */
.seccion-bento {
    padding: 100px 5%;
    position: relative;
    z-index: 20;
}

/* Section title */
.seccion-titulo {
    text-align: center;
    margin-bottom: 60px;
}

.seccion-titulo h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--pshare-dark, #1E2022);
    font-weight: 800;
    letter-spacing: -1px;
}

.seccion-titulo h2 span,
.seccion-titulo span {
    color: var(--pshare-primary, #E32219);
}

.seccion-titulo p {
    color: var(--pshare-text, #555);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 15px auto 0;
}

/* =========================================
   BENTO GRID
========================================= */
.mis-tarjetas-wp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 340px;
    gap: 30px;
    margin: 0 auto;
    width: 100%;
    max-width: 1250px;
    perspective: 1000px;
}

/* Card base */
.mis-tarjetas-wp .tarjeta {
    background-color: var(--pshare-white, #ffffff);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--pshare-text, #555555) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wide card */
.mis-tarjetas-wp .tarjeta-ancha {
    grid-column: span 2;
}

/* Hover effect */
.mis-tarjetas-wp .tarjeta:hover {
    transform: scale(1.03) translateY(-8px);
    z-index: 100;
    box-shadow: 0 25px 60px rgba(227, 34, 25, 0.12);
    cursor: pointer;
}

/* Image container */
.mis-tarjetas-wp .imagen-contenedor {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.mis-tarjetas-wp .imagen-contenedor::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-color, #ffffff) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.mis-tarjetas-wp .imagen-contenedor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mis-tarjetas-wp .tarjeta:hover .imagen-contenedor img {
    transform: scale(1.15);
}

/* Content area */
.mis-tarjetas-wp .contenido-tarjeta {
    padding: 0 30px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    background: transparent;
}

.mis-tarjetas-wp .contenido-tarjeta h3 {
    font-family: var(--pshare-font, 'Poppins', sans-serif);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mis-tarjetas-wp .contenido-tarjeta p {
    font-family: var(--pshare-font, 'Poppins', sans-serif);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 !important;
    opacity: 0.9;
}

/* Card icon */
.mis-tarjetas-wp .tarjeta-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

/* =========================================
   CARD HOVER STYLES (from plugin)
========================================= */
.mis-tarjetas-wp .tarjeta[data-hover="scale"] :hover {
    transform: scale(1.05) translateY(-5px);
}

.mis-tarjetas-wp .tarjeta[data-hover="lift"]:hover {
    transform: translateY(-12px);
}

.mis-tarjetas-wp .tarjeta[data-hover="glow"]:hover {
    box-shadow: 0 0 40px rgba(227, 34, 25, 0.2);
}

.mis-tarjetas-wp .tarjeta[data-hover="tilt"]:hover {
    transform: perspective(800px) rotateY(-3deg) rotateX(3deg) translateY(-5px);
}
