/* Formulario de eventos - Estilos principales */

.formulario-eventos-nuevo {
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: Geist, sans-serif;
}

/* Estructura de filas y columnas */
.fila-campos {
    display: flex;
    gap: 30px;
    margin-bottom: 2.19rem;
}

.campo-mitad {
    flex: 1;
}

.campo-completo {
    width: 100%;
}

.campo-cuarto {
    flex: 1;
}

/* Estilos base para todos los inputs */
.formulario-eventos-nuevo input[type="text"],
.formulario-eventos-nuevo input[type="email"],
.formulario-eventos-nuevo input[type="tel"],
.formulario-eventos-nuevo input[type="url"],
.formulario-eventos-nuevo input[type="file"],
.formulario-eventos-nuevo select,
.formulario-eventos-nuevo textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #181818;
    border-radius: 0;
    padding: 0;
    font-family: Geist, sans-serif;
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5625rem;
    letter-spacing: -0.75px;
    color: #181818;
    outline: none;
    transition: none;
    box-sizing: border-box;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Flecha personalizada para selects */
.formulario-eventos-nuevo select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ADA7A9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Placeholders */
.formulario-eventos-nuevo input::placeholder,
.formulario-eventos-nuevo textarea::placeholder {
    color: #ADA7A9;
    font-family: Geist, sans-serif;
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5625rem;
    letter-spacing: -0.75px;	
	opacity: 1;
}

/* Select - primera opción como placeholder */
.formulario-eventos-nuevo select {
    color: #ADA7A9;
}

.formulario-eventos-nuevo select option {
    color: #ADA7A9;
}

.formulario-eventos-nuevo select option:first-child {
    color: #ADA7A9;
}

.formulario-eventos-nuevo select option:not(:first-child) {
    color: #181818;
}

.formulario-eventos-nuevo select:focus,
.formulario-eventos-nuevo select:valid {
    color: #181818;
}

.formulario-eventos-nuevo select.selected {
    color: #181818;
}

.formulario-eventos-nuevo select.selected option:first-child {
    color: #ADA7A9;
}

.formulario-eventos-nuevo select.selected option:not(:first-child) {
    color: #181818;
}

/* Textarea específico */
.formulario-eventos-nuevo textarea {
    resize: vertical;
    min-height: 5rem;
}

/* Campo de archivo */
.campo-archivo {
    position: relative;
}

.texto-archivo {
    color: #ADA7A9;
    font-family: Geist, sans-serif;
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5625rem;
    letter-spacing: -0.75px;
    margin-bottom: 1.25rem;
}

.formulario-eventos-nuevo input[type="file"] {
    padding-bottom: 1.25rem;
    color: #ADA7A9;
}

/* Nota importante */
.nota-importante {
    margin-top: 1.875rem;
    margin-bottom: 3.75rem;
}

.nota-importante p {
    color: #ADA7A9;
    font-family: Geist, sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1rem;
    letter-spacing: -0.48px;
    margin: 0;
}

/* Checkboxes */
.checkbox-grupo {
    margin-bottom: 5.625rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-family: Geist, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1rem;
    letter-spacing: -0.48px;
    color: #181818;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    appearance: none;
    border: 2px solid #ADA7A9;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: #1443DE;
    border-color: #1443DE;
}

.checkbox-item input[type="checkbox"]:checked::before {
    display: block;
    color: white;
    font-size: 14px;
    text-align: center;
    line-height: 16px;
}

/* Botones footer */
.botones-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5.625rem;
}

.boton-volver,
.boton-enviar {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-volver p,
.boton-enviar p {
    margin: 0;
}

.boton-volver span,
.boton-enviar span {
    color: #ADA7A9;
    font-family: Geist, sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25rem;
    letter-spacing: -0.6px;
    display: flex;
    align-items: center;
    gap: 0.625rem;
	text-decoration: underline;
}

.boton-volver, .boton-enviar {
    gap: 0.625rem;
    flex-direction: row;
}

/* Estilo específico para el submit button */
.boton-enviar input[type="submit"] {
    background: transparent;
    border: none;
    color: #ADA7A9;
    font-family: Geist, sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25rem;
    letter-spacing: -0.6px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
	opacity: 1;
	text-decoration: underline !important;
}

.boton-enviar input[type="submit"]:disabled {
    cursor: pointer !important;
}

.boton-enviar:hover input[type="submit"]:disabled {
    cursor: pointer !important;
}

.boton-enviar:hover input[type="submit"] {
    color: #1443DE !important;
	text-decoration-color: #1443DE !important;
}

.arrow-volver,
.arrow-enviar {    
    transition: transform 0.3s ease;
}

.arrow-volver {
    transform: rotate(0deg);
}

.boton-volver:hover span {
    color: #1443DE;
}

.boton-volver:hover .arrow-volver {
    transform: rotate(-45deg);
}

.boton-volver.rotat:hover .arrow-volver {
    transform: rotate(45deg);
}

.boton-volver:hover .arrow-volver path {
    fill: #1443DE !important;
}

.boton-enviar:hover p span {
    color: #1443DE !important;
}

.boton-enviar:hover .arrow-enviar {
    transform: rotate(45deg);
}

.boton-enviar:hover .arrow-enviar path {
    fill: #1443DE !important;
}

.boton-enviar .wpcf7-spinner {
	display: none;
}

.boton-enviar p span br {
	display: none;
}

/* Responsive - Móvil */
@media (max-width: 767px) {
    .fila-campos {
        flex-direction: column;
        gap: 0;
    }
    
    .fila-cuatro-columnas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
    }
    
    .campo-mitad {
        width: 100%;
        margin-bottom: 2.19rem;
    }
	
	.campo-cuarto {
		width: 100%;
	}
    
    .campo-mitad:last-child,
    .campo-cuarto:last-child {
        margin-bottom: 0;
    }
	
	.formulario-eventos-nuevo input[type="text"],
	.formulario-eventos-nuevo input[type="email"],
	.formulario-eventos-nuevo input[type="tel"],
	.formulario-eventos-nuevo input[type="url"],
	.formulario-eventos-nuevo input[type="file"],
	.formulario-eventos-nuevo select,
	.formulario-eventos-nuevo textarea {
		font-size: 18px;
		line-height: 18px;
		letter-spacing: -0.48px;
		padding: 0;
	}
	
	.formulario-eventos-nuevo input::placeholder,
	.formulario-eventos-nuevo textarea::placeholder {		
		font-size: 18px;		
		line-height: 18px;
		letter-spacing: -0.48px;
		opacity: 1;
	}
	
	.nota-importante p {		
		font-size: 14px;		
		line-height: 18px;
		letter-spacing: -0.42px;
		margin: 0;
	}
	
	.formulario-eventos-nuevo input[type="file"] {
		font-size: 14px;
	}
    
	.formulario-eventos-nuevo textarea {
		height: 80px;
	}
	
	.checkbox-item {
		margin-bottom: 15px;
	}
	
	.checkbox-item p {
		display: flex;
		align-items: flex-start;
		margin: 0;
		font-size: 14px;
		line-height: 16px;
		letter-spacing: -0.42px;
		color: #181818;
	}

	.checkbox-item .wpcf7-form-control-wrap {		
		margin-top: 2px;
		flex-shrink: 1;
	}
	
	.checkbox-item .wpcf7-list-item {
		display: flex;
		align-items: flex-start;
	}

	.checkbox-item .wpcf7-list-item-label {
		font-size: 14px;
		line-height: 16px;
		letter-spacing: -0.42px;
		color: #181818;		
	}
	
	.boton-enviar input[type="submit"],
	.boton-volver span {
		font-size: 18px;		
		line-height: 22px;
		letter-spacing: -0.54px;
		color: #1443DE;
	}
	
    .botones-footer {
        flex-direction: column;
        align-items: flex-start;
		gap: 60px;
    }
	
	.boton-volver {
		margin-left: auto;
	}
	
	.botones-footer svg {
        width: 15px;
    }
	
	.arrow-enviar path,
	.arrow-volver path {
		fill: #1443DE !important;
	}
	
	.boton-volver span, .boton-enviar span {
		gap: 10px !important;
	}
    
}


/* Campo de archivo personalizado */
.campo-archivo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #181818;
    padding-bottom: 0;
	height: 2.2rem !important;
}

.texto-archivo {
    color: #ADA7A9;
    font-family: Geist, sans-serif;
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 500;    
    letter-spacing: -0.75px;
    margin-bottom: 0;
    flex: 1;
	line-height: 2.2rem !important;
}

/* Ocultar el input nativo */
.formulario-eventos-nuevo input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    border: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Botón personalizado */
.boton-archivo-custom {
    color: #ADA7A9;
    font-family: Geist, sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25rem;
    letter-spacing: -0.6px;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    white-space: nowrap;
	display: flex;
    align-items: center;
    gap: 0.625rem;
	text-decoration: underline;
}

.boton-archivo-custom:hover {
    color: #1443DE;
}

.boton-archivo-custom:hover .arrow-archivo {
    transform: rotate(-45deg);
}

.boton-archivo-custom:hover .arrow-archivo path {
    fill: #1443DE !important;
}

.arrow-archivo {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

/* Estado cuando hay archivo seleccionado */
.archivo-seleccionado .texto-archivo {
    color: #181818;
}

.archivo-seleccionado .boton-archivo-custom {
    color: #ADA7A9;
}

.archivo-seleccionado .boton-archivo-custom:hover {
    color: #1443DE;
}

/* Responsive - Móvil */
@media (max-width: 767px) {
    .campo-archivo {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        min-height: 70px;
    }
    
    .texto-archivo {
        font-size: 18px;
        line-height: 18px;
        letter-spacing: -0.48px;
        width: 100%;
    }
    
    .boton-archivo-custom {
        font-size: 18px;
        line-height: 22px;
        letter-spacing: -0.54px;
        color: #1443DE;
        align-self: flex-end;
		gap: 10px;
    }
	
	.arrow-archivo {
        width: 15px;
        height: 15px;
    }
	
	.arrow-archivo path {
		fill: #1443DE !important;
	}
	
	.archivo-seleccionado .boton-archivo-custom {
		color: #1443DE;
	}
}

/* Respuesta formulario sin borde */
.wpcf7 form .wpcf7-response-output {
	border: unset;
}




/* Estilos para campos deshabilitados */
.formulario-eventos-nuevo select:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    color: #999 !important;
}

.formulario-eventos-nuevo select:disabled:hover {
    color: #999 !important;
}

/* Flecha del select deshabilitado */
.formulario-eventos-nuevo select:disabled {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Transición suave para habilitar/deshabilitar */
.formulario-eventos-nuevo select {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Ocultar opciones deshabilitadas en selects */
.formulario-eventos-nuevo select option:disabled {
    display: none !important;
}

/* En algunos navegadores, usar color gris para opciones deshabilitadas */
.formulario-eventos-nuevo select option[disabled] {
    color: #ccc !important;
    background-color: #f5f5f5 !important;
}

/* Responsive - móvil */
@media (max-width: 767px) {
    .formulario-eventos-nuevo select:disabled {
        opacity: 0.5;
    }
}