.cards-module {
    width: 100%;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.cards-row {
    display: flex;
    justify-content: center;
    flex-wrap: rap;
    gap: 25px;
    margin-bottom: 25px;
    perspective: 1500px;
}

/* ===== CARD BASE ===== */
.card {
    position: relative;
    width: 205px;
    height: 320px;
    border-radius: 18px;
    overflow: visible;
    background: transparent;
    transform-style: preserve-3d;
}

/* ===== PARTE SUPERIOR 70% - CON LINK ===== */
.card-top {
    position: relative;
    height: calc(70% - 8px);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-top a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    display: block;
}

/* ===== SEPARADOR VISUAL ===== */
.card-separator {
    height: 16px;
    background: transparent;
    position: relative;
}

.card-separator::before {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 245, 255, 0.4), 
        transparent);
}

/* ===== PARTE INFERIOR 30% - CON LINK ===== */
.card-bottom {
    height: calc(30% - 8px);
    border-radius: 0 0 18px 18px;
    background: linear-gradient(145deg, #16213e, #0f0f1e);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-top: 1px solid rgba(0, 245, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-bottom a {
    color: #e0e0ff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
    transition: all 0.4s;
    display: block;
    width: 100%;
}

/* ============================================ */
/* EFECTOS HOVER - TOP (70%) INDEPENDIENTES     */
/* ============================================ */

/* CARD 1 TOP: ZOOM + ROTACIÓN */
.card-1 .card-top:hover {
    transform: scale(1.05) rotateZ(2deg);
    box-shadow: 0 15px 35px rgba(0, 245, 255, 0.4);
}
.card-1 .card-top:hover img {
    transform: scale(1.2);
    filter: saturate(1.5) brightness(1.2);
}

/* CARD 2 TOP: FLIP VERTICAL */
.card-2 .card-top:hover {
    transform: rotateX(15deg) translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 0, 234, 0.4);
}
.card-2 .card-top:hover img {
    transform: scale(1.15);
    filter: hue-rotate(45deg) contrast(1.2);
}

/* CARD 3 TOP: SKEW + BLUR BACKGROUND */
.card-3 .card-top:hover {
    transform: skewX(-5deg) translateX(10px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}
.card-3 .card-top:hover img {
    transform: scale(1.1) skewX(5deg);
    filter: brightness(1.3) sepia(0.3);
}

/* CARD 4 TOP: PERSPECTIVE TILT */
.card-4 .card-top:hover {
    transform: perspective(800px) rotateY(-20deg) rotateX(10deg);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.4);
}
.card-4 .card-top:hover img {
    transform: scale(1.1) translateZ(20px);
    filter: brightness(1.2) saturate(1.4);
}

/* CARD 5 TOP: SLIDE + GLOW */
.card-5 .card-top:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.7);
}
.card-5 .card-top:hover img {
    transform: scale(1.08);
    filter: brightness(1.4) contrast(1.2);
}

/* CARD 6 TOP: SCALE + ROTATE */
.card-6 .card-top:hover {
    transform: scale(1.08) rotateZ(-3deg);
    box-shadow: 0 15px 35px rgba(255, 0, 234, 0.5);
}
.card-6 .card-top:hover img {
    transform: scale(1.25);
    filter: hue-rotate(90deg) saturate(1.5);
}

/* CARD 7 TOP: GLITCH EFFECT */
.card-7 .card-top:hover {
    animation: topGlitch 0.3s infinite;
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.5);
}
.card-7 .card-top:hover img {
    filter: hue-rotate(180deg) contrast(1.5);
    mix-blend-mode: screen;
}

@keyframes topGlitch {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-3px, 2px); }
    50% { transform: translate(3px, -2px); }
    75% { transform: translate(-2px, -3px); }
}

/* ============================================ */
/* EFECTOS HOVER - BOTTOM (30%) INDEPENDIENTES  */
/* ============================================ */

/* CARD 1 BOTTOM: COLOR CHANGE + UNDERLINE */
.card-1 .card-bottom:hover {
    background: linear-gradient(145deg, #00f5ff, #0088aa);
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.5);
}
.card-1 .card-bottom:hover a {
    color: #0f0f1e;
    text-shadow: none;
    letter-spacing: 3px;
}

/* CARD 2 BOTTOM: SLIDE UP REVEAL */
.card-2 .card-bottom:hover {
    transform: translateY(-8px);
    background: linear-gradient(145deg, #ff00ea, #aa0088);
    box-shadow: 0 15px 30px rgba(255, 0, 234, 0.5);
}
.card-2 .card-bottom:hover a {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* CARD 3 BOTTOM: SCALE + GLOW */
.card-3 .card-bottom:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #ffd700, #aa8800);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}
.card-3 .card-bottom:hover a {
    color: #0f0f1e;
    text-shadow: none;
    font-weight: 800;
}

/* CARD 4 BOTTOM: ROTATE + COLOR */
.card-4 .card-bottom:hover {
    transform: rotateZ(3deg) scale(1.03);
    background: linear-gradient(145deg, #00ff88, #00aa55);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.5);
}
.card-4 .card-bottom:hover a {
    color: #0f0f1e;
    text-shadow: none;
    letter-spacing: 2.5px;
}

/* CARD 5 BOTTOM: PULSE GLOW */
.card-5 .card-bottom:hover {
    background: linear-gradient(145deg, #00f5ff, #0088aa);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.8);
    animation: pulseGlow 1s infinite;
}
.card-5 .card-bottom:hover a {
    color: #0f0f1e;
    text-shadow: none;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 245, 255, 0.8); }
    50% { box-shadow: 0 0 60px rgba(0, 245, 255, 1); }
}

/* CARD 6 BOTTOM: SLIDE LEFT REVEAL */
.card-6 .card-bottom:hover {
    background: linear-gradient(90deg, #ff00ea, #ff66cc);
    box-shadow: 0 10px 30px rgba(255, 0, 234, 0.6);
}
.card-6 .card-bottom:hover a {
    color: white;
    transform: translateX(5px);
    letter-spacing: 3px;
}

/* CARD 7 BOTTOM: GLITCH TEXT */
.card-7 .card-bottom:hover {
    background: linear-gradient(145deg, #ff3366, #aa1144);
    box-shadow: 0 10px 25px rgba(255, 51, 102, 0.6);
}
.card-7 .card-bottom:hover a {
    color: white;
    text-shadow: 
        2px 0 #00f5ff,
        -2px 0 #ffd700;
    animation: textGlitch 0.4s infinite;
}

@keyframes textGlitch {
    0%, 100% { transform: translate(0); }
    50% { transform: translate(2px, -1px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .card { width: 240px; height: 320px; }
}

@media (max-width: 768px) {
    .card { width: 280px; }
    .cards-row { gap: 20px; }
}

@media (max-width: 480px) {
    .card { width: 90%; max-width: 320px; }
}
