/*
 * Certificaciones Section - Light Theme Implementation
 * For Servicio 3 - Certificaciones Sostenibles
 */

/* ===== CERTIFICACIONES SECTION ===== */
.certificaciones-section {
    background: #FFFFFF;
    padding: 80px 0;
    position: relative;
}

.certificaciones-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SECTION HEADER ===== */
.certificaciones-header {
    text-align: center;
    margin-bottom: 60px;
}

.certificaciones-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: #1A1A1A;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.certificaciones-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CERTIFICACIONES GRID ===== */
.certificaciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

/* ===== CERTIFICACION CARD ===== */
.certificacion-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.certificacion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E5E7EB 0%, #E5E7EB 100%);
    transition: all 0.3s ease;
}

.certificacion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* Card-specific hover colors */
.leed-card:hover::before {
    background: linear-gradient(90deg, #22C55E 0%, #16A34A 100%);
}

.breeam-card:hover::before {
    background: linear-gradient(90deg, #0EA5E9 0%, #0284C7 100%);
}

.well-card:hover::before {
    background: linear-gradient(90deg, #8B5CF6 0%, #7C3AED 100%);
}

.verde-card:hover::before {
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
}

/* ===== CERTIFICACION LOGO ===== */
.certificacion-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
    position: relative;
}

.leed-logo {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

.leed-logo::after {
    content: 'LEED';
}

.breeam-logo {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
}

.breeam-logo::after {
    content: 'BREEAM';
    font-size: 14px;
}

.well-logo {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.well-logo::after {
    content: 'WELL';
}

.verde-logo {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.verde-logo::after {
    content: 'VERDE';
    font-size: 16px;
}

/* ===== CERTIFICACION CONTENT ===== */
.certificacion-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.certificacion-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #6B7280;
    margin-bottom: 24px;
    font-style: italic;
}

/* ===== CERTIFICACION LEVELS ===== */
.certificacion-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.level {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* LEED levels */
.level-certified {
    background: #F3F4F6;
    color: #4B5563;
}

.level-silver {
    background: #E5E7EB;
    color: #374151;
}

.level-gold {
    background: #FEF3C7;
    color: #D97706;
}

.level-platinum {
    background: #F3E8FF;
    color: #7C3AED;
}

/* BREEAM levels */
.level-pass {
    background: #FEE2E2;
    color: #DC2626;
}

.level-good {
    background: #FEF3C7;
    color: #D97706;
}

.level-very-good {
    background: #D1FAE5;
    color: #059669;
}

.level-excellent {
    background: #DBEAFE;
    color: #2563EB;
}

.level-outstanding {
    background: #F3E8FF;
    color: #7C3AED;
}

/* VERDE levels */
.level-1hoja, .level-2hojas, .level-3hojas, .level-4hojas, .level-5hojas {
    background: #D1FAE5;
    color: #059669;
}

/* ===== BENEFITS LIST ===== */
.certificacion-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.certificacion-benefits li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.certificacion-benefits li::before {
    content: '✓';
    color: #22C55E;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 0;
}

.certificacion-benefits li:last-child {
    margin-bottom: 0;
}

/* ===== CERTIFICACION CTA ===== */
.certificacion-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2B69C7;
    color: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(43, 105, 199, 0.2);
}

.certificacion-cta:hover {
    background: #1E4A8C;
    box-shadow: 0 4px 12px rgba(43, 105, 199, 0.3);
    transform: translateY(-2px);
}

/* ===== COMPARATIVA SECTION ===== */
.comparativa-section {
    background: #F8FAFC;
    padding: 80px 0;
    position: relative;
}

.comparativa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.comparativa-header {
    text-align: center;
    margin-bottom: 48px;
}

.comparativa-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.comparativa-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #6B7280;
}

/* ===== COMPARISON TABLE ===== */
.comparativa-table-wrapper {
    overflow-x: auto;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparativa-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.comparativa-table th {
    background: #F8FAFC;
    padding: 20px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #E5E7EB;
}

.comparativa-table td {
    padding: 16px;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #F3F4F6;
}

.feature-name {
    font-weight: 500;
    color: #1A1A1A;
    background: #FAFBFC;
}

.cert-col {
    text-align: center;
    min-width: 120px;
}

.leed-col {
    border-left: 3px solid #22C55E;
}

.breeam-col {
    border-left: 3px solid #0EA5E9;
}

.well-col {
    border-left: 3px solid #8B5CF6;
}

.verde-col {
    border-left: 3px solid #F59E0B;
}

.comparativa-table tbody tr:hover {
    background: #F8FAFC;
}

.comparativa-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1200px) {
    .certificaciones-container,
    .comparativa-container {
        padding: 0 40px;
    }
    
    .certificaciones-grid {
        gap: 40px;
    }
    
    .certificacion-card {
        padding: 48px 36px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .certificaciones-title,
    .comparativa-title {
        font-size: 32px;
    }
    
    .certificaciones-subtitle,
    .comparativa-subtitle {
        font-size: 17px;
    }
}

/* Tablet */
@media (max-width: 1023px) {
    .certificaciones-section,
    .comparativa-section {
        padding: 60px 0;
    }
    
    .certificaciones-container,
    .comparativa-container {
        padding: 0 30px;
    }
    
    .certificaciones-title,
    .comparativa-title {
        font-size: 30px;
    }
    
    .certificaciones-grid {
        gap: 24px;
    }
    
    .certificacion-card {
        padding: 32px 24px;
    }
    
    .certificacion-name {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .certificaciones-section,
    .comparativa-section {
        padding: 50px 0;
    }
    
    .certificaciones-container,
    .comparativa-container {
        padding: 0 20px;
    }
    
    .certificaciones-title,
    .comparativa-title {
        font-size: 28px;
    }
    
    .certificaciones-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }
    
    .certificacion-card {
        padding: 28px 20px;
    }
    
    .certificacion-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .logo-placeholder {
        font-size: 14px;
    }
    
    .breeam-logo::after {
        font-size: 12px;
    }
    
    .verde-logo::after {
        font-size: 14px;
    }
    
    .certificacion-name {
        font-size: 20px;
    }
    
    .certificacion-subtitle {
        font-size: 13px;
    }
    
    .level {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .certificacion-benefits li {
        font-size: 13px;
    }
    
    .certificacion-cta {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    /* Mobile table */
    .comparativa-table-wrapper {
        border-radius: 12px;
    }
    
    .comparativa-table th,
    .comparativa-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .cert-col {
        min-width: 80px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .certificaciones-title,
    .comparativa-title {
        font-size: 24px;
    }
    
    .certificacion-card {
        padding: 24px 16px;
    }
    
    .certificacion-name {
        font-size: 18px;
    }
    
    .comparativa-table th,
    .comparativa-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .certificacion-card,
    .certificacion-cta {
        transition: none;
    }
    
    .certificacion-card:hover,
    .certificacion-cta:hover {
        transform: none;
    }
}

/* Focus states */
.certificacion-card:focus,
.certificacion-cta:focus {
    outline: 2px solid #22D3EE;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .certificacion-card {
        border: 2px solid #1A1A1A;
    }
    
    .certificacion-name {
        color: #000000;
    }
    
    .certificacion-subtitle,
    .certificacion-benefits li {
        color: #333333;
    }
    
    .comparativa-table th {
        background: #F0F0F0;
        color: #000000;
    }
    
    .comparativa-table td {
        color: #333333;
    }
}