/* ==========================================================================
   INSAGRO — Estilos (paleta del logo + diseño minimalista moderno)
   Colores: Navy #0B1D36 · Gold #C9A227 · Flame #E86A17 · Silver #94A3B8
   ========================================================================== */

:root {
  --navy: #0B1D36;
  --navy-deep: #071424;
  --gold: #C9A227;
  --gold-soft: #D4B84A;
  --flame: #E86A17;
  --flame-dark: #C9550F;
  --silver: #94A3B8;
  --surface: #F7F8FA;
  --white: #FFFFFF;
  --line: rgba(11, 29, 54, 0.08);
}

/* ---------- Base / Accessibility ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
}

body {
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--flame);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Navbar + topbar de contacto ---------- */
.site-header {
  box-shadow:
    0 8px 28px -12px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-topbar {
  background: linear-gradient(180deg, #050f1c 0%, #071424 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.header-topbar__tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 184, 74, 0.85);
}

.header-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.header-topbar__link:hover {
  color: var(--gold-soft);
}

.header-nav {
  background: rgba(7, 20, 36, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 30px -18px rgba(0, 0, 0, 0.5);
}

#site-header.is-scrolled .header-nav {
  background: rgba(5, 15, 28, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 32px -14px rgba(0, 0, 0, 0.65);
}

.nav-link {
  display: inline-block;
  position: relative;
  padding: 0.55rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  border-radius: 0.375rem;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Relieve sutil en ítems de menú */
.nav-menu-modern .nav-link {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.nav-menu-modern .nav-link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  opacity: 0.95;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.35);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 12px -6px rgba(0, 0, 0, 0.4);
}

.nav-menu-modern .nav-link:hover::after,
.nav-menu-modern .nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--gold-soft);
}

.mobile-nav-link {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Logo limpio: sin bordes, sin caja tipo botón */
.site-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  height: 4.875rem; /* +50% vs 3.25rem */
  width: auto;
  max-width: 18rem;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.site-logo--lg {
  height: 6.225rem; /* +50% vs 4.15rem */
  max-width: 23.25rem;
  padding: 0;
}

/* Compat: se deja la clase sin estilo de “botón” */
.site-logo--relief {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.site-logo--relief:hover,
.site-logo-link:hover .site-logo--relief {
  border: none;
  box-shadow: none;
}

@media (min-width: 640px) {
  .site-logo {
    height: 5.4rem; /* +50% vs 3.6rem */
    max-width: 21rem;
  }

  .site-logo--lg {
    height: 7.125rem; /* +50% vs 4.75rem */
    max-width: 26.25rem;
  }
}

@media (min-width: 1280px) {
  .site-logo--lg {
    height: 7.875rem; /* +50% vs 5.25rem */
    max-width: 28.5rem;
  }
}

.site-logo-footer {
  height: 7.125rem; /* +50% vs 4.75rem */
  width: auto;
  max-width: 19.5rem;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* ---------- Buttons (minimal) ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background-color: var(--flame);
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-cta:hover {
  background-color: var(--flame-dark);
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.btn-outline-light:hover {
  border-color: var(--gold);
  background-color: rgba(201, 162, 39, 0.08);
}

.btn-outline-light:active {
  transform: scale(0.98);
}

/* ---------- Sections ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1px;
  margin: 0.65rem auto 0;
  background: var(--gold);
  opacity: 0.7;
}

.section-label--left::after {
  margin-left: 0;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.2;
}

/* ---------- Cards (minimal: border, soft hover) ---------- */
.service-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.service-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 12px 32px -16px rgba(11, 29, 54, 0.12);
  transform: translateY(-2px);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background-color: rgba(201, 162, 39, 0.1);
  color: var(--gold);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.service-card:hover .icon-box {
  background-color: var(--navy);
  color: var(--gold-soft);
}

.benefit-line {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--flame);
  letter-spacing: 0.01em;
}

/* ---------- Service card detail trigger (no cambia el look de la card) ---------- */
.service-detail-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.service-detail-btn::after {
  content: " →";
  color: var(--gold);
  transition: transform 0.2s ease;
  display: inline-block;
}

.service-detail-btn:hover {
  color: var(--gold-muted, #A68B1E);
}

.service-card:hover .service-detail-btn {
  color: var(--gold);
}

/* ---------- Service modals (solo sección Servicios) ---------- */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.service-modal[hidden] {
  display: none !important;
}

.service-modal.is-open {
  display: flex;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 36, 0.72);
  backdrop-filter: blur(2px);
}

.service-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  max-height: min(90vh, 52rem);
  overflow: auto;
  background: var(--white);
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(7, 20, 36, 0.35);
  outline: none;
}

.service-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(11, 29, 54, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.service-modal__close:hover {
  background: #fff;
  border-color: rgba(201, 162, 39, 0.45);
}

.service-modal__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.service-modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-modal__body {
  padding: 1.5rem 1.5rem 1.75rem;
}

@media (min-width: 640px) {
  .service-modal__body {
    padding: 1.75rem 1.85rem 2rem;
  }
}

.service-modal__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.service-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.25;
}

.service-modal__lead {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--silver);
}

.service-modal__highlight {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--navy);
}

.service-modal__highlight strong {
  color: var(--navy);
  font-weight: 600;
}

.service-modal__h4 {
  margin: 1.35rem 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.service-modal__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--silver);
}

.service-modal__list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--silver);
}

.service-modal__list li {
  margin-bottom: 0.4rem;
}

.service-modal__list li strong {
  color: var(--navy);
  font-weight: 600;
}

.service-modal__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

@media (min-width: 640px) {
  .service-modal__gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.service-modal__gallery img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  display: block;
}

.service-modal__footer {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.service-modal__cta {
  width: 100%;
}

@media (min-width: 480px) {
  .service-modal__cta {
    width: auto;
  }
}

body.service-modal-open {
  overflow: hidden;
}

/* ---------- Productos / RRHH / Clientes / Brochure (mismas tokens de marca) ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 12px 32px -16px rgba(11, 29, 54, 0.12);
  transform: translateY(-2px);
}

.product-card__img {
  width: 100%;
  height: 10.5rem;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.client-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.client-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-2px);
}

.client-card__mark {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 29, 54, 0.04);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brochure-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.15rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.brochure-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-1px);
}

.brochure-btn--primary {
  background: var(--flame);
  border-color: transparent;
}

.brochure-btn--primary:hover {
  background: var(--flame-dark);
  border-color: transparent;
}

.file-input-wrap {
  position: relative;
}

.file-input-wrap input[type="file"] {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--silver);
}

.file-input-wrap input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: none;
  background: rgba(11, 29, 54, 0.06);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ---------- Differentiator cards ---------- */
.diff-card {
  background: transparent;
  border-radius: 0.75rem;
  padding: 1.35rem 0;
  border: none;
  border-top: 1px solid var(--line);
  height: 100%;
  transition: border-color 0.2s ease;
}

.diff-card:hover {
  border-top-color: rgba(201, 162, 39, 0.55);
}

.diff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: transparent;
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- Value cards ---------- */
.value-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.75rem 1.15rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.value-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-2px);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background-color: rgba(11, 29, 54, 0.04);
  color: var(--navy);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.value-card:hover .value-icon {
  background-color: rgba(201, 162, 39, 0.12);
  color: var(--gold);
}

/* ---------- Method steps ---------- */
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 10;
}

/* ---------- Footer ---------- */
.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-soft);
}

/* ---------- Form ---------- */
.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--navy);
  background-color: var(--surface);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder {
  color: #A0AEC0;
}

.form-input:hover {
  border-color: rgba(11, 29, 54, 0.1);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #DC2626;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Scroll chevron ---------- */
.scroll-chevron {
  animation: chevron-bounce 2.2s ease-in-out infinite;
}

@keyframes chevron-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.35; }
  50% { transform: rotate(45deg) translateY(4px); opacity: 0.7; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: var(--navy);
  color: #fff;
  border: 1px solid rgba(201, 162, 39, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--flame);
  border-color: transparent;
}

/* ---------- Hero / Inicio (solo esta sección) ---------- */
.hero-media {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(7, 20, 36, 0.88) 0%,
      rgba(7, 20, 36, 0.78) 42%,
      rgba(11, 29, 54, 0.62) 70%,
      rgba(7, 20, 36, 0.72) 100%
    ),
    linear-gradient(180deg, rgba(7, 20, 36, 0.45) 0%, transparent 35%, rgba(7, 20, 36, 0.88) 100%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px 40px rgba(7, 20, 36, 0.45);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.75rem;
  }
}

/* Panel de texto con profundidad sutil (glass minimal) */
.hero-panel {
  max-width: 40rem;
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .hero-panel {
    padding: 1.85rem 1.75rem;
    border-radius: 0.75rem;
    background: rgba(7, 20, 36, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 24px 48px -20px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(201, 162, 39, 0.06) inset;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.hero-eyebrow {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-accent-line {
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0.9rem 0 1.15rem;
  background: var(--gold);
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.45);
}

.hero-title {
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

/* Sombras suaves en botones del hero (sin cambiar el estilo base del botón) */
.hero-btn-shadow {
  box-shadow:
    0 10px 28px -8px rgba(232, 106, 23, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-btn-outline-shadow {
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.45);
  background-color: rgba(255, 255, 255, 0.04);
}

/* Columna visual derecha (solo desktop) */
.hero-aside {
  display: none;
}

@media (min-width: 1024px) {
  .hero-aside {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}

.hero-aside-card {
  position: relative;
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 50px -22px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 162, 39, 0.08);
}

.hero-aside-card img {
  width: 100%;
  height: 16.5rem;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-aside-card:hover img {
  transform: scale(1.03);
}

.hero-aside-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 1rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 20, 36, 0.88) 100%);
}

.hero-aside-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-aside-thumb {
  margin: 0;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.5);
}

.hero-aside-thumb img {
  width: 100%;
  height: 6.25rem;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.hero-aside-thumb:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .hero-aside-card img,
  .hero-aside-thumb img {
    transition: none;
  }

  .hero-aside-card:hover img,
  .hero-aside-thumb:hover img {
    transform: none;
  }
}

.stat-divider {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

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

::selection {
  background-color: rgba(201, 162, 39, 0.22);
  color: var(--navy);
}

/* Thin gold rule */
.gold-rule {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}
