/* ============================================
   Estilos para Gestión Ambiental - UNSM
   ============================================ */

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d8a3e 0%, #359444 50%, #87CEEB 100%);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d8a3e 0%, #359444 40%, #87CEEB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-bg.bg-1 {
    background: linear-gradient(135deg, #1a5c2a 0%, #2d8a3e 30%, #359444 50%, #7ec87e 70%, #87CEEB 100%);
}

.slide-bg.bg-2 {
    background: linear-gradient(135deg, #0d4d1a 0%, #1a7a2e 30%, #28a745 50%, #5cb85c 70%, #90EE90 100%);
}

.slide-bg.bg-3 {
    background: linear-gradient(135deg, #2d5a3e 0%, #3d8a4e 30%, #4a9d5a 50%, #6bbe6b 70%, #98D8AA 100%);
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    max-height: 450px;
    width: auto;
}

.placeholder-hero {
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

/* Placeholders CSS */
.placeholder-img {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
}

.placeholder-avatar {
    background: linear-gradient(135deg, #d0d0d0 0%, #e8e8e8 100%);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #359444;
    z-index: 10;
}

.slider-btn:hover {
    background: #ffffff;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
}

/* Secciones generales */
.section-header {
    background: #359444;
    padding: 15px 20px;
    margin-bottom: 0;
}

.section-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    max-width: 1400px;
    margin: 0 auto;
}

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

/* Notas Informativas */
.section-notas {
    background: #f5f5f5;
}

.notas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.nota-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nota-card:hover {
    transform: translateY(-5px);
}

.nota-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.nota-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nota-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

.nota-badge.verde {
    background: #359444;
}

.nota-content {
    padding: 15px;
}

.nota-date {
    color: #888;
    font-size: 11px;
    display: block;
    margin-bottom: 8px;
}

.nota-content h3 {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.btn-ver-mas {
    display: inline-block;
    background: #ff6b35;
    color: #ffffff;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover {
    background: #e55a2b;
}

/* Actividades */
.section-actividades {
    background: #e8e8e8;
}

.actividades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.actividad-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.actividad-image {
    height: 200px;
    overflow: hidden;
}

.actividad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actividad-content {
    padding: 20px;
}

.actividad-content h3 {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.actividad-content p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Fondos Concursables */
.section-fondos {
    background: #f5f5f5;
}

.fondos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.fondo-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fondo-image {
    text-align: center;
    margin-bottom: 15px;
}

.fondo-logo {
    height: 60px;
    width: auto;
}

.fondo-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-fondo {
    flex: 1;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-fondo.rojo {
    background: #dc3545;
    color: #ffffff;
}

.btn-fondo.verde {
    background: #359444;
    color: #ffffff;
}

.btn-fondo:hover {
    opacity: 0.9;
}

.fondo-content {
    border-top: 1px solid #e8e8e8;
    padding-top: 15px;
}

.fondo-date {
    color: #888;
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
}

.fondo-content h3 {
    color: #359444;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* ODS Section */
.section-ods {
    background: #ffffff;
}

.section-ods .section-header {
    background: #359444;
    margin-bottom: 30px;
}

.ods-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.ods-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ods-item:hover {
    transform: scale(1.05);
}

.ods-item span {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}

.ods-item p {
    font-size: 9px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Colores ODS */
.ods-1 { background: #e5243b; }
.ods-2 { background: #dda63a; }
.ods-3 { background: #4c9f38; }
.ods-4 { background: #c5192d; }
.ods-5 { background: #ff3a21; }
.ods-6 { background: #26bde2; }
.ods-7 { background: #fcc30b; }
.ods-8 { background: #a21942; }
.ods-9 { background: #fd6925; }
.ods-10 { background: #dd1367; }
.ods-11 { background: #fd9d24; }
.ods-12 { background: #bf8b2e; }
.ods-13 { background: #3f7e44; }
.ods-14 { background: #0a97d9; }
.ods-15 { background: #56c02b; }
.ods-16 { background: #00689d; }
.ods-17 { background: #19486a; }
.ods-logo {
    background: #ffffff;
    border-radius: 8px;
}
.ods-logo img {
    max-width: 100%;
    height: auto;
}
.ods-logo span {
    color: #359444;
}
.ods-logo p {
    color: #333;
    font-size: 8px;
}

/* Miembros Section */
.section-miembros {
    background: #ffffff;
    padding-bottom: 40px;
}

.section-miembros .section-header {
    background: #359444;
    margin-bottom: 30px;
}

.miembros-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.miembro-card {
    text-align: center;
}

.miembro-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    position: relative;
}

.miembro-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
}

.miembro-image.coordinador {
    border-color: #26bde2;
}

.miembro-image.presidente {
    border-color: #fcc30b;
}

.miembro-image.miembro {
    border-color: #56c02b;
}

.miembro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.miembro-info h3 {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.miembro-info p {
    color: #359444;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

/* Sección Documentos - Fondo Blanco */
.section-documentos {
    background: #ffffff;
    padding: 40px 20px;
}

/* Documentos */
.documentos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e0e0e0;
}

.documentos-lista h4 {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #359444;
}

.documentos-lista ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documentos-lista li {
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.documentos-lista li:last-child {
    border-bottom: none;
}

.documentos-lista a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.documentos-lista a:hover {
    color: #359444;
}

/* Responsive */
@media (max-width: 1200px) {
    .notas-grid,
    .actividades-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .miembros-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ods-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 400px;
    }

    .fondos-grid {
        grid-template-columns: 1fr;
    }

    .miembros-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ods-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }

    .notas-grid,
    .actividades-grid {
        grid-template-columns: 1fr;
    }

    .miembros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .documentos-grid {
        grid-template-columns: 1fr;
    }

    .ods-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 250px;
    }

    .miembros-grid {
        grid-template-columns: 1fr;
    }

    .miembro-image {
        width: 120px;
        height: 120px;
    }

    .ods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ods-item span {
        font-size: 22px;
    }

    .ods-item p {
        font-size: 7px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
