:root {

    --blanco: #FFFFFF;
    --azul: #007bc4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 


body {
    font-family: "Lexend", serif;
    color: var(--azul);
    font-weight: 300;
    line-height: 1.7;
    font-size: 16px;
    background-color: var(--blanco);
}


header {
    position: relative;
    background-image: url(img/header.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 75vh;
    padding: 20px 40px;
    width: 100%;
}


.front-header {
    position: absolute;
    background-color: rgba(69, 122, 191, 0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px;
}

@media (max-width: 767px) {
    .front-header .logo-tinglado a img {
        width: 80px;
    }

    .front-header .logo-xunta a img {
        width: 250px;
    }
}

@media (min-width: 767px) {
    .front-header .logo-tinglado a img {
        width: 180px;
    }

    .front-header .logo-xunta a img {
        width: 250px;
    }
}

.bg-form {
    background-image: url(img/textura.svg);
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 100px;
}

.copy-desktop {
    margin: 0 auto;
    flex-grow: 1;
    max-width: 900px;
    height: auto;
    margin-top: 30px;
    font-size: 19px;
    text-align: center;
    font-weight: 300;
    width: 100%;
    padding: 0 40px;
}

.copy-desktop strong {
    font-weight: 700 !important;
}

.copy-desktop img {
    width: 100%;
}

.copy-mobile {
    text-align: center;
}

.cuerpo {
    padding: 20px;
}


.dates {
    text-align: center;
    font-size: 42px;
}

.dates span {
    font-weight: bold;
    font-size: 1.2em;
}

.dates img {

    max-width: 700px;
}

.bg-footer {

    height: 100px;
    background: rgba(155, 204, 231, 0.7);
    display: flex;
    padding: 40px;
    align-items: center;
    justify-content: center;

}

.bg-footer .logo-xunta a img {
    width: 250px;
}

.description {
    margin: 0 auto;
    font-size: 20px;
    max-width: 900px;
}

.description p {
    text-align: center;
}

.form-section {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

.form-section form {
    display: flex;
    flex-direction: column;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--azul);
    pointer-events: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 10px 10px 30px;
    border: none;
    border-bottom: 1px solid var(--azul);
    outline: none;
    font-size: 16px;
    margin-bottom: 10px;
    background: rgb(255, 255, 255, 0)
}

.form-group input[type="text"]::placeholder {
    color: #ccc;

}

.form-group input[type="text"]:focus {
    border-bottom: 2px solid var(--azul);
    background: white;
}

.form-group input[type="text"]:focus+label,
.form-group input[type="text"]:not(:placeholder-shown)+label {
    top: -10px;
    font-size: 12px;
    color: var(--azul);
}

.form-group input[type="email"] {
    width: 100%;
    padding: 10px 10px 10px 30px;
    border: none;
    border-bottom: 1px solid var(--azul);
    outline: none;
    font-size: 16px;
    margin-bottom: 10px;
    background: rgb(255, 255, 255, 0)
}

.form-group input[type="email"]::placeholder {
    color: #ccc;
}

.form-group input[type="email"]:focus {
    border-bottom: 2px solid var(--azul);
    background: white;
}

.form-group input[type="email"]:focus+label,
.form-group input[type="email"]:not(:placeholder-shown)+label {
    top: -10px;
    font-size: 12px;
    color: var(--azul);
}

button {
    background-color: var(--azul);
    color: var(--blanco);
    padding: 10px;
    border: none;
    width: auto;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: var(--azul);
}


.checktitle {
    font-weight: bold;
    font-size: 14px;
    color: var(--azul);
    padding-left: 10px;
}

.checktitle span {
    font-size: 12px;
    font-weight: normal;
}

.checkboxes {
    display: flex;
    padding: 10px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--azul);
}

.checkboxes div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.checkboxes label {
    margin-left: 30px;
    font-size: 12px;
    font-weight: 400;
    color: var(--azul);
}

.checkboxes input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}


.checkboxes input[type="checkbox"]+label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid var(--azul);
    background-color: var(--blanco);
    border-radius: 1px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.checkboxes input[type="checkbox"]:checked+label::before {
    background-color: var(--azul);
    border-color: var(--azul);
}


.checkboxes input[type="checkbox"]:checked+label::after {
    content: '';
}


.checkboxes input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkboxes input[type="radio"]+label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid var(--azul);
    background-color: var(--blanco);
    border-radius: 1px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.checkboxes input[type="radio"]:checked+label::before {
    background-color: var(--azul);
    border-color: var(--azul);
}

/* Estilo para inputs de radio deshabilitados */
.checkboxes input[type="radio"]:disabled+label {

    /* Fondo gris */
    color: #999;
    /* Texto más claro */
    cursor: not-allowed;
    /* Cursor para indicar que no es clicable */
}

/* Asegurar que el borde también se vea en gris */
.checkboxes input[type="radio"]:disabled+label::before {
    border-color: #ccc;
    /* Borde gris */
    background-color: #f2f2f2;
    /* Fondo ligeramente más claro */
}

.form-group-row {
    display: flex;
}

.form-group-row .form-group {
    flex-grow: 1;
}

.cp {
    width: 25%;
}

.localidad {
    width: 75%
}

@media (max-width: 768px) {
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }

    .cp,
    .localidad {
        width: 100%;
    }

    .checkboxes {
        flex-direction: column;
    }

    .checkboxes div {
        width: 100%;
        margin-bottom: 10px;
    }


}




@media (max-width: 768px) {
    .dates {
        text-align: center;
        font-size: 24px;
    }

    .form-section {
        width: 100%;
        padding: 10px;
    }

    .description {
        font-size: 16px
    }
}

ul li {
    margin-left: 20px;
}


.bottom-footer {
    text-align: center;
    height: 180px;

    padding: 30px 0;

    position: relative;

}

.disclaimer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 80%;
}

.modal-header {
    background-color: var(--azul);
    color: var(--blanco);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 450px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--blanco);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.link-modal {
    margin-top: 40px;
    margin-bottom: 40px;
}

.link-modal a {
    color: var(--azul);
    font-size: 14px;
    font-style: italic;
}


/* Estilo para el textarea */
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--azul);
    outline: none;
    font-size: 12px;
    line-height: 1.5;
    resize: none;
    /* Evita que el usuario cambie el tamaño del textarea */
    border-radius: 4px;
    background: #fff;
    margin-bottom: 10px;
}

.form-group textarea:focus {
    border: 2px solid var(--azul);
}

/* Mover la etiqueta del textarea por fuera */
.form-group textarea+label {
    position: static;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--azul);
    font-weight: bold;
}

/* Checkboxes en escritorio */
@media (min-width: 768px) {
    .checkboxes {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .checkboxes div {
        flex: 0 0 48%;
        /* Ocupa el 48% del ancho para que quepan dos elementos por fila */
        margin-bottom: 10px;
    }
}

/* Checkboxes en móvil: uno por fila */
@media (max-width: 768px) {
    .checkboxes div {
        flex: 0 0 100%;
        /* Ocupa todo el ancho */
    }
}

.disclaimer {
    position: absolute;
    height: auto;
    z-index: 1000;

}

.disclaimer img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));

}

@media (max-width: 768px) {
    .disclaimer {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .disclaimer {
        width: 700px;
        margin-left: -50px;
    }
}