/* ==========================================================================
   Variables CSS — Idiomas PUCP Design System
   ========================================================================== */

:root {
	/* --- Primary - Blue --- */
	--blue-50: #E6F5FE;
	--blue-100: #B2DFFD;
	--blue-200: #8DD0FC;
	--blue-300: #59BAFB;
	--blue-400: #39ADFA;
	--blue-500: #0798F9;
	--blue-600: #068AE3;
	--blue-700: #056CB1;
	--blue-800: #045489;
	--blue-900: #034069;

	/* --- Basic - Gray --- */
	--gray-50: #ECECEC;
	--gray-75: #B2B2B2;
	--gray-100: #939393;
	--gray-200: #646464;
	--gray-300: #444444;
	--gray-400: #303030;
	--gray-500: #292929;

	/* --- Auxiliar - Orange --- */
	--orange-50: #FFF5EA;
	--orange-100: #FFDFBD;
	--orange-200: #FFD09D;
	--orange-300: #FFB870;
	--orange-400: #FFAD54;
	--orange-500: #FF9929;
	--orange-600: #E88B25;

	/* --- Auxiliar - Green --- */
	--green-50: #EFF8E6;
	--green-100: #CDEAB0;
	--green-200: #B4DF8A;
	--green-300: #92D154;
	--green-400: #7DC833;
	--green-500: #5DBA00;
	--green-600: #55A900;

	/* --- Auxiliar - Magenta --- */
	--magenta-50: #F8E9F2;
	--magenta-100: #E9BAD7;
	--magenta-200: #DF98C4;
	--magenta-300: #D06AA9;
	--magenta-400: #C74D99;
	--magenta-500: #B9207F;
	--magenta-600: #A81D74;

	/* --- Auxiliar - Dark Blue --- */
	--dark-blue-400: #355C8B;
	--dark-blue-500: #03336A;

	/* --- Auxiliar - Blue (Cyan) --- */
	--cyan-500: #21C9F6;
	--cyan-600: #0D309B;

	/* --- Gradients --- */
	--gradient-primary: linear-gradient(45deg, #3F55DE, #33A3ED);
	--gradient-dark: linear-gradient(45deg, #000, #000);
	--gradient-bg-light: #F4F7FF;

	/* --- Basic - System --- */
	--black: #000000;
	--white: #FFFFFF;

	/* --- Semantic Colors --- */
	--error: #E40923;
	--success: #00CA6B;
	--info: #1399FF;
	--warning: #FCBC3C;

	/* --- Border Radius --- */
	--radius-0: 0px;
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-big: 36px;
	--radius-full: 100%;

	/* --- Typography --- */
	--font-primary: 'TT Norms Pro', sans-serif;
	--font-mono: 'TT Norms Pro Mono', monospace;

	/* --- Spacing (base 8px) --- */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-7: 32px;
	--space-8: 40px;
	--space-9: 48px;
	--space-10: 56px;
	--space-11: 64px;
	--space-12: 80px;
	--space-13: 96px;
	--space-14: 120px;

	/* --- Container --- */
	--container-max: 1200px;
	--container-padding: 20px;
}

/* ==========================================================================
   Font Face
   ========================================================================== */

@font-face {
	font-family: 'TT Norms Pro';
	src: url('../fonts/TTNormsPro-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TT Norms Pro';
	src: url('../fonts/TTNormsPro-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TT Norms Pro';
	src: url('../fonts/TTNormsPro-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TT Norms Pro';
	src: url('../fonts/TTNormsPro-Italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'TT Norms Pro';
	src: url('../fonts/TTNormsPro-BoldItalic.woff2') format('woff2');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--gray-400);
	background-color: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--blue-500);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--blue-700);
}

ul,
ol {
	list-style: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

/* ==========================================================================
   Typography — Mobile First (base = mobile)
   ========================================================================== */

h1 {
	font-size: 2rem;       /* 32pt */
	line-height: 1.25;     /* 40px */
}

h2 {
	font-size: 1.75rem;    /* 28pt */
	line-height: 1.286;    /* 36px */
}

h3 {
	font-size: 1.5rem;     /* 24pt */
	line-height: 1.333;    /* 32px */
}

h4 {
	font-size: 1.25rem;    /* 20pt */
	line-height: 1.4;      /* 28px */
}

h1, h2, h3, h4 {
	font-weight: 700;
	color: var(--gray-500);
}

/* Desktop typography */
@media (min-width: 1024px) {
	h1 {
		font-size: 2.5rem;     /* 40pt */
		line-height: 1.2;      /* 48px */
	}

	h2 {
		font-size: 2rem;       /* 32pt */
		line-height: 1.25;     /* 40px */
	}

	h3 {
		font-size: 1.75rem;    /* 28pt */
		line-height: 1.286;    /* 36px */
	}

	h4 {
		font-size: 1.25rem;    /* 20pt */
		line-height: 1.4;      /* 28px */
	}
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

/* --- Block spacing (separación entre bloques Gutenberg) --- */
.entry-content > *,
#main-content > section,
#main-content > .wp-block-acf-hero-accordion,
#main-content > .wp-block-acf-search-form {
	margin-bottom: 32px;
}

.entry-content > *:last-child,
#main-content > *:last-child {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.entry-content > *,
	#main-content > section,
	#main-content > .wp-block-acf-hero-accordion,
	#main-content > .wp-block-acf-search-form {
		margin-bottom: 40px;
	}
}

@media (min-width: 1024px) {
	.entry-content > *,
	#main-content > section,
	#main-content > .wp-block-acf-hero-accordion,
	#main-content > .wp-block-acf-search-form {
		margin-bottom: 50px;
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
