/* Somos Alunasa Section Styles */
.somos-alunasa-section {
    padding: 80px 0 70px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Add floating animation to logo */
.somos-section-logo {
    height: 100px;
    width: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    margin: 15px 0;
}

.somos-section-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.15));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Metallic background effect */
.somos-alunasa-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/textures/aluminum-texture.jpg');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Section Title Styling */
.somos-alunasa-section .section-title {
    color: var(--brand-blue) !important;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    padding: 0 15px;
}

/* Section Subtitle Styling */
.somos-alunasa-section .section-subtitle {
    color: var(--brand-dark) !important;
    font-size: 1.1rem;
    margin-top: 5px;
    position: relative;
    z-index: 1;
    text-shadow: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--brand-blue), rgba(50, 50, 117, 0.3));
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    color: var(--brand-gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Cards Container */
.somos-cards-container {
    position: relative;
    z-index: 1;
}

/* Card Link (removes underline) */
.somos-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: transform 0.3s ease;
}

.somos-card-link:hover {
    transform: translateY(-10px);
}

/* Card Styling */
.somos-card {
    background: linear-gradient(135deg, white 0%, #f9f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 35px 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(218, 218, 218, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.somos-card:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(50, 50, 117, 0.2);
}

/* Card Icon */
.somos-card-icon {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 25px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(50, 50, 117, 0.05);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(50, 50, 117, 0.1);
}

.somos-card:hover .somos-card-icon {
    transform: scale(1.1) translateZ(20px);
    background-color: var(--brand-blue);
    color: white;
    box-shadow: 0 8px 25px rgba(50, 50, 117, 0.25);
}

/* Card Title */
.somos-card-title {
    color: var(--brand-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.somos-card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--brand-blue), rgba(50, 50, 117, 0.3));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.somos-card:hover .somos-card-title::after {
    width: 80px;
}

.somos-card:hover .somos-card-title {
    color: var(--brand-blue);
    transform: translateZ(15px);
}

/* Card Text */
.somos-card-text {
    color: var(--brand-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.somos-card:hover .somos-card-text {
    transform: translateZ(10px);
}

/* Card Overlay */
.somos-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(50, 50, 117, 0.9), transparent);
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.somos-card:hover .somos-card-overlay {
    height: 70px;
    opacity: 1;
}

/* Card Button */
.somos-card-btn {
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid white;
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    display: inline-block;
}

/* Removed the ::before pseudo-element that was causing issues */

.somos-card:hover .somos-card-btn {
    opacity: 1;
    transform: translateY(0);
}

.somos-card-btn:hover {
    background-color: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
    box-shadow: 0 8px 20px rgba(50, 50, 117, 0.3);
    position: relative;
    z-index: 2;
}

/* Removed hover::before effect */

/* Add subtle background patterns to cards */
.somos-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(50, 50, 117, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.somos-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(50, 50, 117, 0.02) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.somos-card:hover::before,
.somos-card:hover::after {
    opacity: 1;
}

/* Section Logo */
.somos-section-logo {
    max-width: 180px;
    margin-top: 30px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.somos-section-logo:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .somos-alunasa-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .somos-card {
        padding: 25px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .somos-alunasa-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .somos-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .somos-alunasa-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .somos-card {
        padding: 20px;
    }
    
    .somos-card-icon {
        font-size: 2rem;
    }
    
    .somos-section-logo {
        max-width: 150px;
    }
}
