/* =======================================
   REGLAS GENERALES PARA "STICKY FOOTER"
======================================= */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
}

/* =======================================
   ESTILOS DEL FOOTER
======================================= */
footer {
  background-color: #002244; /* Azul marino institucional oscuro */
  color: #e0e0e0;
  padding-top: 50px;
  margin-top: auto; /* IMPORTANTE: Empuja el footer al fondo en pantallas vacías */
  font-size: 0.95rem;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

/* Línea dorada bajo los títulos */
.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #0066cc, #ff0000);
}

/* Columna Identidad */
.footer-logo {
  height: 50px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1); /* Convierte el logo a blanco si tiene fondo transparente */
}

.footer-section.about p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #cccccc;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.socials a:hover {
  background: linear-gradient(to right, #0066cc, #ff0000);
  transform: translateY(-3px);
}

/* Columna Enlaces */
.footer-section.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section.links ul li {
  margin-bottom: 10px;
}

.footer-section.links ul li a {
  color: #eceff0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}

.footer-section.links ul li a i {
  font-size: 0.8rem;
  color: #e9eaec;
}

.footer-section.links ul li a:hover {
  color: #c0c4d5;
  transform: translateX(5px);
}

/* Columna Contacto */
.footer-section.contact p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #cccccc;
}

.footer-section.contact p i {
  color: #138fb9;
  font-size: 1.1rem;
  margin-top: 3px;
}

/* Sub-footer inferior */
.footer-bottom {
  background-color: #001830;
  text-align: center;
  padding: 18px 20px;
  font-size: 0.85rem;
  color: #a0a0a0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
