/* Estilos básicos */
body {
    font-family: 'Inter Tight', sans-serif;
    line-height: 1.6;
    margin: 0;
 
    background-color: #ffffff;
    color: #333;
}

/* Barra de navegación */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    opacity: 0.90;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-left: 40px;
    padding-right: 40px;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 50px;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;

}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    display: block;
    color: #000000;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
}

nav ul li a:hover {
    background-color: rgb(44, 44, 44);
    border-radius: 15px;
    color: white;
}

.dropdown {
    display: none;
}

@media only screen and (max-width: 600px) {
    nav {
        position: static;
        flex-flow: column nowrap;
        padding-bottom: 5px;
    }

}

/* Header */
header {
    display: flex;
    flex-flow: column nowrap;
    background: url('../images/general.jpeg') no-repeat center center;
    background-size: cover;
    text-align: center;
    justify-content: center;
    align-items: left;
    position: relative;
    width: 100%;
    height: 100vh;
    color: white;
}

header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 24, 51, 0.65);
    z-index: 1;
}

header h1,
header h2,
a.button {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3.5em;
    text-align: left;
    color: white;
    max-width: 100%;
    margin-left: 50px;
}

header h2 {
    font-size: 1.5em;
    max-width: 100%;
    color: rgb(255, 255, 255);
    margin-top: -20px;
    margin-bottom: 50px;
    margin-left: 50px;
    margin-right: 50px;
    text-align: left;

}

a.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    background-color: yellow;
    color: #000000;
    font-size: 1rem;
    border: 2px rgb(0, 0, 0);  
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    margin-left: 50px;
}

a.button:hover {
    background-color: rgb(255, 220, 63);  
    /* Color amarillo más brillante */
    color: #000;
    /* Cambia el color del texto al pasar el mouse */
    border-color: rgb(0, 119, 255);  
}

@media only screen and (max-width: 600px) {
    header h1 {
        font-size: 2.0em;
        text-align: left;
        color: white;
        max-width: 100%;
        margin-left: 50px;
        padding-bottom: 25px;
    }
    
    header h2 {
        font-size: 1.0em;
        max-width: 100%;
        color: rgb(255, 255, 255);
        margin-top: -20px;
        margin-bottom: 50px;
        margin-left: 50px;
        margin-right: 50px;
        text-align: left;
    
    }
    
}

/* Obligat Section */
.obligat_section {
    text-align: center;
    background-color: rgb(255, 255, 255);
}

.obligat_section img {
    max-width: 100%;
    height: auto;
    width: 65%;
}

@media only screen and (max-width: 600px) {
    .obligat_section img {
        width: 200%;
    }
}


/* Reduit */
.reduit{
    padding-left: 10%;
    padding-right: 10%;
}

/* Estilos generales */
.impuls_ {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    padding: 40px;
    gap: 40px;
    background: transparent;
    background-color: #000;
    color: #000;
    font-size: large;
    color: white;
    padding-left: 10%;
    padding-right: 10%;
}

.impuls_::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: rgb(2,0,36);
    background: linear-gradient(-90deg, rgb(2,34,91) 0%, rgb(76, 155, 245) 100%);
}

.impuls_container {
    max-width: 600px;
    border-radius: 25px;
    z-index: 2;
    font-size: large;
    margin-bottom: 20px;
}

.impuls_container1 {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    gap: 10px;
    z-index: 2;
}

.impuls_obj {
    flex: 1;
    justify-content: left;
    align-items: top;
    padding-right: 20px;
    padding-left: 20px;
    background-color: rgb(255, 255, 255);    
    color: #000;
}

.impuls_obj h1 {
    margin-top: 30px;
    font-size: larger;
}

.impuls_obj p {
    font-size: large;
}

.impuls_boto {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    background-color: black;
    color: rgb(255, 255, 255);
    font-size: 100%;
    border: 2px solid black;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.impuls_boto:hover {
    background-color: black;
    color: rgb(76, 155, 245);
    border-color: rgb(0, 0, 0);
}

/* Media queries para pantallas más pequeñas */
@media (max-width: 768px) {
    .impuls_container1 {
        flex-flow: column nowrap;
        align-items: center;
    }

    .impuls_obj {
        width: 100%;
        padding: 10px;
    }

    .impuls_boto {
        display: inline-block;
        padding: 12px 24px;
        border-radius: 25px;
        text-decoration: none;
        background-color: black;
        color: rgb(255, 255, 255);
        font-size: 75%;
        border: 2px solid black;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        cursor: pointer;
        font-weight: bold;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .impuls_boto:hover {
        background-color: black;
        color: rgb(76, 155, 245);
        border-color: rgb(0, 0, 0);
    }
}


/* INFO */
.container_container{
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    padding: 30px;
    background-color: rgb(255, 255, 255);   
}

.container_container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    
    background: rgb(2,0,36);
    background: linear-gradient(-90deg, rgb(2,34,91) 0%, rgb(76, 155, 245) 100%);

    clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 100%);
}

.container_info {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    z-index: 3;
    background-color: rgb(240, 240, 240);
    color: black;
}

.imatge_info{
    z-index: 3;
    max-width: auto;
    max-height: 420px;
}

.info {
    flex: 1;
    margin-right: 5%;
    max-width: 80%; /* Limitar el ancho máximo del contenedor */
    box-sizing: border-box; /* Incluir el padding y borde dentro del ancho y alto total del elemento */
}

@media only screen and (max-width: 600px) {
    .container_info {
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .info {
        margin-left: 50px;
        margin-bottom: 20px;    
    }

    .imatge_info {
        max-width: 100%;
    }

    .container_container{
        flex-flow: column nowrap;
        justify-content: center;  
    }
}

/* Articles */
.article,
.article1,
.article2 {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    overflow: hidden;
    /* Evita que el contenido se desborde */
    padding: 50px 50px;
    gap: 50px;
    padding-left: 10%; /*Padding general*/
    padding-right: 10%; /*Padding general*/
    
}

/* Colores diferentes para cada artículo */
.article {
    background-color: #ffffff;
}

.article::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: rgb(2,0,36);
    background: linear-gradient(-90deg, rgb(2,34,91) 0%, rgb(76, 155, 245) 100%);
    clip-path: polygon(100% 0, 70% 50%, 100% 100%);
}

.article1 {
    background-color: #ffffff;
}

.article1::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: rgb(2,0,36);
    background: linear-gradient(-90deg, rgb(2,34,91) 0%, rgb(76, 155, 245) 100%);
    clip-path: polygon(0 0, 30% 49%, 0 100%);
}

.article2 {
    background-color: #ffffff;
}

.article2::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: rgb(2,0,36);
    background: linear-gradient(-90deg, rgb(2,34,91) 0%, rgb(76, 155, 245) 100%);       
    clip-path: polygon(100% 0, 70% 50%, 100% 100%);
}

.article_text {
    flex: 1;
    /* Permite que el texto ocupe menos espacio */

    /* Evita que el contenido se desborde */
    color: black;
    z-index: 1;
}

.article_text h1 {
    font-size: 400%;
    line-height: 1.1;
    /* Ajusta este valor según sea necesario */
    z-index: 1;
}

.article_text p {
    font-size: 150%;
    z-index: 1;
}

.article_imatge {
    flex: 1;
    /* Permite que la imagen ocupe más espacio */
    box-sizing: border-box;
    /* Incluye el borde en el tamaño total del elemento */
    display: flex;
    /* Flex para centrar la imagen */
    justify-content: center;
    /* Centrar la imagen horizontalmente */
    align-items: center;
    /* Centrar la imagen verticalmente */
    overflow: hidden;
    /* Evita que el contenido se desborde */
    z-index: 1;
}

.article_imatge img {
    max-width: 100%;
    /* La imagen no excederá el ancho del contenedor */
    max-height: 100%;
    /* La imagen no excederá la altura del contenedor */
    object-fit: cover;
    /* Ajusta la imagen para cubrir el contenedor sin distorsión */
    border-radius: 50px;
    /* Bordes redondeados */
    padding: 0;
    /* Eliminar padding interno en la imagen */
    margin: 0;
    /* Eliminar margen interno en la imagen */
    z-index: 1;
}

.boto {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    background-color: transparent;
    /* Fondo transparente */
    color: black;
    /* Color del texto */
    font-size: 150%;
    border: 2px solid black;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra ligera para un efecto de elevación */
    z-index: 1;
}

.article .boto:hover {
    background-color: #000000;
    color: white;
    border-color: black;
}

.article1 .boto:hover {
    background-color: #000000;
    color: white;
    border-color: black;
}


.article2 .boto:hover {
    background-color: #000000;
    color: white;
    border-color: black;
}

@media (max-width: 768px) {
    .article_text h1 {
        font-size: 200%;
        line-height: 1.1;
        /* Ajusta este valor según sea necesario */
        z-index: 1;
    }
    
    .article_text p {
        font-size: 90%;
        z-index: 1;
    }

    .boto {
        display: inline-block;
        padding: 12px 24px;
        border-radius: 25px;
        text-decoration: none;
        background-color: transparent;
        /* Fondo transparente */
        color: black;
        /* Color del texto */
        font-size: 75%;
        border: 2px solid black;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        cursor: pointer;
        font-weight: bold;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        /* Sombra ligera para un efecto de elevación */
        z-index: 1;
    }

    .article::before {
        background: lightskyblue ;
    }

    .article1::before {
        background: lightblue;
    }
    
    .article2::before {
        background: lightskyblue;
    }

}

/* Serveis */

.section {
    padding: 50px 0;
    color: black;
}

.bg-dark {

    background-color: rgb(238, 238, 238);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: black;

}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
}

.box {
    display: flex;
    flex-flow: column nowrap;
    background-color: white;
    justify-content: space-between;

    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

}

.box_item {
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.box_item0 {

    text-align: center;
    background-color: lightgrey;
    color: white;
    background: rgb(2,34,91);
}

.box_item h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: black;
}

.box_item h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: black;
}

.highlighted {
    background-color: rgb(76, 155, 245);
    color: #000000;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

/* Mostra */
.mostra {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    
}

.mostra_title {
    text-align: center;
    font-size: 24px;
    background-color: rgb(76, 155, 245);
    
    clip-path: circle(60% at 50% 50%);
    
    font-size: xx-large;
    padding: 10px;
    color: rgb(0, 0, 0);
}

.mostra_title p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: rgb(0, 0, 0);
    border-radius: 25px;
}

.sponsors {
    display: flex;
    flex-flow: row nowrap;
    background-color: rgb(255, 255, 255);
    padding: 10px;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.sponsor {
    width: auto;
    height: 50px;
    max-width: 200px;
    background-size: cover;
    background-position: center;
    aspect-ratio: 22/10;
}

/* Direcció */
footer {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    align-content: center;
    align-items: auto;
    background: linear-gradient(-90deg, rgb(76, 155, 245) 100%, rgb(0, 94, 255) 0%);     
    
}

.map_icon {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    justify-content: center;
    text-decoration: none;
}

.map_icon img {
    margin-right: 1rem;
}

.no-underline {
    text-decoration: none;
    color: white;
    font-display: bold;
}



/* Estilos para el mapa */
#map {
    width: 100%;
    height: 100%;
}

#map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* Estilos responsivos */
@media (max-width: 600px) {
    section {
        padding: 1rem;
        margin: 0.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.9rem;
    }

    #map {
        height: 300px;
    }

}
@media (max-width: 800px) {
    .article_imatge {
        display: none;
    }
}



/* Footer */

.Contacte {
    flex-grow: 0;
    background: transparent;      
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 20px 20px;
}

.Contacte_map {
    flex-grow: 1;
    background: linear-gradient(-90deg, rgb(2,34,91) 0%, rgb(76, 155, 245) 100%);     
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    gap: 10px;
    padding: 20px 20px 20px 20px;
}

.footer_logo img {
    max-height: 50px;
    margin-bottom: 1rem;
}

.adderss_text {
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* Media queries para pantallas más pequeñas */
@media (max-width: 768px) {
    footer {
        flex-flow: column nowrap;
        align-items: center;
        background: rgb(2,34,91);
    }

    .map_icon {
        order: 2; /* Mueve el mapa al final */
    }

    .contact_info {
        order: 1; /* Asegura que los contactos estén antes del mapa */
    }

    .Contacte_map {
        background: linear-gradient(180deg, rgb(2,34,91) 0%, rgb(76, 155, 245) 100%);     
        color: #fff;
        text-align: center;
        width: 89%;
    }

   
}



/* Copyright*/

.copyright_section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: rgb(44, 44, 44);
    padding: 10px 0;
    flex-direction: column;
}

.copyright_text {
    margin: 0 10px;
    white-space: nowrap;
    display: inline-block;
    font-weight: bold;
    color: white;
}

/* Social media */
.card {
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
}

/* for all social containers*/
.socialContainer {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgb(44, 44, 44);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition-duration: .3s;
}

/* instagram*/
.containerOne:hover {
    background-color: #d62976;
    transition-duration: .3s;
}

/* twitter*/
.containerTwo:hover {
    background-color: #00acee;
    transition-duration: .3s;
}

/* linkdin*/
.containerThree:hover {
    background-color: #0072b1;
    transition-duration: .3s;
}

/* Whatsapp*/
.containerFour:hover {
    background-color: #128C7E;
    transition-duration: .3s;
}

.socialContainer:active {
    transform: scale(0.9);
    transition-duration: .3s;
}

.socialSvg {
    width: 17px;
}

.socialSvg path {
    fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
    animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botó pujar */

.button_ {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(20, 20, 20);
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    position: fixed; /* Cambiado a fixed */
    bottom: 20px;    /* Posición desde el borde inferior */
    right: 20px;     /* Posición desde el borde derecho */
    z-index: 1000;   /* Asegura que esté por encima de otros elementos */
}
  
.svgIcon_ {
    width: 12px;
    transition-duration: 0.3s;
}
  
.svgIcon_ path {
    fill: white;
}  