/* =========================================================
   Avísame — va-avisame.css
   Vorágine Digital · https://enlavoragine.com
   ========================================================= */

/* ----- Enlace ----- */
.vcn-avisame-btn {
	display: inline-flex;
	align-items: center;
	gap: .3em;
	background: none;
	border: none;
	padding: 0;
	color: #20376D;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: opacity .15s;
	line-height: 1;
}

.vcn-avisame-btn:hover,
.vcn-avisame-btn:focus-visible {
	opacity: .7;
	outline: none;
}

/* ----- Overlay ----- */
.vcn-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vcn-modal[hidden] {
	display: none;
}

.vcn-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	cursor: pointer;
}

/* ----- Caja ----- */
.vcn-modal__box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 8px;
	padding: 2rem 2rem 1.75rem;
	width: min(480px, calc(100vw - 2rem));
	box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
	animation: va-slide-in .18s ease;
}

@keyframes va-slide-in {
	from { transform: translateY(-12px); opacity: 0; }
	to   { transform: translateY(0);     opacity: 1; }
}

.vcn-modal__close {
	position: absolute;
	top: .75rem;
	right: .9rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #888;
	cursor: pointer;
	padding: 0 .2rem;
}

.vcn-modal__close:hover { color: #20376D; }

/* ----- Contenido ----- */
.vcn-modal__title {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
	color: #20376D;
}

.vcn-modal__desc {
	margin: 0 0 1.25rem;
	font-size: .95rem;
	color: #444;
	line-height: 1.55;
}

/* ----- Formulario ----- */
.vcn-modal__form {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.vcn-modal__label {
	font-size: .85rem;
	font-weight: 600;
	color: #20376D;
	margin-bottom: -.35rem;
}

.vcn-modal__input {
	width: 100%;
	padding: .65rem .85rem;
	border: 1.5px solid #ccc;
	border-radius: 4px;
	font-size: .95rem;
	box-sizing: border-box;
	transition: border-color .15s;
}

.vcn-modal__input:focus {
	border-color: #20376D;
	outline: none;
}

.vcn-modal__input.vcn-error {
	border-color: #c0392b;
}

/* ----- RGPD ----- */
.vcn-modal__rgpd {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	font-size: .82rem;
	color: #555;
	line-height: 1.45;
	cursor: pointer;
}

.vcn-modal__rgpd input[type="checkbox"] {
	margin-top: .2rem;
	flex-shrink: 0;
	accent-color: #20376D;
}

.vcn-modal__rgpd a {
	color: #20376D;
}

/* ----- Botón submit ----- */
.vcn-modal__submit {
	padding: .75rem 1.5rem;
	background: #FFC92D;
	color: #20376D;
	border: none;
	border-radius: 3px;
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity .2s;
}

.vcn-modal__submit:hover   { opacity: .88; }
.vcn-modal__submit:disabled { opacity: .5; cursor: default; }

/* ----- Feedback ----- */
.vcn-modal__feedback {
	margin: 0;
	padding: .6rem .85rem;
	border-radius: 4px;
	font-size: .9rem;
}

.vcn-modal__feedback.vcn-ok  { background: #eafaf1; color: #1a7a3f; }
.vcn-modal__feedback.vcn-err { background: #fdf0ef; color: #c0392b; }

/* ----- Accesibilidad: foco visible ----- */
.vcn-modal__submit:focus-visible,
.vcn-modal__close:focus-visible {
	outline: 2px solid #FFC92D;
	outline-offset: 2px;
}
