/* Grupo Proxer 2025 - Pure CSS Version */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background: hsl(240, 100%, 5%);
    color: hsl(0, 0%, 98%);
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c00ff, hsl(240, 100%, 15%));
    position: relative;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, hsla(200, 100%, 50%, 0.05) 0%, transparent 50%, hsla(280, 100%, 70%, 0.05) 100%);
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

/* Main Logo Section */
.main-logo-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-out;
}

.logo-container {
    margin-bottom: 2rem;
}

.main-logo {
    height: 8rem;
    width: auto;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
    max-width: 100%;
}

/* Subsidiary Grid */
.subsidiary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 96rem;
    margin-left: auto;
    margin-right: auto;
}

/* Card Container */
.card-container {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

/* White Cards */
.white-card {
    position: relative;
    height: 12rem;
    overflow: hidden;
    border-radius: 1rem;
    background: hsl(0, 0%, 100%);
    border: 1px solid hsl(0, 0%, 90%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.white-card:hover {
    background: hsl(0, 0%, 98%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

/* Shine Effect */
.shine-effect {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    pointer-events: none;
}

.white-card:hover .shine-effect {
    opacity: 1;
    animation: shine 1.5s ease-out;
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.logo-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-center;
    margin-bottom: 1rem;
    width: 100%;
}

.subsidiary-logo {
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    height: auto;
}

.small-logo {
    max-height: 8rem;
}

.white-card:hover .subsidiary-logo {
    transform: scale(1.1);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.facebook {
    background-color: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Footer Section */
.footer-section {
    text-align: center;
    animation: fadeIn 0.6s ease-out;
    animation-delay: 1s;
    animation-fill-mode: both;
}

.footer-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(0, 0%, 98%);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Decorative Elements */
.decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(3rem);
    pointer-events: none;
}

.decoration-1 {
    top: 5rem;
    left: 5rem;
    width: 18rem;
    height: 18rem;
    background: rgba(255, 255, 255, 0.1);
}

.decoration-2 {
    bottom: 5rem;
    right: 5rem;
    width: 24rem;
    height: 24rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .main-logo {
        height: 10rem;
    }
    
    .subsidiary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .main-logo {
        height: 12rem;
    }
    
    .subsidiary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .main-logo {
        height: 6rem;
    }
    
    .subsidiary-grid {
        gap: 1.5rem;
    }
    
    .white-card {
        height: 10rem;
    }
    
    .card-content {
        padding: 1rem 0.75rem;
    }
    
    .social-link {
        width: 2rem;
        height: 2rem;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-text {
        font-size: 1rem;
    }
    
    .decoration-1 {
        width: 12rem;
        height: 12rem;
        top: 2rem;
        left: 2rem;
    }
    
    .decoration-2 {
        width: 16rem;
        height: 16rem;
        bottom: 2rem;
        right: 2rem;
    }
}

/* Loading States and Accessibility */
img {
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

img.error {
    opacity: 0.5;
}

/* Keyboard Navigation Support */
.using-keyboard .social-link:focus {
    outline: 2px solid hsl(200, 100%, 50%);
    outline-offset: 2px;
}

/* Smooth Page Loading */
body:not(.loaded) {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.1s ease;
}

/* Print Styles */
@media print {
    .decoration,
    .shine-effect {
        display: none;
    }
    
    .main-container {
        background: white;
        color: black;
    }
    
    .social-links {
        display: none;
    }
}