/* ===================================================================
   LOGIQO — Complete Styles v2
   =================================================================== */

/* ---- CSS Variables ---- */
:root {
  --blue: #075dff;
  --blue-light: #2f83ff;
  --blue-pale: #ecf4ff;
  --navy: #07122e;
  --ink: #07122e;
  --muted: #5a6882;
  --line: rgba(7, 93, 255, 0.08);
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(7, 37, 92, 0.07);
  --shadow: 0 12px 40px rgba(7, 37, 92, 0.1);
  --shadow-lg: 0 24px 64px rgba(7, 37, 92, 0.14);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
}

.text-blue {
  color: var(--blue);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(7, 37, 92, 0.08);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  height: 78px;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--navy);
}

.brand-logo-icon {
  flex-shrink: 0;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #3d4d6b;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link.active {
  color: var(--blue);
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: calc(100% - 32px);
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 93, 255, 0.3);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-link:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 28px rgba(7, 93, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(7, 93, 255, 0.38);
}

.btn-secondary {
  background: white;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 15px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-wa {
  background: #25d366;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('public/assets/hero-background.png') center / cover no-repeat;
  padding-top: 150px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #f4f8ff);
  z-index: 2;
  pointer-events: none;
}

/* ---- Floating interactive bubbles ---- */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.7), rgba(180, 210, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.3s;
  pointer-events: all;
}

.bubble:hover {
  transform: scale(1.25) !important;
  box-shadow: 0 8px 32px rgba(7, 93, 255, 0.18), 0 0 0 6px rgba(7, 93, 255, 0.06);
}

/* Bubble positions & sizes */
.bubble-1 {
  width: 80px;
  height: 80px;
  top: 12%;
  left: 6%;
  animation: bubbleFloat 7s ease-in-out infinite;
}

.bubble-2 {
  width: 50px;
  height: 50px;
  top: 35%;
  left: 45%;
  animation: bubbleFloat 9s ease-in-out infinite 1s;
}

.bubble-3 {
  width: 36px;
  height: 36px;
  top: 70%;
  left: 30%;
  animation: bubbleFloat 8s ease-in-out infinite 2s;
}

.bubble-4 {
  width: 60px;
  height: 60px;
  top: 18%;
  right: 12%;
  animation: bubbleFloat 6s ease-in-out infinite 0.5s;
}

.bubble-5 {
  width: 28px;
  height: 28px;
  top: 55%;
  right: 28%;
  animation: bubbleFloat 10s ease-in-out infinite 3s;
}

@keyframes bubbleFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  33% {
    transform: translateY(-14px) scale(1.04);
  }

  66% {
    transform: translateY(8px) scale(0.97);
  }
}

/* ---- Rails ---- */
.scroll-rail {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--muted);
  opacity: 0.25;
}

.social-rail {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 5;
}

.rail-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  opacity: 0.7;
}

.rail-link:hover {
  color: var(--blue);
  transform: scale(1.2);
  opacity: 1;
}

/* ---- Hero grid ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0px 20px 80px 100px;
}

/* ---- Left copy ---- */
.hero-copy {
  max-width: 650px;
  padding-right: 20px;
  align-self: start;
  margin-top: 10px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(7, 93, 255, 0.07);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(7, 93, 255, 0.12);
}

.blue-dot {
  font-size: 12px;
}

.hero-title {
  font-size: 58px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 460px;
  border-left: 4px solid var(--blue);
  padding-left: 20px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trust-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: #8fa3be;
}

/* ---- Right visual ---- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.hero-3d-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* BRAIN — main 3D asset, centered and large */
.brain-img {
  width: 140%;
  height: auto;
  position: relative;
  z-index: 3;
  margin-left: 4%;
  margin-top: 100px;
  /* Bajar un poco el cerebro */
}

.base-glow {
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 48%;
  height: 15px;
  background: rgba(7, 93, 255, 0.4);
  border-radius: 50%;
  filter: blur(5px);
  z-index: 2;
  animation: drainEnergy 1.5s infinite ease-out;
}

/* ---- Scroll/float animations ---- */
@keyframes drainEnergy {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 0 30px 15px rgba(7, 93, 255, 0.9);
  }

  100% {
    transform: translateX(-50%) translateY(40px) scale(0.8);
    opacity: 0;
    box-shadow: 0 20px 10px 0px rgba(7, 93, 255, 0);
  }
}

@keyframes floatRobot {

  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes floatFab {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ===================== ABOUT SECTION ===================== */
.about-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  z-index: 1;
}

.about-bg-left,
.about-bg-right {
  position: absolute;
  top: -150px;
  bottom: -150px;
  z-index: -1;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.about-bg-left {
  left: 0;
  width: 400px;
  background-position: left calc(100% - 50px);
  background-image: url('public/assets/Photoroom_20260905_160452.PNG');
}

.about-bg-right {
  right: 0;
  width: 400px;
  background-position: right calc(100% - 50px);
  background-image: url('public/assets/Photoroom_20260905_161044.PNG');
}

.about-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: flex-start;
}

.about-header .eyebrow-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow-line {
  flex: 0 0 60px;
  height: 1px;
  background: var(--border);
}

.about-header h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin: 0;
}

.about-description {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.about-description p {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
}

.about-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding-right: 40px;
  border-right: 1px solid var(--border);
}

.stat-item:nth-last-child(2) {
  border-right: none;
  padding-right: 0;
}

.stat-item h4 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.stat-btn-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
}

.history-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

.history-btn:hover {
  opacity: 0.8;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  font-size: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.history-btn:hover .btn-icon {
  background: var(--navy);
  color: white;
  transform: translateX(4px);
}

.tech-wave-section {
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
  background: #f8faff;
}

.tech-wave-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.tech-wave-inner {
  display: flex;
  width: max-content;
  will-change: transform;
  gap: 60px;
  padding: 40px 100px;
  align-items: center;
  /* Animación súper lenta para que se pueda leer bien (120s) */
  animation: techWaveScroll 120s linear infinite;
}

@keyframes techWaveScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.tech-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* Animación de ola vertical */
  animation: floatWave 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.4s);
}

.tech-icon {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(7, 93, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-icon-wrap:hover .tech-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(7, 93, 255, 0.15);
}

.tech-icon svg {
  width: 50px;
  height: 50px;
}

.tech-icon-wrap span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.8;
}

@keyframes floatWave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-25px);
  }
}

@media (max-width: 991px) {
  .about-top-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-description {
    padding-left: 0;
    border-left: none;
  }

  .about-stats-row {
    flex-wrap: wrap;
    gap: 32px;
    border-top: none;
  }

  .stat-item {
    border-right: none;
    width: 50%;
    padding-right: 0;
  }

  .stat-btn-container {
    width: 100%;
    justify-content: flex-start;
    margin-top: 24px;
  }

  .about-header h2 {
    font-size: 2.5rem;
  }
}

/* ===================== SERVICES SECTION ===================== */
.services {
  padding: 100px 0 80px;
  background: #f4f8ff;
  position: relative;
  z-index: 2;
  border-radius: 0 0 50% 50% / 0 0 70px 70px;
  margin-bottom: -70px;
}

.section-header {
  text-align: left;
  margin-bottom: 56px;
}

.eyebrow-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--navy);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 34px 28px 30px;
  box-shadow: 0 2px 16px rgba(7, 37, 92, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(7, 37, 92, 0.12);
}

.svc-icon {
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===================== PROJECTS SECTION ===================== */
.projects-section {
  position: relative;
  background: #050d1f;
  background-image:
    radial-gradient(ellipse 80% 50% at 70% 60%, rgba(7, 93, 255, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 40%, rgba(0, 200, 255, 0.08) 0%, transparent 60%);
  overflow: hidden;
  padding: 0;
  padding-top: 70px;
  padding-bottom: 70px;
}

.projects-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  min-height: 520px;
  padding: 0 60px;
  gap: 40px;
}

/* ---- Left copy ---- */
.projects-copy {
  z-index: 2;
  position: relative;
}

.projects-eyebrow {
  color: rgba(160, 200, 255, 0.7) !important;
}

.projects-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: white;
  margin: 16px 0 36px;
}

.text-accent {
  color: #4af0ff;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 240, 255, 0.12);
}

/* ---- Carousel wrap ---- */
.carousel-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 70px;
}

/* Nav arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(74, 240, 255, 0.18);
  border-color: rgba(74, 240, 255, 0.6);
  box-shadow: 0 0 20px rgba(74, 240, 255, 0.2);
}

.carousel-prev {
  left: -28px;
}

.carousel-next {
  right: -28px;
}

/* Stage — 3D perspective container */
.carousel-stage {
  position: relative;
  width: 100%;
  height: 340px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

/* Individual card */
.carousel-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform-style: preserve-3d;
  transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Mobile frame */
.mobile-frame {
  width: 140px;
  border-radius: 22px;
  background: #0c1a36;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  aspect-ratio: 9/18;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop frame */
.desktop-frame {
  width: 340px;
  border-radius: 14px;
  background: #0c1a36;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-frame {
  width: 380px;
}

/* Label below card */
.carousel-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  text-align: center;
  transition: color 0.4s;
}

/* ---- State classes set by JS ---- */

/* ACTIVE — front center */
.carousel-card.state-active {
  transform: translateX(-50%) translateZ(0px) rotateY(0deg) scale(1);
  z-index: 5;
  filter: brightness(1);
}

.carousel-card.state-active .carousel-label {
  color: rgba(255, 255, 255, 0.9);
}

/* PREV — left, tilted right, behind */
.carousel-card.state-prev {
  transform: translateX(calc(-50% - 280px)) translateZ(-160px) rotateY(28deg) scale(0.82);
  z-index: 3;
  filter: brightness(0.55);
}

/* NEXT — right, tilted left, behind */
.carousel-card.state-next {
  transform: translateX(calc(-50% + 280px)) translateZ(-160px) rotateY(-28deg) scale(0.82);
  z-index: 3;
  filter: brightness(0.55);
}

/* HIDDEN — off stage, used for transitions with 3 items */
.carousel-card.state-hidden {
  transform: translateX(-50%) translateZ(-400px) scale(0.5);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---- Glow ring ---- */
.glow-ring {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%) rotateX(78deg);
  width: 80%;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid rgba(74, 240, 255, 0.35);
  box-shadow:
    0 0 30px rgba(74, 240, 255, 0.18),
    0 0 80px rgba(74, 240, 255, 0.08),
    inset 0 0 30px rgba(7, 93, 255, 0.1);
  pointer-events: none;
  z-index: 1;
}

/* ---- Dots ---- */
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: #4af0ff;
  box-shadow: 0 0 10px rgba(74, 240, 255, 0.5);
}

/* Responsive */
@media (max-width: 960px) {
  .projects-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    text-align: center;
  }

  .projects-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .carousel-prev {
    left: 0;
  }

  .carousel-next {
    right: 0;
  }

  .desktop-frame {
    width: 260px;
  }

  .wide-frame {
    width: 290px;
  }

  .carousel-card.state-prev {
    transform: translateX(calc(-50% - 200px)) translateZ(-120px) rotateY(28deg) scale(0.75);
  }

  .carousel-card.state-next {
    transform: translateX(calc(-50% + 200px)) translateZ(-120px) rotateY(-28deg) scale(0.75);
  }
}

/* ===================== METRICS SECTION ===================== */
.metrics-section {
  padding: 80px 0;
  background: white;
  position: relative;
  z-index: 10;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-item {
  background: white;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(7, 37, 92, 0.06);
  border: 1px solid rgba(7, 93, 255, 0.06);
  transition: transform 0.3s;
}

.metric-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(7, 37, 92, 0.08);
}

.metric-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--navy);
}

.metric-suffix {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
}

.metric-icon {
  display: block;
  margin: 16px auto;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 50%;
  padding: 12px;
  width: 54px;
  height: 54px;
}

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ===================== TESTIMONIOS ===================== */
.testimonios {
  padding: 80px 0;
  position: relative;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.testi-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(7, 37, 92, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.testi-stars {
  color: var(--blue);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.testi-author strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
}

.testi-author span {
  font-size: 12px;
  color: var(--muted);
}

.testi-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.testi-dots .dot {
  background: rgba(7, 93, 255, 0.2);
}

.testi-dots .dot.active {
  background: var(--blue);
}

/* ===================== HUB SECTION (Blog / Social / Gallery / News) ===================== */
.hub-section {
  padding: 60px 0 100px;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.hub-col {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: 0 8px 32px rgba(7, 37, 92, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}

.hub-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.hub-see-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

/* Blog Col */
.blog-item {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.blog-item:last-child {
  margin-bottom: 0;
}

.blog-thumb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.blog-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-item h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 6px;
}

.blog-meta {
  font-size: 12px;
  font-weight: 500;
  color: #8fa3be;
}

/* Social Col */
.hub-social-sub {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 16px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  flex: 1;
}

.social-thumb {
  background: var(--blue-pale);
  border-radius: 12px;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}

.social-icons-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.soc-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.soc-btn:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
}

/* Gallery Col */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.gallery-thumb {
  background: #e2e8f0;
  border-radius: 12px;
  aspect-ratio: 1;
}

.gallery-plus {
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* News Col */
.hub-news {
  background: var(--navy);
  color: white;
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.hub-news .hub-col-header {
  margin: 0;
  min-width: 200px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 20px;
}

.hub-news .eyebrow-tag {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.news-card {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.news-badge {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.news-card h4 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.news-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
  flex: 1;
  min-width: 180px;
}

.news-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}


/* ===================== ALIADOS ===================== */
.allies-section {
  padding: 40px 0;
  text-align: center;
}

.allies-eyebrow {
  margin-bottom: 30px;
  justify-content: center;
}

.allies-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 30px 40px;
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(7, 37, 92, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.ally {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.ally:hover {
  opacity: 1;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--navy);
  color: white;
  padding: 80px 0 30px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .brand {
  color: white;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-soc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
}

.footer-soc:hover {
  background: var(--blue);
  color: white;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-contact-col li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 32px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: white;
}

/* ===================== CONTACTO ===================== */
.contacto-section {
  padding: 100px 0 140px;
  position: relative;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contacto-copy h2 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--navy);
}

.contacto-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.contacto-info {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-weight: 600;
  color: var(--navy);
}

.contacto-form {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(7, 37, 92, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
}

.btn-form {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

/* ===================== 3D BUBBLES ===================== */
.glass-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(130% 130% at 20% 20%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.8),
    inset 8px 0 40px rgba(255, 255, 255, 0.5),
    inset -8px -8px 20px rgba(7, 93, 255, 0.15),
    0 10px 40px rgba(7, 37, 92, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  animation: floatBubble 8s ease-in-out infinite;
  z-index: 5;
}

.glass-bubble::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
  border-radius: 50%;
  transform: rotate(-45deg);
}

@keyframes floatBubble {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.b1 {
  width: 120px;
  height: 120px;
  top: -60px;
  left: 10%;
  animation-delay: 0s;
}

.b2 {
  width: 80px;
  height: 80px;
  top: 140px;
  right: 5%;
  animation-delay: -2s;
}

.b3 {
  width: 160px;
  height: 160px;
  bottom: -80px;
  left: 20%;
  animation-delay: -4s;
}

.b4 {
  width: 90px;
  height: 90px;
  bottom: 20%;
  right: 15%;
  animation-delay: -1s;
}

/* ===================== BOTTOM BACKGROUND WRAPPER ===================== */
.bottom-glass-bg {
  position: relative;
  background: url('public/assets/hero-background.png') center/cover fixed no-repeat;
  z-index: 2;
  border-radius: 50% 50% 0 0 / 70px 70px 0 0;
  margin-top: -70px;
  padding-top: 70px;
}

.bottom-glass-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 0;
  border-radius: inherit;
}

.bottom-glass-bg>* {
  position: relative;
  z-index: 1;
}

/* Responsive adds for new sections */
@media (max-width: 960px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-news {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hub-news .hub-col-header {
    border-right: none;
    padding-right: 0;
    margin-bottom: 10px;
  }

  .news-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-contact-col {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== ROBOT FAB WRAPPER ===================== */
.robot-fab-wrapper {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Greeting bubble */
.robot-greeting {
  background: white;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 40px 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: 0 8px 32px rgba(7, 37, 92, 0.12);
  position: relative;
  max-width: 240px;
  animation: greetPop 0.4s cubic-bezier(.34, 1.56, .64, 1) forwards;
  transform-origin: bottom right;
}

.robot-greeting::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 24px;
  border: 8px solid transparent;
  border-top-color: white;
  border-bottom: 0;
}

.greeting-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s;
}

.greeting-close:hover {
  opacity: 1;
}

.robot-greeting.hidden {
  display: none;
}

@keyframes greetPop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* The robot button */
.robot-fab {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  animation: floatFab 5s ease-in-out infinite;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 14px 32px rgba(7, 93, 255, 0.22));
}

.robot-fab:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 16px 36px rgba(7, 93, 255, 0.3));
}

.robot-fab-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===================== FLOATING CHAT ===================== */
.floating-chat {
  position: fixed;
  bottom: 140px;
  right: 32px;
  width: 340px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(7, 37, 92, 0.18);
  z-index: 299;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* hidden state */
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

.floating-chat.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--blue);
  color: white;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  font-size: 24px;
  line-height: 1;
}

.chat-header strong {
  font-size: 15px;
  font-weight: 700;
  display: block;
}

.chat-status {
  font-size: 11px;
  opacity: 0.8;
  color: #a8f0c8;
}

.chat-close {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  transition: color 0.2s, transform 0.2s;
}

.chat-close:hover {
  color: white;
  transform: scale(1.2);
}

.chat-log {
  flex: 1;
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8faff;
}

.chat-log::-webkit-scrollbar {
  width: 4px;
}

.chat-log::-webkit-scrollbar-thumb {
  background: rgba(7, 93, 255, 0.15);
  border-radius: 4px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.bot-msg {
  background: white;
  color: var(--navy);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-msg {
  background: var(--blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px 6px;
  background: white;
  border-top: 1px solid #eef2fa;
}

.quick-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(7, 93, 255, 0.2);
  background: var(--blue-pale);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.quick-btn:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  background: white;
}

.chat-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #e0e8f8;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
}

.chat-form input:focus {
  border-color: var(--blue);
}

.chat-form button[type="submit"] {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.chat-form button[type="submit"]:hover {
  background: var(--blue-light);
  transform: scale(1.05);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ab4cc;
  animation: typingDot 1s infinite;
  display: inline-block;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* ===================== FLOATING SHARE ===================== */
.share-btn-floating {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 100;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  color: var(--muted);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.share-btn-floating:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  color: var(--blue);
}

/* ===================== MOBILE CTA ===================== */
.mobile-cta {
  display: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-inner {
    grid-template-columns: auto 1fr auto auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 0 60px;
    text-align: center;
    gap: 30px;
  }

  .hero-copy {
    max-width: 100%;
    margin-top: 0;
  }

  .hero-sub {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-btns,
  .trust-list {
    justify-content: center;
  }

  .trust-label {
    text-align: center;
  }

  .hero-visual {
    min-height: 380px;
  }

  .brain-img {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .scroll-rail,
  .social-rail {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .robot-fab {
    width: 85px;
    height: 85px;
  }

  .floating-chat {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .share-btn-floating {
    display: none;
  }

  .mobile-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    padding: 14px 20px;
    border-top: 1px solid rgba(7, 93, 255, 0.08);
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

  .section-header h2 {
    font-size: 30px;
  }

  .hero-title {
    font-size: 34px;
  }
}

/* ===================== FAQ STYLES (BENTO) ===================== */
.faq-section {
  padding: 100px 0;
  background: #f8faff;
}

.bento-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.bento-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(7, 93, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(7, 93, 255, 0.1);
}

.bento-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.bento-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Grid Spans for Bento Effect */
.bento-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff, #f0f5ff);
}

.bento-tall {
  grid-row: span 2;
  background: linear-gradient(180deg, #075dff, #0a3d99);
  border: none;
}

.bento-tall h3,
.bento-tall p {
  color: white;
}

.bento-tall p {
  opacity: 0.85;
}

.bento-wide-bottom {
  grid-column: span 2;
  background: #0f172a;
}

.bento-wide-bottom h3,
.bento-wide-bottom p {
  color: white;
}

.bento-wide-bottom p {
  opacity: 0.85;
}

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

  .bento-wide,
  .bento-tall,
  .bento-wide-bottom {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 767px) {
  .bento-faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===================== FORM ERRORS ===================== */
.form-group {
  position: relative;
  padding-bottom: 24px;
}

.error-msg {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 12px;
  color: #dc3545;
  display: none;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #dc3545;
  background: #fff8f8;
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--navy);
  margin: 0;
  line-height: 1.5;
}

.cookie-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}