/* =====================================================
   INGERO SpA — Rediseño 2026
   Estilo inspirado en referencias tecnológicas limpias
   Mobile First · CSS moderno · Animaciones sutiles
   ===================================================== */

/* ---------------- Variables ---------------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0b1120;
  --color-bg-dark-soft: #111827;
  --color-text: #111827;
  --color-text-muted: #64748b;
  --color-text-light: #f8fafc;
  --color-text-light-muted: #94a3b8;
  --color-accent: #0ea5e9;
  --color-accent-light: #22d3ee;
  --color-accent-dark: #0284c7;
  --color-border: #e2e8f0;
  --color-border-dark: #1f2937;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
  --container: 1280px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---------------- Utilidades ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  display: none;
  padding: 6rem 0;
}

.section.active {
  display: block;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-eyebrow.light {
  color: var(--color-accent-light);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-title.light {
  color: var(--color-text-light);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.section-dark .section-lead {
  color: var(--color-text-light-muted);
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

.text-accent {
  color: var(--color-accent-light);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 15px 20px -3px rgba(14, 165, 233, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-light);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-full {
  width: 100%;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  width: 170px;
  max-width: 100%;
  height: auto;
  transition: width var(--transition);
}

@media (max-width: 767px) {
  .logo img {
    width: 140px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 9999px;
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
}

.nav-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  box-shadow: 0 8px 12px -3px rgba(14, 165, 233, 0.35);
}

.nav-link.active {
  color: var(--color-accent);
  background-color: rgba(14, 165, 233, 0.1);
}

/* Menú móvil */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), background-color var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--color-text);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--color-text);
}

/* ---------------- Hero ---------------- */
.hero {
  display: none;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.section.active {
  display: block;
}

.hero.active {
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://ingero.cl/wp-content/uploads/header_2_ingero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: hero-zoom 20s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.92) 0%, rgba(11, 17, 32, 0.75) 60%, rgba(11, 17, 32, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: var(--color-text-light);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.08);
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-light-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  position: relative;
}

.mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-accent-light);
  border-radius: 2px;
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ---------------- Stats ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number,
.stat-suffix {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent-dark);
}

.stat-suffix {
  margin-left: 0.125rem;
}

.stat-label {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: stretch;
}

.about-copy p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about-copy .section-title {
  margin-bottom: 1.5rem;
}

.about-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--color-text);
}

.icon-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.125rem;
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 420px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(34, 211, 238, 0.08) 100%);
  color: var(--color-accent-dark);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  transition: gap var(--transition);
}

.service-link::after {
  content: '→';
  transition: transform var(--transition);
}

.service-link:hover {
  gap: 0.5rem;
}

.service-link:hover::after {
  transform: translateX(3px);
}

/* ---------------- Why INGERO ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background-color var(--transition), border-color var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(34, 211, 238, 0.25);
}

.why-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent-light);
  margin-bottom: 1.25rem;
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
}

.why-card p {
  color: var(--color-text-light-muted);
  font-size: 0.9375rem;
}

/* ---------------- Projects ---------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-body {
  padding: 1.75rem;
}

.project-client {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.project-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.project-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.project-link:hover {
  text-decoration: underline;
}

/* ---------------- Clients ---------------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  padding: 1rem;
}

.clients-grid img {
  max-width: 130px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}

.clients-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ---------------- Equipment ---------------- */
.equipment-grid {
  display: grid;
  gap: 3rem;
  align-items: stretch;
}

.equipment-copy p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.equipment-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.equipment-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.equipment-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.equipment-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 420px;
}

.equipment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-lead {
  color: var(--color-text-light-muted);
  margin-bottom: 2rem;
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--color-text-light-muted);
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent-light);
  margin-top: 0.125rem;
}

.contact-item strong {
  color: var(--color-text-light);
}

.contact-item a:hover {
  color: var(--color-accent-light);
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 0.375rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-light-muted);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.form-note.success {
  color: #34d399;
}

.form-note.error {
  color: #f87171;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background-color: #050914;
  color: var(--color-text-light-muted);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.9375rem;
}

.footer-nav h4,
.footer-services h4,
.footer-contact h4 {
  color: var(--color-text-light);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-nav li,
.footer-services li,
.footer-contact address a {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.footer-nav a:hover,
.footer-services a:hover,
.footer-contact address a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ---------------- Animaciones ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------------- Responsive ---------------- */
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 7rem 0;
  }

  .section > .container {
    width: 100%;
  }

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

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* ---------------- Menú móvil ---------------- */
@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 6rem 2rem 2rem;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    color: var(--color-text) !important;
    width: 100%;
    padding: 0.875rem 1rem;
  }

  .nav-link:hover,
  .nav-link:focus {
    background: var(--color-bg-alt);
    color: var(--color-accent) !important;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  /* Fondo oscuro cuando el menú está abierto */
  .site-header::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }

  .site-header.menu-open::before {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------------- Reducir movimiento ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   ESTILOS MINIMAX — Hero, mini cards, clientes
   ============================================================ */

/* CTA pills al estilo MiniMax */
.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 9999px;
  background: #F7F8FA;
  color: #111827;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  transition: background-color 200ms ease, color 200ms ease, transform 150ms ease;
}
.cta-pill:hover { transform: translateY(-1px); }

.cta-pill--white {
  background: #fff;
  color: #111827;
}
.cta-pill--white:hover { background: #F7F8FA; }

.cta-pill--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-pill--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero estilo MiniMax */
.hero.hero-max {
  position: relative;
  min-height: 100vh;
  padding: 0;
  flex-direction: column;
  justify-content: flex-start;
  background: #0b1120;
  overflow: hidden;
}

.hero-max__stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.hero-max__track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-max__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
  overflow: hidden;
}
.hero-max__slide.active { opacity: 1; }

.hero-max__slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: hero-bg-zoom 20s ease-in-out infinite alternate;
}

@keyframes hero-bg-zoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-max__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.58) 0%, rgba(11, 17, 32, 0.42) 50%, rgba(11, 17, 32, 0.28) 100%);
}

.hero-max__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  min-height: 420px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-max__text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 1000px;
  padding: 0;
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 20px), 0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hero-max__text.active {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: auto;
}

.hero-max__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1.25rem;
}

.hero-max__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-max__line {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.125rem;
}

.hero-max__title .text-accent {
  display: block;
  width: 100%;
  text-align: center;
}

.hero-max__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-light-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-max__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-max__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-max__dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background-color 250ms ease, width 250ms ease;
}
.hero-max__dot.active {
  background: #fff;
  width: 48px;
}

.hero-max__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms ease, opacity 300ms ease;
}
.hero-max__arrow:hover { background: rgba(0, 0, 0, 0.3); }
.hero-max__arrow--prev { left: 1.5rem; }
.hero-max__arrow--next { right: 1.5rem; }

/* Mini grid bajo el hero */
.hero-max__bottom {
  position: relative;
  z-index: 5;
  background: #fff;
  padding: 2.5rem 0;
  flex-shrink: 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mini-card {
  text-align: left;
  background: #fff;
  border: 1px solid #F2F3F5;
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.mini-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(24, 30, 37, 0.10);
}
.mini-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.mini-card__icon svg { width: 20px; height: 20px; }
.mini-card__icon--alt { background: var(--color-accent); }
.mini-card__icon--alt2 { background: #dd5454; }
.mini-card__title { font-weight: 700; font-size: 1rem; }
.mini-card__desc { font-size: 0.875rem; color: #64748b; }
.mini-card__cta { font-size: 0.875rem; color: #111827; margin-top: 0.25rem; font-weight: 600; }

/* Clientes estilo MiniMax — carrusel doble */
.clients-marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 4rem;
  overflow: hidden;
}

.clients-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  will-change: transform;
}

.clients-marquee--right .clients-marquee__track {
  animation: marquee-left 40s linear infinite;
}

.clients-marquee--left .clients-marquee__track {
  animation: marquee-right 40s linear infinite;
}

/* Pausar al hacer hover */
.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}

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

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

.client-card {
  flex: 0 0 auto;
  width: 260px;
  min-height: 170px;
  background: #fff;
  border: 1px solid #F2F3F5;
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  text-align: center;
}
.client-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(24, 30, 37, 0.08);
}
.client-card__logo {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-card__logo img {
  max-width: 200px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 250ms ease, opacity 250ms ease;
}
.client-card:hover .client-card__logo img {
  filter: grayscale(0%);
  opacity: 1;
}
.client-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

/* Ajustes responsive para MiniMax */
@media (min-width: 640px) {
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .hero-max__bottom { padding: 2rem 0; }
  .client-card { width: 300px; min-height: 190px; }
  .client-card__logo { height: 110px; }
  .client-card__logo img { max-width: 220px; max-height: 100px; }
}

@media (max-width: 1023px) {
  .hero-max__arrow { display: none; }
}

@media (max-width: 639px) {
  .hero-max__stage { padding-top: 5rem; padding-bottom: 4rem; }
  .hero-max__dots { bottom: 1.25rem; }
  .hero-max__bottom { padding: 1.5rem 0; }
  .client-card { width: 220px; min-height: 150px; }
  .client-card__logo { height: 80px; }
  .client-card__logo img { max-width: 160px; max-height: 70px; }
}
