/* ============================================
   MODAL CONTACT
   ============================================ */

/* Modal Container - Oculto por defecto */
.contact-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

/* Modal Visible */
.contact-modal.active {
	display: flex;
}

/* Overlay */
.contact-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

/* Contenido del Modal */
.contact-modal-content {
	position: relative;
	width: 88.54%; /* 1700px de 1920px */
	max-width: 1700px;
	background: #f8f8f8;
	padding: 5.625rem 10rem 5.625rem 10rem; /* 90px 160px 90px 160px */
	z-index: 10000;
	overflow-y: auto;
	max-height: 90vh;
}

/* Botón Cerrar */
.contact-modal-close {
	position: absolute;
	top: 3.125rem; /* 50px */
	right: 3.125rem; /* 50px */
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 10001;
	transition: opacity 0.3s ease;
}

.contact-modal-close:hover {
	opacity: 0.7;
}

.contact-modal-close img {
	width: 1.4375rem; /* 23px */
	height: auto;
	display: block;
}

/* Título del Modal */
.contact-modal-title {
	font-family: 'Manrope', sans-serif;
	font-size: 2rem; /* 32px */
	line-height: 2.75rem; /* 44px */
	font-weight: 400;
	color: #000;
	text-align: center;
	margin: 0 0 4.6875rem 0; /* 0 0 75px 0 */
}

/* Formulario */
.contact-modal-form {
	width: 100%;
}


/* ============================================
   ESTILOS CONTACT FORM 7
   ============================================ */

/* Reset CF7 */
.contact-modal-form .wpcf7-form {
	margin: 0;
}

.contact-modal-form .wpcf7-form p {
	margin: 0;
}

/* Filas del formulario */
.contact-modal-form .form-row {
	display: grid;
	gap: 1.875rem; /* 30px */
	margin-bottom: 1.875rem; /* 30px */
}

/* 3 columnas iguales */
.contact-modal-form .form-row-3 {
	grid-template-columns: repeat(3, 1fr);
}

/* 2 columnas: 1 pequeña + 1 grande (33.33% + 66.66%) */
.contact-modal-form .form-row-2-8 {
	grid-template-columns: 1fr 2fr;
}

.contact-modal-form .form-row-full:has(input[type="submit"]) {
	margin-bottom: 0 !important;
}

.contact-modal-form .wpcf7-spinner {
	display: none !important;
}

.wpcf7-list-item {
	margin: 0 !important;
}

/* Full width */
.contact-modal-form .form-row-full {
	grid-template-columns: 1fr;
}

/* Inputs y Select */
.contact-modal-form input[type="text"],
.contact-modal-form input[type="email"],
.contact-modal-form input[type="tel"],
.contact-modal-form select,
.contact-modal-form textarea {
	width: 100%;
	padding: 1rem 0; /* 16px 0 */
	font-family: 'Manrope', sans-serif;
	font-size: 1.5rem; /* 24px */
	line-height: normal;
	color: #000;
	background: transparent;
	border: none;
	border-bottom: 1px solid #000;
	outline: none;
	transition: border-color 0.3s ease;
}

.contact-modal-form input[type="text"]:focus,
.contact-modal-form input[type="email"]:focus,
.contact-modal-form input[type="tel"]:focus,
.contact-modal-form select:focus,
.contact-modal-form textarea:focus {
	border-bottom-color: #666;
}

/* Placeholders */
.contact-modal-form input::placeholder,
.contact-modal-form textarea::placeholder {
	color: #000;
	opacity: 1;
}

/* Select */
.contact-modal-form select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0 center;
	padding-right: 2rem;
}

/* Textarea */
.contact-modal-form textarea {
	min-height: 6.25rem; /* 100px */
	resize: vertical;
}

/* Checkbox y términos */
.contact-modal-form .acepto-terms {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem; /* 10px */
	font-family: 'Manrope', sans-serif;
	font-size: 1.25rem; /* 20px */
	line-height: 1.625rem; /* 26px */
	color: #000;
	cursor: pointer;
}

.contact-modal-form .acepto-terms input[type="checkbox"] {
	width: 1.25rem; /* 20px */
	height: 1.25rem; /* 20px */
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
}

.contact-modal-form .acepto-terms a {
	color: #000;
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.contact-modal-form .acepto-terms a:hover {
	opacity: 0.7;
}

/* Botón Submit */
.contact-modal-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	padding: 1.5rem 2rem; /* 24px 32px */
	background: #fff;
	color: #000;
	border: 1px solid #000;
	border-radius: 100px;
	font-family: 'Manrope', sans-serif;
	font-size: 1.25rem; /* 20px */
	line-height: 1.625rem; /* 26px */
	font-weight: 400;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 15rem;
	margin: 0 auto;
	text-align: center !important;
}

.contact-modal-form input[type="submit"]:hover {
	background: #000;
	color: #fff;
}

/* Mensajes de CF7 */
.contact-modal-form .wpcf7-response-output {
	margin: 1.25rem 0 0 0;
	padding: 1rem;
	border-radius: 4px;
	font-family: 'Manrope', sans-serif;
	font-size: 1rem;
}

.contact-modal-form .wpcf7-validation-errors {
	background: #ffebee;
	border: 1px solid #f44336;
	color: #c62828;
}

.contact-modal-form .wpcf7-mail-sent-ok {
	background: #e8f5e9;
	border: 1px solid #4caf50;
	color: #2e7d32;
}

.contact-modal-form .wpcf7-not-valid-tip {
	font-size: 0.875rem;
	color: #f44336;
	margin-top: 0.25rem;
}


/* ============================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ============================================ */

@media (max-width: 767px) {
	
	/* Modal Mobile */
	.contact-modal-content {
		width: 90%;
		padding: 80px 30px 65px 30px;
		max-height: 85vh;
	}
	
	.contact-modal-close img {
		width: 18px;
	}
	
	.contact-modal-title {
		font-size: 24px;
		line-height: 30px;
		margin-bottom: 50px;
	}
	
	/* Formulario Mobile - 1 columna */
	.contact-modal-form .form-row-3,
	.contact-modal-form .form-row-2-8 {
		grid-template-columns: 1fr;
	}
	
	.contact-modal-form .form-row {
		gap: 20px;
		margin-bottom: 20px;
	}
	
	.contact-modal-form input[type="text"],
	.contact-modal-form input[type="email"],
	.contact-modal-form input[type="tel"],
	.contact-modal-form select,
	.contact-modal-form textarea {
		font-size: 14px;
		padding: 12px 0;
	}
	
	.contact-modal-form .acepto-terms {
		gap: 10px;
		font-size: 14px;
		line-height: normal;
	}
	
	.contact-modal-form .acepto-terms input[type="checkbox"] {
		width: 16px;
		height: 16px;
	}
	
	.contact-modal-form input[type="submit"] {
		width: 150px;
		padding: 10px 20px;
		font-size: 12px;
		line-height: 26px;
		text-align: center !important;
	}
	
}
