/* CSS específico para páginas principales del sitio web */

/* Contacto Page */
.contacto-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
}

.contacto-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.contacto-titulo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contacto-subtitulo {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Content */
.contacto-content {
    padding: 4rem 0;
    background: white;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contacto-info h2 {
    font-size: 2rem;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.contacto-info p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
}

.info-icon {
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-800);
    font-size: 1.1rem;
}

.info-content p,
.info-content a {
    margin: 0;
    color: var(--gray-600);
    text-decoration: none;
}

.info-content a:hover {
    color: var(--primary);
}

/* Contact Form */
.contacto-form {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.contacto-form h3 {
    margin: 0 0 1.5rem 0;
    color: var(--gray-800);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Proyectos Page */
.proyectos-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
}

.proyectos-content {
    padding: 4rem 0;
    background: var(--gray-50);
}

/* Contenedor de proyectos */
.proyectos-container {
    width: 100%;
    margin: 0 auto;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Tarjeta de proyecto */
.proyecto-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 450px;
    position: relative;
}

.proyecto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Imagen del proyecto */
.proyecto-imagen {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.proyecto-imagen-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-icon {
    color: rgba(255, 255, 255, 0.8);
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proyecto-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-activo {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.status-completado {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

/* Cuerpo de la tarjeta */
.proyecto-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proyecto-header {
    margin-bottom: 0.5rem;
}

.proyecto-categoria {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.proyecto-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.3;
}

.proyecto-descripcion {
    margin: 0;
}

.proyecto-descripcion p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.proyecto-detalles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.proyecto-detalle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.proyecto-detalle svg {
    color: var(--primary);
    flex-shrink: 0;
}

.proyecto-categoria {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.proyecto-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.proyecto-descripcion {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.proyecto-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.proyecto-progreso {
    margin-bottom: 1.5rem;
}

.progreso-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progreso-label {
    font-weight: 600;
    color: var(--gray-700);
}

.progreso-porcentaje {
    font-weight: 700;
    color: var(--primary);
}

.progreso-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progreso-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.proyecto-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-ver {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ver:hover {
    background: var(--secondary);
    text-decoration: none;
}

.btn-donar {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-donar:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* Noticias Page */
.noticias-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
}

.noticias-content {
    padding: 4rem 0;
    background: var(--gray-50);
}

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

.noticia-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.noticia-imagen {
    height: 200px;
    overflow: hidden;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-body {
    padding: 1.5rem;
}

.noticia-categoria {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.noticia-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.noticia-fecha {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.noticia-resumen {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.noticia-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.noticia-link:hover {
    color: var(--secondary);
}

/* Voluntariado Page */
.voluntariado-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
}

.voluntariado-content {
    padding: 4rem 0;
    background: white;
}

.voluntariado-info {
    text-align: center;
    margin-bottom: 3rem;
}

.voluntariado-info h2 {
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.voluntariado-info p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.vacante-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.vacante-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vacante-header {
    margin-bottom: 1.5rem;
}

.vacante-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.vacante-categoria {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.vacante-descripcion {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.vacante-requisitos {
    margin-bottom: 2rem;
}

.vacante-requisitos h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.vacante-requisitos ul {
    color: var(--gray-600);
    padding-left: 1.5rem;
}

.vacante-requisitos li {
    margin-bottom: 0.5rem;
}

.vacante-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

.meta-item {
    text-align: center;
}

.meta-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 600;
    color: var(--gray-800);
}

.vacante-actions {
    text-align: center;
}

.btn-postular {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-postular:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacto-titulo {
        font-size: 2rem;
    }
    
    .proyectos-grid,
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .proyecto-card {
        margin-bottom: 0;
        width: 100%;
        max-width: none;
        min-height: auto;
    }
    
    .proyecto-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-ver,
    .btn-donar {
        width: 100%;
    }
    
    .vacantes-grid {
        grid-template-columns: 1fr;
    }
    
    .proyecto-actions,
    .vacante-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contacto-hero,
    .proyectos-hero,
    .noticias-hero,
    .voluntariado-hero {
        padding: 2rem 0;
    }
    
    .contacto-titulo {
        font-size: 1.8rem;
    }
    
    .contacto-form {
        padding: 1.5rem;
    }
    
    .proyecto-card,
    .noticia-card,
    .vacante-card {
        margin-bottom: 1rem;
    }
}

/* Estilos adicionales para proyectos */
.progreso-container {
    margin: 1rem 0;
}

.progreso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progreso-label {
    color: var(--gray-700);
    font-weight: 500;
}

.progreso-porcentaje {
    color: var(--primary);
    font-weight: 700;
}

.completado-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
}