/* =========================================================
   🌐 NEXIAN DIGITAL — TECH MODERNO STYLE
   ========================================================= */

/* =============== 🎨 PALETA DE COLORES ================== */
:root {
  --nexian-dark: #0A2342;
  --nexian-blue: #007BA7;
  --nexian-celeste: #00ADEF;
  --nexian-light: #F5F8FB;
  --nexian-gray: #6B7280;
  --nexian-white: #FFFFFF;
}

/* ========================================================
   ✨ RESET + BASE
   ======================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--nexian-light);
  color: var(--nexian-dark);
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* ========================================================
   🟦 NAVBAR
   ======================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nexian-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

/* Tamaños generales */
.logo-nexian,
.logo-aliado {
  height: 70px;
  object-fit: contain;
}

/* Responsive: logos más grandes */
@media (max-width: 768px) {
  .logo-nexian,
  .logo-aliado {
    height: 90px;
  }
}

/* === LINKS === */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--nexian-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--nexian-celeste);
  transform: translateY(-2px);
}

/* === BOTÓN NAV === */
.btn-primary {
  background: linear-gradient(90deg, var(--nexian-celeste), #00E0FF);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #008DC1, #00BFFF);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 173, 239, 0.4);
}

/* ================================
   📱 FIX NAVBAR — MENU MÓVIL
================================ */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
  }
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: #0A2342;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    gap: 12px;
  }
  .mobile-menu a {
    color: #fff;
    font-size: 1.1rem;
    padding: 10px 0;
    text-decoration: none;
  }
  .mobile-menu.active {
    display: flex !important;
  }
}


/* ================================
   🔵 LOGOS RESPONSIVE FIX
================================ */
.logos img {
  height: 70px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logos img {
    height: 90px;
  }
}

@media (max-width: 480px) {
  .logos img {
    height: 70px;
  }
}


/* =====================================================
   🟣 HERO PROFESIONAL NEXIAN DIGITAL
   ===================================================== */
.hero {
  margin-top: 90px;
  min-height: 90vh; /* 🔥 Más espacio para mostrar bien la imagen */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 6%;
  position: relative;
  overflow: hidden;
  background: #F5F7FA;
  margin-bottom: 40px !important;
}

/* 🔵 Fondo optimizado y bien posicionado */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.png') no-repeat;
  background-size: 115%;        /* 🔥 Menos zoom para ver más escena */
  background-position: center 42%; /* 🔥 Baja la imagen estratégicamente */
  opacity: 0.90;                /* 🔥 Se ve suave y corporativo */
  z-index: 0;
}

/* 🔵 Gradiente suave para mejorar legibilidad */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(245,247,250,1) 0%,
    rgba(245,247,250,0.55) 35%,
    rgba(245,247,250,0) 70%
  );
  z-index: 1;
}
@media (max-width: 768px) {
  .hero {
    margin-bottom: 20px !important;
  }
}

/* ================= T E X T O ================= */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
}

/* Título */
.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0A2342;
  margin-bottom: 20px;
}

/* Subtítulo */
.hero-content p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 28px;
  max-width: 420px;
}

/* CTA */
.hero-content .btn-primary {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
  display: inline-block;
}

/* =====================================================
   📱 RESPONSIVE HERO
   ===================================================== */
@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 90px 8% 50px;
    min-height: 85vh; /* Más alto en móvil para mostrar mejor el fondo */
  }

  /* Fondo optimizado para móvil */
  .hero::before {
    background-size: 140%;
    background-position: top center;
  }

  /* Gradiente vertical */
  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(245,247,250,0.95) 0%,
      rgba(245,247,250,0.6) 40%,
      rgba(245,247,250,0) 100%
    );
  }

  .hero-content {
    max-width: 90%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .btn-primary {
    font-size: 1rem;
    width: auto;
    display: inline-block;
  }
}


/* ========================================================
   💼 SECCIONES BASE
   ======================================================== */
.section {
  padding: 100px 0;
  text-align: center;
  background: var(--nexian-light);
  position: relative;
  overflow: hidden;
}

.section h2 {
  font-size: 2.2rem;
  color: var(--nexian-dark);
  font-weight: 700;
  margin-bottom: 60px;
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--nexian-celeste), #00E0FF);
  border-radius: 2px;
}

/* ========================================================
   🧩 GRID BASE
   ======================================================== */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

/* ========================================================
   💡 TARJETAS (Servicios / Proyectos)
   ======================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr)); /* 🔹 Tarjetas más anchas */
  gap: 40px; /* Espacio entre tarjetas */
  justify-items: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px; /* Espacio lateral general */
}

/* Tarjetas base */
.card, .proyecto-card {
  background: #fff;
  border: 1px solid rgba(0, 173, 239, 0.15);
  border-radius: 22px;
  padding: 50px 35px; /* 🔹 Más espacio interior */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  text-align: center;
  height: 100%;
  max-width: 320px; /* 🔹 Más anchas visualmente */
}

/* Íconos */
.card i, .proyecto-card i {
  font-size: 3.4rem;
  color: var(--nexian-celeste);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

/* Título y texto */
.card h3, .proyecto-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #0A2342;
  font-weight: 600;
}

.card p, .proyecto-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Hover */
.card:hover, .proyecto-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 12px 35px rgba(0, 173, 239, 0.25);
  border-color: rgba(0, 173, 239, 0.4);
}

.card:hover i, .proyecto-card:hover i {
  transform: rotate(6deg) scale(1.2);
}

/* ==========================================
   📱 Responsive (para pantallas pequeñas)
   ========================================== */
@media (max-width: 1400px) {
  .grid {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
  }
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   🚀 PROYECTOS DESTACADOS — Estilo único
   ======================================================== */
.proyectos-destacados {
  background: linear-gradient(135deg, #0A2342 0%, #004B73 100%);
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Título */
.proyectos-destacados h2 {
  color: #fff;
}

/* Contenedor de tarjetas */
.proyectos-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: stretch;
  margin-top: 60px;
}

/* Tarjeta individual */
.proyecto-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 50px 35px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: all 0.4s ease;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.proyecto-item i {
  font-size: 3.4rem;
  color: #00E0FF;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.proyecto-item h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.proyecto-item p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* Hover */
.proyecto-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 224, 255, 0.25);
  border-color: rgba(0, 224, 255, 0.4);
}

.proyecto-item:hover i {
  transform: rotate(6deg) scale(1.2);
  color: #00ADEF;
}

/* Responsive */
@media (max-width: 1200px) {
  .proyectos-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .proyectos-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .proyectos-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   📱 Responsive (para pantallas pequeñas)
   ========================================== */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas medianas */
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }
}


/* ========================================================
   💬 TESTIMONIOS MODERNOS
   ======================================================== */
.testimonios {
  background: linear-gradient(180deg, #E9F3FB 0%, #CFE4F2 100%);
  color: var(--nexian-dark);
  padding: 120px 0;
}

.testimonios h2 {
  color: #0A2342;
}

.testimonios-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
}

.testimonio-item {
  background: #fff;
  border: 1px solid rgba(0, 173, 239, 0.15);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 420px;
  width: 100%;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 173, 239, 0.08);
  transition: all 0.4s ease;
}

.testimonio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 173, 239, 0.25);
  border-color: rgba(0, 173, 239, 0.4);
}

.testimonials .card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: none; /* 👈 elimina el borde celeste duplicado */
  box-shadow: 0 0 8px rgba(0, 173, 239, 0.3); /* 👈 opcional, sombra suave */
}

/* Cliente */
.cliente {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.cliente img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ADEF;
  box-shadow: 0 0 10px rgba(0, 173, 239, 0.3);
}

.cliente-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0A2342;
  margin-bottom: 4px;
}

.cliente-info span {
  font-size: 0.9rem;
  color: #555;
}

/* Mensaje */
.mensaje {
  font-style: italic;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
  position: relative;
}

.mensaje::before {
  content: "“";
  font-size: 2rem;
  color: #00ADEF;
  position: absolute;
  left: -10px;
  top: -10px;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonios-grid {
    flex-direction: column;
    align-items: center;
  }
}



/* ========================================================
   💬 WHATSAPP FLOAT
   ======================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: #fff;
  font-size: 1.8rem;
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.whatsapp-float:hover {
  background: #20BD5A;
  transform: scale(1.1);
}

/* ========================================================
   ⚙️ FOOTER
   ======================================================== */
.footer {
  background: var(--nexian-dark);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer p {
  font-size: 0.95rem;
  color: #A9C5DA;
}

.footer .socials {
  margin-top: 15px;
}

.footer .socials a {
  color: #A9C5DA;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer .socials a:hover {
  color: var(--nexian-celeste);
}

/* ========================================================
   🌟 ANIMACIONES DE APARICIÓN
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   ❌ FIX: Ocultar menú móvil en escritorio
   ========================================== */
.mobile-menu {
  display: none !important;
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
  .mobile-menu {
    display: none; /* por defecto oculto */
  }
  .mobile-menu.active {
    display: flex !important;
  }
}

/* =======================
   📩 CONTACTO
======================= */
.contacto {
  background: #f8f9fc;
  padding: 80px 0;
}

.contacto h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.4rem;
}

.contacto-sub {
  text-align: center;
  color: #6b6b6b;
  max-width: 700px;
  margin: 0 auto 40px;
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Formulario */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  font-size: 16px;
}

/* WhatsApp */
.contact-whatsapp {
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: left;
}

.btn-wsp {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-wsp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .contacto-wrapper {
    grid-template-columns: 1fr;
  }
}
