:root {
    --color-oscuro: #07592B;
    --color-medio: #198754;
    --color-acento: #F2A413;
    --color-gris-oscuro: #2d3748;
    --color-gris-medio: #4a5568;
    --color-gris-claro: #f7fafc;
    --color-blanco: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-gris-claro);
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    padding-top: 80px; /* Compensa el navbar fijo */
}

/* Navbar moderno */
.navbar {
    background: linear-gradient(135deg, var(--color-oscuro) 0%, var(--color-gris-oscuro) 100%) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--color-acento);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: -2rem; /* Compensa el padding del body */
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.eslogan {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-acento);
    margin-bottom: 2rem;
    border-left: 3px solid var(--color-acento);
    padding-left: 15px;
    display: inline-block;
}

/* Contenido principal */
.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--color-gris-oscuro);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-acento);
    margin: 10px auto;
    border-radius: 2px;
}

/* Filtros modernos */
.filter-section {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem;
}

.form-control, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-medio);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
    outline: none;
}

/* Tarjetas modernas con imágenes cuadradas */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: 100%;
    background-color: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

/* IMAGEN CUADRADA 1:1 */
.card-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Esto crea un contenedor cuadrado */
    overflow: hidden;
    background-color: #f8f9fa;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin distorsión */
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-weight: 700;
    color: var(--color-gris-oscuro);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card-text {
    color: var(--color-gris-medio);
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Badges modernos */
.badge-category {
    background-color: var(--color-acento);
    color: white;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-block;
    border: none;
}

/* Botones modernos */
.btn-primary {
    background-color: var(--color-medio);
    border-color: var(--color-medio);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--color-oscuro);
    border-color: var(--color-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(7, 89, 43, 0.2);
    color: white;
}

.btn-accent {
    background-color: var(--color-acento);
    border-color: var(--color-acento);
    color: #333;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-accent:hover {
    background-color: #e09510;
    border-color: #e09510;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(242, 164, 19, 0.2);
    color: #333;
}

/* Rating stars */
.rating-stars {
    color: var(--color-acento);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.rating-stars i {
    margin: 0 2px;
}

/* Footer moderno */
footer {
    background-color: var(--color-gris-oscuro);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-acento);
}

.footer-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    text-align: center;
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-gris-medio);
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--color-gris-oscuro);
}

/* Animaciones */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utilidades para evaluación */
.evaluation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

/* Mejoras para formularios de evaluación */
.form-range {
    width: 100%;
    height: 1.5rem;
    padding: 0;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.form-range:focus {
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    background: var(--color-medio);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    background: var(--color-medio);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 3rem 0;
        margin-top: -1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .eslogan {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-primary, .btn-accent {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    footer {
        padding: 2rem 0 1.5rem;
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .container-main {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}