* { 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;
}


.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;
}


section {
	padding: 6rem 1.5rem;
}

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


.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);}


#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 ---- */
#experience h2 {
	color: var(--mist);
}
#experience .linea_horizontal {
	background: var(--mist);
}

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

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

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

/* ---- FORMACIÓN ---- */
#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;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s var(--ease);
}

#boton_idioma:hover { 
	border-color: var(--brand); 
	color: var(--brand); 
}
#boton_3d {
	background: var(--brand);
	border: 1px solid var(--brand);
	border-radius: 999px;
	padding: 7px 16px;
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s var(--ease);
}

#boton_3d:hover {
	opacity: 0.85;
	transform: scale(1.03);
}



.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 ---- */
.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;
}


.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; }


/* ============================================================
   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;
}


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


#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; }


#experience article:nth-child(odd) {
	left: 0;
	padding-right: 3.5rem;
	text-align: left;
}


#experience article:nth-child(even) {
	left: 50%;
	padding-left: 3.5rem;
	text-align: left;
}


#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;
}


#experience article:nth-child(odd)::after { right: -12px; }

#experience article:nth-child(even)::after { left: -12px; }


#experience article > .izquierdo, 
#experience article > .central {
	position: relative;
	z-index: 1;
}


#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; }


#experience article:nth-child(odd)::before { left: 0; right: 3.5rem; }
#experience article:nth-child(even)::before { left: 3.5rem; right: 0; }


#experience article > .izquierdo { padding: 1.3rem 1rem 0; }
#experience article > .central { padding: 1rem 1.5rem 0.5rem; }


#experience article > .central::after {
	content: '';
	position: absolute;
	top: 7px;
	width: 0;
	height: 0;
	border: 11px solid transparent;
	z-index: 1;
}


#experience article:nth-child(odd) > .central::after {
	right: 1.5rem;
	margin-right: -44px;
	border-left-color: var(--mist);
}


#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);
}


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


.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);
}


.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;
}


.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;
	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;
	border: 2px solid var(--brand2);
	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;
	}

	.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;
	}


	#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;
	}


	#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;
	}

}
