/* ══════════════════════════════════════════
   ICC — Modales auth (login + registro)
   ══════════════════════════════════════════ */

.icc-modal .modal-content {
	border: none;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.icc-modal-dialog {
	width: 100%;
	margin: 1rem auto;
}

.icc-modal-dialog--sm {
	max-width: 420px;
}

.icc-modal-dialog--lg {
	max-width: 640px;
}

/* ── Header ── */
.icc-modal-header {
	background: linear-gradient(135deg, var(--accent-purple) 0%, #1a1040 100%);
	border: none;
	padding: 1.5rem 1.75rem 1.25rem;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.icc-modal-header .close {
	color: rgba(255, 255, 255, 0.7);
	text-shadow: none;
	opacity: 1;
	font-size: 1.5rem;
	transition: color 0.2s;
	margin: -0.25rem -0.25rem 0 0;
}

.icc-modal-header .close:hover {
	color: #fff;
}

.icc-modal-header__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 234, 0, 0.2);
	color: var(--main-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	margin-bottom: 0.65rem;
}

.icc-modal-header .modal-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: #fff;
	margin: 0;
	letter-spacing: -0.02em;
}

.icc-modal-header__subtitle {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.72);
	margin: 0.3rem 0 0;
	line-height: 1.45;
}

/* ── Body ── */
.icc-modal-body {
	padding: 1.5rem 1.75rem;
	background: #f7f8fc;
}

.icc-modal-body--scroll {
	max-height: min(65vh, 560px);
	overflow-y: auto;
}

.icc-modal-body--scroll::-webkit-scrollbar {
	width: 6px;
}

.icc-modal-body--scroll::-webkit-scrollbar-thumb {
	background: rgba(40, 34, 98, 0.2);
	border-radius: 3px;
}

/* ── Form sections ── */
.icc-form-section {
	background: #fff;
	border-radius: 14px;
	padding: 1.25rem;
	margin-bottom: 1rem;
	border: 1px solid rgba(40, 34, 98, 0.06);
	box-shadow: 0 2px 12px rgba(40, 34, 98, 0.04);
}

.icc-form-section:last-child {
	margin-bottom: 0;
}

.icc-form-section__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent-purple);
	margin-bottom: 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #f0f0f5;
}

.icc-form-section__title i {
	color: var(--main-color);
	background: var(--accent-purple);
	width: 26px;
	height: 26px;
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
}

/* ── Fields ── */
.icc-field {
	margin-bottom: 0.85rem;
}

.icc-field:last-child {
	margin-bottom: 0;
}

.icc-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #777;
	margin-bottom: 0.4rem;
}

.icc-label--optional {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: #bbb;
	font-size: 0.68rem;
}

.icc-field-hint {
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.72rem;
}

.icc-input-wrap {
	position: relative;
}

.icc-input-wrap > i {
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--accent-purple);
	opacity: 0.4;
	font-size: 0.85rem;
	z-index: 1;
	pointer-events: none;
}

.icc-modal .form-control {
	border: 1.5px solid #e4e4ee;
	border-radius: 10px;
	padding: 0.65rem 0.9rem;
	font-size: 0.88rem;
	background: #fafafd;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	height: auto;
}

.icc-input-wrap .form-control {
	padding-left: 2.5rem;
}

.icc-modal .form-control:focus {
	border-color: var(--accent-purple);
	box-shadow: 0 0 0 3px rgba(40, 34, 98, 0.1);
	background: #fff;
	outline: none;
}

.icc-modal select.form-control {
	cursor: pointer;
}

.icc-modal textarea.form-control {
	resize: vertical;
	min-height: 70px;
}

/* ── Radio group ── */
.icc-radio-group {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.icc-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	font-weight: 500;
	color: #555;
	margin: 0;
	cursor: pointer;
}

.icc-radio input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: var(--accent-purple);
}

/* ── Footer ── */
.icc-modal-footer {
	border: none;
	padding: 1rem 1.75rem 1.5rem;
	background: #f7f8fc;
}

.icc-modal-footer--split {
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
}

/* ── Buttons ── */
.icc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.7rem 1.35rem;
	border: none;
	border-radius: 11px;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	white-space: nowrap;
}

.icc-btn--primary {
	background: linear-gradient(135deg, var(--accent-purple), #3d3580);
	color: #fff !important;
	box-shadow: 0 4px 16px rgba(40, 34, 98, 0.25);
}

.icc-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(40, 34, 98, 0.35);
}

.icc-btn--ghost {
	background: #fff;
	color: #666 !important;
	border: 1.5px solid #e0e0ea;
}

.icc-btn--ghost:hover {
	background: #f0f0f5;
	color: #333 !important;
}

/* ── Login specific ── */
#modal_login .icc-modal-body {
	background: #fff;
}

#modal_login .icc-modal-footer {
	background: #fff;
	border-top: 1px solid #f0f0f5;
}

#modal_login .icc-btn--primary {
	flex: 1;
}

/* ── Registro ok modal ── */
#modal_registro_ok .modal-dialog {
	max-width: 380px;
}

#modal_registro_ok .modal-content {
	border-radius: 20px;
	overflow: hidden;
	border: none;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

#modal_registro_ok .modal-header {
	background: linear-gradient(135deg, #10b981, #059669);
	border: none;
	justify-content: center;
	padding: 1.5rem;
}

#modal_registro_ok .modal-title {
	color: #fff;
	font-weight: 800;
	font-size: 1.2rem;
}

#modal_registro_ok .modal-body {
	padding: 2rem;
	background: #fff;
}

#modal_registro_ok .modal-body img {
	width: 80px;
	height: auto;
}

#modal_registro_ok .modal-footer {
	border: none;
	padding: 0 1.5rem 1.5rem;
	background: #fff;
}

#modal_registro_ok .modal-footer .btn {
	border-radius: 11px;
	padding: 0.7rem;
	font-weight: 600;
	width: 100%;
}

@media (max-width: 576px) {
	.icc-modal-header {
		padding: 1.25rem;
	}

	.icc-modal-body {
		padding: 1.25rem;
	}

	.icc-modal-footer--split {
		flex-direction: column-reverse;
	}

	.icc-modal-footer--split .icc-btn {
		width: 100%;
	}
}
