@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/questrial-latin-400.89ccc12b.woff2") format("woff2");
}

:root {
  --celeste: #009fe3;
  --celeste-texto: #0077aa; /* celeste oscurecido para texto sobre blanco (contraste 4,98:1; --celeste solo da 2,97:1) */
  --amarillo: #f29100;
  --rojo: #e30613;
  --verde: #3dad44;
  --verde2: #209176;

  --primary: var(--celeste);
  --primary-dark: #007bb0;
  --secondary: var(--verde);
  --bg: #ffffff;
  --bg-alt: #fcfdfe;
  --text: #1a1b1e;
  --text-muted: #606770;
  --border: #eceef0;
  --font-main: "Questrial", sans-serif;
  --nav-height: 120px;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip; /* sin ancho desplazable por elementos decorativos (blobs); hidden queda de respaldo */
}

/* Base Styles */
h1,
h2,
h3 {
  font-weight: 400;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(150px, -150px) scale(1.2);
  }

  66% {
    transform: translate(-100px, 150px) scale(0.8);
  }

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

.bg-animations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at center, #ffffff 0%, #fcfdfe 100%);
}

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: float 20s infinite ease-in-out;
}

.blob.celeste {
  background: var(--celeste);
  top: 5%;
  left: 10%;
  animation-duration: 18s;
}

.blob.amarillo {
  background: var(--amarillo);
  top: 50%;
  right: 5%;
  animation-duration: 25s;
  animation-delay: -5s;
  width: 350px;
  height: 350px;
}

.blob.rojo {
  background: var(--rojo);
  bottom: 10%;
  left: 15%;
  animation-duration: 20s;
  animation-delay: -10s;
  width: 250px;
  height: 250px;
}

.blob.verde {
  background: var(--verde2);
  top: 15%;
  right: 15%;
  animation-duration: 22s;
  animation-delay: -15s;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 5%;
  display: flex;
  justify-content: flex-start;
  gap: 4rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  transition:
    all 0.4s ease,
    transform 0.35s ease;
}

nav.nav-hidden {
  transform: translateY(-100%);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo {
  height: 85px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  flex-grow: 1;
}

.nav-cta {
  margin-left: auto;
}

.nav-cta .btn {
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-link {
  font-size: 1rem;
  color: var(--text);
}

.nav-link:hover,
.nav-link.active,
.has-dropdown.active .nav-link {
  color: var(--celeste);
}

.nav-link.active {
  font-weight: 600;
}

/* Menú en pantallas medianas: con "Blog" y el selector de idioma hace falta compactar el menú
   para que "Contáctanos" y las banderas no queden fuera de la pantalla antes del menú móvil (768px). */
@media (max-width: 1400px) and (min-width: 769px) {
  .nav-links { gap: 1.25rem; }
  .nav-links .language-switcher { margin-left: 0.5rem; gap: 0.35rem; }
  .nav-links .lang-btn { min-width: 32px; height: 28px; padding: 0 0.4rem; font-size: 0.75rem; }
}
@media (max-width: 1240px) and (min-width: 769px) {
  .nav-links { gap: 0.9rem; }
  .header-logo { height: 60px; }
  .nav-link, .nav-cta .btn { font-size: 0.88rem; }
  .nav-cta .btn { padding: 0.5rem 1rem; }
}
@media (max-width: 1040px) and (min-width: 769px) {
  .nav-links { gap: 0.55rem; }
  .header-logo { height: 44px; }
  .nav-link, .nav-cta .btn { font-size: 0.8rem; }
  .nav-cta .btn { padding: 0.4rem 0.7rem; }
  .nav-links .language-switcher { margin-left: 0.25rem; gap: 0.2rem; }
  .nav-links .lang-btn { min-width: 26px; height: 24px; padding: 0 0.3rem; font-size: 0.7rem; }
}
@media (max-width: 880px) and (min-width: 769px) {
  .nav-links { gap: 0.4rem; }
  .header-logo { height: 36px; }
  .nav-link, .nav-cta .btn { font-size: 0.74rem; }
  .nav-cta .btn { padding: 0.35rem 0.55rem; }
  .nav-links .lang-btn { min-width: 24px; height: 22px; padding: 0 0.25rem; font-size: 0.66rem; }
}

/* Dropdown */
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.has-dropdown {
  cursor: pointer;
}

.has-dropdown .nav-link {
  display: inline;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.has-dropdown .nav-link::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(45deg);
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.has-dropdown.active .nav-link::after {
  transform: rotate(-135deg);
  bottom: 2px;
  opacity: 1;
  border-color: var(--celeste);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  /* Solid white background */
  min-width: 240px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 0;
  z-index: 1000;
}

.has-dropdown.active .dropdown-content {
  display: block;
  animation: dropdownFade 0.3s ease forwards;
}

.dropdown-item {
  color: var(--text);
  padding: 0.8rem 1.8rem;
  display: block;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(0, 159, 227, 0.05);
  /* Very light celeste */
  color: var(--celeste);
  padding-left: 2.2rem;
  /* Subtle slide effect */
}

/* Foco visible al navegar con teclado */
.nav-link:focus-visible {
  outline: 2px solid var(--celeste);
  outline-offset: 4px;
  border-radius: 4px;
}

.dropdown-item:focus-visible {
  background: rgba(0, 159, 227, 0.05);
  color: var(--celeste);
  outline: 2px solid var(--celeste);
  outline-offset: -2px;
}

/* Hero Section */
.hero {
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  padding-top: var(--nav-height);
  background: transparent;
}

.hero h1 {
  font-size: 4.8rem;
  max-width: 1200px;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.2;
  display: flex;
  /* Centering */
  justify-content: center;
}

.text-slider-container {
  display: inline-block;
  /* semantic container */
}

.text-slider {
  display: grid;
  text-align: center;
  grid-template-areas: "slide";
  align-items: center;
}

.text-slide {
  grid-area: 1 / 1;
  /* Both occupy the same cell */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  /* For manual JS? No, keyframes */
  animation: fadeSlide 8s infinite;
  padding: 0 10px;
}

/* Offsets for animations so they alternate */
.text-slide:nth-child(1) {
  animation-delay: 0s;
}

.text-slide:nth-child(2) {
  animation-delay: 4s;
  /* Half of 8s */
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  5%,
  45% {
    opacity: 1;
    transform: translateY(0);
  }

  /* Visible for 40% of cycle */
  50%,
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }

  /* Fade out upward */
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  padding: 0.8rem 2.2rem;
  border-radius: 30px;
  font-family: "Questrial", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-primary {
  background: #0077aa;
  color: white;
}

.btn-primary:hover {
  background: #006b99;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

/* Sections */
section {
  padding: 80px 10%;
  background: transparent;
}

.section-title {
  color: #000000;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

/* Brand Color Utilities */
.border-celeste:hover {
  border-color: var(--celeste) !important;
}

.border-amarillo:hover {
  border-color: var(--amarillo) !important;
}

.border-rojo:hover {
  border-color: var(--rojo) !important;
}

.border-verde:hover {
  border-color: var(--verde) !important;
}

.border-verde2:hover {
  border-color: var(--verde2) !important;
}

.text-celeste {
  color: var(--celeste) !important;
}

.text-amarillo {
  color: var(--amarillo) !important;
}

.text-rojo {
  color: var(--rojo) !important;
}

/* Brand Color Utilities */
.border-celeste:hover {
  border-color: var(--celeste) !important;
}

/* ... existing code ... */

#servicios .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

#servicios .grid .card-link {
  grid-column: span 2;
}

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

  #servicios .grid .card-link {
    grid-column: span 1;
  }
}

/* Products Section Layout */
.google-products-grid,
.own-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.google-products-grid {
  margin-bottom: 4rem;
}

.section-subtitle {
  text-align: center;
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 2rem;
  font-weight: 600;
}

.own-products-grid .card {
  width: 100%;
  /* Removed flex and max-width constraints to match google grid */
}

/* Hover effects for Own Products - Verde2 Theme */
.own-products-grid .card:hover {
  border-color: var(--verde2) !important;
}

.own-products-grid .card:hover h3 {
  color: var(--verde2) !important;
}

.own-products-grid .card:hover h3::after {
  background-color: var(--verde2) !important;
}

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

#servicios .card {
  width: 100%;
  max-width: 800px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#servicios .card h3 {
  font-size: 1.5rem;
  margin: 0;
  transition: color 0.4s ease;
}

#servicios .card p {
  opacity: 1;
  color: #333 !important;
  text-align: center;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.border-celeste:hover h3 {
  color: var(--celeste) !important;
}

.border-celeste:hover h3::after {
  background-color: var(--celeste) !important;
}

.border-amarillo:hover h3 {
  color: var(--amarillo) !important;
}

.border-amarillo:hover h3::after {
  background-color: var(--amarillo) !important;
}

.border-rojo:hover h3 {
  color: var(--rojo) !important;
}

.border-rojo:hover h3::after {
  background-color: var(--rojo) !important;
}

.border-verde:hover h3 {
  color: var(--verde) !important;
}

.border-verde:hover h3::after {
  background-color: var(--verde) !important;
}

.border-verde2:hover h3 {
  color: var(--verde2) !important;
}

.border-verde2:hover h3::after {
  background-color: var(--verde2) !important;
}

.text-verde {
  color: var(--verde) !important;
}

.text-verde2 {
  color: var(--verde2) !important;
}

/* Cards */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  border-color: var(--primary);
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: 400;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  /* Force single line if desired, but size reduction is safer */
}

.card h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 4px;
  background-color: transparent;
  /* No color by default */
  border-radius: 2px;
  transition:
    width 0.4s ease-in-out,
    background-color 0.4s ease;
}

.card:hover h3::after {
  width: 60%;
}

.card p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
}

/* Video Section */
.video-section {
  background: transparent;
  padding-top: 40px;
}

.video-section-header {
  text-align: center;
  width: 100%;
}

.video-footer {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  width: 100%;
}

.video-container-inner {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-text {
  flex: 1;
  text-align: left;
  padding-top: 1rem;
}

.underline-verde {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 500;
}

.underline-verde::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 4px;
  background-color: var(--verde2);
  border-radius: 2px;
}

.video-text p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  color: #333;
  margin-bottom: 2rem;
}

.btn-video-concept {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #1d826a;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-video-concept:hover {
  background-color: #1a7a63;
  color: white;
}

.video-iframe {
  flex: 1;
  position: relative;
  padding-bottom: 28.125%;
  /* 16:9 for half width */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: transparent;
}

.video-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

@media (max-width: 968px) {
  .video-container-inner {
    flex-direction: column;
    text-align: center;
  }

  .video-text {
    text-align: center;
  }

  .video-iframe {
    width: 100%;
    padding-bottom: 56.25%;
    /* Full 16:9 */
  }
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

input,
textarea,
select {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background-color: #fff;
  color: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Logo Slider */
.logo-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  margin-top: 1rem;
}

.logo-track {
  display: flex;
  width: 1600%;
  /* 16 items (8 original + 8 dupes), each 100% container width */
  animation: logo-slide 24s infinite ease-in-out;
}

.logo-item {
  width: 6.25%;
  /* 1/16 of the 1600% track */
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

@keyframes logo-slide {
  0%,
  9.5% {
    transform: translateX(0);
  }

  12.5%,
  22% {
    transform: translateX(-6.25%);
  }

  25%,
  34.5% {
    transform: translateX(-12.5%);
  }

  37.5%,
  47% {
    transform: translateX(-18.75%);
  }

  50%,
  59.5% {
    transform: translateX(-25%);
  }

  62.5%,
  72% {
    transform: translateX(-31.25%);
  }

  75%,
  84.5% {
    transform: translateX(-37.5%);
  }

  87.5%,
  97% {
    transform: translateX(-43.75%);
  }

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

.logo-item img.logo-chrome,
.logo-item img.logo-edu {
  max-height: 80px;
  /* Enhanced size for wider logos */
}

.logo-item img {
  max-width: 80%;
  max-height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-item img:hover {
  transform: scale(1.1);
}

.section-description {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

/* Steps / Process Layout */
.steps-container {
  display: flex;
  gap: 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto 0;
}

.step-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(0, 159, 227, 0.25);
  border-top: 3px solid var(--celeste);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 159, 227, 0.15);
  border-color: rgba(0, 159, 227, 0.5);
}

.step-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #0077aa;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  margin-bottom: 0.9rem;
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 159, 227, 0.4);
}

.step-card h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.step-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

@media (max-width: 900px) {
  .steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* Partners Carousel */
.partners-track {
  display: flex;
  width: max-content;
  animation: continuous-scroll 30s linear infinite;
}

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

#socios {
  position: relative;
  z-index: 5;
}

/* Partners Card Styles */
.partners-track .logo-item {
  background: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 250px;
  /* Slightly wider */
  min-height: 160px;
  /* Slightly taller */
  flex-shrink: 0;
  margin: 0 1rem;
}

.partners-track .logo-item img {
  max-height: 90px;
  max-width: 85%;
}

.partners-track .logo-item img.logo-beside {
  max-width: calc(85% + 20px);
}

.partners-track .logo-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.partners-track .logo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
  background: #ffffff;
}

.logo-item img.logo-lg {
  max-height: 90px;
}

.logo-item img.logo-xl {
  max-height: 110px;
}

.logo-item img.logo-maps {
  max-height: 180px;
}

@keyframes continuous-scroll {
  0% {
    transform: translateX(0);
  }

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

/* Trust logos strip (home hero) */
.trust-strip {
  padding: 2rem 0;
  text-align: center;
  background: #ffffff;
}

.trust-logos-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}

.trust-logos-track {
  display: flex;
  width: max-content;
  animation: continuous-scroll 60s linear infinite;
}

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

.trust-logos-track .logo-item {
  flex-shrink: 0;
  width: 190px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.5rem;
}

.trust-logos-track .logo-item img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.45);
  transition: filter 0.3s ease;
}

.trust-logos-track .logo-item img.logo-xl,
.trust-logos-track .logo-item img.logo-boost {
  max-height: 74px;
}

.trust-logos-track .logo-item img.logo-beside {
  max-height: 74px;
  max-width: 115%;
}

.trust-logos-track .logo-item img:hover {
  filter: grayscale(1) opacity(0.75);
}

#sobre-nosotros {
  margin-top: 2rem;
}

/* Client case study cards */
.case-studies-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1300px;
  margin: 0 auto 3rem;
}

.case-studies-viewport {
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1rem 0 1.5rem;
}

.case-studies-viewport::-webkit-scrollbar {
  display: none;
}

.case-studies-track {
  display: flex;
  gap: 1.75rem;
}

.case-studies-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.case-studies-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.case-studies-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.case-study-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 340px;
  flex: 0 0 calc((100% - 3 * 1.75rem) / 4);
  scroll-snap-align: start;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.case-study-logo {
  height: 55px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.case-study-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.case-study-logo img {
  max-height: 100%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.case-study-logo a:hover img {
  transform: scale(1.05);
}

.case-study-logo img.case-study-logo-lg {
  max-height: 145%;
}

.case-study-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  text-align: center;
}

@media (max-width: 1000px) {
  .case-study-card {
    flex: 0 0 calc((100% - 1.75rem) / 2);
  }
}

@media (max-width: 560px) {
  .case-study-card {
    flex: 0 0 100%;
  }
}

/* Footer */
footer {
  padding: 60px 10% 100px;
  background: #1d826a;
  background: linear-gradient(135deg, #1d826a 0%, #1a7a63 100%);
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  /* Subtle relief effect on the right */
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    inset -10px 0 20px -10px rgba(0, 0, 0, 0.15);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.footer-info {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.2rem;
}

.footer-tagline {
  margin-top: 1.5rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 400;
  max-width: 250px;
}

.social-links a {
  color: #ffffff;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.footer-logo-white {
  filter: brightness(0) invert(1);
}

.footer-content {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 4rem;
  flex: 2;
  justify-content: center;
}

.footer-section .footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  position: absolute;
  bottom: 20px;
  left: 10%;
  right: 10%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #ffffff;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 800px) {
  footer {
    flex-direction: column;
    padding-bottom: 140px;
    gap: 3rem;
  }

  .footer-info {
    flex: 1;
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    align-self: center;
  }

  .footer-info p {
    max-width: 100% !important;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    text-align: center;
    justify-content: center;
    gap: 2rem 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Tecnologías Section */
#tecnologias {
  text-align: center;
}

.tech-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.tech-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.tech-logo-item:hover {
  transform: translateY(-6px);
}

.tech-logo-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tech-logo-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .tech-logos-grid {
    gap: 2rem;
  }

  .tech-logo-item img {
    width: 56px;
    height: 56px;
  }
}

/* Mobile logo: hidden on desktop */
.header-logo-mobile {
  display: none;
}

/* Hamburger button: hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .header-logo {
    display: none;
  }

  .header-logo-mobile {
    display: block;
    height: 50px;
    width: auto;
    object-fit: contain;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 5%;
    gap: 0;
    overflow-y: auto;
    z-index: 1050;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links .nav-item {
    width: 100%;
    height: auto;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .nav-links .has-dropdown .nav-link {
    padding-bottom: 1rem;
    margin-bottom: 0;
  }

  .nav-links .has-dropdown .nav-link::after {
    right: 0;
    left: auto;
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
  }

  .nav-links .dropdown-content {
    display: none !important;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.5rem 1rem;
    min-width: auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    animation: none;
    z-index: 1060;
  }

  .nav-links .has-dropdown.active .dropdown-content {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-links .dropdown-item {
    padding: 0.6rem 0;
    font-size: 1rem;
    color: var(--text);
    opacity: 1;
    visibility: visible;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    border-bottom: none;
  }

  .nav-links .nav-cta .btn {
    display: block;
    text-align: center;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 80px 5%;
  }
}

/* Language Switcher: botones de texto (ES · EN · PT). Las banderas representan países, no
   idiomas, y los emojis de bandera no se muestran en Windows. */
.language-switcher {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  margin-left: 2rem;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  background: rgba(0, 119, 170, 0.12);
}

.lang-btn:focus-visible {
  outline: 2px solid #0077aa;
  outline-offset: 2px;
}

/* Mismo azul que .btn-primary: blanco sobre #0077aa cumple el contraste 4.5:1 */
.lang-btn.active {
  background: #0077aa;
  color: #fff;
}

@media (max-width: 768px) {
  .language-switcher {
    margin-left: 0;
    margin-top: 1rem;
    gap: 0.5rem;
    padding: 1rem 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }

  .lang-btn {
    min-width: 48px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Aceptación de la política de privacidad junto al botón de los formularios */
.contact-form .form-consent,
.form-consent {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.contact-form .form-consent a,
.form-consent a {
  color: var(--celeste-texto);
  text-decoration: underline;
}

/* Tablet: con 4 columnas + gap de 4rem el pie medía ~1010px y desbordaba la pantalla (820–1000px). */
@media (max-width: 1100px) and (min-width: 769px) {
  footer { gap: 2rem; padding-left: 5%; padding-right: 5%; }
  .footer-content {
    grid-template-columns: repeat(2, auto);
    gap: 2rem 3rem;
    min-width: 0;
  }
}

/* Móvil: las grillas de tarjetas con columnas fijas (a veces en línea, style="…") y el texto de
   video desbordaban la pantalla (seguridad-ofensiva, licitago, gemini-enterprise, google-workspace). */
html { overflow-x: clip; }
@media (max-width: 968px) {
  .video-container-inner > .video-text { min-width: 0; max-width: 100%; }
}
@media (max-width: 768px) {
  .features-grid,
  .cards-grid,
  .cards-grid-3 { grid-template-columns: minmax(0, 1fr) !important; }
  .features-grid > *,
  .cards-grid > *,
  .cards-grid-3 > * { min-width: 0; }
}

/* Títulos con white-space: nowrap en línea (google-workspace) se cortaban en pantallas angostas. */
@media (max-width: 600px) {
  .underline-verde { white-space: normal !important; }
  .card h3 { white-space: normal; }
}

/* Respeta "reducir movimiento" del sistema: sin animaciones continuas ni transiciones largas. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Los carruseles dejan de desplazarse: se muestran los logos en filas. */
  .trust-logos-track,
  .logo-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo-track .logo-item { width: auto; }
}
