
/* ─── Section ────────────────────────────────── */
.rd-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ─── Background ─────────────────────────────── */
.rd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rd-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.03);
}

.rd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #060d1b40, #050a1659, #04081266);
}

/* ─── Container ──────────────────────────────── */
.rd-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-inline: calc(clamp(250px, calc(13vw + 70px), 692px) - 100px);
  padding-block: 120px 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.rd-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.rd-hero__left,
.rd-hero__right {
  display: contents;
}

/* ─── Welcome ────────────────────────────────── */
.rd-hero__welcome {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  align-self: center;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
  animation: rdFadeUp 1s 0.1s var(--ease-smooth) both;
}

/* ─── Hero Logo ──────────────────────────────── */
.rd-hero__logo-wrapper {
  margin-bottom: 2rem;
  animation: rdFadeUp 1s 0.22s var(--ease-smooth) both;
}

.rd-hero__logo {
  width: 450px;
  max-width: 90vw;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(69, 103, 161, 0.28));
}

/* ─── Identity ───────────────────────────────── */
.rd-hero__identity {
  margin-bottom: 2.25rem;
  animation: rdFadeUp 1s 0.34s var(--ease-smooth) both;
}

.rd-hero__name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.rd-hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

.rd-hero__location-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
  flex-shrink: 0;
}

/* ─── Divider ────────────────────────────────── */
.rd-hero__divider {
  width: 52px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-primary),
    transparent
  );
  margin: 0 auto 2.25rem;
  animation: rdFadeUp 1s 0.42s var(--ease-smooth) both;
}

/* ─── Tagline ────────────────────────────────── */
.rd-hero__tagline {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.38rem);
  font-weight: 500;
  font-style: italic;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 1.6rem;
  animation: rdFadeUp 1s 0.5s var(--ease-smooth) both;
}

/* ─── CTA group (badge + botones comparten ancho) ─ */
.rd-hero__cta-group {
  display: flex;
  flex-direction: column;
  width: fit-content;
}

/* ─── Certification badge ────────────────────── */
.rd-hero__cert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin-bottom: 2.75rem;
  padding: calc(0.875rem + 1px) 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #ffffff26;
  animation: rdFadeUp 1s 0.58s var(--ease-smooth) both;
}

.rd-hero__cert-diamond {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}

/* ─── CTA Buttons ────────────────────────────── */
.rd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  animation: rdFadeUp 1s 0.68s var(--ease-smooth) both;
}

.rd-hero__btn-primary,
.rd-hero__btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.28s ease,
    border-color     0.28s ease,
    color            0.28s ease,
    transform        0.2s ease;
}

.rd-hero__btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.rd-hero__btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.rd-hero__btn-outline {
  background: #ffffff0d;
  color: #fffffff2;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.rd-hero__btn-outline:hover {
  background: #ffffff4d;
  border-color: #ffffff9e;
  color: var(--color-white);
  transform: translateY(-2px);
}

.rd-hero__arrow {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.rd-hero__btn-outline:hover .rd-hero__arrow {
  transform: translateX(4px);
}

/* ─── Scroll indicator ───────────────────────── */
.rd-hero__scroll-indicator {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: rdFadeIn 1s 1.6s ease both;
}

.rd-hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  animation: rdScrollPulse 2s 1.6s ease-in-out infinite;
}

/* ─── Animations ─────────────────────────────── */
@keyframes rdFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes rdFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rdScrollPulse {
  0%, 100% { transform: scaleY(1);    opacity: 0.45; }
  50%       { transform: scaleY(0.55); opacity: 1;    }
}

/* ─── Responsive — espejo exacto del container-fluid del navbar ── */
@media (max-width: 1599px) {
  .rd-hero__container {
    padding-inline: calc(3vw + 70px);
  }
}

@media (max-width: 1199px) {
  .rd-hero__container {
    padding-inline: calc(clamp(20px, 2vw, 58px) + 100px);
  }
}

@media (max-width: 991px) {
  .rd-hero__container {
    padding-inline: calc(clamp(20px, 2vw, 58px) + 1.25rem);
  }
}

@media (max-width: 680px) {
  .rd-hero__container {
    padding-inline: 1.25rem;
    justify-content: center;
  }

  .rd-hero__content {
    align-items: center;
    text-align: center;
  }

  .rd-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .rd-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
  }

  .rd-hero__btn-primary,
  .rd-hero__btn-outline {
    justify-content: center;
  }
}

/* ─── Desktop: two-column split ─────────────────── */
@media (min-width: 992px) {
  .rd-hero__container {
    padding-block: 180px;
  }

  .rd-hero__content {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
    min-height: calc(100svh - 360px);
  }

  .rd-hero__left {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
    order: 2;
  }

  .rd-hero__right {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    order: 1;
  }

  .rd-hero__right .rd-hero__tagline {
    text-align: left;
  }

  .rd-hero__right .rd-hero__actions {
    justify-content: flex-start;
  }
}

/* ─── Navbar override: SOLO en index (body.home-2025) ────────── */
body.home-2025 .rd-nav header.main-menu {
  position: fixed !important;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background-color: transparent !important;
  border-bottom-color: transparent;
  transition:
    background-color 0.4s ease,
    backdrop-filter  0.4s ease,
    border-color     0.4s ease;
}

body.home-2025 .rd-nav header.main-menu.is-scrolled {
  background-color: #152c53f0 !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #152c534d;
}

/* Con el menú móvil abierto, la navbar siempre debe verse sólida,
   sin importar el scroll (evita que se transparente detrás del menú).
   Mismo background-color que .mobile-nav__wrapper.rd-nav (navy sólido,
   sin alpha) para que no se note el cambio de tono entre la navbar y el panel. */
body.home-2025:has(.mobile-nav__wrapper.expanded) .rd-nav header.main-menu {
  background-color: var(--color-dark) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
