/* ICC Panama — Modern UI layer */

/* ── Loading overlay ── */
#cargando {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 22, 43, 0.75);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	align-items: center;
	justify-content: center;
}

#cargando.is-visible {
	display: flex;
}

.loader-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	padding: 2.5rem 3rem;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
	animation: loader-pop 0.35s ease;
}

@keyframes loader-pop {
	from { opacity: 0; transform: scale(0.9); }
	to   { opacity: 1; transform: scale(1); }
}

.loader-spinner {
	width: 56px;
	height: 56px;
	border: 4px solid #e8e8f0;
	border-top-color: var(--main-color);
	border-right-color: var(--accent-purple);
	border-radius: 50%;
	animation: loader-spin 0.85s linear infinite;
}

@keyframes loader-spin {
	to { transform: rotate(360deg); }
}

.loader-text {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent-purple);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.loader-logo {
	width: 80px;
	height: auto;
	opacity: 0.9;
}

/* ── Toast notifications ── */
#toast-container {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: min(380px, calc(100vw - 2rem));
	pointer-events: none;
}

.icc-toast {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.1rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	border-left: 4px solid transparent;
	pointer-events: auto;
	transform: translateX(120%);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
	overflow: hidden;
}

.icc-toast.is-show {
	transform: translateX(0);
	opacity: 1;
}

.icc-toast.is-hide {
	transform: translateX(120%);
	opacity: 0;
}

.icc-toast__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: #fff;
}

.icc-toast--success { border-left-color: var(--color-success); }
.icc-toast--success .icc-toast__icon { background: var(--color-success); }

.icc-toast--info { border-left-color: var(--color-info); }
.icc-toast--info .icc-toast__icon { background: var(--color-info); }

.icc-toast--danger { border-left-color: var(--color-danger); }
.icc-toast--danger .icc-toast__icon { background: var(--color-danger); }

.icc-toast__body {
	flex: 1;
	min-width: 0;
}

.icc-toast__title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.2rem;
	color: #333;
}

.icc-toast__message {
	font-size: 0.9rem;
	line-height: 1.45;
	color: #555;
	margin: 0;
}

.icc-toast__close {
	flex-shrink: 0;
	background: none;
	border: none;
	color: #aaa;
	font-size: 1.1rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.2s;
}

.icc-toast__close:hover {
	color: #333;
}

.icc-toast__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	opacity: 0.5;
	animation: toast-progress 4s linear forwards;
}

.icc-toast {
	position: relative;
}

@keyframes toast-progress {
	from { width: 100%; }
	to   { width: 0%; }
}

/* ── Page hero / section headers ── */
.page-hero {
	background: linear-gradient(135deg, var(--accent-purple) 0%, #1a1040 60%, var(--accent-dark) 100%);
	color: #fff;
	padding: 3rem 0 3.25rem;
	position: relative;
	overflow: hidden;
}

.page-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255, 234, 0, 0.12) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.page-hero__title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 800;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.page-hero__title span {
	color: var(--main-color);
}

.page-hero__subtitle {
	font-size: 1rem;
	opacity: 0.85;
	margin: 0;
	max-width: 600px;
	line-height: 1.65;
}

.page-hero--compact {
	padding: 2.75rem 0 3.25rem;
}

/* Espacio entre hero y la sección siguiente */
.page-hero + [class*="page"],
.page-hero + [class*="section"],
.page-hero + .content-section {
	margin-top: 0;
}

/* Toolbars flotantes (compartido) */
.page-toolbar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: #fff;
	border-radius: 16px;
	padding: 1.25rem 1.5rem;
	margin: 0 auto 2.5rem;
	box-shadow: 0 8px 32px rgba(40, 34, 98, 0.1);
	border: 1px solid rgba(40, 34, 98, 0.06);
}

/* ── Feature cards (index) ── */
.features-section {
	background: var(--accent-purple);
	padding: 3.5rem 0 2.5rem;
	position: relative;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.feature-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 2rem 1.5rem 1.5rem;
	text-align: center;
	color: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.feature-card__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 1.25rem;
	background: var(--main-color);
	color: var(--accent-purple);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	box-shadow: 0 4px 20px rgba(255, 234, 0, 0.35);
}

.feature-card__title {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 0.75rem;
}

.feature-card__text {
	font-size: 0.875rem;
	line-height: 1.6;
	opacity: 0.85;
	margin: 0;
}

/* ── Carousel modern ── */
.hero-carousel {
	position: relative;
	overflow: hidden;
}

.hero-carousel .carousel-item img {
	height: clamp(220px, 45vw, 480px);
	object-fit: cover;
	width: 100%;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
	width: 48px;
	height: 48px;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
	opacity: 1;
}

.hero-carousel .carousel-indicators li {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
}

.hero-carousel .carousel-indicators .active {
	background-color: var(--main-color);
}

/* ── Quick access cards ── */
.quick-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
	padding: 2.5rem 0;
}

.quick-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid #eee;
}

.quick-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(40, 34, 98, 0.15);
}

.quick-card__img-wrap {
	height: 140px;
	overflow: hidden;
	background: linear-gradient(135deg, #f0f0f8, #e8e8f5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.quick-card__img-wrap img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.quick-card:hover .quick-card__img-wrap img {
	transform: scale(1.05);
}

.quick-card__body {
	padding: 1.25rem;
	text-align: center;
}

.quick-card__title {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--accent-purple);
	margin-bottom: 0.5rem;
	letter-spacing: 0.02em;
}

.quick-card__text {
	font-size: 0.82rem;
	color: #666;
	line-height: 1.5;
	margin: 0;
}

/* ── CTA strip ── */
.cta-strip {
	background: linear-gradient(90deg, var(--main-color), #ffd700);
	padding: 1.25rem 0;
	text-align: center;
}

.cta-strip p {
	margin: 0;
	font-weight: 700;
	color: #1a1040;
	font-size: 1rem;
}

.cta-strip a {
	color: var(--accent-purple);
	font-weight: 800;
	text-decoration: underline;
}

/* ── Modern footer ── */
footer.site-footer {
	background: var(--accent-dark);
	color: rgba(255, 255, 255, 0.75);
	padding: 2.5rem 0 1.5rem;
	height: auto;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.site-footer__brand img {
	width: 100px;
	margin-bottom: 0.75rem;
	filter: brightness(1.1);
}

.site-footer__brand p {
	font-size: 0.85rem;
	line-height: 1.6;
	margin: 0;
}

.site-footer__heading {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--main-color);
	margin-bottom: 1rem;
}

.site-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer__links li {
	margin-bottom: 0.5rem;
}

.site-footer__links a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer__links a:hover {
	color: var(--main-color);
}

.site-footer__contact i {
	width: 20px;
	color: var(--main-color);
	margin-right: 0.5rem;
}

.site-footer__contact li {
	font-size: 0.875rem;
	margin-bottom: 0.6rem;
	display: flex;
	align-items: center;
}

.site-footer__social {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.site-footer__social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1rem;
	transition: background 0.2s, transform 0.2s;
}

.site-footer__social a:hover {
	background: var(--main-color);
	color: var(--accent-purple);
	transform: translateY(-2px);
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.25rem;
	text-align: center;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
}

/* ── Content pages (nosotros, etc.) ── */
.content-section {
	padding: 2.5rem 0 3rem;
	margin-top: 0;
}

.content-card {
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.content-card p {
	text-align: justify;
	line-height: 1.75;
	color: #444;
	font-size: 0.95rem;
}

.content-card .video-embed {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.5rem;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.content-card .video-embed iframe {
	width: 100%;
	height: clamp(220px, 50vw, 420px);
	border: 0;
	display: block;
}

/* ── Modal polish ── */
.modal-content {
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
	border-radius: 0;
	padding: 1rem 1.5rem;
}

.modal-body {
	padding: 1.5rem;
}

.modal-footer {
	border-top: 1px solid #eee;
}
