@view-transition {
    navigation: auto;
  }

  @font-face {
    font-family: 'GALISCKA';
    src: url('../assets/font/GALISCKA-Regular-BF65ce4e25cffd9.otf') format('opentype'),
         url('../assets/font/GALISCKA-Regular-BF65ce4e261cfed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

  .special-title{
    font-family: 'GALISCKA', Arial, sans-serif;
  
  }
  .special-title h2{
    font-size: 1.8rem!important;
  }
  .special-title h3{
    font-size: 1.4rem!important;
  }
.projects-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero-content2 {
    max-width: 800px;
}

.hero-content2 h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-content2 p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Projects Grid */
.projects-grid-section {
    padding: 6rem 0;
    background: white;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

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

.project-card .donate-button3 {
    margin: 20px;
    margin-top: 0;
}

.project-image {
    position: relative;
    height: 300px;
}

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

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-status.finalizado {
    background: var(--primary-green);
    color: white;
}

.project-status.en-curso {
    background: var(--primary-blue);
    color: white;
}

.project-status.proximo {
    background: var(--secondary-blue);
    color: white;
}

.project-info {
    padding: 2rem;
    padding-bottom: 0;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 500;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

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

    .project-card {
        width: 100%;
        margin: 0 auto;
    }
}

/* Navbar Styles */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--primary-blue);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@font-face {
    font-family: 'GALISCKA';
    src: url('../assets/font/GALISCKA-Regular-BF65ce4e25cffd9.otf') format('opentype'),
         url('../assets/font/GALISCKA-Regular-BF65ce4e261cfed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

h1 {
    font-family: 'GALISCKA', Arial, sans-serif;
}

/* Estilos para los filtros */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 0 2rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: transparent;
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.filter-btn.active {
    color: var(--primary-blue);
}

.filter-btn.active::after {
    width: 80%;
}

.filter-btn:hover::after {
    width: 80%;
}

/* Animación para los proyectos */
.project-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}
.donate-button3 {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1rem;
    width: fit-content;
}

.donate-button3:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}





/* Estilos para la barra de progreso */
.project-progress {
    margin: 1.5rem 0;
}

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

.goal-amount {
    font-weight: 600;
    color: var(--primary-blue);
}

.progress-percentage {
    color: var(--primary-green);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.amount-raised {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Estilos para la galería de miniaturas */
.project-thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.project-thumbnail-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-thumbnail-gallery img:hover {
    transform: scale(1.05);
}

/* Ajustes responsivos */

@media (max-width: 768px) {
    .projects-filter {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .project-card .donate-button3{
        width: max-content;
        padding: 1rem;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .project-thumbnail-gallery {
        gap: 0.3rem;
    }

    .project-thumbnail-gallery img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .project-thumbnail-gallery img {
        height: 80px;
    }
}

/* Barras de progreso personalizadas para proyectos en curso */
.project-progress-custom {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.progress-label {
  font-size: 1rem;
  margin-bottom: 2px;
  margin-top: 8px;
  letter-spacing: 0.01em;
}
.progress-bar-custom {
  width: 100%;
  margin-bottom: 8px;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  height: 22px;
  position: relative;
}
.progress-bar-custom > div {
  height: 100%;
  border-radius: 12px;
  transition: width 0.7s cubic-bezier(.4,2.3,.3,1);
}
@media (max-width: 600px) {
  .project-progress-custom {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-progress-custom img {
    margin-bottom: 10px;
    margin-right: 0;
  }
}