/* === BENICARLO.CSS === */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: #2d2d2d;
    line-height: 1.6;
}

label>img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

main.reserva-contenedor {
    max-width: 600px;
    margin: 2rem auto 2rem auto;
    background: #f5f5f5;
    padding: 0 2rem 2rem;
}

.titulo-form {
    margin-left: -2rem;
    margin-right: -2rem;
    text-align: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: bold;
    background-color: #3c6f96;
    padding: 0.5rem 0;
}

.titulo-seccion {
    text-align: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: bold;
    background-color: #3c6f96;
    padding: 1rem 0;
}

.formulario-reserva {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-etiqueta {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #3c6f96;
    font-weight: 600;
}

h2.form-etiqueta {
	margin-top: 2rem;
}


.form-select,
.form-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #c0c0c0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
    border-color: #3c6f96;
    outline: none;
}

.btn-continuar {
    background-color: #3c6f96;
    border: 2px solid #3c6f96;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-continuar:hover {
    background-color: white;
    color: #3c6f96;
    transform: scale(1.01);
}

.btn-volver {
    display: inline-block;
    margin-left: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background-color: #3c6f96;
    border: 2px solid #3c6f96;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.1s;
}

.btn-volver:hover {
    background-color: #f5f5f5;
    color: #3c6f96;
}

/* === RADIO BUTTONS === */
.grupo-radio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}


input[type="radio"] {
    display: none;
}

label.btn-tipo {
    background-color: #3c6f96;
    color: white;
    border: 2px solid #3c6f96;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-wrap: balance;
    display: inline-block;
}

label.btn-tipo:hover {
    background-color: white;
    color: #3c6f96;
    transform: scale(1.01);
}

input[type="radio"]:checked+label.btn-tipo {
    background-color: white;
    color: #3c6f96;
    outline: 2px solid #3c6f96;
    transform: scale(1.03);
}

input[type="radio"]:checked+.btn-tipo img {
    content: url("../img/persona.svg");
}


.form-grupo:last-of-type {
    margin-top: 1rem;
}


.form-grupo li {
    margin-left: 2rem;
}


@media (max-width: 768px) {
    .form-grupo:last-of-type {
        border-top: 1px solid #ccc;
        padding-top: 1.5rem;
    }
}


/* Versió nova */


.form-grup-botons {
    display: flex;
    flex-direction: column;
}



.grup-botons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}


.boto-opcio {
    background-color: #3c6f96;
    border: 2px solid #3c6f96;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.boto-opcio:hover {
    background-color: white;
    color: #3c6f96;
    transform: scale(1.01);
}

.boto-opcio-img {
    background-color: #3c6f96;
    border: 2px solid #3c6f96;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boto-img {
    background-color: #3c6f96;
    border: 2px solid #3c6f96;
    color: white;
    padding: 0.75rem;
    transition: background-color 0.3s ease;
    height: 70px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boto-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.boto-img:hover {
    background-color: white;
    color: #3c6f96;
    transform: scale(1.01);
}


.boto-img:hover img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    content: url("../img/persona.svg");
}

.boto-tornar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-bottom: 1.5rem;
    height: 50px;
    width: 100px;
    color: white;
    font-weight: 600;
    background-color: #3c6f96;
    border: 2px solid #3c6f96;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.1s;
}

.boto-tornar:hover {
    background-color: #f5f5f5;
    color: #3c6f96;
}

.boto-tornar img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.boto-tornar:hover img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    content: url("../img/arrow_left.svg");
}

.nota {
	margin-top: 1.5rem;
}

/* Oculta per defecte */
.logo-print-only {
  display: none;
}

/* Només es mostra quan s'imprimeix */

@media print {

  .logo-print-only {
    	display: block;
	position: absolute;
	left: -11.5cm;
	top: -7cm;
	/* filter: invert(1); */
	scale: 30%;
  }



	header {
        	visibility: hidden;
	}


    @page {
        margin: 0;
    }

    body * {
        visibility: hidden;
	font-size: 10pt;
    }

    /* Mostrar solo lo visible para impresión */
    header img,
    .bloque-imprimir,
    .bloque-imprimir * {
        visibility: visible;
    }


	h2.form-etiqueta {
		color: black;
		font-weight: bold;
		font-size: 12pt;
		margin-top: 1rem;
	}

	span.form-etiqueta {
		color: black;
		font-weight: bold;
		font-size: 10pt;
	}


    /* CONTENIDO principal debajo del título */
    .bloque-imprimir {
        position: absolute;
        top: 0cm;
        /* 4.30 margen superior + 4 logo + 2 separación del h2 */
        left: 3.90cm;
        width: calc(100% - 3.90cm - 2.50cm);
    }

	.bloque-imprimir > #dades {
        	position: absolute;
        	top: 6cm;
	}

	.bloque-imprimir > .form-etiqueta {
	}

    /* Ocultar otros elementos */
    nav,
    .footer,
    .btn-continuar,
    form {
        display: none !important;
    }

    .form-grupo:last-of-type {
        border-top: none;
    }
}
