﻿/* ============================================================ */
/* ===== RESET Y BASE ===== */
/* ============================================================ */

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  line-height: 1.5;
}

/* ============================================================ */
/* ===== HEADER MODERNO ===== */
/* ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 18px;
  background: rgba(240, 242, 245, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  max-width: 1180px;
  height: 88px;
  margin: 0 auto;
  padding: 0 12px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #0b3d78 0%, #005198 52%, #006bb8 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(0, 41, 84, 0.13);
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 68px;
  width: auto;
  padding: 5px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.header-brand-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  text-align: center;
}

.header-brand-text .brand-title {
  font-size: 23px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.header-brand-text .brand-sub {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #B8CDDE;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.header-brand-text .brand-year {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #3ddc84;
  letter-spacing: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 16px;
  font-weight: 750;
  padding: 12px 22px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: #0b3d78;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.header-nav a:last-child {
  color: #052817;
  background: #3ddc84;
}

.header-nav a:last-child:hover {
  color: #082014;
  background: #ffffff;
}

.header-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 81, 152, 0.1);
}

/* ============================================================ */
/* ===== FOOTER MODERNO Y DELGADO ===== */
/* ============================================================ */

.site-footer {
  position: relative;
  z-index: 10;
  overflow: hidden;
  color: #ffffff;
  max-width: 1180px;
  margin: 22px auto;
  background: linear-gradient(135deg, #0b3d78 0%, #005198 52%, #006bb8 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(0, 41, 84, 0.13);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 100%;
  opacity: 0.45;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(760px, 82vw);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #ffffff, #3ddc84, transparent);
}

.footer-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 28px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
}

.footer-left {
  gap: 10px;
  min-width: 0;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.footer-sep {
  color: #3ddc84;
  font-size: 14px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.footer-center {
  justify-content: center;
  gap: 5px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.footer-center a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.footer-center a:hover {
  color: #0b3d78;
  background: #ffffff;
}

.footer-right {
  justify-content: flex-end;
  gap: 8px;
}

.footer-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.footer-right a:hover {
  color: #0b3d78;
  border-color: #ffffff;
  background: #ffffff;
  transform: translateY(-1px);
}

.footer-contact-bar {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 18px 14px;
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.footer-contact-bar span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact-bar i {
  color: #3ddc84;
  font-size: 13px;
}

.footer-contact-bar a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* ============================================================ */
/* ===== RESPONSIVE ===== */
/* ============================================================ */

@media (max-width: 900px) {
  .header-inner {
    justify-content: space-between;
  }

  .header-brand-text {
    position: static;
    transform: none;
  }

  .header-nav a {
    padding: 11px 15px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 8px 10px;
  }

  .site-footer {
    margin: 14px 10px;
    border-radius: 18px;
  }

  .header-inner {
    height: 64px;
    padding: 0 8px 0 12px;
    border-radius: 18px;
  }

  .header-logo img {
    height: 46px;
    border-radius: 12px;
  }

  .header-brand-text .brand-title {
    font-size: 17px;
  }

  .header-brand-text .brand-sub {
    font-size: 10px;
  }

  .header-hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 14px;
    right: 14px;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, #0b3d78 0%, #005198 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 41, 84, 0.2);
  }

  .header-nav.active {
    display: flex;
  }

  .header-nav a {
    width: 100%;
    padding: 13px 18px;
    text-align: center;
  }

  .footer-center {
    flex-wrap: wrap;
  }

  .footer-contact-bar {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    margin: 12px 8px;
  }

  .header-logo img {
    height: 40px;
  }

  .header-brand-text .brand-title {
    font-size: 15px;
  }

  .header-brand-text .brand-sub {
    display: none;
  }

  .header-nav {
    top: 74px;
    left: 10px;
    right: 10px;
  }

  .footer-inner {
    padding: 14px 14px 12px;
  }

  .footer-left {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-center {
    border-radius: 18px;
  }

  .footer-center a {
    padding: 8px 14px;
  }

  .footer-contact-bar {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}
