/* Sección principal */
.main-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #000000, #0a0a0a);
    position: relative;
    overflow: hidden;
}

.main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffffff, transparent);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards container */
.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Cards generales */
.card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card izquierda específica - Lluvia */
.left-card {
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.9), rgba(20, 40, 60, 0.8));
}

.left-card:hover {
    background: linear-gradient(135deg, rgba(15, 30, 45, 0.95), rgba(25, 50, 75, 0.85));
}

.left-card .card-icon {
    color: #4a9eff;
}

/* Card derecha específica - Envolvente */
.right-card {
    background: linear-gradient(135deg, rgba(30, 20, 40, 0.9), rgba(50, 30, 60, 0.8));
}

.right-card:hover {
    background: linear-gradient(135deg, rgba(40, 25, 55, 0.95), rgba(65, 35, 75, 0.85));
}

.right-card .card-icon {
    color: #b366ff;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.card-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.card-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #c0c0c0;
    margin-bottom: 2rem;
}

.card-features {
    list-style: none;
    margin-top: 2rem;
}

.card-features li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #a0a0a0;
    display: flex;
    align-items: center;
}

.card-features i {
    margin-right: 10px;
    font-size: 0.9rem;
}

.left-card .card-features i {
    color: #4a9eff;
}

.right-card .card-features i {
    color: #b366ff;
}

/* Indicadores de hover */
.card-hover-indicator {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hover-text {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Indicador de sonido para card izquierda */
.sound-indicator {
    display: flex;
    align-items: flex-end;
    height: 30px;
    gap: 3px;
}

.sound-bar {
    width: 4px;
    background: #4a9eff;
    border-radius: 2px;
    transition: height 0.3s ease;
}

.sound-bar:nth-child(1) { height: 8px; }
.sound-bar:nth-child(2) { height: 15px; }
.sound-bar:nth-child(3) { height: 22px; }
.sound-bar:nth-child(4) { height: 15px; }
.sound-bar:nth-child(5) { height: 8px; }

.left-card:hover .sound-bar {
    animation: rainSound 1.5s infinite ease-in-out;
}

.left-card:hover .sound-bar:nth-child(1) { animation-delay: 0.1s; }
.left-card:hover .sound-bar:nth-child(2) { animation-delay: 0.2s; }
.left-card:hover .sound-bar:nth-child(3) { animation-delay: 0.3s; }
.left-card:hover .sound-bar:nth-child(4) { animation-delay: 0.4s; }
.left-card:hover .sound-bar:nth-child(5) { animation-delay: 0.5s; }

@keyframes rainSound {
    0%, 100% {
        height: 8px;
        opacity: 0.7;
    }
    50% {
        height: 25px;
        opacity: 1;
    }
}

/* Indicador de onda para card derecha */
.sound-wave {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wave-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #b366ff;
    opacity: 0.3;
}

.right-card:hover .wave-circle {
    animation: wavePulse 2s infinite ease-in-out;
}

.right-card:hover .wave-circle:nth-child(1) { animation-delay: 0s; }
.right-card:hover .wave-circle:nth-child(2) { animation-delay: 0.2s; }
.right-card:hover .wave-circle:nth-child(3) { animation-delay: 0.4s; }

@keyframes wavePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Efecto de gotas de lluvia para card izquierda al hover */
.left-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(74, 158, 255, 0.05), transparent);
    transition: top 1s ease;
    pointer-events: none;
}

.left-card:hover::after {
    top: 100%;
    transition-duration: 2s;
}

/* Elementos flotantes adicionales para la sección */
.main-section .floating-element {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatSlow 20s infinite linear;
}

.main-section .floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.main-section .floating-element:nth-child(2) { top: 60%; left: 90%; animation-delay: 5s; }
.main-section .floating-element:nth-child(3) { top: 80%; left: 15%; animation-delay: 10s; }
.main-section .floating-element:nth-child(4) { top: 40%; left: 85%; animation-delay: 15s; }

@keyframes floatSlow {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-60px) translateX(-5px);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-30px) translateX(-10px);
        opacity: 0.2;
    }
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.1;
    }
}

/* Responsive para cards */
@media (max-width: 1100px) {
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .main-section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .card {
        padding: 2rem;
        min-height: 450px;
    }
    
    .card-title {
        font-size: 2rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.8rem;
    }
    
    .card-hover-indicator {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}