/* ===================================
   HOME CSS - PÁGINA INICIO
   Diseño basado en Figma Kutxabank Navidad 2025
   ================================= */

/* Fuente Libre Caslon Condensed */
@font-face {
	font-family: 'Libre Caslon Condensed';
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url(https://cdn.jsdelivr.net/fontsource/fonts/libre-caslon-condensed@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/libre-caslon-condensed@latest/latin-400-normal.woff) format('woff');
}

@font-face {
	font-family: 'Libre Caslon Condensed';
	font-style: normal;
	font-display: swap;
	font-weight: 700;
	src: url(https://cdn.jsdelivr.net/fontsource/fonts/libre-caslon-condensed@latest/latin-700-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/libre-caslon-condensed@latest/latin-700-normal.woff) format('woff');
}

/* ===================================
   PAGE CONTAINER
   ================================= */

.page-home {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background-color: #FFFFFF;
	overflow: hidden;
	position: relative;
}

/* ===================================
   HEADER MOBILE (oculto en desktop)
   ================================= */

.home-header-mobile {
	display: none;
}

/* ===================================
   SELECTOR DE IDIOMAS DESKTOP
   ================================= */

.home-lang-selector-desktop {
	position: absolute;
	top: 120px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 24px;
	display: flex;
	align-items: center;
	gap: 0;
	white-space: nowrap;
}

.home-lang-link {
	color: #000000;
	text-decoration: none;
	font-weight: 400;
	transition: opacity 0.2s ease;
	padding: 0 4px;
}

.home-lang-link:hover {
	opacity: 0.7;
}

.home-lang-link.active {
	font-weight: 700;
}

.home-lang-sep {
	color: #000000;
	margin: 0 4px;
	opacity: 0.6;
}

/* ===================================
   POSTALES DECORATIVAS
   ================================= */

.postales-decorativas {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	max-width: 1600px;
	margin: 0 auto;
}

.postal-card {
	position: absolute;
	width: 320px;
	height: 475px;
	border-radius: 17px;
	background-color: var(--postal-bg, #CCCCCC);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.postal-card img {
	width: 85%;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Postal 1: Olentzero - Arriba izquierda (parcialmente fuera) */
.postal-1 {
	top: 15%;
	left: -5%;
	transform: rotate(-15deg);
}

/* Postal 2: Mari Domingi - Arriba derecha (parcialmente fuera) */
.postal-2 {
	top: 10%;
	right: -5%;
	transform: rotate(11deg);
}

/* Postal 3: Apalpador - Abajo izquierda */
.postal-3 {
	bottom: 5%;
	left: 0;
	transform: rotate(15deg);
}

/* Postal 4: Tió de Nadal - Abajo derecha */
.postal-4 {
	bottom: 3%;
	right: -5%;
	transform: rotate(-15deg);
}

/* ===================================
   CONTENIDO PRINCIPAL
   ================================= */

.home-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px 20px;
	position: relative;
	z-index: 10;
}

.home-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	max-width: 764px;
	text-align: center;
}

.home-title {
	font-family: 'Libre Caslon Condensed', serif;
	font-size: 72px;
	font-weight: 400;
	line-height: 80px;
	color: #000000;
	margin: 0;
	text-wrap: balance;
}

.home-subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
	color: #000000;
	margin: 0;
	max-width: 398px;
}

/* ===================================
   BOTÓN CTA
   ================================= */

.home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 48px;
	padding: 8px 4px 8px 20px;
	background-color: #000000;
	color: #FFFFFF;
	border: none;
	border-radius: 32px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.home-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.home-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: #E83F43;
	border-radius: 20px;
	flex-shrink: 0;
}

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

/* ===================================
   ICONO VOLUMEN DESKTOP
   ================================= */

.home-volume-desktop {
	position: absolute;
	top: 120px;
	right: 160px;
	z-index: 100;
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: opacity 0.2s ease;
	color: #000000;
}

.home-volume-desktop:hover {
	opacity: 0.7;
}

.home-volume-desktop .volume-icon {
	width: 24px;
	height: 24px;
}

/* ===================================
   ICONO VOLUMEN MOBILE
   ================================= */

.home-volume-mobile {
	display: none;
}

/* ===================================
   LOGO KUTXABANK DESKTOP
   ================================= */

.home-logo-desktop {
	position: absolute;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.home-logo-desktop img {
	height: 49px;
	width: auto;
	display: block;
}

/* ===================================
   TEXTO LEGAL KUTXABANK DESKTOP
   ================================= */
   
   .home-legal {
		display: none;
		position: absolute;
		bottom: 5px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 10;
	}

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

	
	.home-legal-mobile {
		margin-top: 20px;
        max-width: 398px;
	}

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

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

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

/* ===================================
   RESPONSIVE - TABLET (1200px)
   ================================= */

@media (max-width: 1200px) {
	.home-lang-selector-desktop {
		top: 80px;
	}

	.home-title {
		font-size: 56px;
		line-height: 64px;
	}

	.home-subtitle {
		font-size: 18px;
		line-height: 26px;
	}

	.postal-card {
		width: 260px;
		height: 387px;
	}

	.postal-1 {
		top: 10%;
		left: -8%;
	}

	.postal-2 {
		top: 8%;
		right: -8%;
	}

	.postal-3 {
		bottom: 5%;
		left: -5%;
	}

	.postal-4 {
		bottom: 5%;
		right: -3%;
	}

	.home-logo-desktop {
		bottom: 60px;
	}

	.home-volume-desktop {
		top: 80px;
		right: 60px;
	}
}

/* ===================================
   RESPONSIVE - MOBILE (768px)
   ================================= */

@media (max-width: 768px) {
	/* Header mobile visible */
	.home-header-mobile {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 56px;
		padding: 0 24px;
		background-color: rgba(255,255,255,0.5);
		z-index: 1000;
	}

	.home-logo img {
		height: 24px;
		width: auto;
		display: block;
	}

	/* Contenedor derecho header mobile */
	.home-header-right {
		display: flex;
		align-items: center;
		gap: 16px;
		margin-top: 12px;
	}

	/* Selector idiomas mobile - dropdown */
	.home-lang-selector-mobile {
		position: relative;
	}

	.home-lang-btn {
		display: flex;
		align-items: center;
		gap: 4px;
		background: transparent;
		border: none;
		cursor: pointer;
		padding: 0;
		font-family: 'Inter', sans-serif;
		font-size: 12px;
		font-weight: 400;
		line-height: 16px;
		color: #232323;
	}

	.home-lang-chevron {
		width: 16px;
		height: 16px;
		transition: transform 0.2s ease;
	}

	.home-lang-selector-mobile.open .home-lang-chevron {
		transform: rotate(180deg);
	}

	.home-lang-dropdown {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		margin-top: 8px;
		background: white;
		border-radius: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		min-width: 80px;
		overflow: hidden;
		z-index: 1001;
	}

	.home-lang-selector-mobile.open .home-lang-dropdown {
		display: block;
	}

	.home-lang-option {
		display: block;
		padding: 12px 16px;
		font-family: 'Inter', sans-serif;
		font-size: 14px;
		font-weight: 400;
		color: #232323;
		text-decoration: none;
		transition: background-color 0.2s ease;
	}

	.home-lang-option:hover {
		background-color: #F5F5F5;
	}

	.home-lang-option.active {
		font-weight: 600;
		background-color: #F0F0F0;
	}

	/* Ocultar selector desktop */
	.home-lang-selector-desktop {
		display: none;
	}

	/* Ocultar volumen desktop */
	.home-volume-desktop {
		display: none;
	}

	/* Volumen mobile */
	.home-volume-mobile {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 16px;
		height: 16px;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		color: #232323;
	}

	.home-volume-mobile .volume-icon {
		width: 16px;
		height: 16px;
	}

	/* Ocultar logo desktop */
	.home-logo-desktop {
		display: none;
	}

	/* Contenido principal */
	.home-main {
		padding: 56px 35px 40px;
		min-height: 100vh;
		min-height: 100dvh;
	}

	.home-content {
		gap: 28px;
		max-width: 306px;
	}

	.home-title {
		font-size: 40px;
		font-weight: 700;
		line-height: 52px;
	}

	.home-subtitle {
		font-size: 16px;
		line-height: 24px;
		max-width: 100%;
	}

	/* Postales en mobile */
	.postal-card {
		width: 180px;
		height: 268px;
		border-radius: 10px;
		box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
	}

	/* Reposicionar postales para mobile - COMPLETAMENTE VISIBLES */
    @media (min-height: 1040px) {
        .postal-1 {
            top: 95px;
            left: 15%;
            bottom: auto;
            transform: rotate(-12deg);
        }

        .postal-2 {
            top: 90px;
            right: 15%;
            left: auto;
            bottom: auto;
            transform: rotate(10deg);
        }

        .postal-3 {
            bottom: 40px;
            top: auto;
            left: 15%;
            transform: rotate(12deg);
        }

        .postal-4 {
            bottom: 30px;
            top: auto;
            right: 15%;
            left: auto;
            transform: rotate(-12deg);
        }
    }
}

/* ===================================
   RESPONSIVE - SMALL MOBILE (480px)
   ================================= */

@media (max-width: 480px) {
	.home-header-mobile {
		padding: 0 16px;
	}

	.home-header-right {
		gap: 12px;
	}

	.home-main {
		padding: 56px 24px 32px;
	}

	.home-content {
		gap: 18px;
	}

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

	.home-subtitle {
		font-size: 14px;
		line-height: 20px;
	}

	.postal-card {
		width: 150px;
		height: 223px;
	}
    .postal-1 {
        top: -50px;
        left: 12%;
    }

    .postal-2 {
        top: -50px;
        right: 12%;
    }

    .postal-3 {
        bottom: -50px;
        left: 12%;
    }

    .postal-4 {
        bottom: -50px;
        right: 12%;
    }
    @media (min-height: 834px) {
        .postal-1 {
            top: 85px;
            left: 12%;
        }

        .postal-2 {
            top: 80px;
            right: 12%;
        }

        .postal-3 {
            bottom: 35px;
            left: 12%;
        }

        .postal-4 {
            bottom: 25px;
            right: 12%;
        }
    }
    
}

/* ===================================
   ANIMACIONES
   ================================= */

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Aplicar animaciones */
.home-content {
	animation: fadeIn 0.8s ease-out;
}

.home-title {
	animation: slideUp 0.8s ease-out;
}

.home-subtitle {
	animation: slideUp 0.8s ease-out 0.1s both;
}

.home-btn {
	animation: slideUp 0.8s ease-out 0.2s both;
}

.postal-card {
	animation: fadeIn 1s ease-out 0.3s both;
}

.postal-1 {
	animation-delay: 0.3s;
}

.postal-2 {
	animation-delay: 0.4s;
}

.postal-3 {
	animation-delay: 0.5s;
}

.postal-4 {
	animation-delay: 0.6s;
}
