/* GENERAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f8f9fa;
    padding-top: 90px;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #003c96;
    text-align: center;
}

p {
    margin-bottom: 20px;
}

/* HEADER */
.header {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    height: 90px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 60, 150, 0.1);
}

.logo img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}


/* NAVBAR */
.navbar {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a:not(.nav-btn) {
    color: #003c96;
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    position: relative;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:not(.nav-btn):hover {
    color: #02a9d6;
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 0;
    background-color: #02a9d6;
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-btn):hover::after {
    width: 100%;
}


/* BOTONS */
.btn button {
    font-weight: 600;
    color: white;
    padding: 12px 28px;
    background: linear-gradient(135deg, #02a9d6, #00c6ff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(2, 169, 214, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(2, 169, 214, 0.4);
    background: linear-gradient(135deg, #00c6ff, #02a9d6);
}

.header-btn {
    display: block;
}

.nav-btn {
    display: none;
}


/* HERO */
.hero {
    position: relative;
    height: calc(100vh - 90px);
    min-height: 500px;
    max-height: 900px;
    background-image: url('../img/Fotos_principals/banner2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 60, 150, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 20px;
    animation: fadeInUp 1.3s ease-out forwards;
    opacity: 0;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #02a9d6, #00c6ff);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(2, 169, 214, 0.4);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #00c6ff, #02a9d6);
}
/* Estilos existentes que se mantienen */
.hero {
    position: relative;
    height: calc(100vh - 90px);
    min-height: 500px;
    max-height: 900px;
    background-image: url('../img/Fotos_principals/banner2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 60, 150, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 20px;
    animation: fadeInUp 1.3s ease-out forwards;
    opacity: 0;
}

/* Nuevos estilos mejorados */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #02a9d6, #00c6ff);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(2, 169, 214, 0.4);
    transition: all 0.3s ease;
}

.secondary-btn {
    background: white;
    color: #003C96;
    box-shadow: 0 4px 15px rgba(0, 60, 150, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Mejoras para móvil */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .hero-btn, .secondary-btn {
        width: 100%;
        max-width: 250px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Efecto hover para ambos botones */
.hero-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
}
.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo a:hover {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* ABOUT SECTION */
.about-section {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #02a9d6;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #555;
}


/* GALERIA DEL CLUB */
.club-gallery {
    margin: 60px 0;
}

.gallery-main {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 60, 150, 0.1);
    position: relative;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top 20%;
    /* Mostra la part superior però una mica més avall */
    display: block;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 60, 150, 0.9), rgba(0, 60, 150, 0.6));
    padding: 30px;
    color: white;
    backdrop-filter: blur(2px);
    /* Efecte de desenfoc per millorar llegibilitat */
}

.image-caption h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.image-caption p {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.grid-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    transition: transform 0.3s ease;
}

/* Ajustos específics per a cada imatge */
.grid-item:nth-child(1) img,
/* equip1 */
.grid-item:nth-child(2) img,
/* competicions */
.grid-item:nth-child(4) img {
    /* comunitat */
    object-position: top;
    object-fit: cover;
}


.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 60, 150, 0.9), rgba(0, 60, 150, 0.6));
    padding: 20px;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    /* Efecte de desenfoc */
}

.grid-overlay p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-item:hover .grid-overlay p {
    transform: translateY(0);
}

/* Secció dels Equips */
.teams-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}

.teams-section h3 {
    text-align: center;
    color: #003c96;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.teams-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 60, 150, 0.15);
}

.team-image-wrapper {
    height: 300px;
    overflow: hidden;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image-wrapper img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h4 {
    color: #003c96;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-info p {
    color: #02a9d6;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-highlights {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eaeaea;
}

.team-highlights p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.team-highlights i {
    color: #02a9d6;
    font-size: 1rem;
}

/* Secció de Patrocinadors */
.sponsors-section {
    padding: 50px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.sponsors-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sponsors-title {
    text-align: center;
    color: #003c96;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 15px;
    transition: all 0.3s ease;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%) !important;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sponsor-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .sponsor-item {
        height: 80px;
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsors-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .teams-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .team-card {
        max-width: 100%;
    }

    .team-image-wrapper {
        height: 250px;
    }

    .teams-section h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .team-image-wrapper {
        height: 200px;
    }

    .team-info {
        padding: 15px;
    }

    .team-info h4 {
        font-size: 1.3rem;
    }
}

/* MAP SECTION */
.map-section {
    padding: 80px 0;
    background-color: #f0f7ff;
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #02a9d6, #00c6ff);
}

.map-description {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    text-align: center;
    color: #555;
}

.map-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 60, 150, 0.15);
    height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent 30%);
    pointer-events: none;
}

.map-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 60, 150, 0.1);
}

.info-card i {
    font-size: 2.5rem;
    color: #02a9d6;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #003c96;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-card p {
    color: #555;
    line-height: 1.6;
}


/* GIMNASIA SECTION */
.gimnasia-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #003c96, #02a9d6);
    color: white;
    position: relative;
    overflow: hidden;
}

.gimnasia-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.gimnasia-text {
    flex: 1;
    padding-right: 30px;
}

.gimnasia-text h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 2.3rem;
    position: relative;
    display: inline-block;
}

.gimnasia-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: white;
}

.gimnasia-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.gimnasia-list {
    margin: 30px 0;
    list-style: none;
}

.gimnasia-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.gimnasia-list i {
    margin-right: 12px;
    color: #00c6ff;
    font-size: 1.2rem;
}

.gimnasia-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #003c96;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.gimnasia-btn:hover {
    background-color: #f0f7ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gimnasia-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.gimnasia-image:hover {
    transform: perspective(1000px) rotateY(-3deg) scale(1.02);
}

.gimnasia-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Secció d'Horaris */
.schedule-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.schedule-section h2 {
    text-align: center;
    color: #003c96;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.schedule-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.schedule-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 60, 150, 0.1);
    transition: transform 0.3s ease;
}

.schedule-image-wrapper:hover {
    transform: translateY(-5px);
}

.schedule-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.schedule-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 60, 150, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-image-wrapper:hover .schedule-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.overlay-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: #02a9d6;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #0187aa;
    transform: translateY(-2px);
}

.schedule-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 60, 150, 0.1);
}

.info-card i {
    font-size: 2.5rem;
    color: #02a9d6;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #003c96;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.info-card p {
    color: #666;
    line-height: 1.5;
}

/* Secció d'Horaris Simplificada */
.simple-schedule-section {
    padding: 60px 0 40px;
    background-color: #f9f9f9;
}

.simple-schedule-section h2 {
    text-align: center;
    color: #003c96;
    margin-bottom: 15px;
    font-size: 2.3rem;
}

.schedule-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.schedule-image-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.schedule-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.schedule-image:hover {
    transform: scale(1.01);
}

/* Responsive */
@media (max-width: 768px) {
    .simple-schedule-section {
        padding: 50px 0 30px;
    }

    .simple-schedule-section h2 {
        font-size: 2rem;
    }

    .schedule-description {
        font-size: 1rem;
        padding: 0 20px;
    }

    .schedule-image-container {
        border-radius: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .schedule-section {
        padding: 60px 0;
    }

    .schedule-section h2 {
        font-size: 2rem;
    }

    .overlay-content h3 {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .schedule-info {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE GIMNASIA SECTION */
@media (max-width: 992px) {
    .gimnasia-content {
        flex-direction: column;
        gap: 30px;
    }

    .gimnasia-text {
        padding-right: 0;
        text-align: center;
    }

    .gimnasia-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .gimnasia-list {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .gimnasia-image {
        width: 100%;
        transform: none;
    }

    .gimnasia-image:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 576px) {
    .gimnasia-section {
        padding: 60px 0;
    }

    .gimnasia-text h2 {
        font-size: 2rem;
    }
}


/* RESPONSIVE GALERIA */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .image-caption {
        padding: 20px;
    }

    .image-caption h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-image img {
        height: 300px;
    }

    .grid-item {
        aspect-ratio: 16/9;
    }
}


/* RESPONSIVE GALERIA */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .image-caption {
        padding: 20px;
    }

    .image-caption h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-image img {
        height: 300px;
    }

    .grid-item {
        aspect-ratio: 16/9;
    }
}

/* ANIMACIÓ TITOL */
@keyframes fadeInUp {
    0% {
        transform: translateY(60px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* RESPONSIVE */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #003c96;
    margin-left: auto;
}

#menu-toggle {
    display: none;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .stats {
        gap: 20px;
    }

    .stat-item {
        min-width: 150px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 8%;
        position: fixed;
        top: 0;
    }

    .logo img {
        height: 50px;
    }

    .menu-icon {
        display: block;
        position: absolute;
        right: 8%;
        top: 28px;
        z-index: 2001;
    }

    .navbar {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: white;
        position: absolute;
        top: 90px;
        left: 0;
        padding: 20px 0 30px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    #menu-toggle:checked+.menu-icon+.navbar {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .header-btn {
        display: none;
    }

    .nav-btn {
        display: block;
        margin-top: 10px;
    }

    .btn button {
        width: auto;
        padding: 12px 25px;
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-info p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .stat-item {
        min-width: 120px;
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .footer-logo img {
        max-width: 100px;
    }
}

/* RESPONSIVE MAP SECTION */
@media (max-width: 768px) {
    .map-section {
        padding: 60px 0;
    }

    .map-wrapper {
        height: 350px;
    }

    .info-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        height: 300px;
    }

    .map-info {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE GALERIA */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .image-caption {
        padding: 20px;
    }

    .image-caption h3 {
        font-size: 1.5rem;
    }

    .grid-overlay p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-image img {
        height: 300px;
    }

    .grid-item {
        aspect-ratio: 16/9;
    }
}

/* Ajust per a tots els elements amb ID que són destí d'enllaços */
[id] {
    scroll-margin-top: 100px;
    /* Ajusta segons l'alçada del teu header */
}

/* Estils per al selector d'idioma - Versió millorada */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* Més negreta per millor llegibilitat */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 60, 150, 0.15);
    backdrop-filter: blur(5px);
    /* Efecte de vidre esmerilat modern */
}

.lang-btn {
    background: transparent;
    border: 2px solid #02a9d6;
    color: #003c96;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    position: relative;
    overflow: hidden;
}

/* Efecte de hover més suau */
.lang-btn:hover {
    transform: translateY(-2px);
    background: rgba(2, 169, 214, 0.08);
}

/* Estil del botó actiu - Versió millorada */
.lang-btn.active {
    background: #02a9d6;
    color: white;
    border-color: #02a9d6;
    box-shadow: 0 4px 8px rgba(2, 169, 214, 0.3);
}

/* Efecte de "aura" per al botó actiu */
.lang-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    animation: pulseBorder 2s infinite;
}


  /* Estils per al banner de cookies */
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #333333;
    padding: 15px 5%;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 2px solid #02a9d6;
    font-family: 'Montserrat', sans-serif;
  }
  
  .cookie-message {
    flex: 1;
    min-width: 250px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .cookie-btn.accept {
    background: #02a9d6;
    color: white;
  }
  
  .cookie-btn.accept:hover {
    background: #0288b1;
    transform: translateY(-2px);
  }
  
  .cookie-btn.reject {
    background: transparent;
    color: #02a9d6;
    border: 1px solid #02a9d6;
  }
  
  .cookie-btn.reject:hover {
    background: rgba(2, 169, 214, 0.1);
  }
  
  .cookie-link {
    color: #02a9d6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
  }
  
  .cookie-link:hover {
    color: #0288b1;
    text-decoration: underline;
  }
  
  @media (max-width: 768px) {
    .cookie-banner {
      flex-direction: column;
      text-align: center;
      padding: 15px;
    }
    
    .cookie-message {
      margin-bottom: 15px;
      min-width: 100%;
    }
    
    .cookie-buttons {
      width: 100%;
      justify-content: center;
    }
    
    .cookie-btn {
      width: 45%;
      padding: 8px 10px;
    }
    
    .cookie-link {
      margin-top: 10px;
      display: inline-block;
    }
  }
  
  @media (max-width: 480px) {
    .cookie-btn {
      width: 100%;
    }
    
    .cookie-buttons {
      flex-direction: column;
      gap: 8px;
    }
  }


@keyframes pulseBorder {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.8;
    }
}

/* Focus visible per a accessibilitat */
.lang-btn:focus-visible {
    outline: 2px solid #003c96;
    outline-offset: 2px;
}

/* Versió mòbil - Adaptació millorada */
@media (max-width: 768px) {
    .language-switcher {
        bottom: 15px;
        right: 15px;
        padding: 6px;
        gap: 6px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
        border-width: 1.5px;
    }
}

/* Versió mòbil molt petita */
@media (max-width: 480px) {
    .language-switcher {
        bottom: 10px;
        right: 10px;
        padding: 5px;
        gap: 5px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 45px;
        border-width: 1px;
    }
}

/* Animació més suau al canviar */
.lang-btn {
    will-change: transform, background-color;
}

/* Secció del Campus - Versión con Slider */
.campus-section {
    padding: 80px 0;
    background-color: #f0f7ff;
    position: relative;
}

.campus-section h2 {
    text-align: center;
    color: #003c96;
    margin-bottom: 15px;
    font-size: 2.3rem;
    position: relative;
}

.campus-section h2:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #02a9d6;
    margin: 15px auto 0;
}

.campus-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #0066cc;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
}

.campus-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    align-items: center;
}

/* Slider Styles */
.campus-slider-container {
    flex: 1;
    position: relative;
    max-width: 566px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 60, 150, 0.15);
}

.campus-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slider-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slider-image:hover {
    transform: scale(1.01);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #003c96;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: #02a9d6;
    color: white;
}

.prev-arrow {
    left: 15px;
}

.next-arrow {
    right: 15px;
}

/* Info Styles - Centrado verticalmente */
.campus-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.info-content {
    width: 100%;
}

.campus-title {
    color: #003c96;
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.campus-dates {
    color: #02a9d6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.campus-details {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #02a9d6;
}

.campus-call {
    color: #0066cc;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.5;
}

.campus-btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: #02a9d6;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #02a9d6;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(2, 169, 214, 0.3);
}

.campus-btn:hover {
    background-color: transparent;
    color: #02a9d6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(2, 169, 214, 0.4);
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    text-align: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-height: 90vh;
    max-width: 90vw;
    margin-top: 5vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #02a9d6;
}

.lightbox-caption {
    margin: 15px auto;
    width: 80%;
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .campus-content {
        gap: 30px;
    }
    
    .campus-slider-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .campus-section {
        padding: 60px 0;
    }

    .campus-content {
        flex-direction: column;
        gap: 30px;
    }

    .campus-info {
        width: 100%;
        padding: 0 15px;
    }

    .campus-slider-container {
        width: 100%;
        max-width: 500px;
    }

    .campus-section h2 {
        font-size: 2rem;
    }

    .campus-description {
        font-size: 1rem;
    }
    
    .campus-title {
        font-size: 1.5rem;
    }
    
    .campus-dates {
        font-size: 1.1rem;
    }
    
    .campus-details {
        font-size: 1rem;
    }
    
    .campus-call {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .campus-section h2 {
        font-size: 1.8rem;
    }
    
    .campus-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}