/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main {
    padding: 80px 0;
}

/* Grid Layout */
.convenios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Styles */
.convenio-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.convenio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.convenio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

.company-logo {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
    text-align: center;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    text-align: justify;
}

.card-content strong {
    color: #667eea;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #2d3748;
    color: #cbd5e0;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 40px 0;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .main {
        padding: 40px 0;
    }
    
    .convenios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .convenio-card {
        padding: 25px;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .card-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .convenio-card {
        padding: 20px;
    }
    
    .logo-container {
        padding: 15px;
    }
    
    .company-logo {
        max-width: 120px;
        max-height: 60px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .convenio-card {
        transition: none;
    }
    
    .convenio-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .convenio-card {
        break-inside: avoid;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}