/******** tipografias ********/
@font-face {
  font-family: "GraphikRegular";
  src: url("fonts/GraphikMedium.eot");
  src: url("fonts/GraphikRegular.eot") format("embedded-opentype"), url("fonts/GraphikRegular.woff2") format("woff2"), url("fonts/GraphikRegular.woff") format("woff"), url("fonts/GraphikRegular.ttf") format("truetype"), url("fonts/GraphikRegular.svg#GraphikRegular") format("svg");
}
@font-face {
  font-family: "GraphikMedium";
  src: url("fonts/GraphikMedium.eot");
  src: url("fonts/GraphikMedium.eot") format("embedded-opentype"), url("fonts/GraphikMedium.woff2") format("woff2"), url("fonts/GraphikMedium.woff") format("woff"), url("fonts/GraphikMedium.ttf") format("truetype"), url("fonts/GraphikMedium.svg#GraphikMedium") format("svg");
}

/******** reset de estilos del navegador ********/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    /* Usa el modelo de caja de borde para cálculos de ancho predecibles */
    box-sizing: border-box; 
}

html {
	font-size: 12px;
}

body {
    -webkit-font-smoothing: antialiased;
	font-family: "GraphikRegular", sans-serif;
	background-color: #181f2c;

	min-height: 100vh;
    margin: 0;
    /* Asegura que el contenido quede por encima del campo de estrellas */
    position: relative; 
    overflow-x: hidden; /* Evita barras de desplazamiento horizontales */
}

input, button, textarea, select {
    font: inherit; 
}

img, picture, video, canvas, svg {
    max-width: 100%; 
    display: block; 
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/******** header ********/
header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 30px auto 50px auto;
	width: 90%;
	max-width: 1280px;
	gap: 36px;
}

header .header_logo {
	width: 120px;
}

header .title_container {
	display: flex;
	flex-direction: column;
}

header .title_container h1 {
	font-family: "GraphikMedium";
	color: #fff;
	font-size: 3rem;
}

header .title_container h1 span {
	color: #ff4745;
}

header .title_container p {
	color: #fff;
	font-size: 1.8rem;
	margin-top: 20px;
}

header .title_container .header_description {
	color: #fff;
	font-size: 1rem;
	padding-top: 20px;
	line-height: 160%;
}

.header_snow_img {
	width: 200px;
}

/******** fondo estrellado ********/
#star-field {
    position: fixed; /* Fija el campo de estrellas en el viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite hacer clic en el contenido que esté debajo */
    z-index: -1; /* Lo envía detrás de todo el contenido de la web */
}

.star {
    position: absolute;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
}

@keyframes parpadeo {
    0%   { opacity: 0.1; transform: scale(0.9) rotate(var(--rot, 0deg)); }
    50%  { opacity: 1; transform: scale(1.1) rotate(var(--rot, 0deg)); }
    100% { opacity: 0.2; transform: scale(0.95) rotate(var(--rot, 0deg)); }
}

.star-img {
    width: 100%;
    height: 100%;
    display: block;
}

/******** calendario de adviento ********/
.adviento_category_container {
	margin: 0 auto;
	width: 90%;
	max-width: 1280px;
	margin-top: 60px;
}

.adviento_category_container h2 {
	color: #fff;
	font-family: "GraphikMedium";
	font-size: 1.8rem;
	margin-bottom: 20px;
}


.adviento_container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.adviento_item {
	height: 240px;
	border-radius: 20px;
	overflow: hidden;
}

.adviento_item .closed {
	width: 100%;
	height: 100%;
	background-color: #232C3E;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	padding: 0 30px 10px 30px;
}

.adviento_item .closed .closed_info_container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
}

.adviento_item .closed .closed_info_container .number {
	font-size: 3rem;
	font-family: "GraphikMedium";
	color: #fff;
}

.adviento_item .closed .closed_info_container .date {
	font-size: .9rem;
	color: #ff4745;
}

.adviento_item .closed .hole {
    width: 40px; 
    height: 80px; 
    position: absolute;
    top: 50%; 
    right: 0; /* <--- AJUSTADO: Lo movemos ligeramente hacia afuera a la derecha */
    transform: translateY(-50%); 
    overflow: hidden; 
    /* Asegúrate de que el z-index sea mayor que el contenido de la tarjeta si es necesario */
    /* z-index: 10; */
}

/* El pseudo-elemento que crea el CÍRCULO con el efecto de sombra/brillo */
.adviento_item .closed .hole::before {
    content: '';
    display: block;
    width: 80px; 
    height: 80px;
    
    /* <--- AJUSTADO: Mantenemos el círculo en el lado derecho del contenedor. */
    /* No necesitamos translateX, ya que lo estamos "anclando" a la izquierda de su propio contenedor */
    /* Si queremos que el círculo se alinee a la derecha de .dia-esquina */
    left: 0; 
    position: absolute; /* <--- Añadido: Para poder usar left: 0; */

    border-radius: 50%;
    
    background-color: #0e1825; /* Color similar al fondo de la tarjeta */
    
    /* --- EFECTO DE BRILLO/SOMBRA INTERNA (NEUMORFISMO) --- */
    /* Ajustamos las sombras para el nuevo "ángulo" de la luz */
    box-shadow: 
		/* Brillo claro ahora viene de la derecha */
		2px 0 0 rgba(255, 255, 255, 0.6) inset, 
        /* Sombra oscura ahora viene de la izquierda para dar profundidad */
        4px 0 8px rgba(0, 0, 0, 0.8) inset;
    
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

.adviento_item .today .today_cover {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 71, 69, 0.7);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.adviento_item .today .today_cover .new {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	padding: 6px 20px;
	background-color: #ff4745;
	border-radius: 10px;
}

.adviento_item .today .today_cover .new p {
	color: #fff;
	font-size: 0.75rem;
}

.adviento_item .today .today_cover .discover_text {
	color: #fff;
	font-size: 1.8rem;
	font-family: "GraphikMedium";
	max-width: 190px;
	text-align: center;
	line-height: 150%;
}

.today_star {
	position: absolute;
	opacity: 0;
}

.today_star_1 {
	width: 60px;
	top: 18px;
	right: 30px;
}

.today_star_2 {
	width: 42px;
	top: 60px;
	left: 40px;
}

.today_star_3 {
	width: 30px;
	bottom: 18px;
	left: 190px;
}

.adviento_item .open {
	height: 100%;
	overflow: hidden;
	box-shadow: 
        /* Sombra oscura interior sutil (simula el borde hundido) */
        0 6px 10px rgba(0, 0, 0, 0.7) inset,
        
        /* Opcional: Una luz blanca/clara interior para el relieve opuesto */
        0 0 10px rgba(255, 255, 255, 0.4) inset;
		background-color: #485D84;
	position: relative;
}

.adviento_item .open .open_default {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: absolute;
	padding: 30px 30px 10px 30px;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.adviento_item .open .open_default .modal_category {
	background-color: #6B82AE;
	display: flex;
	flex-direction: row;
	padding: 8px 10px;
	width: fit-content;
	border-radius: 10px;
	margin-bottom: 12px;
}

.adviento_item .open .open_default .modal_category p {
	color: #fff;
	font-size: .8rem;
}

.adviento_item .open .open_default .title {
	color: #ffffff;
	font-size: 1.4rem;
	line-height: 150%;
}

.adviento_item .open .open_info_container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
}

.adviento_item .open .open_info_container .number {
	font-size: 3rem;
	font-family: "GraphikMedium";
	color: #fff;
}

.adviento_item .open .open_info_container .date {
	font-size: .9rem;
	color: #ffffff;
}

.open_hover {
	background-color: #232C3E;
	width: 124px;
	position: absolute;
	width: 124px;

	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 50px;
	top: 0;
	bottom: 0;
	right: -124px;
	padding-bottom: 40px;
	padding-right: 30px;
}

.open_hover_snow {
	margin-right: 20px;
	opacity: 0;
}

.adviento_item .open .open_default {
	transition: all 150ms ease-in;
}

.adviento_item .open .open_hover {
	transition: all 150ms ease-in;
}

.adviento_item .open .open_hover .open_hover_snow {
	transition: all 150ms ease-in;
}


/******** footer ********/
footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 120px 0;
}

footer img {
	width: 110px;
}


/******** ventana modal ********/
.adviento-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.adviento-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.adviento-modal__content {
    position: relative;
    background: #fff;
	width: 95%;
	max-width: 1080px;
	height: 100%;
	max-height: 800px;
    overflow-y: auto;
    border-radius: 20px;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;

	overflow: visible;
}
.adviento-modal__close {
    position: absolute;
    top: 20px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
	background-color: #ff4745;
	color: #fff;
	width: 40px;
	height: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
	box-shadow: 0px 1.6px 3.2px 0px rgba(0, 0, 0, 0.25);
	z-index: inherit;
	transition: all 200ms ease-in;
}

.adviento-modal.is-visible {
    pointer-events: auto;
    opacity: 1;
}

.adviento-modal.is-visible .adviento-modal__overlay {
    opacity: 1;
}

.adviento-modal.is-visible .adviento-modal__content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.adviento-modal.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.adviento-modal.is-hiding .adviento-modal__overlay {
    opacity: 0;
    }

.adviento-modal.is-hiding .adviento-modal__content {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}

#adviento_modal_inner {
	height: 100%;
}

.adviento-modal-post {
	display: flex;
	flex-direction: row;
	position: relative;
	height: 100%;
}

.adviento-modal-post .left {
	align-self: stretch;
	background-color: #485D84;
	width: 60px;
	position: relative;
	padding: 20px 0 0 10px;
	border-radius: 20px 0 0 20px;
}

.modal_number {
	color: #fff;
	font-size: 3rem;
	font-family: "GraphikMedium";
}

.modal_snow {
	position: absolute;
	left: -50px;
	top: 250px;
	display: none;
}

.adviento-modal-post .right {
	align-self: stretch;
	width: calc(100% - 60px);
	padding: 20px 20px 10px 20px;
	overflow: auto;
}

.modal_category {
	background-color: #6B82AE;
	display: flex;
	flex-direction: row;
	padding: 8px 20px;
	width: fit-content;
	border-radius: 10px;
	margin-bottom: 34px;
}

.modal_category p {
	color: #fff;
	font-size: 1.1rem;
}

.modal_date {
	font-size: 1.1rem;
	margin-bottom: 10px;
}

.adviento-modal-title {
	font-size: 1.8rem;
	font-family: "GraphikMedium";
	color: #181f2c;
	line-height: 130%;
	margin-bottom: 20px;
}

.modal_description p {
	font-size: 1rem;
	line-height: 138%;
	color: #585858;
	margin-bottom: 30px;
}

.modal_description p a {
	color: #ff4745;
	text-decoration: underline;
	transition: all 200ms ease;
}

.modal_description ul {
	margin-bottom: 30px;
	list-style-type: disc;
	padding-left: 30px;
}


.modal_description ul li {
	font-size: 1rem;
	line-height: 138%;
	color: #585858;
	margin-bottom: 20px;
}

.modal_description ul li::marker {
	color: #ff4745;
}


.modal_description img {
	width: 100%;
	margin-bottom: 30px;
}

#modal_share_container {
	margin-bottom: 30px;
}

.modal_more_label {
	font-size: 0.8rem;
	color: #ff4745;
	margin-bottom: 10px;
}

.modal_relatedcontent_item {
	margin-bottom: 20px;
	display: block;
}

.modal_relatedcontent_item .modal_relatedcontent_title {
	color: #181f2c;
	font-family: "GraphikMedium";
	font-size: 1.1rem;
	margin-bottom: 4px;
	transition: all 200ms ease;
}

.modal_relatedcontent_item .modal_relatedcontent_author {
	font-size: 0.8rem;
	color: #585858;
	transition: all 200ms ease;
}

.modal_share_list {
	display: flex;
	flex-direction: row;
	gap: 10px;
}

.modal_share_item {
	background-color: #EDEDEE;
	border-radius: 4px;
	width: 32px;
	height: 32px;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

@media (min-width: 768px) {
	html {
		font-size: 14px;
	}

	/******** header ********/
	header {
		margin: 40px auto 60px auto;
	}

	header .title_container h1 {
		font-size: 3.6rem;
	}

	header .title_container .header_description {
		font-size: 1.2rem;
	}

	/******** calendario de adviento ********/
	.adviento_container {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 20px;
	}

	.adviento_item {
		width: calc(50% - 10px);
	}

	.adviento_item .open .open_default .title {
		font-size: 1.1rem;
		line-height: 150%;
	}

	/******** modal ********/
	.adviento-modal__close {
		top: 44px;
		right: 30px;
	}
	.adviento-modal-post .left {
		width: 250px;
		padding: 30px 0 0 40px;
	}

	.modal_number {
		font-size: 10rem;
	}

	.modal_snow {
		display: inherit;
	}

	.adviento-modal-post .right {
		width: calc(100% - 250px);
		padding: 40px 90px 10px 40px;
	}

	.modal_date {
		margin-bottom: 18px;
	}

	.adviento-modal-title {
		font-size: 2.2rem;
		margin-bottom: 34px;
	}

	.modal_description {
		margin-bottom: 44px;
	}

	#modal_share_container {
		margin-bottom: 44px;
	}
}

@media (min-width: 1024px) {
	html {
		font-size: 16px;
	}

	/******** header ********/
	header {
		margin: 60px auto 120px auto;
	}

	header .header_logo {
		width: 150px;
	}

	.header_snow_img {
		width: 310px;
	}

	/******** calendario de adviento ********/
	.adviento_category_container {
		margin-top: 140px;
	}

	.adviento_category_container h2 {
		margin-bottom: 40px;
	}

	.adviento_container {
		gap: 40px;
	}

	.adviento_item {
		width: calc((100% / 3) - (80px / 3));
		height: 270px;
	}
}

@media (min-width: 1280px) {
	/******** header ********/
	header .title_container {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}

	header .title_container h1 {
		white-space: nowrap; 
		flex-shrink: 1; 
		flex-grow: 0; 
		margin-right: 40px; /* Ejemplo de separación mínima */
	}

	header .title_container .header_description {
		padding-left: 120px;
		flex-grow: 1; 
		flex-shrink: 1; 
		flex-basis: auto; 
	}

	.adviento_item .today:hover .today_cover {
		opacity: 1;
		transition: all 200ms ease-in;
		background-color: rgba(255, 71, 69, 0.9);
	}

	.adviento_item .today:hover .today_cover .today_star {
		opacity: 1;
		transition: all 200ms ease-in;
	}

	.adviento_item .today:hover .today_cover .new,
	.adviento_item .today:hover .today_cover .discover_text {
		transform: scale(120%);
		transition: all 100ms ease-in;
	}
	
	.adviento_item .open:hover .open_default {
		left: -124px;
		right: 124px;
		transition: all 150ms ease-in;
	}

	.adviento_item .open:hover .open_hover {
		right: 0;
		transition: all 150ms ease-in;
	}

	.adviento_item .open:hover .open_hover .open_hover_snow {
		opacity: 1;
		transition: all 150ms ease-in;
	}
	
	.adviento-modal__close:hover {
		background-color: #B20200;
		transition: all 200ms ease-in;
	}

	.modal_description p a:hover {
		color: #B20200;
		transition: all 200ms ease;
	}
	
	.modal_relatedcontent_item:hover .modal_relatedcontent_title,
	.modal_relatedcontent_item:hover .modal_relatedcontent_author {
		color: #ff4745;
		transition: all 200ms ease;
	}

	.modal_share_item:hover {
		background-color: #ccc;
		transition: all 100ms linear;
	}
}
