/* ===============================
   RivoSolutions v9.0 — style.css
   Full Corporate Edition (Responsive + SEO + Animaciones)
   =============================== */

:root {
  --bg: #0E1130;
  --bg-light: #171A3A;
  --text: #E8E8E8;
  --text-muted: #B5B5B5;
  --primary: #E4E89E;
  --card: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --glow: 0 0 35px rgba(228,232,158,0.25);
  --transition: all 0.35s ease;
}

/* ================= RESET GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden !important;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14,17,48,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
}
.logo span { color: var(--primary); }

/* ====== MENU LINKS ====== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(228,232,158,0.4);
}

/* ====== BOTÓN HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 28px;
  height: 22px;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}
.menu-toggle span {
  background: var(--text);
  height: 3px;
  width: 100%;
  border-radius: 3px;
  transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0 20px;
}
#network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  z-index: 2;
  max-width: 850px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease forwards 0.3s;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: white;
}
.hero h1 span { color: var(--primary); }
.hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin: 24px 0 40px;
  line-height: 1.6;
}

/* ====== Botones ====== */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.btn-primary,
.btn-outline {
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(228,232,158,0.4);
  transform: translateY(-3px);
}
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: rgba(228,232,158,0.1);
  transform: translateY(-3px);
}

/* ====== Estadísticas ====== */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stats div {
  text-align: center;
  min-width: 100px;
}
.stats h3 {
  color: var(--primary);
  font-size: 1.8rem;
}
.stats p { color: var(--text-muted); }

/* ================= SECTION BASE ================= */
.section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section.gray {
  background: var(--bg-light);
  border-radius: 22px;
  padding: 80px 25px;
}
.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 18px 0 50px;
}

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}
.card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= PROCESO ================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: var(--radius);
  padding: 28px 18px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.step:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--glow);
}
.step span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  color: #0E1130;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ================= TECNOLOGÍA ================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  justify-items: center;
  align-items: stretch;
  margin-top: 40px;
}
.tech-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.tech-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(228,232,158,0.35));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.tech-card:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(228,232,158,0.6));
}
.tech-card:hover {
  box-shadow: var(--glow);
  transform: translateY(-8px) scale(1.03);
}
.tech-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(228,232,158,0.18), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tech-card:hover::after {
  opacity: 1;
}

/* ================= CLIENTES ================= */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
  margin-top: 40px;
}
.client-card {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 20px 10px;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
}
.client-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 50%;
}
.client-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}
.client-card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ================= FAQ ================= */
.faq {
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,0.05);
}
.faq-item button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  text-align: left;
}
.faq-item p {
  margin-top: 8px;
  color: var(--text-muted);
  display: none;
  line-height: 1.5;
}
.faq-item.active p { display: block; }

/* ================= CONTACTO ================= */
.contact p {
  margin-bottom: 30px;
}

/* ================= FOOTER ================= */
footer {
  background: #101233;
  padding: 80px 20px 40px;
  color: var(--text);
}
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.footer-col h3, .footer-col h4 {
  color: var(--primary);
  margin-bottom: 14px;
}
.footer-col p {
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 8px;
}
.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-list a:hover {
  color: var(--primary);
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.socials img {
  width: 24px;
  height: 24px;
  filter: invert(90%) sepia(40%) hue-rotate(20deg);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.socials img:hover {
  transform: scale(1.15);
  filter: brightness(1.4);
}
.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 50px;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.whatsapp-float img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}
.whatsapp-float img:hover { transform: scale(1.1); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(14,17,48,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    font-size: 1.2rem;
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .cards, .process-grid, .tech-grid, .client-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 20px; }
  footer { text-align: center; }
  .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-outline { width: 100%; }
  .hero h1 { font-size: 1.8rem; }
  .stats h3 { font-size: 1.4rem; }
}

/* ================= CARRUSELES ================= */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 40px;
}

.carousel-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollLoop 35s linear infinite;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-card, .client-card {
  min-width: 180px;
  text-align: center;
  flex-shrink: 0;
}

/* === Redes sociales (footer) === */
.socials {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.socials a img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* LinkedIn (mantiene filtro para tono dorado del sitio) */
.socials a[href*="linkedin"] img {
  filter: invert(90%) sepia(50%) saturate(100%) hue-rotate(20deg);
}

/* Instagram y Gmail: sin filtro, colores reales */
.socials a[href*="instagram"] img,
.socials a[href*="gmail"] img {
  filter: none;
}

/* Hover */
.socials a img:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}


/* === Enlaces de contacto === */
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: var(--primary);
}

/* === Redes sociales (footer) === */
.socials {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-start;
}

.socials a img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: none; /* Todos colores originales */
}

.socials a img:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* Centrado en mobile */
@media (max-width: 768px) {
  .socials {
    justify-content: center;
  }
}

/* === Botón flotante de WhatsApp === */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(37,211,102,0.4);
}
