/* Style 2: Frosted Glass Expansion */
.priego-card-s2 {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.s2-bg-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.8s;
}

.priego-card-s2:hover .s2-bg-image {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.s2-glass-panel {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    /* transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); */
}

/* Se ha eliminado el max-height fijo, ahora el cuerpo interno crecerá dinámicamente usando grid */

/* Ocultar barra de scroll para limpieza visual */
.s2-glass-panel::-webkit-scrollbar { width: 4px; }
.s2-glass-panel::-webkit-scrollbar-thumb { background: rgba(37,60,120,0.2); border-radius: 4px; }

.s2-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Que no se encoja */
}

.s2-header-left {
    flex: 1;
}

.s2-header-right {
    flex-shrink: 0;
}

.s2-tag {
    display: inline-block;
    color: #db6889; /* Priego Pink */
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.s2-title {
    color: #253c78; /* Priego Navy */
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.s2-front-desc {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.s2-panel-body {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    width: 100%;
}

.s2-panel-body.is-expanded {
    opacity: 1;
}

.s2-panel-body-inner {
    overflow: hidden;
    padding-bottom: 15px; /* Espacio antes de la cabecera */
}

.s2-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(37,60,120,0.1), rgba(37,60,120,0.4), rgba(37,60,120,0.1));
    margin: 0 0 15px 0;
}

.s2-back-title {
    color: #253c78;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.s2-back-desc {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.s2-button-container {
    margin-top: 15px;
}

.s2-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #253c78;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    border: none;
}

.s2-button:hover {
    background: #db6889;
    transform: translateY(-2px);
    color: #fff;
}
