/* Reset y base */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Codec Pro', 'HK Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #EAEAEA;
  color: #304693;
}

body {
  padding-top: 96px; /* desktop */
}

@media (max-width: 991px) {
  body {
    padding-top: 120px; /* mobile */
  }
}


/* TIPOGRAFIA */
h1, a, li {
  color: #EAEAEA;
  /*font-family: 'HK Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
  font-family: 'Codec Pro', 'HK Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h2 {
  color: #304693;
  /*font-family: 'HK Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
  font-family: 'Codec Pro', 'HK Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* Encabezado personalizado */
.custom-header {
  background: linear-gradient(135deg, #304693, #304693);
  color: #EAEAEA;
}

/* Footer */
.custom-footer {
  width: 100%;
  background-color: #304693;
}

.custom-footer .container {
  max-width: 1200px;
}

/* Logo footer */
.footer-logo {
  max-width: 100%;
  height: auto;
  max-height: 80px;
}

/* Texto */
.custom-footer p,
.custom-footer span {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Ícono + texto */
.icon-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* Íconos circulares */
.circle-icon2 {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #EAEAEA;
  color: #304693;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Hover redes */
.circle-icon2:hover {
  background-color: #ffd166;
  color: #304693;
  transition: 0.3s;
}

/* Links */
.custom-footer a {
  text-decoration: none;
}

/* Divider */
.custom-footer hr {
  border-color: rgba(255,255,255,0.3);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .custom-footer {
    text-align: center;
  }

  .custom-footer .row > div {
    margin-bottom: 2rem;
  }

  .icon-text {
    justify-content: center;
    text-align: left;
  }

  .footer-logo {
    margin: 0 auto;
  }
}
.footer-logo {
  max-width: 100%;
  height: auto;
  max-height: 90px;
}
.custom-footer h4,
.custom-footer h5 {
  margin-bottom: 1.1rem;
}

.custom-footer p {
  margin-bottom: 0.95rem;
}


/* Secciones con fondo blanco, borde redondeado y sombra ligera */
section {
  scroll-margin-top: 100px; /* para anclajes y navbar */
  background-color: #EAEAEA;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(3,39,75,0.1);
  margin-bottom: 2rem;
  color: #304693;
}

/* Navbar personalizada */
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;

  background-color: #304693; /* 🔴 ESTO FALTABA */
  padding: 1.25rem 0;
}

.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
  color: #EAEAEA;
  transition: color 0.2s ease;
  line-height: 1.5;         /* mejor centrado vertical */
  font-size: 1.1rem;        /* opcional, para que el texto sea más visible */
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
  color: #ffd166;
}

/* Botón hamburguesa */
.custom-navbar .navbar-toggler {
  background-color: transparent;
  padding: 6px 10px;
  border: 2px solid #EAEAEA;
  border-radius: 5px;
  border-color: #EAEAEA;
}

.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f8f8f2' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22' /%3e%3c/svg%3e");
}

/* Links activos y hover */
.nav-link:hover {
  color: #ffc107 !important;
}

.dropdown-menu {
  max-height: 70vh;
  overflow-y: auto;
  
}

@media (max-width: 991px) {
  .custom-navbar .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .dropdown-menu {
    font-size: 0.95rem;
  }
}

/* 🔒 PREVENIR SCROLL HORIZONTAL GLOBAL */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.custom-footer .row {
  margin-left: 0;
  margin-right: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  max-width: 160px;
  height: auto;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.85;
}

@font-face {
  font-family: 'HKGrotesk';
  src: url('../fonts/HKGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'HKGrotesk';
  src: url('../fonts/HKGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
}

@font-face {
  font-family: 'HKGrotesk';
  src: url('../fonts/HKGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
}

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 60vh;
  background-color: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  max-width: 900px; /* más ancho */
  margin: 1rem auto; /* aquí está el espacio del margen*/
  color: #1f2937;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Flex para alinear imagen y texto lado a lado */
  display: flex;
  align-items: center;
  gap: 1rem; /* aquí está el espacio entre imagen y texto */
  padding: 2rem 3rem;
}

.error-img {
  max-width: 320px; /* imagen más grande */
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
  flex-shrink: 0; /* para que no se reduzca */
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.error-text {
  flex: 1;
  text-align: left;
}

.error-title {
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.2rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.btn-rounded {
  border-radius: 9999px;
  padding: 14px 42px;
  font-size: 1.15rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-rounded:hover {
  background-color: #2563eb;
  color: white;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .error-page {
    flex-direction: column;
    max-width: 90vw;
    padding: 2rem 1rem;
    text-align: center;
  }

  .error-text {
    text-align: center;
  }

  .error-img {
    max-width: 250px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .error-title {
    font-size: 2.2rem;
  }

  .error-message {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

.ups-text {
  color: #304693; /* el color que quieras, rojo por ejemplo */
}
