/* Reset y configuración base */
* {
    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: #f8f9fa;
}

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

/* Hero Section - Más compacto y optimizado */
.hero-section {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    padding: 15px 0;
    min-height: auto;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    height: 80px;
    width: auto;
}

.metodologia-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metodologia-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.metodologia-btn i {
    font-size: 16px;
    margin-bottom: 4px;
}

.metodologia-btn small {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.hero-subtitle {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 12px;
}

.evaluation-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #bbb;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.stats-section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.stats-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-ai {
    font-size: 1.3em;
    font-weight: 700;
    color: #007bff;
    background: linear-gradient(45deg, #007bff, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Filters Section */
.filters-section {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.filters-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.filters-container {
    display: grid;
    grid-template-columns: auto repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.clear-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: #0056b3;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Ranking Section */
.ranking-section {
    background: white;
    padding: 40px 0;
}

.ranking-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-info {
    font-weight: 500;
    color: #666;
}

.export-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.export-btn:hover {
    background: #0056b3;
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #333;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

tr:hover {
    background: #f8f9fa;
}

/* Círculos de evaluación recuperados */
.score-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin: 0 auto;
    position: relative;
}

.score-circle.excellent {
    background: #28a745;
}

.score-circle.good {
    background: #17a2b8;
}

.score-circle.average {
    background: #ffc107;
    color: #333;
}

.score-circle.poor {
    background: #fd7e14;
}

.score-circle.very-poor {
    background: #dc3545;
}

/* Elementos clickeables */
.score-circle.clickeable {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.score-circle.clickeable:hover {
    transform: scale(1.1);
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Justificaciones bajo los scores */
.score-justification {
    font-size: 10px;
    color: #666;
    margin-top: 3px;
    line-height: 1.2;
}

/* Medallas */
.medal {
    font-size: 20px;
    margin-right: 8px;
}

.medal.gold {
    color: #ffd700;
}

.medal.silver {
    color: #c0c0c0;
}

.medal.bronze {
    color: #cd7f32;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #0056b3;
}

.page-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#page-info {
    font-weight: 600;
    color: #333;
}

/* Methodology Section */
.methodology-section {
    background: #f8f9fa;
    padding: 50px 0;
    border-top: 1px solid #eee;
}

.methodology-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.criterion {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #28a745;
}

.criterion-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.criterion-header i {
    font-size: 24px;
    color: #28a745;
    margin-right: 15px;
}

.criterion-header h4 {
    flex: 1;
    color: #333;
    font-size: 1.2rem;
}

.points {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.criterion p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: white;
    padding: 50px 0;
}

.about-section h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 2rem;
}

.about-section h4 {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-weight: 400;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.about-item {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.about-item i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 15px;
}

.about-item h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.about-item p {
    color: #666;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.service-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 10px;
}

.service-item h5 {
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    background: #f8f9fa;
    padding: 50px 0;
}

.testimonials-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.testimonial {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stars {
    margin-bottom: 15px;
}

.stars i {
    color: #ffc107;
    margin-right: 2px;
}

.testimonial p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author strong {
    color: #333;
    display: block;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Team Section */
.team-section {
    background: white;
    padding: 50px 0;
}

.team-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.team-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(100%);
}

.team-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.team-title {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 3px;
}

.team-education {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.email-btn {
    background: #007bff;
    color: white;
}

.email-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.final-cta-section {
    background: #28a745;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.final-cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.final-cta-section p {
    margin-bottom: 25px;
    color: #e8f5e8;
}

.cta-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #28a745;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    margin-bottom: 10px;
    color: #28a745;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        position: static !important;
        padding: 20px 0;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .clear-btn {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 8px 5px;
    }
}

