* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: auto;
}
html {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  height: 100%;
  background-color: #edf5fc;
}
body {
  width: 100%;
  margin: auto;
  max-width: 100%;
  background-color: #edf5fc;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
} 

/* Organización de la información de contacto superior */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 5%;
  text-decoration: none;
}

.info-contacto{
  display: flex;
  gap: 50px;
  align-items: center;
	width: 100%;
}

.info-contacto a {
  text-decoration: none;
  color: inherit;
}

.info-contacto .ubicacion-item {
	margin-left: auto;
	align-self: flex-end;
}

.info-icon-map {
	width: auto;
	height: auto;
	font-size: 18px;
	color: #05518c;
	margin-right: 6px;
}

.modos {
  margin-left: auto;
}

.icon-btn {
  border: 1px solid #7db1d8;
  background: #ffffff;
  color: #05518c;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
}

.info-icon{
  width: 20px;
  height: 20px;
}

:root {
  --bg-color: #edf5fc;
  --text-color: #222222;
  --primary-color: #1e88e5;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: 0.3s ease;
}

.dark-mode {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --primary-color: #4dabf7;
}

.main-header {
  background: var(--bg-color);
}

.logo-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 8%;
}

/* Logo */

.logo{
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.logo img {
  width: 400px;
  height: auto;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex: 1;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 15px;
	border-radius: 20%;
	border-color: #1e88e5;
}

.nav-links a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid #70a7cf;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: #05518c;
	font-weight: 600;
	transition: all 0.25s ease;
}

.nav-links a:hover {
	background: #05518c;
	color: #fff;
	border-color: #05518c;
	transform: translateY(-1px);
}

.social-icons {
	display: flex;
	gap: 15px;
}

.social-icons a {
	color: #1e88e5;
	font-size: 30px;
	transition: 0.3s;
}

.social-icons a[aria-label="WhatsApp"] { color: #25d366; }
.social-icons a[aria-label="Instagram"] { color: #e1306c; }
.social-icons a[aria-label="Facebook"] { color: #1877f2; }

.social-icons a:hover {
	transform: scale(1.2);
}

.catalogo-page {
	padding: 24px 8% 60px;
}

.catalogo-container {
	max-width: 1200px;
	margin: 0 auto;
}

.catalogo-container h1 {
	color: #05518c;
	font-size: 2.8rem;
	margin-bottom: 8px;
}

.catalogo-container > p {
	color: #2f3a45;
	font-size: 1.05rem;
	margin-bottom: 18px;
}

.catalogo-tools {
	display: grid;
	gap: 14px;
	margin-bottom: 14px;
}

#catalogSearch {
	width: 100%;
	border: 1px solid #b5d3ea;
	border-radius: 12px;
	padding: 13px 14px;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#catalogSearch:focus {
	border-color: #05518c;
	box-shadow: 0 0 0 3px rgba(5, 81, 140, 0.12);
}

.alphabet-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.alpha-btn {
	border: 1px solid #b8d5ea;
	background: #fff;
	color: #05518c;
	border-radius: 10px;
	padding: 8px 10px;
	min-width: 38px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.alpha-btn:hover,
.alpha-btn.active {
	background: #05518c;
	color: #fff;
	border-color: #05518c;
}

.alpha-btn.download-pdf-btn {
	min-width: auto;
	padding: 8px 14px;
	font-size: 0.9rem;
	white-space: nowrap;
}

.results-summary {
	color: #355874;
	margin: 8px 0 14px;
	font-weight: 600;
}

.exam-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.exam-card {
	background: #fff;
	border: 1px solid #d7e8f5;
	border-left: 6px solid #7fb0d4;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 8px 18px rgba(5, 81, 140, 0.08);
}

.exam-card h3 {
	color: #05518c;
	margin-bottom: 12px;
	font-size: 1.2rem;
}

.exam-row {
	margin-bottom: 10px;
}

.exam-row span {
	display: block;
	color: #4b6d86;
	font-size: 0.84rem;
	font-weight: 700;
	margin-bottom: 2px;
	text-transform: uppercase;
}

.exam-row p {
	color: #2f465a;
	line-height: 1.5;
	font-size: 0.96rem;
}

.empty-state {
	grid-column: 1 / -1;
	padding: 14px;
	border-radius: 12px;
	border: 1px dashed #a9c9e2;
	color: #48657d;
	background: #f7fbff;
}

.whatsapp-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 1200;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #25d366;
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	padding: 12px 16px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
	font-weight: 700;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float i {
	font-size: 1.25rem;
}

.whatsapp-float:hover {
	background: #20be5c;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.site-footer {
  background: #123a5a;
  color: #eaf4fc;
  padding: 36px 8% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: #d0e4f3;
  text-decoration: none;
  line-height: 1.55;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-logo {
  width: 300px;
  height: auto;
  margin-bottom: 10px;
}

.footer-copy {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: #d7e9f7;
}

@media (max-width: 1366px) {
	.top-bar {
		padding: 10px 4%;
	}

	.info-contacto {
		gap: 24px;
		flex-wrap: wrap;
	}

	.logo img {
		width: 320px;
	}

	.logo-nav-wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	.navbar {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.nav-links {
		flex-wrap: wrap;
		gap: 12px;
	}

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.logo img {
		width: 280px;
	}

	.logo-nav-wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	.navbar {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.nav-links {
		flex-wrap: wrap;
		gap: 12px;
	}

	.catalogo-page {
		padding: 20px 6% 50px;
	}

	.catalogo-container h1 {
		font-size: 2.2rem;
	}

	.exam-results {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.top-bar {
		padding: 10px 4%;
	}

	.info-contacto {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

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

	.whatsapp-float {
		right: 12px;
		bottom: 12px;
		padding: 10px 12px;
		gap: 8px;
		font-size: 0.9rem;
	}
}
