/* Importar Poppins (para títulos) y Nunito (para párrafos) */
/* @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&family=Poppins:wght@500;600&display=swap'); */

/* AJUSTES GENERALES DEL BODY */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #002060 !important;
}

.wrapsection {
  flex: 1;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
}

/* FIX PARA QUE EL CONTENEDOR SEA CONSISTENTE */
.container {
  max-width: 1200px !important;
  width: 100% !important;
  padding-right: 15px !important;
  padding-left: 15px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
}

/* TOP INFO BAR MEJORADO */
.top-info-bar {
  background: #01194a;
  padding: 8px 0 !important;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-info-content {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  /* flex-wrap: wrap; */
}

.info-items {
  display: flex;
  gap: 25px;
  align-items: center;
  /* flex-wrap: wrap; */
  margin: 0 auto;
}

.info-item {
  color: #ffffff;
  transition: all 0.3s ease;
}

.info-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.info-item a:hover {
  color: #e6b546;
}

.info-item span {
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #e6b546;
  transform: translateY(-2px);
  text-decoration: none;
}

/* MAIN HEADER COMPACTO */
.main-header {
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 8px 0 !important;
}

.main-header.header-scrolled {
  padding: 5px 0 !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 !important;
  min-height: 60px;
}

/* LOGO OPTIMIZADO */
.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  display: block;
  transition: all 0.3s ease;
}

.logo img {
  height: 55px !important;
  width: auto !important;
  max-height: 55px !important;
  transition: all 0.3s ease;
  object-fit: contain;
}

.main-header.header-scrolled .logo img {
  height: 50px !important;
}

/* NAVEGACIÓN COMPACTA */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #01194a !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 16px !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.2px;
}

.nav-link:hover,
.nav-link.active {
  color: #e6b546;
  background: rgba(230, 181, 70, 0.08);
}

.nav-link.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e6b546;
  border-radius: 2px 2px 0 0;
}

/* MOBILE TOGGLE */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #01194a;
  border-radius: 2px;
  transition: all 0.3s ease;
  left: 0;
}

.mobile-toggle span:nth-child(1) {
  top: 0;
}

.mobile-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
  width: 80%;
}

.mobile-toggle span:nth-child(3) {
  bottom: 0;
  width: 60%;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  width: 100%;
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  width: 100%;
}

/* MOBILE MENU MEJORADO */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  padding: 70px 20px 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  color: #01194a;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 600 !important; /* SemiBold consistente */
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #e6b546;
}

.mobile-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #01194a;
  font-size: 22px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 1002;
}

.mobile-close:hover {
  background: #f8f9fa;
}

/* CORREGIR: Solo un mobile-top-info, no dos */
.mobile-top-info {
  background: #01194a;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.mobile-info-item {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.mobile-info-item:last-child {
  margin-bottom: 0;
}

.mobile-info-item a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.mobile-info-item a:hover {
  color: #e6b546;
}

/* Overlay para fondo oscuro cuando el menú está abierto */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}
/* WhatsApp flotante con movimiento continuo */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #01194a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
  border: none;
  box-shadow: 0 4px 12px rgba(230, 181, 70, 0.3);
  padding: 0;

  /* Animación de entrada */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  /* Animación de flotación constante */
  animation: float 3s ease-in-out infinite;
}

/* Entrada suave */
.whatsapp-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover elegante */
.whatsapp-float:hover {
  background: #33d36e;
  color: #ffffff;
  transform: translateY(-5px);
}

/* Icono más grande */
.wspicon {
  font-size: 32px;
  width: 32px;
  height: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keyframes para movimiento flotante */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* SCROLL TO TOP */
.scroll-top {
  position: fixed;
  bottom: 98px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #e6b546;
  color: #01194a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  box-shadow: 0 4px 12px rgba(230, 181, 70, 0.3);
  padding: 0;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #01194a;
  color: #e6b546;
  transform: translateY(-3px);
}

/* LAPTOPS GRANDES */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px !important;
  }

  .nav-link {
    padding: 10px 14px !important;
    font-size: 13.5px !important;
  }

  .info-items {
    gap: 20px;
  }
}

/* TABLETS Y LAPTOPS PEQUEÑAS */
@media (max-width: 992px) {
  .container {
    max-width: 960px !important;
  }

  .top-info-bar {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .header-container {
    min-height: 55px;
  }

  .logo img {
    height: 50px !important;
  }

  .main-header.header-scrolled .logo img {
    height: 45px !important;
  }

  .mobile-menu {
    display: block;
  }
}

/* TABLETS */
@media (max-width: 768px) {
  .container {
    max-width: 720px !important;
  }

  .mobile-menu {
    width: 280px;
    padding: 65px 15px 25px;
  }

  .mobile-nav-link {
    font-size: 15px;
    padding: 14px 0;
  }

  .scroll-top {
    bottom: 95px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 16px;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 16px;
  }

  .logo img {
    height: 48px !important;
  }
}

/* MÓVILES */
@media (max-width: 576px) {
  .container {
    max-width: 540px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .logo img {
    height: 45px !important;
  }

  .mobile-menu {
    width: 100%;
    right: -100%;
  }

  .mobile-menu.active {
    right: 0;
  }

  .mobile-top-info {
    padding: 15px;
  }

  .mobile-info-item {
    font-size: 12.5px;
  }

  .mobile-nav-link {
    font-size: 15px;
  }

  .header-container {
    min-height: 50px;
  }
}

/* MÓVILES MUY PEQUEÑOS */
@media (max-width: 375px) {
  .container {
    max-width: 100% !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .logo img {
    height: 42px !important;
  }

  .mobile-nav-link {
    font-size: 14px;
    padding: 12px 0;
  }

  .mobile-top-info {
    padding: 12px;
  }
}

/*INTER FOOTER------------------------------------*/ /* ============================================

/* FOOTER PRINCIPAL */
.footer_main {
  background: #01194a;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* SECCIÓN PRINCIPAL */
.sect_foot_main {
  padding: 80px 0 60px;
  position: relative;
  background: linear-gradient(135deg, #01194a 0%, #002060 100%);
}

.sect_foot_main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #e6b546 0%, #ffd166 100%);
}

/* LOGO Y MARCA */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.footer-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  flex: 1;
}

.footer-brand-name {
  color: #e6b546;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.footer-brand-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

/* INFORMACIÓN DE CONTACTO */
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-info-item i {
  color: #e6b546;
  font-size: 14px;
  margin-top: 2px;
  width: 16px;
  text-align: center;
}

.footer-info-item a,
.footer-info-item span {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
  flex: 1;
}

.footer-info-item a:hover {
  color: #e6b546;
}

/* TÍTULOS DE SECCIÓN */
.footer-title {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #e6b546;
  border-radius: 2px;
}

.footer-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* MENÚ DE ENLACES */
.footer-links {
  padding: 0 20px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu li:last-child {
  margin-bottom: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  padding: 8px 0;
  border-radius: 6px;
  padding-left: 10px;
}

.footer-link i {
  color: #e6b546;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.footer-link:hover {
  color: #e6b546;
  background: rgba(230, 181, 70, 0.1);
  padding-left: 15px;
  text-decoration: none;
}

.footer-link:hover i {
  transform: translateX(3px);
  text-decoration: none;
}

/* REDES SOCIALES */
.footer-social-section {
  padding: 0 20px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}

.social-btn.facebook {
  background: rgba(59, 89, 152, 0.2);
  border-color: rgba(59, 89, 152, 0.3);
  text-decoration: none;
}

.social-btn.facebook:hover {
  background: #3b5998;
  text-decoration: none !important;
}

.social-btn.whatsapp {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.3);
  text-decoration: none;
}

.social-btn.whatsapp:hover {
  background: #25d366;
}

.social-btn i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.social-btn span {
  font-size: 14px;
  font-weight: 500;
}

/* NEWSLETTER */
.footer-newsletter {
  margin-top: 30px;
}

.newsletter-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: #e6b546;
  color: #01194a;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid #e6b546;
}

.btn-contact:hover {
  background: transparent;
  color: #e6b546;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 181, 70, 0.3);
  text-decoration: none;
}

.btn-contact i {
  font-size: 14px;
}

/* COPYRIGHT */
.footer-copyright {
  background: #000c24;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.copyright-text span {
  color: #e6b546;
  font-weight: 600;
}

/* CRÉDITOS */
.footer-credits {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.credits-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.credits-link {
  color: #e6b546;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.credits-link:hover {
  color: #ffffff;
}

.credits-link img {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.credits-link:hover img {
  opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* TABLETS Y LAPTOPS PEQUEÑAS */
@media (max-width: 992px) {
  .sect_foot_main {
    padding: 60px 0 40px;
  }

  .footer-brand {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 20px;
  }

  .brand-text {
    text-align: center;
  }

  .footer-links,
  .footer-social-section {
    padding: 0;
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-link {
    justify-content: center;
    padding: 8px 15px;
  }

  .footer-social {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
  }

  .footer-credits {
    justify-content: center;
  }

  .btn-contact {
    padding: 12px 30px;
  }
}

/* TABLETS */
@media (max-width: 768px) {
  .sect_foot_main {
    padding: 50px 0 30px;
  }

  .footer-brand-name {
    font-size: 20px;
  }

  .footer-logo {
    width: 60px;
    height: 60px;
  }

  .footer-title {
    font-size: 17px;
    margin-bottom: 15px;
  }

  .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-menu li {
    margin-bottom: 0;
  }

  .footer-link {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
  }

  .footer-link:hover {
    padding-left: 15px;
  }

  .footer-social {
    flex-direction: column;
    align-items: center;
  }

  .social-btn {
    width: 100%;
    max-width: 250px;
  }

  .copyright-text,
  .credits-text {
    font-size: 13px;
    text-align: center;
  }

  .footer-copyright {
    padding: 15px 0;
  }
}

/* MÓVILES */
@media (max-width: 576px) {
  .sect_foot_main {
    padding: 40px 0 25px;
  }

  /* .row {
        gap: 30px;
    } */

  .col-lg-4,
  .col-md-6 {
    width: 100%;
  }

  .footer-brand-name {
    font-size: 18px;
  }

  .footer-logo {
    width: 50px;
    height: 50px;
  }

  .footer-info-item {
    font-size: 13px;
  }

  .footer-title {
    font-size: 16px;
    margin-top: 10px;
  }

  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .footer-link {
    width: 100%;
    max-width: 250px;
    justify-content: flex-start;
  }

  .social-btn {
    padding: 10px 15px;
  }

  .social-btn span {
    font-size: 13px;
  }

  .btn-contact {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 13px;
  }

  .copyright-text,
  .credits-text {
    font-size: 12px;
  }

  .credits-text {
    flex-direction: column;
    gap: 5px;
  }

  .credits-link img {
    height: 16px;
  }
}

/* MÓVILES MUY PEQUEÑOS */
@media (max-width: 375px) {
  .footer-brand-name {
    font-size: 16px;
  }

  .footer-brand-subtitle {
    font-size: 12px;
  }

  .footer-info-item {
    font-size: 12px;
  }

  .social-btn {
    padding: 8px 12px;
  }

  .social-btn i {
    font-size: 16px;
  }

  .social-btn span {
    font-size: 12px;
  }

  .btn-contact {
    padding: 8px 15px;
    font-size: 12px;
  }

  .copyright-text,
  .credits-text {
    font-size: 11px;
  }
}

/* AJUSTES ESPECIALES PARA ALINEACIÓN */
@media (max-width: 992px) {
  .footer-copyright .row {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-copyright .col-lg-6 {
    width: 100%;
  }

  .footer-credits {
    justify-content: center;
  }
}

/* Asegurar que todo se vea bien en impresión */
@media print {
  .footer_main {
    display: none;
  }
}
