* { box-sizing: border-box; margin: 0; padding: 0; }



:root {
	/* Marca */
	--brand:   #2563eb;
	--ink:     #0a0a0a;
	--paper:   #ffffff;
	--haze:    #64748b;
	--mist:    #f1f4f5;
	--brand2:  #0b072e;
	--background: #9ac2dd;

	/* Derivados */
	--brand-10: rgba(37, 100, 235, 0.2);
	--ink-05:  rgba(10, 10, 10, 0.05);
	--ink-10:  rgba(10, 10, 10, 0.10);
	--ink-60:  rgba(10, 10, 10, 0.60);
	--ink-80:  rgba(10, 10, 10, 0.80);
	--paper-10: rgba(255, 255, 255, 0.10);
	--paper-60: rgba(255, 255, 255, 0.60);

	/* Tipografía */
	--font-display: "Bebas Neue", sans-serif;
	--font-sans:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono:    "JetBrains Mono", monospace;

	/* Movimiento */
	--ease-expo: cubic-bezier(.19, 1, .22, 1);
	--ease:      cubic-bezier(.4, 0, .2, 1);
}




















/* ============================================================
   BASE
   ============================================================ */
html { scroll-behavior: smooth; }

body {
	font-family: var(--font-sans);
	color: var(--ink);
	background: var(--mist);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

ul { list-style: none; }
a  { color: inherit; text-decoration: none; }

/* ============================================================
   FOCO POR TECLADO — accesibilidad
   ============================================================ */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Si el enlace interior de una tarjeta recibe foco, resaltamos toda la tarjeta */
.tarjeta_proyectos:focus-within {
	outline: 2px solid var(--brand);
	outline-offset: 4px;
	border-radius: 25px;
}

.body80 {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	margin: 0;
	gap: 0;
}

/* Ancho de contenido por sección */
section {
	padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
	section { padding: 8rem 1.5rem; }
}

/* Contenedor interno centrado (lo aplicamos via wrappers internos) */
.hero,
#experience,
.seccion_experiencia,
#projects > div,
#stack > div,
#education,
.seccion_sobremi {
	max-width: 80rem;
	margin: 0 auto;
	width: 100%;
}

/* Fondos alternos*/
#experience	{ background: var(--brand2); }
#projects 	{ background: var(--brand2); }
#stack	{background: var(--background);}


/* Las secciones con fondo oscuro necesitan padding interno coherente */
#experience,
.seccion_sobremi,
#stack {
	max-width: none;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

#experience .seccion_experiencia,
.seccion_sobremi > *,
#stack > div {
	max-width: 80rem;
	margin: 0 auto;
}























/* ============================================================
   TÍTULOS DE SECCIÓN
   ============================================================ */
h2 {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}

.titulo_seccion {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 4rem;
}

.linea_horizontal {
	flex: 1;
	height: 4px;
	background: var(--brand2);
}

section { scroll-margin-top: 80px; }




/* ---- EXPERIENCIA (fondo oscuro) ---- */
#experience h2 {
	color: var(--mist);
}
#experience .linea_horizontal {
	background: var(--mist);
}

/* ---- SOBRE MÍ (fondo claro/mist) ---- */
.seccion_sobremi h2 {
	color: var(--brand2);
}
.seccion_sobremi .linea_horizontal {
	background: var(--brand);
}

/* ---- PROYECTOS (fondo claro) ---- */
#projects h2 {
	color: var(--mist);
}
#projects .linea_horizontal {
	background: var(--mist);
}

/* ---- NORMAS Y TECNOLOGÍAS (fondo oscuro) ---- */
#stack h2 {
	color: var(--brand2);
}
#stack .linea_horizontal {
	background: var(--brand);
}

/* ---- FORMACIÓN (fondo claro) ---- */
#education h2 {
	color: var(--brand2);
}
#education .linea_horizontal {
	background: var(--brand);
}
































/* ============================================================
   NAV
   ============================================================ */
nav {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 1.5rem;
	background: var(--paper-60);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--brand-10);
}

.nav_inner { display: flex; align-items: center; margin: 0; }

.nav_back .dmp_texto {
	font-family: var(--font-display);
	font-size: 1.6rem;
	letter-spacing: 0.05em;
	color: var(--brand2);
}

.boton_idioma_container { display: flex; align-items: center; margin: 0; }

#boton_idioma {
	background: transparent;
	border: 1px solid var(--ink-60);
	border-radius: 999px;
	padding: 7px 16px;
	color: var(--haze);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s var(--ease);
}

#boton_idioma:hover { border-color: var(--brand); color: var(--brand); }


/* ---- Accesos rápidos a las secciones ---- */
.nav_acciones {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.nav_enlaces {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	margin: 0 auto;
	list-style: none;
}

.nav_enlaces li { display: block; }

.nav_enlaces a {
	position: relative;
	display: block;
	padding: 4px 0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--haze);
	white-space: nowrap;
	transition: color 0.2s var(--ease);
}

.nav_enlaces a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--brand);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease);
}

.nav_enlaces a:hover { color: var(--brand); }
.nav_enlaces a:hover::after { transform: scaleX(1); }

/* ---- Botón hamburguesa (solo en pantallas estrechas) ---- */
.nav_hamburguesa {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}

.nav_hamburguesa span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: var(--brand2);
	border-radius: 2px;
	transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav_hamburguesa.abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav_hamburguesa.abierto span:nth-child(2) { opacity: 0; }
.nav_hamburguesa.abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav_hamburguesa { display: flex; }

	.nav_enlaces {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 0.25rem 1.5rem 0.75rem;
		background: var(--paper);
		border-bottom: 1px solid var(--brand-10);
		box-shadow: 0 12px 24px rgba(10, 10, 10, 0.10);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
	}

	.nav_enlaces.abierto {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav_enlaces a {
		padding: 0.9rem 0;
		font-size: 0.8rem;
		border-bottom: 1px solid var(--brand-10);
	}

	.nav_enlaces li:last-child a { border-bottom: none; }

	.nav_enlaces a::after { display: none; }
}


























/* ============================================================
   BOTÓN ARRIBA
   ============================================================ */
#boton_arriba {
	position: fixed;
	bottom: 26px; right: 26px;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--brand);
	border: none;
	cursor: pointer;
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s, transform 0.2s ease;
	z-index: 40;
	display: flex; align-items: center; justify-content: center;
}

#boton_arriba img { width: 18px; transform: rotate(-90deg); }
#boton_arriba.visible { opacity: 0.7; visibility: visible; }
#boton_arriba:hover { transform: translateY(-3px); opacity: 1;}




























/* ============================================================
   HERO
   ============================================================ */
.hero {
	padding-top: 3rem;
	padding-bottom: 5rem;
}

@media (min-width: 768px) {
	.hero { 
		padding-top: 3rem; 
		padding-bottom: 7rem; 
	}
}

.seccion_grid { display: block; margin: 0; }

.columna_izquierda {
	display: block;
	width: 100%;
	align-items: stretch;
}


.bienvenida {
	display: block;
	font-family: var(--font-mono);
	font-size: clamp(0.7rem, 1vw, 0.875rem);
	color: var(--brand);
	text-transform: uppercase;
	letter-spacing: 0.3em;
	margin-bottom: 2rem;
}


/* El h1 envuelve las tres líneas del nombre: neutralizamos su estilo
   por defecto para que no altere el diseño existente */
.nombre_completo {
	margin: 0;
	font-size: 1em;
	font-weight: 400;
	line-height: inherit;
}

.nombre, .apellido {
	font-family: var(--font-display);
	font-size: clamp(4rem, 15vw, 13rem);
	font-weight: 400;
	line-height: 0.82;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: var(--brand);
	display: flex;
	align-items: baseline;
	margin: 0;
}

.nombre  { opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s var(--ease-expo) 0.05s forwards; }
.apellido1 { opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s var(--ease-expo) 0.15s forwards; }
.apellido2 { opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s var(--ease-expo) 0.25s forwards; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }



.dmp-initial { color: var(--brand2); }


.rol_container {
	margin-top: 5rem;
	display: block;
	max-width: 70rem;
	border: none;
}

.rol {
	font-size: clamp(1.3rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--brand);
	margin: 0;
}

.rol + .rol { color: var(--brand2); margin-top: 0.3rem; }



























/* ============================================================
   REPRODUCTOR
   ============================================================ */
.reproductor_aside {
	margin-top: 3rem;
	width: 100%;
	max-width: 440px;
	display: block;
	justify-self: center;
}

.reproductor {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	background: var(--paper);
	border: 1px solid var(--brand);
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: 1px 1px 1px 1px var(--brand-10);
}


.reproductor_btn {
	background: var(--brand);
	color: var(--paper);
	border: none;
	border-radius: 50%;
	width: 44px; height: 44px;
	font-size: 1rem;
	cursor: pointer;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	transition: transform 0.2s ease, opacity 0.2s ease;
	opacity: 0.9;
	box-shadow: 1px 1px 1px 1px var(--brand-10);
}

.reproductor_btn:hover { 
	transform: scale(1.03); 
	opacity: 1;
}

.reproductor_info { display: flex; flex-direction: column; gap: 9px; flex: 1; }

.reproductor_titulo {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--haze);
	text-align: left;
}

.reproductor_barra_container {
	width: 100%; height: 5px;
	background: var(--ink-10);
	border-radius: 999px;
	cursor: pointer;
	position: relative;
}

.reproductor_barra_progreso {
	height: 100%; width: 0%;
	background: var(--brand);
	border-radius: 999px;
	transition: width 0.1s linear;
}

.reproductor_tiempos {
	display: flex; justify-content: space-between;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--haze);
}

.nota_cancion {
	display: flex;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	margin: 0.5rem 0 0 0;
	color: var(--haze);
	letter-spacing: 0.05em;
	justify-content: center;
}























/* ============================================================
   BOTONES CV / PROYECTOS
   ============================================================ */
.boton_descargar_container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5rem;
	margin-top: 5rem;
}

.boton_descargar, .boton_proyectos {
	font-family: var(--font-sans);
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	padding: 1rem 1rem;
	border-radius:  10px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-shadow: 1px 1px 1px 1px var(--brand-10);
	transition: all 0.2s var(--ease);
}


.boton_descargar {
	border: 1px solid var(--brand);
	color: var(--brand);
	background-color: var(--paper);
	max-height: 40px;
	opacity: 0.9; 
}


.boton_proyectos {
	border: 1px solid var(--brand);
	background: var(--brand);
	color: var(--paper);
	max-height: 40px;
	opacity: 0.9; 
}

.boton_proyectos:hover, .boton_descargar:hover { 
	transform: scale(1.02); 
	opacity: 1; 
}

.imagen_cv { height: 50px; width: auto; }
.imagen_descarga, .imagen_irProyectos { height: 11px; width: auto; }
.boton_descargar .imagen_descarga { filter: invert(1) brightness(2); }

























/* ============================================================
   EXPERIENCIA 
   ============================================================ */
.lista_experiencia {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1rem 0;
}

/* Línea vertical central */
.lista_experiencia::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 3px;
	background: var(--brand);
	border-radius: 999px;
}

/* ---- Cada entrada (article) ---- */
#experience article {
	position: relative;
	display: block;
	width: 50%;
	padding: 0 0 3rem 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

#experience article:last-child { padding-bottom: 0; }

/* Impares → lado IZQUIERDO */
#experience article:nth-child(odd) {
	left: 0;
	padding-right: 3.5rem;
	text-align: left;
}

/* Pares → lado DERECHO */
#experience article:nth-child(even) {
	left: 50%;
	padding-left: 3.5rem;
	text-align: left;
}

/* ---- Icono/punto sobre la línea ---- */
#experience article::after {
	content: '';
	position: absolute;
	top: 50px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--brand2);
	border: 3px solid var(--brand);
	z-index: 2;
}

/* Punto a la derecha del bloque izquierdo */
#experience article:nth-child(odd)::after { right: -12px; }
/* Punto a la izquierda del bloque derecho */
#experience article:nth-child(even)::after { left: -12px; }

/* ---- Tarjeta: el contenido vive en un recuadro ----
   El HTML tiene .izquierdo (año) y .central (resto) como hijos
   directos del article. Envolvemos ambos en un único recuadro
   aplicando el fondo a una "caja" sobre el área de padding del
   #seccion_experiencia article mediante un pseudo-elemento de fondo. */
#experience article > .izquierdo, 
#experience article > .central {
	position: relative;
	z-index: 1;
}

/* Caja de fondo de la tarjeta (un solo recuadro continuo) */
#experience article::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 2rem;    
	background: var(--mist);
	border: 1px solid var(--brand);
	border-radius: 16px;
	z-index: 0;
}

#experience article:last-child::before { bottom: 0; }

/* La caja ocupa el lado correspondiente, dejando hueco al centro */
#experience article:nth-child(odd)::before { left: 0; right: 3.5rem; }
#experience article:nth-child(even)::before { left: 3.5rem; right: 0; }

/* Padding interno del contenido (sobre la caja) */
#experience article > .izquierdo { padding: 1.3rem 1rem 0; }
#experience article > .central { padding: 1rem 1.5rem 0.5rem; }




/* ---- Pico/flecha que apunta a la línea (sobre article::before) ---- */
#experience article > .central::after {
	content: '';
	position: absolute;
	top: 7px;
	width: 0;
	height: 0;
	border: 11px solid transparent;
	z-index: 1;
}

/* Pico del bloque izquierdo → apunta a la derecha */
#experience article:nth-child(odd) > .central::after {
	right: 1.5rem;
	margin-right: -44px;
	border-left-color: var(--mist);
}

/* Pico del bloque derecho → apunta a la izquierda */
#experience article:nth-child(even) > .central::after {
	left: 1.5rem;
	margin-left: -44px;
	border-right-color: var(--mist);
}


#experience article > .izquierdo,
#experience article > .central,
#experience article::before {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#experience article:hover > .izquierdo,
#experience article:hover > .central,
#experience article:hover::before {
	transform: translateY(-4px);
}

#experience article:hover::before {
	box-shadow: 0 14px 32px rgba(37, 100, 235, 0.35);
}






/* ---- Año (.izquierdo) ---- */
.izquierdo span {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--brand);
}

/* ---- Título empresa + rol ---- */
.central_titulo { margin-bottom: 1rem; }
.central_titulo br { display: none; }

.empresa {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 2.5vw, 2.4rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--brand2);
	margin-bottom: 0.4rem;
}

.central_titulo > span > span:last-child {
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--brand);
}

/* ---- Tareas ---- */
.derecho > ul {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 1rem;
}

.derecho > ul > li {
	display: flex;
	align-items: flex-start;
	line-height: 1.5;
	color: var(--ink);
}

.derecho > ul > li::before {
	content: '+';
	margin-right: 10px;
	color: var(--brand);
	flex-shrink: 0;
}

/* ---- Etiquetas / normas ---- */
.etiqueta_container, .etiqueta_container_aidimme {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.etiqueta {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-60);
	border-radius: 5px;
	padding: 4px 11px;
	white-space: nowrap;
	background-color: var(--paper);
	box-shadow: 1px 1px 1px 1px var(--brand-10);
}






.exp_detalle {
	display: grid;
	grid-template-rows: 1fr;
}

.exp_detalle_inner {
	overflow: hidden;
}



.exp_ver_mas {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brand);
	opacity: 0.85;
	transition: opacity 0.25s ease;
}

.exp_detalle {
	grid-template-rows: 0fr; /* escritorio: colapsado por defecto */
	transition: grid-template-rows 0.4s ease;
}

#experience article:hover .exp_detalle,
#experience article:focus-within .exp_detalle {
	grid-template-rows: 1fr;
}

#experience article:hover .exp_ver_mas,
#experience article:focus-within .exp_ver_mas {
	opacity: 0;
}






































/* ============================================================
   SOBRE MÍ
   ============================================================ */
.seccion_sobremi {
	display: flex;
	flex-direction: column;
	align-items: flex-start; 
	max-width: 80rem; 
	margin: 0 auto; 
	width: 100%;
}


.seccion_sobremi .titulo_seccion {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	width: 100%;  
	margin-bottom: 4rem;
}

.sobremi_parrafo_contenedor {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
	margin-bottom: 2.5rem;
	width: 100%;  
}

.sobremi_izquierda {
	flex-shrink: 0;
	width: 64px;
	display: flex;
	justify-content: center;
	padding-top: 4px;
}

.imagen_sobremi {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.sobremi_derecha {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border: none;
	padding-left: 1rem;
	border-left: 3px solid var(--brand);
}

.texto_sobremi {
	margin: 0;
	color: var(--ink-80);
}

.texto_sobremi strong {
	color: var(--brand);
	font-weight: 700;
}


























/* ============================================================
   PROYECTOS
   ============================================================ */
 
.project_grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 30px;
	align-items: stretch;
}
 
 
 
.tarjeta_proyectos{
	background: var(--mist);
	border-radius: 25px;
	padding: 20px;
	box-shadow: var(--ink-60) 0px 0px 5px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	transition: all 0.5s ease;
	box-sizing: border-box;
 
}
 

 
.tarj_imagen_container{
	height: auto;
	position: relative;
}
 
.tarj_imagen{
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: var(--ink-60) 0px 0px 5px;
	transition: transform 0.5s ease;
}


.tarj_caption_overlay { 
	display: none; 
}
 
@keyframes llamarAtencion {
    0%, 30%, 50%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
    10% {
    transform: scale(1.03);
  }
      20% {
    transform: scale(1);
  }
    30% {
    transform: scale(1.01);
  }
      80% {
    transform: scale(1);
  }
}
 
.tarj_ver_proyecto {
	position: absolute;
	bottom: 20px;
	right: 20px;
	box-shadow: black 0px 0px 20px;
	padding: 10px 15px;
	border-radius: 9999px;
	animation: llamarAtencion 2s ease-in-out 1s infinite;
}
 
.tarj_ver_proyecto img {
	height: 30px;
	width: auto;
	align-self: center;
}
 
 
.tarj_grid_tecnologias{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1rem;
	transition: all 0.5s ease;
}

.tarj_grid_tecnologias a {
	display: flex;
	align-items: center;
}
 
.tarj_tecnologias{
	display:flex;
	justify-content: center;
	align-items: center;
}
 
.tecnologia_imagen {
	width: auto;
	height: 22px;
}

 
 
.proyecto_titulo {
	color: var(--brand);
	font-weight: bold;
	font-size: 1.5rem;
	margin-top: 0.7rem;
	transform-origin: left center;
	transition: color 0.3s ease, transform 0.3s ease, margin-top 0.3s ease;
}
 
.proyecto_descripcion {
	color: var(--ink-80);
	margin: 10px 0px 10px 0px;
	font-size: 0.8rem;
	transition: all 0.5s ease;
}


@media (hover: hover) and (pointer: fine) {

	.tarj_imagen_container {
		overflow: hidden;
		border-radius: 20px; /* mismo radio que .tarj_imagen, para que el overlay recorte igual */
	}

	.tarj_caption_overlay {
		display: flex;
		align-items: flex-end;
		position: absolute;
		inset: 0;
		padding: 1.25rem;
		background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.35) 55%, transparent 100%);
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 0.35s ease, transform 0.35s ease;
		pointer-events: none;
	}

	.tarj_caption_text {
		color: var(--paper);
		font-size: 0.92rem;
		line-height: 1.45;
		font-weight: 500;
		margin: 0;
	}

	.tarjeta_proyectos:hover .tarj_imagen,
	.tarjeta_proyectos:focus-within .tarj_imagen {
		transform: scale(1.08);
	}

	.tarjeta_proyectos:hover .tarj_caption_overlay,
	.tarjeta_proyectos:focus-within .tarj_caption_overlay {
		opacity: 1;
		transform: translateY(0);
	}

	.tarjeta_proyectos:hover {
		transform: scale(1.05);
		padding-top: 15px;
	}

	.tarjeta_proyectos:hover .proyecto_titulo {
		transform: scale(1.18);
		margin-top: 0rem;
	}

	.tarjeta_proyectos:hover .proyecto_descripcion {
		color: var(--brand2);
	}
}



















/* ============================================================
   NORMAS Y TECNOLOGÍAS
   ============================================================ */
.standard_grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	align-items: stretch;
}

.tarjeta_normtec {
	background: var(--mist);
	border: 1px solid var(--brand);
	color: var(--brand);
	border-radius: 20px;
	padding: 2rem;
	width: 100%;
	height: 100%;
	box-shadow: 1px 1px 1px 1px var(--brand-10);
}

.tarjeta_normtec > p {
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: left;
	color: var(--brand);
	margin-bottom: 1.5rem;
	border-bottom: 3px solid var(--brand);
	display: inline-block;
}

.tarjeta_normtec > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tarjeta_normtec > ul > li {
	justify-content: center;
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	color: var(--brand2);
	border-radius: 10px;
	padding: 6px 13px;
	box-shadow: 1px 1px 1px 1px var(--brand-10);
}

























/* ============================================================
   FORMACIÓN
   ============================================================ */
#education { 
	display: flex; 
	flex-direction: column; 
}

.tarj_formacion {
	grid-template-columns: 200px 1fr auto;
	align-items: baseline;
	display: grid;
	gap: 0.4rem 3rem;
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--brand);
	border-radius: 0;
	padding: 2rem 0;
	margin: 0;
}

.tarj_formacion:last-child { 
	border-bottom: none; 
}

.tarj_formacion > p { 
	margin: 0; 
}

.formacion_fecha {
	font-family: var(--font-mono);
	color: var(--brand);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	font-weight: bold;
}

.formacion_nombre {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--brand2);
}

.formacion_grado, .formacion_institucion { 
	color: var(--haze); 
	font-size: 0.95rem; 
}























































/* ============================================================
   FOOTER
   ============================================================ */
footer { 
	padding-top: 2rem;
  	background: var(--brand2);
  	color: var(--paper); 
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr; 
	gap: 2.5rem;
	justify-items: center;
	text-align: center;
}

.footer-heading { 
	font-weight: bold; 
	color: var(--paper); 
	margin-bottom: 0.75rem; 
}

.social { 
	display: flex; 
	gap: 0.75rem; 
}

.social-a {
	display: grid; 
	place-items: center; 
  	height: 2rem; width: 2rem;
	background: var(--mist);
	border-radius: 10px;
	opacity: 0.9;
	transition: all 0.2s ease;
}

.social-img {
	width: 25px;
	height: auto;
}

.social-a:hover {
	transform: scale(1.05);
	opacity: 1;
}

.footer-tagline-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.footer-tagline { 
	font-family: var(--font-display);
	font-size: 6rem; 
	color: var(--brand);
	opacity: 0.1;
}

.footer-hide {
	color: var(--brand2);
	font-size: 0.9rem;
	transition: all 1s ease;
}

.footer-tagline-container:hover .footer-hide {
	color: var(--mist);
}



.footer-links { 
	display: flex; 
	flex-direction: column; 
	gap: 0.5rem;
	font-size: 0.9rem; 
}

.footer-links a:hover { 
	color: var(--background); 
}





.footer-bottom {
	display: flex;
	margin-top: 1.5rem;
	height: 40px;
	border-top: 1px solid var(--haze);
	font-size: 0.75rem;
	justify-content: center;
	align-items: center;
}

.footer-copyright {
	font-family: var(--font-display);
	color: var(--haze);
}





























































/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.project_grid { grid-template-columns: repeat(2, 1fr); }

}



@media (max-width: 767px) {
	section { padding: 4rem 1.25rem; }

	#boton_arriba { display: none; }

	.nombre, .apellido { font-size: clamp(3.5rem, 20vw, 7rem); }

	.titulo_seccion { margin-bottom: 2.5rem; }

	/* Experiencia: una columna */
	#experience article { grid-template-columns: 1fr; gap: 1rem; }

	.rol_container {
		margin-top: 2rem;
	}

	.boton_descargar_container { 
		margin-top: 2rem;
		justify-self: center;
		gap: 2rem;
	}

	.boton_descargar, .boton_proyectos { 
		justify-content: center;
	}

	.project_grid { grid-template-columns: 1fr; }
	.standard_grid { grid-template-columns: 1fr; }

	.sobremi_parrafo_contenedor { gap: 1.25rem; }
	.sobremi_izquierda { width: 48px; }
	.imagen_sobremi { width: 42px; height: 42px; }

	.tarj_formacion { grid-template-columns: 1fr; }

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-tagline-container {
		display: none;
	}

	.lista_experiencia::before {
		left: 9px;
		transform: none;
		margin-left: 1rem;
	}

	#experience article, 
	#experience article:nth-child(odd), 
	#experience article:nth-child(even) {
		margin-left: 1rem;
		width: 90%;
		left: 0;
		padding: 0 0 2.5rem 2.5rem;
		text-align: left;
	}

	/* Pico del bloque izquierdo → apunta a la derecha */
	#experience article:nth-child(odd) > .central::after {
		left: 1.5rem;
		margin-left: -44px;
		transform: rotate(180deg);
	}

	#experience article:nth-child(odd)::after, 
	#experience article:nth-child(even)::after {
		left: -1px;
		right: auto;
	}

	/* La caja de fondo ocupa todo el ancho en móvil */
	#experience article:nth-child(odd)::before, 
	#experience article:nth-child(even)::before {
		left: 2.5rem;
		right: 0;
	}


}






@media (max-width: 550px) {


	.footer-grid {
		grid-template-columns: 1fr;
	}

}



/* ============================================================
   PÁGINAS DE PROYECTO
   ============================================================ */

/* ---- Ajustes sobre la base de la página principal ---- */
.proyecto {
	background: var(--background);
	min-height: 100vh;
}

.proyecto li { display: flex; align-items: center; }

.proyecto .nav_back { display: flex; align-items: center; }

.proyecto section {
	padding: 0;
	margin-bottom: 5rem;
}

.proyecto .body80 {
	max-width: 70rem;
	width: 88%;
	margin: 0 auto;
	padding-top: 1rem;
	position: relative;
	z-index: 1;
}

.proyecto h2 {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	color: var(--brand2);
	white-space: nowrap;
}

.proyecto .titulo_seccion { margin-bottom: 2.5rem; }

.btn-try-app {
	font-size: 0.8rem;
	text-align: center;
	padding: 1rem 1rem;
	border-radius: 16px;
	background: var(--brand2);
	color: var(--paper);
	transition: all 0.2s ease;
}

.btn-try-app:hover {
	opacity: 0.9;
	transform: scale(1.01);
}


.proyecto .linea_horizontal { background: var(--brand); }

.proyecto .etiqueta {
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--haze);
	border-radius: 10px;
	padding: 5px 13px;
	white-space: normal;
	background: var(--mist);
}

.proyecto .footer-links li { justify-content: center; }

/* ---- Hero del proyecto ---- */
.proyecto .hero_section {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	margin-bottom: 4rem;
}

.proyecto .project_screenshot {
	width: 22%;
	max-width: 240px;
	min-width: 130px;
	height: auto;
}

.proyecto .hero {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.proyecto .hero span {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--brand);
	order: -1;
}

.proyecto .hero_titulo {
	margin: 0; /* normalize da margen propio a los h1 */
	font-family: var(--font-display);
	font-size: clamp(3rem, 7vw, 6.5rem);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--brand2);
}

.proyecto .hero_subtitulo {
	font-size: clamp(1rem, 1.2vw, 1.3rem);
	font-weight: 500;
	color: var(--ink-60);
	border-left: 3px solid var(--brand);
	padding-left: 16px;
}

/* ---- Info del proyecto ---- */
.proyecto .info_grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.proyecto .info_card {
	background: var(--paper);
	border: 1px solid var(--brand-10);
	border-radius: 20px;
	padding: 2rem;
	color: var(--ink-80);
	box-shadow: 1px 1px 1px 1px var(--brand-10);
}

.proyecto .info_card p {
	margin-bottom: 1.1rem;
	line-height: 1.7;
	font-size: 0.98rem;
}

.proyecto .info_card p:last-of-type { margin-bottom: 0; }

.proyecto .info_card p strong {
	color: var(--brand);
	font-weight: 700;
}

.proyecto .tech_grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 1.5rem;
}

/* ---- Aside: volver / siguiente proyecto ---- */
.proyecto aside {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.proyecto .volver_pag_principal { display: flex; }

.proyecto .boton_volver_pag_princial {
	display: flex;
	align-items: center;
	gap: 12px;
	opacity: 0.7;
	transition: all 0.2s var(--ease);
}

.proyecto .volver_pag_principal_imagen {
	transform: rotate(90deg);
	width: 16px;
	filter: invert(1);
}

.proyecto .volver_pag_principal_texto {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--haze);
}

.proyecto .boton_volver_pag_princial:hover { opacity: 1; }

.proyecto .boton_volver_pag_princial:hover .volver_pag_principal_texto {
	color: var(--brand);
}

.proyecto .siguiente_proyecto_container {
	display: flex;
	justify-content: flex-end;
}

.proyecto .boton_siguiente_proyecto {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1rem;
	border-radius: 16px;
	background: var(--brand2);
	color: var(--paper);
	transition: all 0.2s ease;
}

.proyecto .boton_siguiente_proyecto:hover {
	opacity: 0.9;
	transform: scale(1.01);
}

.proyecto .siguiente_proyecto_texto {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.proyecto .siguiente_label {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	color: var(--paper-60);
}

.proyecto .siguiente_nombre {
	font-family: var(--font-display);
	font-size: 2rem;
	line-height: 1;
}

.proyecto .siguiente_arrow {
	height: 16px;
	width: auto;
}









/* ============================================================
   UNITY
   ============================================================ */
.unity_section {
	display: flex;
	flex-direction: column;
	position: relative;
}

.unity_wrapper {
	background: var(--paper);
	border: 2px solid var(--brand2);
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 1px 1px 1px 1px var(--brand-10);
}

#unity-fullscreen-button {
	margin-left: auto; /* lo alinea a la derecha tanto si la sección es flex como si es block */
	margin-bottom: 5px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.6;
	transition: opacity 0.2s;
	border-radius: 8px;
}

#unity-fullscreen-button:hover { 
	opacity: 1; 
}

.unity_canvas_container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	background: var(--brand2);
}

#unity-container {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

#unity-canvas {
	width: 100% !important;
	height: 100% !important;
	background: var(--brand2);
	display: block;
}

#unity-loading-bar {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	display: none;
	text-align: center;
}

#unity-logo {
	width: 154px; height: 130px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	margin: 0 auto;
	filter: invert(1);
}

#unity-progress-bar-empty {
	width: 141px; height: 18px;
	margin-top: 10px;
	margin-left: 6.5px;
	background-repeat: no-repeat;
	background-position: center;
}

#unity-progress-bar-full {
	width: 0%; height: 18px;
	background-repeat: no-repeat;
	background-position: center;
}

#unity-warning {
	position: absolute;
	left: 50%; top: 5%;
	transform: translate(-50%);
	background: var(--paper);
	color: var(--ink);
	padding: 10px;
	display: none;
	z-index: 10;
	border-radius: 8px;
}

.unity-note {
	margin-top: 0.75rem;
	font-family: var(--font-mono);
	font-size: clamp(0.72rem, 0.5vw, 0.85rem);
	color: var(--haze);
}


.siguiente_label { text-transform: uppercase; }

@media (max-width: 1024px) {
  .hero_section {
    padding-top: 0;
  }
}





















/* ---- Responsive de las subpáginas ---- */
@media (max-width: 600px) {

	.proyecto .body80 { width: 90%; }

	.proyecto .hero_section {
		display: block;
		align-items: center;
	}

	.proyecto .project_screenshot { display: none; }

	.proyecto .hero { margin: 0.5rem 0; }

	.proyecto h2 { white-space: normal; }

	.proyecto .info_grid { grid-template-columns: 1fr; }


	/* El hero pasa a bloque: el botón se centra ajustándose a su
	   texto (fit-content) y repartiendo el margen sobrante */
	.btn-try-app {
		display: block;
		width: fit-content;
		margin: 2rem auto 0;
	}
}
