body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #0b0a29;
    color: white;
}

body.imagine4ai {
    background-color: #0b0a29;
}

body.documentor4ai {
    background-color: white;
}


a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    vertical-align: bottom;
}
nav a {
    text-decoration: none;
    margin: 0 10px;
}
nav a:hover{
    text-decoration: underline;
}

.hero.imagine4ai {
    background: url('/imgs/fonsPantallaSenseLogo.jpeg') no-repeat center center/cover;
    color: white;
}
.hero.documentor4ai {
    background: url('/imgs/documentor4AI/fonsBlancHoritzontal1.png') no-repeat center center/cover;
    color: #0b0a29;
    /* max-height: 170px; */
    padding: 5px 5px;
}
.hero {
    text-align: center;
    padding: 50px 20px;
}
.hero h1 {
    font-size: 3em;
}


section {
    padding: 0px 20px;
}

h2 {
    text-align: left;
    vertical-align: top;
    margin-top: 20px;
    margin-bottom: 10px;
}

#solutions {
    padding: 10px 20px;
    /* border-radius: 10px; */
    margin-bottom: 20px;
}
.solutions {
    display: flex;
    /* justify-content: space-around; */
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.solution button {
    margin-top: auto; /* Empuja el botón hacia el fondo del contenedor */
}
.solution a {
    margin-top: auto; /* Empuja el botón hacia el fondo del contenedor */
}
.solution label {
    margin-top: auto; /* Empuja el botón hacia el fondo del contenedor */
}
.solution .toggle-button {
    margin-top: auto; /* Empuja el botón hacia la parte inferior */
    align-self: center; /* Centra horizontalmente el botón */
}

.content-container .toggle-button {
    margin-top: auto; /* Empuja el botón hacia la parte inferior */
    align-self: center; /* Centra horizontalmente el botón */
}

.content-primary .toggle-button {
    margin-top: auto; /* Empuja el botón hacia la parte inferior */
    align-self: center; /* Centra horizontalmente el botón */
}

.content-secondary .toggle-button {
    margin-top: auto;
    align-self: center; /* Centra horizontalmente el botón */
}

.layout {
    display: flex;
    flex-wrap: nowrap; /* Evita que les columnes saltin */
    /* gap: 20px; */
    align-items: flex-start; /* Alinea les columnes al principi */
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #0b0a29;
    padding: 0px 0px;
}

.left-content {
    flex: 0 0 60%; /* Ocupa el 60% de l'espai horitzontal */
    display: flex;
    flex-direction: column;
}

.video-desktop {
    flex: 0 0 40%; 
    /* display: block; */
    display: flex;
    justify-content: flex-end; /* Alinea el contingut al final (dreta) */
    align-items: center; /* Centra verticalment el vídeo si hi ha més alçada */
}

.video-mobile {
    display: none; /* Amaga el vídeo del mòbil */
}


p {
    margin: 10;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}


footer {
    background-color: #FFFFFF;
    color: #0b0a29;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
footer span {
    flex: 1;
}
footer span:first-child {
    text-align: left;
}
footer span:nth-child(2) {
    text-align: center;
}
footer span:last-child {
    text-align: right;
}
footer .links {
    display: inline;
}
footer .links a {
    text-decoration: none;
    margin: 0 5px;
    color: #0b0a29;
}
footer .links a:visited {
    color: #0b0a29;
}
footer .links a:hover {
    text-decoration: underline;
    color: #0b0a29;
}
footer .links a:active {
    color: #0b0a29;
}
button {
    background-color: #92d6e1; /* Color gris para indicar estado inactivo */
    color: #0b0a29; /* Texto en gris oscuro */
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1em;
    /* text-transform: uppercase; */
}

button:hover {
    background-color: #0b0a29;
}

.form-group.button-container {
    display: flex;
    justify-content: center; /* Centrar horitzontalment */
    align-items: center; /* Opcional: Centrar verticalment */
    width: 100%; /* Assegurar que ocupa l'ample complet */
}


.client-dropdown {
    /* position: relative; */
    background-color: #ef4c93;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    padding: 8px;
    margin: 8px;
    z-index: 1;
    /* border-radius: 10px; */
}

.client-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ef4c93;
    color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 1;
    /* border-radius: 10px; */
    transform: translateX(-50%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    margin-top: 8px; /* Añade margen adicional entre el enlace y el desplegable */
}
.client-dropdown-content a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}
.client-dropdown-content a:hover {
    text-decoration: underline;
}

.language-switcher {
    position: relative;
    display: inline-block;
}
.language-switcher-content {
    display: none;
    position: absolute;
    background-color: #0b0a29;
    color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 1;
    /* border-radius: 10px; */
    transform: translateX(-10%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    margin-top: 0px;
}
.language-switcher-content.documentor4ai{
    background-color: white;
}
.language-switcher-content a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}
.language-switcher-content a:hover {
    text-decoration: underline;
}

.solution {
    background-color: #f4792c;
    color: white;
    padding: 20px;
    /* border-radius: 10px; */
    text-align: center;
    transition: transform 0.3s;
    max-width: 330px;
    margin: 0 auto; /* Centra los elementos */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 300px;
    height: 800px;
    transition: all 0.3s ease-in-out;
    flex: 1 1 calc(33.33% - 20px); /* Tres elementos por fila con espacio entre ellos */
    align-items: center;
    /* justify-content: space-between; Distribuye el espacio entre ellos */
}



.toggle-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: auto;
    align-self: center; /* Centra el botón horizontalmente */
    border: none;
    vertical-align: bottom;
    cursor: pointer;
    text-decoration: none;
    background-color: #92d6e1; /* Color gris para indicar estado inactivo */
    color: #0b0a29; /* Texto en gris oscuro */
    /* text-transform: uppercase; */
}

.toggle-button:hover {
    background-color: #0b0a29;
    color: #92d6e1;
}

.content-container {
    position: relative;
    width: 100%;
    height: 430px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-primary,
.content-secondary {
    position: absolute; /* Ambos divs ocupan la misma posición en el contenedor */
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    align-items: left;
    height: 800px;
    align-items: center;
}

.content-primary {
    opacity: 1;
    visibility: visible;
    z-index: 1; /* Asegura que esté por encima inicialmente */
    display: flex;
    flex-direction: column;
}

.solution p {
    width: 100%; /* 🔹 Ocupa tot l'espai disponible */
    max-width: none; /* 🔹 Evita que el navegador li posi un màxim d'ample */
    text-align: justify; /* 🔹 Fes que el text s'estiri al màxim */
}

.toggle-checkbox {
    display: none;
}
    

.toggle-checkbox:checked ~ .content-container .content-primary {
    opacity: 0;
    visibility: hidden;
    z-index: 0; /* Mueve el contenido primario por debajo */
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

.toggle-checkbox:checked ~ .content-container .content-secondary {
    opacity: 1;
    visibility: visible;
    z-index: 1; /* Mueve el contenido secundario por encima */
    transition: opacity 0.5s ease-in-out, visibility 0s linear;
}

header {
    /* background-color: #0b0a29; */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    flex-wrap: wrap;
}

header img {
    flex: 1;
}

img {
    vertical-align: bottom;
}

.notAllowed {
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .solution:hover {
      transform: scale(1.05);
    }
}
  
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }
    nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        white-space: nowrap; /* Evita que las palabras se dividan en varias líneas */
    }
    .solution {
        flex: 1 1 100%; /* Cada solución ocupa el 100% del ancho */
        max-width: none; /* Elimina la restricción de ancho máximo */
    }
    footer {
        display: flex; /* Asegura el uso de flexbox */
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Añade separación entre los elementos del footer */
        padding: 20px;
        text-align: center; /* Centra el contenido */
    }
    nav a {
        text-align: center;
        flex: 1; /* Los enlaces ocupan todo el espacio disponible */
    }

    .layout {
        flex-direction: column; /* Canvia a columnes verticals */
        align-items: center; /* Alinea el contingut al centre */
        gap: 20px;
    }

    .training {
        order: 1; /* Apareix primer */
    }

    .about {
        order: 3; /* Apareix finalment */
    }

    .left-content {
        flex: 1 1 auto; /* Ocupa tot l'ample disponible */
    }

    .video-desktop {
        display: none; /* Amaga el vídeo de l'ordinador */
    }

    .video-mobile {
        display: block; /* Mostra el vídeo del mòbil */
        order: 2; /* Apareix després */
        margin: 0 auto; /* Centra el vídeo en el mòbil */
        max-width: 100%; /* Assegura que no sobrepassi l'amplada de la pantalla */
    }

}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 2;
    align-items: center;
    color: white;
}

nav.documentor4ai a {
    color: #0b0a29;
}



.client-dropdown:hover .client-dropdown-content,
.language-switcher:hover .language-switcher-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.welcome-text.documentor4ai {
    color: #0b0a29;
    font-size: 1.5rem;
    font-weight: bold;
    padding-bottom: 0.33rem;
}

.heroSection {
    background: url('/imgs/fonsPantallaSenseLogo.jpeg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 25px 10px;
}
.heroSection h1 {
    font-size: 2em;
}
.content {
    max-width: 800px;
    margin: 20px auto;
    color: #ffffff;
    line-height: 1.8;
    /* text-align: justify; */
}

.content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.content p {
    margin-bottom: 15px;
}
.content li {
    /* display: block; */
    margin: 25px 15px 0px 0px;
    /* max-width: 100%; */
}

.contentCenter {
    max-width: 800px;
    margin: 20px auto;
    color: #ffffff;
    line-height: 1.8;
    text-align: center;
}

.form-container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #0b0a29;
    padding: 20px;
    /* border-radius: 10px; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 0px; /* Espaciado entre elementos */
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    /* border-radius: 5px; */
    box-sizing: border-box;
}

.form-group small {
    font-size: 0.9em;
    color: #ccc;
}


.checkbox-group {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
/* Estado seleccionado para radios y checkboxes */
.form-group input[type="radio"]:checked, .form-group input[type="checkbox"]:checked {
    background-color: #92d6e1; /* Cambia el color al seleccionarse */
    border-color: #ffffff;
}

/* Marca interna para radios y checkboxes seleccionados */
.form-group input[type="radio"]:checked::after, .form-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #0b0a29;
    border-radius: 50%; /* Marca interna circular */
}


.error {
    color: red;
    font-size: 14px;
}


/* Estilo base para radios y checkboxes */
input[type="radio"], input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #0b0a29;
    border: 2px solid #92d6e1;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-bottom: 3px;
    margin-top: 3px;
    margin-left: 3px;
    margin-right: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Estilo para etiquetas asociadas */
input[type="radio"] + label, input[type="checkbox"] + label {
    display: inline-block;
    background-color: #26294d;
    color: #ffffff;
    padding: 5px 10px;
    border: 1px solid #92d6e1;
    cursor: pointer;
    margin-right: 20px;
    transition: background-color 0.3s, color 0.3s;
}

/* Ajuste del grupo de radios para "Tipo de Acceso" */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0px; /* Espacio entre elementos del grupo */
    margin-top: 10px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center; /* Centra el contenido verticalmente */
    gap: 0px; /* Espacio entre el input y su etiqueta */
}


/* Estilo para los enlaces */
.product-link {
    font-size: 0.8em; /* Reducir tamaño del enlace */
    color: #92d6e1; /* Color distintivo para los enlaces */
    text-decoration: none;
    margin-left: 0px; /* Espaciado del enlace con respecto al texto */
    margin-right: 0px;
}

.product-link:hover {
    text-decoration: underline; /* Subrayado al pasar el mouse */
    color: #ffffff; /* Color blanco al pasar el mouse */
}

/* Texto de ayuda */
.form-group small {
    display: block;
    margin-bottom: 5px;
    color: #ccc; /* Color tenue */
}

/* Estilo para el enlace de términos y condiciones */
.terms-link {
    color: #92d6e1; /* Color distintivo */
    text-decoration: none; /* Sin subrayado por defecto */
    font-weight: bold; /* Resaltar el texto */
    margin-left: 5px; /* Espaciado entre el texto anterior */
    margin-right: 0px; /* Espaciado entre el texto anterior */
    display: inline-flex; /* Alinear texto con el icono */
    align-items: center; /* Centrar verticalmente el texto e icono */
}

.terms-link:hover {
    text-decoration: underline; /* Subrayado al pasar el mouse */
    color: #ffffff; /* Cambia a blanco */
}
.alert {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* Estil per a missatges d'èxit */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estil per a missatges d'error */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

#cookies-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: #0b0a29;
    padding: 1rem 1rem;
    border-top: 3px solid #0b0a29;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.cookies-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center; /* ❗ Nova clau: centrar els dos elements */
}

.cookies-banner-message {
    flex: 0 1 auto; /* ❗ molt important: només ocupa l'espai del seu contingut */
    font-size: 0.95rem;
    white-space: normal;
}

.cookies-banner-message a {
    color: #0b0a29;
    text-decoration: underline;
    margin: 0 0px;
    white-space: nowrap; /* ❗ Link mai es trenca */
}

.cookies-banner-button {
    min-width: 120px;
}

.cookies-banner-icon {
    font-size: 1.8rem;
    display: flex;
    padding-bottom: 0.5rem;
}


/* //nuevo */
.feature-section {
    padding: 60px 20px;
    text-align: center;
  }
  .feature-section h2 {
    color: #0b0a29;
    font-size: 2em;
    margin-bottom: 40px;
  }
  .feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .feature-card {
    flex: 1 1 250px;
    max-width: 300px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  .feature-card h3 {
    font-size: 1.2em;
    color: #0b0a29;
    text-align: center;
  }
  .feature-card p {
    color: #0b0a29;
    font-size: 0.95em;
    text-align: justify;
  }

  .subhero-overlay-text {
    background-color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2em;
    border-radius: 10px;
    color: #0b0a29;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .core-feature-highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0px 40px;
    position: relative; /* solo si haces más efectos absolutos */
    z-index: 2;
  }
  .core-feature-impar {
    background: linear-gradient(135deg, #ffffff 40%, #92d6e1 100%);
    overflow: hidden;
    border-top-right-radius: 300px;
    border-bottom-right-radius: 300px;
  }
  .core-feature-par {
    background: linear-gradient(-135deg, #ffffff 40%, #92d6e1 100%);
    overflow: hidden;
    border-top-left-radius: 300px;
    border-bottom-left-radius: 300px;
  }

  .core-feature-highlight .text {
    flex: 1 1 375px;
    text-align: left;
    margin-right: auto;
    display: block;
  }
  .core-feature-highlight .text .par {
    text-align: right;
    margin-left: auto;
    display: block;
  }


  .core-feature-highlight h2 {
    font-size: 2.4em;
    font-weight: 800;
    color: #0b0a29;
    margin-bottom: 20px;
  }

  .core-feature-highlight p {
    font-size: 1.2em;
    line-height: 1.7;
    color: #0b0a29;
    max-width: 600px;
  }
  .core-feature-highlight .image-impar {
    flex: 1 1 400px;
    text-align: left;
    padding: 40px;
    padding-right: 0px;
  }
  .core-feature-highlight .image-par {
    flex: 1 1 400px;
    text-align: left;
    padding: 40px;
    padding-left: 0px;
  }
  .core-feature-highlight .image-par img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top-left-radius: 250px;
    border-bottom-left-radius: 250px;
  }

  .core-feature-highlight .image-impar img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top-right-radius: 250px;
    border-bottom-right-radius: 250px;
  }

  .logo{
    height: 80px;
  }


  @media (max-width: 768px) {
    .logo{
        height: 65px;
    }
    .hero.documentor4ai h1 {
      font-size: 1.6em;
      padding: 10px;
    }
  
    .subhero-overlay-text {
      font-size: 1em;
      padding: 8px 15px;
      max-width: 100%;
    }
    .core-feature-impar{
        display: flex;
        justify-content: flex-start; /* Alinea todos los elementos dentro del contenedor al inicio (izquierda) */
    }

    .core-feature-par{
        display: flex;
        justify-content: flex-end; /* Alinea todos los elementos dentro del contenedor al inicio (izquierda) */
    }
    .core-feature-highlight .text{
        text-align:left;
        align-items: baseline;
        align-content: baseline;
    }

    .core-feature-highlight .text h2.impar {
        margin-top: 50px;
        margin-right: 30px;
    }

    .core-feature-highlight .text p.par {
        margin-bottom: 50px;
        margin-left: 30px;
    }
  
    .core-feature-highlight .image-par,
    .core-feature-highlight .image-impar {
      padding: 20px 0;
      text-align: center;
    }
  
    .core-feature-highlight .image-par img,
    .core-feature-highlight .image-impar img {
      border-radius: 20px;
    }
  
    .core-feature-highlight h2 {
      font-size: 1.6em;
    }
  
    .core-feature-highlight p {
      font-size: 1em;
      padding: 0 10px;
    }
  
    .feature-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .feature-card {
      width: 90%;
      max-width: 100%;
      padding: 20px;
      flex: 1 1 100px;
      }
    }

    .feature-section h2 {
      font-size: 1.6em;
    }
  }
  