#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #d9dee8;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Overlay direccional: oscuro solo a la izquierda (para el texto),
   transparente a la derecha para que la imagen se vea bien */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 31, 61, 0.86) 0%,
    rgba(15, 31, 61, 0.62) 34%,
    rgba(15, 31, 61, 0.25) 62%,
    rgba(15, 31, 61, 0) 88%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e0bf6e;
  margin-bottom: 22px;
  opacity: 0;
  animation: heroFade 0.8s ease 0.1s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 68px;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #ffffff;
  max-width: 720px;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(10, 18, 38, 0.45);
  opacity: 0;
  animation: heroFade 0.8s ease 0.25s forwards;
}

.hero-shine {
  background: linear-gradient(90deg, #c9a84c, #e0bf6e, #fff6dd, #e0bf6e, #c9a84c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: heroShine 5s linear infinite;
}

@keyframes heroShine {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 19px;
  color: #e6ebf5;
  max-width: 520px;
  margin-bottom: 38px;
  text-shadow: 0 1px 12px rgba(10, 18, 38, 0.4);
  opacity: 0;
  animation: heroFade 0.8s ease 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: heroFade 0.8s ease 0.55s forwards;
}

.hero-btn {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #c9a84c, #e0bf6e);
  color: #0f1f3d;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.55);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}

.hero-btn-secondary:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: #ffffff;
  color: #0f1f3d;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-image { animation: none; }
  .hero-shine { animation: none; }
  .hero-eyebrow, .hero-title, .hero-subtitle, .hero-actions {
    opacity: 1;
    animation: none;
  }
}

@media (min-width: 1440px) {
  .hero-content { max-width: 1340px; padding: 0 64px; }
  .hero-title { font-size: 76px; }
}

@media (max-width: 1280px) {
  .hero-content { padding: 0 40px; }
  .hero-title { font-size: 60px; }
}

@media (max-width: 1024px) {
  .hero-content { padding: 0 32px; }
  .hero-title { font-size: 52px; }
  .hero-subtitle { font-size: 18px; }
  .hero-overlay {
    background: linear-gradient(
      100deg,
      rgba(15, 31, 61, 0.88) 0%,
      rgba(15, 31, 61, 0.6) 45%,
      rgba(15, 31, 61, 0.2) 80%,
      rgba(15, 31, 61, 0) 100%
    );
  }
}

@media (max-width: 768px) {
  #hero { min-height: 560px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 42px; }
  .hero-subtitle { font-size: 16px; }
  /* En móvil el texto ocupa todo el ancho: overlay parejo y legible */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 31, 61, 0.7) 0%,
      rgba(15, 31, 61, 0.55) 50%,
      rgba(15, 31, 61, 0.72) 100%
    );
  }
}

@media (max-width: 480px) {
  .hero-content { padding: 0 16px; }
  .hero-title { font-size: 34px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 0.18em; }
  .hero-btn { width: 100%; justify-content: center; padding: 15px 24px; }
}
