a {
    text-decoration: none !important;
}

h2 {text-align:center; font-weight:bold; margin-bottom:20px;}


.bold {
    font-weight:700;
}

header, body, footer {
    font-family: "Roboto","Roboto Fallback";
}

header {
    padding-bottom: 50px;
}
/*    header .container .row { align-items:center; }
    header h1 {
        color: #fff;
        font-size: 1.4rem;
    }*/

/* Content/site.css se carga despues del tema y pone body{margin-bottom:60px}
   ("Margin bottom by footer height"), lo que dejaba 60px de scroll bajo el
   footer: se sube la especificidad para anularlo sin usar !important */
html body { margin-bottom: 0; }

/* El footer se pega abajo: el form del master envuelve header, contenido y footer */
body > form {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.branding {
    text-align: center;
}

.body-content {
    padding-top: 3%;
    padding-bottom: 3%;
    max-width: 650px;
    flex: 1 0 auto;
}

.row input[type=text], .row input[type=email], .row select {
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin:auto;
}

.pnlCampos {
    display: flex;
    flex-direction: column;
}
    .pnlCampos > .row {
        margin: 0 15% 1% 0;
    }

    .pnlCampos .span-label {
        text-align: right;
    }

    .pnlCampos .infoAdicional  p{
        margin: 0;
    }

    .pnlCampos .btnForm  {
        margin-top: 20px;
    }


.importe {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.infoAdicional {
    color: #bf1e2d;
    font-weight: bold;
}

/* ==================================================================
   FOOTER MEL
   ================================================================== */
.mel-footer {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    flex-shrink: 0;
    margin-top: auto;
}

    .mel-footer *,
    .mel-footer *::before,
    .mel-footer *::after {
        box-sizing: border-box;
    }

.mel-footer__container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.mel-footer a {
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

/* ------------------------------------------------------------------
   Banda 1 - botones de acceso (contacto / FAQ / CGVU / Facebook)
   ------------------------------------------------------------------ */
/* los 4 botones necesitan mas ancho que los 960px por defecto */
.mel-footer__top .mel-footer__container {
    max-width: 1280px;
}

.mel-footer__top {
    background-color: #c7dfe0;
    color: #1d1d1b;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mel-footer__actions {
    display: flex;
    /* nowrap: los 4 botones siempre en una sola fila. En vez de saltar de
       linea, los items se encogen y el texto largo (CGVU) parte en dos */
    flex-wrap: nowrap;
    /* center y no stretch: cada boton conserva su alto (el de CGVU ocupa
       dos lineas y queda mas alto, como en el diseno) */
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

    .mel-footer__actions li {
        display: flex;
        /* permite encoger por debajo del ancho del contenido */
        min-width: 0;
    }

.mel-footer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    border-radius: 3px;
    background-color: #20746c;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

/* CGVU es la etiqueta mas larga en los cuatro idiomas: se le fija el ancho
   para que caiga siempre en dos lineas, como en el diseno. Doble clase para
   ganar al max-width de la media query de 1199px */
.mel-footer__btn.mel-footer__btn--cgvu {
    max-width: 17.5rem;
}

    .mel-footer__btn:hover,
    .mel-footer__btn:focus {
        background-color: #185a54;
        color: #ffffff;
    }

/* ------------------------------------------------------------------
   Banda 2 - cofinanciación FEDER
   ------------------------------------------------------------------ */
.mel-footer__feder {
    background-color: #4b4b4b;
    background-image: url('img/mel-footer-bg.png');
    background-repeat: repeat-x;
    background-position: left top;
    background-size: 1100px auto;
    color: #ffffff;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}

.mel-footer__feder-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
}

.mel-footer__feder-text {
    margin: 0;
    max-width: 27rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.55;
}

.mel-footer__feder-logo {
    display: block;
    height: 74px;
    width: auto;
    max-width: 100%;
}

/* ------------------------------------------------------------------
   Banda 3 - enlaces institucionales
   ------------------------------------------------------------------ */
/* los 8 enlaces caben en una sola línea: esta banda usa un ancho mayor */
.mel-footer__legal .mel-footer__container {
    max-width: 1140px;
}

.mel-footer__legal {
    background-color: #4b4b4b;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
    color: #ffffff;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mel-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    row-gap: 0.5rem;
}

    .mel-footer__links li {
        display: inline-flex;
        align-items: center;
        font-size: 0.8125rem;
    }

        /* el separador va al final del enlace: si la fila rompe, ninguna línea
           empieza por «|» */
        .mel-footer__links li:not(:last-child)::after {
            content: "|";
            color: rgba(255, 255, 255, 0.55);
            margin-left: 0.625rem;
            margin-right: 0.625rem;
        }

    .mel-footer__links a {
        color: #ffffff;
        font-size: 0.8125rem;
    }

        .mel-footer__links a:hover,
        .mel-footer__links a:focus {
            text-decoration: underline !important;
        }

/* ------------------------------------------------------------------
   Banda 4 - enlaces legales Tickamore
   ------------------------------------------------------------------ */
.mel-footer__tickamore {
    background-color: #4b4b4b;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mel-footer__tickamore-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    max-width: 1140px;
}

.mel-footer__tk-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem 1.5rem;
}

    .mel-footer__tk-links a {
        color: #ffffff;
        font-size: 0.8125rem;
        text-decoration: underline !important;
    }

        .mel-footer__tk-links a:hover,
        .mel-footer__tk-links a:focus {
            text-decoration: none !important;
        }

.mel-footer__tk-copyright {
    margin: 0;
    font-size: 0.8125rem;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
/* la fila completa mide ~1160px en frances, el idioma mas largo: por debajo
   de 1200px los botones quedarian demasiado comprimidos y rompen en dos filas */
@media (max-width: 1199px) {
    .mel-footer__actions {
        flex-wrap: wrap;
        gap: 1rem 1.25rem;
    }

    .mel-footer__btn {
        max-width: 21rem;
    }
}

@media (max-width: 991px) {
    .mel-footer__feder-inner {
        gap: 2rem;
    }

    /* por debajo de 992px los enlaces siempre rompen en varias filas: se
       quita el «|» y se separan con gap para no dejar barras sueltas */
    .mel-footer__links {
        column-gap: 1rem;
    }

        .mel-footer__links li:not(:last-child)::after {
            content: none;
        }
}

@media (max-width: 576px) {
    /* en movil los 4 botones pasan a una columna a ancho completo */
    .mel-footer__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .mel-footer__btn,
    .mel-footer__btn.mel-footer__btn--cgvu {
        max-width: none;
        width: 100%;
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
    }

    .mel-footer__feder {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .mel-footer__feder-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .mel-footer__feder-logo {
        height: 60px;
    }

    .mel-footer__links {
        row-gap: 0.625rem;
    }

    .mel-footer__tickamore-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mel-footer__tk-links {
        justify-content: center;
    }
}

.textoError {
    color: #bf1e2d;
    font-weight: bold;
    text-align: right;
    font-size: 13px;
}

.btn-custom-primary{
    color: #80602d;
}

.btnForm {
    
    color: white;
    border: none;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    width: 30%;
    margin: 20px auto;
}
 

.btnSubmit {
    background-color: rgb(183, 45, 47);
}
    .btnSubmit:hover {
        background-color: #bd6061;
    }


.btnCancelar {
    border-color: #9E9E9E;
    color: rgb(255, 255, 255);
    background-color: #9E9E9E;
}

.btnCancelar:hover {
    background-color: #b9b9b9;
}
.divDatos{
    margin-top: 30px;
}

.col-month {
    flex: 3;
}
.col-year {flex:6;}

.flex {display:flex;}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.w-full {
    width: 100%;
}

@media (min-width: 1280px) {
    .xl\:flex {
        display: flex;
    }
}

.text-primary-foreground {
    color: #20746c;
}

.text-base {
    font-size: clamp(10px, 2vw, 16px);
    line-height: 26px;
}


/*HEADER*/

@media (min-width: 480px) {
    .h-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
.h-header {
    max-width: 1620px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: white;
    border-radius: calc(1rem - 4px);
    margin-top: 1rem;
}

.imgLogo {
    max-width: 192px;
}

/* ESTILOS PÁGINA THANKS */
.resultado-container {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.resultado-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.resultado-icon.success {
    background: #4caf50;
    color: white;
}

.resultado-icon.error {
    background: #dc3545;
    color: white;
}

.resultado-titulo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.resultado-mensaje {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.pedido-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.pedido-numero {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.pedido-valor {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.btn-grupo {
    margin-top: 30px;
}

.btn-accion {
    display: inline-block;
    padding: 12px 30px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-reintentar {
    background-color: #80602d;
    color: white;
    border: none;
}

.btn-reintentar:hover {
    background-color: #4e3917;
    color: white;
}

.btn-volver {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-volver:hover {
    background-color: #5a6268;
    color: white;
}

.loader-container {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #80602d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
