/* IMPORT FUENTE PROFESIONAL */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Inter:wght@400;600&display=swap');

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

body {
  font-family: 'IBM Plex Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f9fc;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ===== HEADER / NAVBAR ===== */
header {
  background-color: #ffffff;
  padding: 15px 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 59, 113, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo y nav al lado */
.logo-container {
  display: flex;
  align-items: center;
  margin-right: 40px;
}

.logo-container img {
  height: 80px;
  object-fit: contain;
}

/* NAV LINKS */ /* Lista de navegación horizontal */
.nav-links {
  display: flex;
  list-style: none;
  gap: 60px;
}

.nav-links li a {
  color: #003b71;
  text-decoration: none;
  font-weight: 350;
  font-size: 20px;
  letter-spacing: 0.4px;
  transition: color 0.4s ease;
}

.nav-links li a:hover {
  color: #042c42;
  font-weight: 600;
}

/* ===== HERO / BIENVENIDA ===== */
.hero {
  background: linear-gradient(90deg, #ffffff 30%, #e8f7fd 100%);
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  color: #003b71;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #333;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* CTA BUTTON */
.boton-asesoria {
  display: inline-block;
  background-color: #00a8e8;
  color: white;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
}

.boton-asesoria:hover {
  background-color: #0077b6;
}

/* ===== SECCIONES ===== */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  font-size: 28px;
  color: #003b71;
  margin-bottom: 20px;
  border-bottom: 3px solid #00a8e8;
  display: inline-block;
  padding-bottom: 6px;
}

section p {
  font-size: 16px;
  color: #333;
}

/* ===== FOOTER ===== */
footer {
  background-color: #f0f4f8;
  padding: 25px;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e0e0e0;
}
/* ===== PRESENTACIÓN / RESEÑA ===== */
.intro {
  background: #f4faff;
  padding: 60px 20px;
  text-align: center;
}

.intro h2 {
  font-weight: 600;
  font-size: 40px;
  color: #003b71;
  margin-bottom: 40px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}

.intro p {
  font-size: 17px;
  color: #333333;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== BLOQUE UX/4 COMO BANDA ===== */
.ux4-banda {
  width: 100%;
  background: linear-gradient(to right, #f4f5f5, #374fc6);
  padding: 80px 0;
}

.ux4-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.ux4-content h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #4a4c4c;
  margin-bottom: 40px;
  display: inline-block;
  padding-bottom: 10px;
}

.ux4-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.ux4-card {
  flex: 1 1 200px; /* crecen hasta llenar pero no menos de 200px */
  max-width: 220px;
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  color: #003366;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ux4-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===== FUENTE APPLE PARA TITULOS ===== */
.apple-title {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #003b71;
  margin-bottom: 40px;
  text-align: center;
}

/* ===== UX/4 BANDA Y INNOVACIÓN ===== */
.ux4-banda,
.full-band {
  width: 100%;
  background: linear-gradient(90deg, #b6ceda, #9c8aeb); /* tonalidad pareja */
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px; /* separación de ~5mm visual */
}

.ux4-content,
.innovacion-content {
  max-width: 1200px;
  margin: 0 auto;
}

.innovacion-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #4a4c4c;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideFade 10s infinite ease-in-out;
}

.carousel-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #030303;
}

.carousel-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: slideFade 10s infinite ease-in-out;
}

.carousel-logos img {
  height: 70px;
  max-width: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.carousel-logos img:hover {
  transform: scale(1.1);
}

/* ANIMACIÓN DE SLIDE */
@keyframes slideFade {
  0%, 100% { opacity: 0; transform: translateY(20px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
}

/* ===== INNOVACIÓN LOGOS ===== */
.carousel-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 10px;
  flex-wrap: wrap;
  animation: slideFade 10s infinite ease-in-out;
}

.carousel-logos img {
  height: 80px;
  max-width: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.carousel-logos img:hover {
  transform: scale(1.1);
}

/* ===== MEGA MENU PORTAFOLIO ===== */
.menu-item.dropdown {
  position: relative;
}

.menu-item .mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 600px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: none;
  padding: 30px;
  gap: 40px;
  z-index: 999;
  display: flex;
  justify-content: space-between;
}

.menu-item:hover .mega-menu {
  display: flex;
}

.mega-column {
  flex: 1;
}

.mega-column h4 {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #003366;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.mega-column ul {
  list-style: none;
  padding: 0;
}

.mega-column ul li a {
  display: block;
  padding: 8px 0;
  color: #1a1a1a;
  font-size: 0.95rem;
  text-decoration: none;
}

.mega-column ul li a:hover {
  color: #0077cc;
}

/* ===== Subrayado al hacer hover o focus en PORTAFOLIO ===== */
.nav-links li a {
  position: relative;
  transition: all 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: #003366;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #003366;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a:focus::after {
  width: 100%;
}

/* Ocultar por defecto */
.menu-item .mega-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* Mostrar al hacer hover */
.menu-item:hover .mega-menu,
.menu-item:focus-within .mega-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.9rem;
  padding: 12px 20px;
  background-color: #f4f6f8;
  color: #555;
}
.breadcrumb a {
  color: #5b3fe1;
  text-decoration: none;
  margin-right: 4px;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: #222;
  font-weight: bold;
}

html {
  scroll-behavior: smooth;
}

/* ===== BOTÓN VOLVER ARRIBA ===== */
#btn-volver-arriba {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: #5b3fe1;
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s;
}
#btn-volver-arriba:hover {
  background-color: #3f2fcf;
}