@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Rosarivo:ital@0;1&display=swap');

* {
    font-family: "Montserrat", serif;
}

/* Navbar */
.nav-link:hover {
    color: #ffdd32;
}

.icona:hover {
    color: #ffdd32 !important;
}

/* Layout General */
html, body {
    height: 100%;   
    margin: 0;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1; /* El contenido principal ocupa el espacio disponible */
}

.no-arrow::after {
    display: none;
}


/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
}

.documents {
    font-size: 1em;
}

footer a.text-dark:hover {
    color: #ffdd32 !important;
}

/* Estilos para idiomas */
.idiomas {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 5px;
    list-style: none;
    padding: 0;
}

.nav-link-idiomes {
    text-decoration: none;
    color: black; 
    font-size: 14px;
    font-weight: normal;
}

/* Hover para cambiar el color a amarillo */
.nav-link-idiomes:hover {
    color: #ffdd32;
    text-decoration: underline;
}

/* Color de los enlaces en la navbar */
.navbar-nav .nav-link {
    color: black;
}

.navbar-nav .nav-link:hover {
    color: #ffdd32;
}

/* ---------------- */
/* Estilos para la franja amarilla */
/* ---------------- */

.franja-amarilla {
    background-color: #ffdd32;  /* Amarillo Bootstrap */
    padding: 40px 0;  /* Espaciado arriba y abajo */
    margin-top: 40px;
}

.franja-amarilla .col-md-6 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.franja-amarilla .row {
    align-items: stretch; /* 🔹 Fa que ambdues columnes tinguin la mateixa alçada només en aquesta secció */
}

.box-hover-left, .box-hover-right {
    background-color: #ffdd32; /* Fondo amarillo predeterminado */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, opacity 0.3s ease;
    width: 100%;
    min-height: 350px;  /* Altura mínima per evitar desbordament en mòbil */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* Permite que los elementos absolutos se posicionen correctamente dentro de este contenedor */
}

/* 🔹 Asegurar el efecto hover */
.box-hover-left:hover, .box-hover-right:hover {
    background-color: #f8d775 !important; /* Color pastel */
    opacity: 0.9;
}

/* Imágenes dentro de los cuadros */
.box-hover-left img{
    position: absolute; /* Asegura que la imagen no afecte la disposición del texto */
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra la imagen tanto horizontal como verticalmente */
    max-width: 100%;  /* Asegura que la imagen no se expanda más allá de su contenedor */
    max-height: 100%;  /* Ajusta la altura máxima para evitar que la imagen se desborde */
    object-fit: cover;  /* Asegura que la imagen cubra el área sin distorsionar */
    z-index: 0; /* La imagen está por debajo del texto */
}

.box-hover-right img {
    position: absolute; /* Asegura que la imagen no afecte la disposición del texto */
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra la imagen tanto horizontal como verticalmente */
    max-width: 80%;  /* Asegura que la imagen no se expanda más allá de su contenedor */
    max-height: 80%;  /* Ajusta la altura máxima para evitar que la imagen se desborde */
    object-fit: cover;  /* Asegura que la imagen cubra el área sin distorsionar */
    z-index: 0; /* La imagen está por debajo del texto */
}

/* Texto dentro del cuadro */
.box-hover-left h2, .box-hover-right h2 {
    font-weight: bold; /* Hace que los títulos sean negrita */
    color: black;
    position: absolute; /* Coloca el texto en una posición fija dentro del cuadro */
    z-index: 1; /* Asegura que el texto se quede por encima de la imagen */
    top: 5%; /* Coloca el texto a un 20% desde la parte superior */
    left: 50%; /* Coloca el texto en el centro horizontalmente */
    transform: translateX(-50%); /* Ajusta el texto para centrarlo de manera precisa */
    margin: 0;
    white-space: normal;
    width: 90%;
}

/* Párrafo dentro del cuadro */
.box-hover-left p, .box-hover-right p {
    color: black;
    position: absolute;
    z-index: 1;
    top: 50%; /* Coloca el párrafo a un 50% desde la parte superior */
    left: 50%; /* Centra el párrafo horizontalmente */
    transform: translateX(-50%); /* Ajusta el párrafo para centrarlo */
    margin: 0;
    white-space: normal;
    width: 90%;
}

/* Estils per a les targetes de navegació (Coneix-nos) */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.hover-card .icon-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hover-card:hover .icon-circle {
    background-color: #ffdd32 !important;
    color: black !important;
}

/* ---------------- */
/* Banner de Cookies */
/* ---------------- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #343a40; /* Fosc per contrast */
    color: white;
    padding: 20px;
    z-index: 1000; /* Per sota del Modal de Bootstrap (1055) */
    display: none; /* Ocult per defecte, JS el mostrarà */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookie-banner p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

#cookie-banner a {
    color: #ffdd32;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cookie {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-accept {
    background-color: #ffdd32;
    color: black;
}

.btn-accept:hover {
    background-color: #e0a800;
}

.btn-config {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-config:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ---------------- */
/* Easter Egg: Joc Espardenyes */
/* ---------------- */
.easter-egg-trigger {
    cursor: pointer;
    transition: color 0.3s ease;
}

.easter-egg-trigger:hover {
    color: #ffdd32; /* Groc corporatiu al passar el ratolí */
}

#jocEspardenyes {
    display: none; /* Controlat per JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#canvasJoc {
    background: #87CEEB;
    border: 3px solid #333;
    cursor: none;
    border-radius: 5px;
}

/* --- BOTÓ INSTAGRAM --- */
.btn-insta {
    background-color: #e1306c; /* Color Instagram */
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    border: 2px solid #e1306c;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover: passa a groc */
.btn-insta:hover {
    background-color: #ffdd32; /* Groc */
    color: #000;
    border-color: #ffdd32;
    transform: scale(1.05);
}

/* Estils globals per al botó Fes-te soci i altres botons grocs (btn-warning) */
.btn-warning {
    background-color: #ffdd32;
    border-color: #ffdd32;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e5c72e; /* Un to lleugerament més fosc per l'efecte hover */
    border-color: #e5c72e;
}

/* Estils per al botó outline (Fes-te soci) */
.btn-outline-warning {
    color: #ffdd32;
    border-color: #ffdd32;
}

.btn-outline-warning:hover {
    background-color: #ffdd32;
    border-color: #ffdd32;
    color: #212529;
}

/* Unificar utilitats de Bootstrap amb el groc corporatiu */
.bg-warning {
    background-color: #ffdd32 !important;
}

.text-warning {
    color: #ffdd32 !important;
}