/* ===== CONFIG GENERAL ===== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1c2b3a;
  padding-top: var(--nav-height);
}

/* ===== NAVBAR ===== */
.navbar {
  background: white;
  height: 74px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar.scrolled {
  height: 70px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
/* Logo navbar - tamaño inicial y scroll */
.logo-navbar {
  height: 142px; /* tamaño normal de inicio */
  width: auto;
  transition: all 0.35s ease;
}
.navbar.scrolled .logo-navbar {
  height: 96px;
}
.navbar .nav-link {
  color: #0b2a55 !important;
  font-weight: 600;
  transition: 0.25s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #6ec24a !important;
}

/* ===== BOTÓN INGRESAR ===== */
.ingresar-btn {
  background: #0b2a55;
  color: white !important;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}
.ingresar-btn:hover {
  background: #081f3d;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background:
    linear-gradient(
      90deg,
      rgba(11, 42, 85, 0.85) 0%,
      rgba(11, 42, 85, 0.7) 35%,
      rgba(255, 255, 255, 0.15) 70%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../img/hero.jpg") center/cover no-repeat;
}
.hero h1 {
  color: white;
  line-height: 1.15;
}
.hero p {
  color: #e6eef7;
}
.hero .btn-success {
  background: #6ec24a;
  border: none;
  padding: 14px 34px;
  font-weight: 600;
  border-radius: 12px;
}
.hero-datos {
  color: white;
  font-weight: 500;
  line-height: 1.8;
}

/* ===== SECCIONES ===== */
section {
  padding: 90px 0;
}
#nosotros h2,
#servicios h2,
#contacto h2 {
  color: #0b2a55;
}
#nosotros p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

/* ===== CARDS SERVICIOS ===== */
.card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: 0.35s;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
.card i {
  font-size: 44px;
  color: #6ec24a !important;
}
.card h5 {
  margin-top: 12px;
  font-weight: 700;
  color: #0b2a55;
}
.card p {
  font-size: 15px;
}

/* ===== SECCIÓN QUIÉNES SOMOS ===== */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 15px;
}
.about-box {
  background: #ffffff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  border-left: 4px solid #0d6efd;
}
.about-box h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.about-box p {
  font-size: 14px;
  margin: 0;
}
.about-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
#nosotros img {
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

/* ===== CONTACTO - TARJETAS CENTRADAS ===== */
.contact-section {
  max-width: 1000px;
  margin: 80px auto 60px auto;
  text-align: center;
}
.contact-section h2 {
  font-weight: 800;
  margin-bottom: 10px;
  color: #0b2a55;
}
.contact-section .subtitle {
  color: #6c7a89;
  margin-bottom: 40px;
}
.contact-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.contact-card {
  width: 220px;
  background: #fff;
  padding: 35px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: #0b2a55;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}
.contact-card .icon {
  font-size: 44px;
  margin-bottom: 12px;
}
.contact-card h5 {
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-card p {
  font-size: 14px;
  color: #6c7a89;
  margin: 0;
}
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  color: #0b2a55;
}
.instagram .icon {
  color: #e4405f;
}
.facebook .icon {
  color: #1877f2;
}
.email .icon {
  color: #0d6efd;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 68px;
  height: 68px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: 0.25s;
}
.whatsapp i {
  color: white;
  font-size: 34px;
}
.whatsapp:hover {
  transform: scale(1.12);
}
.whatsapp-tooltip {
  position: fixed;
  right: 25px;
  bottom: 100px;
  background: white;
  color: #0b2a55;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 998;
  animation: float 2.2s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ===== FOOTER ===== */
footer {
  background: #0b2a55 !important;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* ===== HAMBURGUER ===== */
.menu-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.6px;
  background: #0b2a55;
  border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== PANEL LATERAL ===== */
.side-panel {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  transition: left 0.35s ease;
  overflow-y: auto;
}
.side-panel.active {
  left: 0;
}
.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #0b2a55;
  color: white;
}
.close-panel {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}
.side-content {
  padding: 20px;
}
.side-content h6 {
  margin-top: 20px;
  font-weight: 700;
  color: #0b2a55;
}
.side-content a {
  display: block;
  padding: 10px 8px;
  text-decoration: none;
  color: #2c3e50;
  border-radius: 8px;
  transition: 0.25s;
}
.side-content a:hover {
  background: #f2f6fb;
  color: #6ec24a;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1999;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .about-features {
    grid-template-columns: 1fr;
  }
  .navbar {
    height: auto;
    padding: 8px 0;
  }
  .logo-navbar {
    height: 90px;
  }
  .navbar.scrolled .logo-navbar {
    height: 60px;
  }
  .navbar .container {
    align-items: center;
  }
  .hero {
    padding-top: 130px !important;
  }
}
@media (max-width: 576px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-tooltip {
    bottom: 120px;
    right: 15px;
  }
}

/* ===== CLIENTES ===== */

.clientes-section {
  overflow: hidden;
}

.logos-track-wrapper {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
}

.logos-track-wrapper::before,
.logos-track-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.logos-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.logos-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.logos-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: logos-scroll 28s linear infinite;
}

.logos-track:hover {
  animation-play-state: paused;
}

@keyframes logos-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cliente-logo {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  transition: box-shadow 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.cliente-logo:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.cliente-logo img {
  max-height: 65px;
  max-width: 120px;
  object-fit: contain;
}
.side-content a i {
  margin-right: 8px;
  color: #d9534f;
}
