/* ===================================
		   EFECTO NIEVE (Canvas)
		   ================================= */
.snow-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

/* ===================================
		   SLIDES SYSTEM
		   ================================= */
.slides-viewport {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

/* Fix altura móvil - iOS Safari y otros navegadores */
@supports (height: 100dvh) {
	.slides-viewport {
		height: 100dvh;
	}
}

.slides-container {
	display: flex;
	width: 300%; /* 3 slides */
	height: 100%;
	will-change: transform;
}

.slide {
	flex: 0 0 33.333%; /* Cada slide ocupa 33.333% del container (100% del viewport) */
	height: 100%;
	overflow: hidden;
}

/* ===================================
		   SLIDE 1: DETALLE PERSONAJE
		   ================================= */
.slide-detalle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}


.personaje-legal {
	display: none;
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.personaje-legal span {
	font-size: 12px;
	text-align: center;
}

.personaje-legal-mobile {
	position: absolute;
    bottom: 5px !important;
    text-align: center;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10;
	width:80vw;
}

.personaje-legal-mobile span {
	font-size: 10px;
	text-align: center;
}

@media (min-width: 769px) {
	.personaje-legal {
		display: flex;
	}

	.personaje-legal-mobile {
		display: none;
	}
}

/* ===================================
		   SLIDE 2: CREAR POSTAL (2 columnas)
		   ================================= */
.slide-postal {
	display: grid;
	grid-template-columns: 50% 50%;
}

.slide-postal-left {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 96px 64px;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.slide-postal-right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 96px 104px;
	background-color: #ffffff;
	width: 100%;
	max-width: 100%;
}

.slide-postal-logo {
	position: absolute;
	top: 96px;
	left: 112px;
	z-index: 10;
}

.slide-postal-logo img {
	height: 49px;
	width: auto;
	display: block;
}

.slide-postal-personaje-img,
.slide-postal-personaje-media {
	position: relative;
	z-index: 2;
	width: 850px;
	max-width: none;
	height: auto;
	max-height: 95vh;
	object-fit: contain;
	/* Desvanecimiento de bordes para integración con fondo */
	mask-image: radial-gradient(ellipse 60% 60% at center, black 50%, transparent 90%);
	-webkit-mask-image: radial-gradient(ellipse 60% 60% at center, black 50%, transparent 90%);
}

/* Video específico en slide postal - sin límite de ancho */
video.slide-postal-personaje-media {
	width: 850px;
	max-width: none;
}

.slide-postal-back {
	position: absolute;
	bottom: 48px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	color: black;
	text-decoration: none;
	font-size: 16px;
	font-weight: 400;
	transition: opacity 0.2s ease;
	cursor: pointer;
	background: none;
	border: none;
	font-family: inherit;
}

.slide-postal-back:hover {
	opacity: 0.8;
}

.slide-postal-nombre {
	font-family: 'Libre Caslon Condensed', serif;
	font-size: clamp(32px, 4vw, 64px);
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 16px 0;
}

.slide-postal-editor {
	margin-bottom: 48px;
}

.slide-postal-editor-label {
	display: inline-block;
	font-family: 'Libre Caslon Condensed', serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 48px;
	margin-bottom: 0;
	padding-bottom: 8px;
	border-bottom: 1px solid currentColor;
}

/* Container del textarea con líneas */
.slide-postal-textarea-wrapper {
	position: relative;
	width: 100%;
	max-width: 544px;
}

/* Líneas de fondo - dinámicas según contenido */
.slide-postal-textarea-lines {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	pointer-events: none;
	z-index: 0;
	display: flex;
	flex-direction: column;
}

.slide-postal-textarea-line {
	width: 100%;
	height: 4px;
	margin-top: 44px;
	background-image: url('/microsite/felices-fiestas/2025/img/icons/separator.svg');
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center;
	flex-shrink: 0;
}

.slide-postal-textarea {
	position: relative;
	width: 100%;
	min-height: 192px;
	padding: 0;
	border: none;
	background: transparent;
	font-family: 'Libre Caslon Condensed', serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 48px;
	resize: none;
	outline: none;
	z-index: 1;
}

.slide-postal-textarea::placeholder {
	font-family: 'Libre Caslon Condensed', serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 48px;
	color: #93887F;
	opacity: 1;
}

.slide-postal-textarea:focus {
	outline: none;
}

/* Contenedor de botones */
.slide-postal-botones {
	display: flex;
	gap: 24px;
	align-items: center;
	margin-top: 48px;
}

.slide-postal-campo {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 232px;
}

.slide-postal-campo-label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #1e1e1e;
}

.slide-postal-input-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.slide-postal-input {
	width: 100%;
	padding: 0;
	border: none;
	background: transparent;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	outline: none;
	text-transform: capitalize;
}

.slide-postal-input::placeholder {
	color: currentColor;
	opacity: 1;
	text-transform: none;
}

.slide-postal-input:focus {
	outline: none;
}

.slide-postal-input-line {
	height: 4px;
	width: 100%;
	background-image: url('/microsite/felices-fiestas/2025/img/icons/separator.svg');
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center;
	opacity: 0.5;
}

.slide-postal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 48px;
	padding: 8px 20px;
	border-radius: 32px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	text-decoration: none;
	width: 100%;
	white-space: nowrap;
}

.slide-postal-btn-secondary {
	background-color: transparent;
	color: #000000;
	width: 246px;
	white-space: nowrap;
	border: 1px solid #000000;
}

.slide-postal-btn-secondary:hover {
	background-color: #d9d5d1;
	transform: translateY(-2px);
}

.slide-postal-btn-secondary svg {
	width: 24px;
	height: 24px;
}

.slide-postal-btn-primary {
	background-color: #000000;
	color: #ffffff;
	padding: 8px 4px 8px 32px;
	width: 190px;
}

.slide-postal-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.slide-postal-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background-color: #e83f43;
	border-radius: 20px;
	flex-shrink: 0;
}

.slide-postal-btn-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.slide-postal-descarga {
	margin-top: 48px;
}

.slide-postal-descarga p {
	max-width: 544px;
}

.slide-postal-descarga a {
	margin-top: 24px;
}

/* ===================================
		   VALIDACIÓN DE CAMPOS - ERRORES
		   ================================= */

/* Mensaje de error - solo texto rojo */
.field-error-message {
	display: block;
	color: #E23636;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	margin-top: 6px;
}

/* ===================================
		   SLIDE 3: ÉXITO / ENVIAR POSTAL
		   ================================= */
.slide-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
	position: relative;
	padding: 96px 64px;
}

.slide-success-logo {
	position: absolute;
	top: 96px;
	left: 112px;
	z-index: 10;
}

.slide-success-logo img {
	height: 49px;
	width: auto;
	display: block;
}

.slide-success-volume {
	position: absolute;
	top: 96px;
	right: 112px;
	z-index: 10;
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.slide-success-volume:hover {
	opacity: 0.7;
}

.slide-success-volume svg {
	width: 24px;
	height: 24px;
	display: block;
}

.slide-success-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
}

.slide-success-postal-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 280px;
	height: 360px;
}

.slide-success-postal {
	position: relative;
	width: 227px;
	height: 285px;
	border-radius: 6px;
	box-shadow: 0px 1.4px 3.4px 0px rgba(0, 0, 0, 0.25);
	transform: rotate(10.477deg);
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	background-color: var(--postal-color, #CCCCCC);
}

/* Logo Kutxabank dentro de la postal */
.slide-success-postal-logo {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

.slide-success-postal-logo img {
	height: 16px;
	width: auto;
	display: block;
}

.slide-success-postal-img,
.slide-success-postal-media {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

/* Video específico en slide éxito */
video.slide-success-postal-media {
	width: 100%;
	min-width: 100%;
}

.slide-success-title {
	font-family: 'Libre Caslon Condensed', serif;
	font-size: 56px;
	font-weight: 400;
	line-height: 72px;
	color: #000000;
	text-align: center;
	margin: 0;
}

.slide-success-buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.slide-success-buttons p {
	max-width: 50vw;
    text-align: center;
}

/* ===== BOTÓN COMPARTIR (Primary - negro con icono rojo) ===== */
.slide-success-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 48px;
	padding: 4px 4px 4px 20px;
	border-radius: 32px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	background-color: #000000;
	color: #ffffff;
	border: none;
}

.slide-success-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.slide-success-btn-primary .slide-success-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background-color: #e83f43;
	border-radius: 20px;
	flex-shrink: 0;
}

.slide-success-btn-primary .slide-success-btn-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

/* ===== BOTÓN CREAR OTRA POSTAL (Secondary - borde negro con icono +) ===== */
.slide-success-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 48px;
	padding: 8px 12px 8px 20px;
	border-radius: 32px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	background-color: transparent;
	color: #000000;
	border: 1px solid #000000;
}

.slide-success-btn-secondary:hover {
	background-color: rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
}

.slide-success-btn-secondary svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* ===================================
		   MODAL COMPARTIR
		   ================================= */
.share-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.share-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.share-modal {
	background: #ffffff;
	border-radius: 16px;
	padding: 32px;
	max-width: 400px;
	width: 90%;
	transform: translateY(20px);
	transition: transform 0.3s ease;
	position: relative;
}

.share-modal-overlay.active .share-modal {
	transform: translateY(0);
}

.share-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.share-modal-close:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.share-modal-close svg {
	width: 20px;
	height: 20px;
}

.share-modal-title {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	margin: 0 0 24px 0;
	color: #000000;
}

.share-modal-buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 24px;
}

.share-modal-btn {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	border: 1px solid #e7e3df;
	background: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.share-modal-btn:hover {
	background-color: #f5f5f5;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-modal-btn svg {
	width: 24px;
	height: 24px;
}

.share-modal-link-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f5f5f5;
	border-radius: 8px;
	padding: 12px 16px;
}

.share-modal-link {
	flex: 1;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #666666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border: none;
	background: transparent;
	outline: none;
}

.share-modal-copy {
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: background-color 0.2s ease;
	flex-shrink: 0;
}

.share-modal-copy:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.share-modal-copy svg {
	width: 20px;
	height: 20px;
}

.share-modal-copy.copied svg {
	color: #22c55e;
}

/* ===================================
		   INDICADORES (DOTS)
		   ================================= */

/* DESKTOP: Los indicadores ahora están dentro de .detalle-bottom-controls en personajes.css */
.slides-indicators {
	display: flex;
	align-items: center;
}

.slides-indicators-personajes {
	display: flex;
	align-items: center;
	gap: 8px;
}

.slide-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.slide-dot-personaje:hover {
	background-color: white;
	transform: scale(1.3);
}

.slide-dot-personaje.active {
	width: 22px;
	height: 8px;
	border-radius: 4px;
	background-color: white;
}

/* Ocultar tooltip en desktop también */
.slide-dot-personaje::after {
	display: none;
}

/* Ocultar separador y dot del formulario (ya no se usan) */
.slides-indicators-separator,
.slide-dot-form {
	display: none;
}

/* ===================================
		   TRANSICIONES ENTRE PERSONAJES
		   ================================= */
.slide-detalle .detalle-container {
	transition: background-color 0.5s ease;
}

/* Overlay para transición */
.transition-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
}

.transition-overlay.active {
	pointer-events: all;
}

/* ===================================
		   RESPONSIVE
		   ================================= */
@media (max-width: 1200px) {
	.slide-postal-right {
		padding: 64px;
	}

	.slide-postal-nombre {
		font-size: 48px;
		line-height: 64px;
	}

	.slide-postal-editor-label {
		font-size: 24px;
		line-height: 36px;
	}

	.slide-postal-logo {
		left: 64px;
		top: 64px;
	}
}

@media (max-width: 1024px) {
	.slide-postal {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		overflow-y: auto;
	}

	.slide-postal-left {
		min-height: 50vh;
		padding: 80px 32px;
	}

	.slide-postal-logo {
		top: 32px;
		left: 32px;
	}

	.slide-postal-logo img {
		height: 36px;
	}

	.slide-postal-personaje-img,
	.slide-postal-personaje-media {
		max-width: 350px;
		max-height: 400px;
	}

	video.slide-postal-personaje-media {
		max-width: 350px;
	}

	.slide-postal-back {
		bottom: 24px;
	}

	.slide-postal-right {
		padding: 48px 32px;
	}

	.slide-postal-nombre {
		font-size: 40px;
		line-height: 52px;
		margin-bottom: 32px;
	}

	.slide-postal-editor {
		margin-bottom: 32px;
	}

	.slide-postal-editor-label {
		font-size: 20px;
		line-height: 28px;
	}

	.slide-postal-textarea-wrapper {
		max-width: 100%;
	}

	.slide-postal-botones {
		flex-direction: column-reverse;
		gap: 16px;
		margin-top: 32px;
	}

	.slide-postal-campo {
		width: 100%;
	}

	.slide-postal-btn-secondary {
		width: auto;
		justify-content: center;
		white-space: nowrap;
	}

	.slide-postal-btn-primary {
		width: auto;
	}

	/* Slide Success responsive */
	.slide-success {
		padding: 80px 32px;
	}

	.slide-success-logo {
		top: 32px;
		left: 32px;
	}

	.slide-success-logo img {
		height: 36px;
	}

	.slide-success-volume {
		top: 32px;
		right: 32px;
	}

	.slide-success-title {
		font-size: 40px;
		line-height: 52px;
	}

	.slide-success-content {
		gap: 32px;
	}

	.slide-success-buttons p {
		max-width: 100%;
	}

	.slide-postal-descarga {
		margin-top: 32px;
	}

	.slide-postal-descarga a {
		margin-top: 18px;
	}
}

@media (max-width: 480px) {
	.slide-postal-left {
		min-height: 40vh;
		padding: 60px 24px;
	}

	.slide-postal-logo {
		top: 24px;
		left: 24px;
	}

	.slide-postal-logo img {
		height: 30px;
	}

	.slide-postal-personaje-img,
	.slide-postal-personaje-media {
		max-width: 85vw;
		max-height: 50vh;
	}

	video.slide-postal-personaje-media {
		max-width: 85vw;
	}

	.slide-postal-right {
		padding: 32px 24px;
	}

	.slide-postal-nombre {
		font-size: 32px;
		line-height: 42px;
		margin-bottom: 24px;
	}

	.slide-postal-editor-label {
		font-size: 18px;
		line-height: 24px;
	}

	.slide-postal-btn {
		font-size: 14px;
		height: 44px;
	}

	/* Slide Success responsive 480px */
	.slide-success {
		padding: 60px 24px;
	}

	.slide-success-logo {
		top: 24px;
		left: 24px;
	}

	.slide-success-logo img {
		height: 30px;
	}

	.slide-success-volume {
		top: 33px;
		right: 33px;
	}

	.slide-success-title {
		font-size: 32px;
		line-height: 42px;
	}

	.slide-success-content {
		gap: 24px;
	}

	.slide-success-postal-wrapper {
		width: 220px;
		height: 290px;
	}

	.slide-success-postal {
		width: 180px;
		height: 230px;
	}

	.slide-success-postal-logo img {
		height: 12px;
	}

	.slide-success-btn-primary,
	.slide-success-btn-secondary {
		font-size: 14px;
		height: 48px;
	}
}
