/* Secciones generales */
section {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

/* Scroll que encaja sección por sección */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    color: #ffffff;
}

section {
    scroll-snap-align: start;
    min-height: 100vh;
    height: auto;
}

/* Sección inicial */
.initial {
    background-color: #B5553A;  
    text-align: center;
    padding: 2% 0;
    color: white;
}

/* Menú */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(75, 44, 42, 0.95);
    color: white;
    z-index: 1000;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-logo{
    margin-left: 5vh;
    position: absolute;
    left: 0;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .menu-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(75, 44, 42, 0.95);
        padding: 1rem 0;
    }
    .menu-links.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

.menu p { margin: 0; cursor: pointer; }
.menu p:hover { text-decoration: underline; }

/* Botón */
.button {
    background-color: #FFD166;
    color: #222;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    max-width: 20rem;
    align-self: center;
}
.button:hover { 
    background-color: #E6B94F; 
    transform: translateY(-2px);
}

.imgPortada {
    width: 34%;
    max-width: 400px;
    min-width: 200px; 
    margin: 2rem auto;
    display: block;
}

/* Ajuste para pantallas medianas */
@media (max-width: 1024px) {
    .imgPortada {
        width: 50%;
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .imgPortada {
        width: 70%;
    }
}

/* Ajustes generales imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Nosotros */
.nosaltres {
    background: linear-gradient(135deg, #4B2C2A, #B5553A);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}
.nosaltres::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    z-index: 0;
}
.nosaltres-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 1;
}
.nosaltres h1 {
    font-size: 2.5rem;
    margin: 0 0 2rem;
}
.imgAboutUs {
    width: 80%;
    max-width: 900px;
    min-width: 20px; 
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 2rem auto;
    display: block;
}

.textNosaltres {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 600px;
}
.textNosaltres p {
    margin-bottom: 2rem;
}

/* Activitats */
.activitats {
    background-color: #B5553A;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    color: white;
}
.activitats h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}
.cardsActivitats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}
.card {
    background-color: #4B2C2A;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
}
.card img {
    width: 100%;
}
.card h3 {
    margin: 0.8rem;
    font-size: 1.2rem;
    text-align: center;
}

/* Junta */
.junta {
    background-color: #4B2C2A;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    color: white;
}
.junta h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}
.cardsJunta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.membre {
    background-color: #5C2F1F;
    border-radius: 10px;
    width: 160px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
}
.membre img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    object-fit: cover;
    height: 160px;
}
.membre h3 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.1rem;
}
.membre p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #FFD166;
}

/* Actes */
.actes {
    background-color: #4B2C2A;
}
.actes, .contacte {
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}Z
.actesList {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.acta {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contacte */
.contacte {
    background-color: #4B2C2A;
    text-align: center;
}
.contactContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.contactInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.contactInfo p {
    margin: 0;
    font-size: 1rem;
}
.contactLinks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.socialLink {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #FFD166;
    color: #222;
    font-weight: bold;
}
.socialLink i {
    font-size: 22px;
}
.socialLink.instagram { color: #E1306C; }
.socialLink.facebook { color: #1877F2; }
.socialLink.email { color: #D44638; }
.socialLink:hover {
    background-color: #E6B94F;
    transform: translateY(-2px);
}
.address {
    font-style: italic;
    color: #ddd;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    section { padding: 1rem; }
    .button { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .textNosaltres { font-size: 1rem; line-height: 1.5; }
    .membre { width: 140px; }
}
@media (max-width: 480px) {
    .cardsActivitats { grid-template-columns: 1fr; }
    .membre { width: 120px; }
    .contactLinks { flex-direction: column; gap: 1rem; }
}