/* ==========================================================================
   Enric Adventures — Hero Banner
   La volta al mon a peu
   ========================================================================== */

.ea-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0D1B2A 0%, #1244CC 45%, #1A5CFF 100%);
  overflow: hidden;
}

.ea-hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,107,53,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,92,255,0.3) 0%, transparent 40%);
  pointer-events: none;
}

.ea-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,27,42,0.4) 100%);
  pointer-events: none;
}

.ea-hero__content {
  position: relative;
  z-index: 2;
  padding: 100px 0 80px;
}

.ea-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.18);
  color: #FFB38A;
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ea-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.ea-hero__title span {
  color: #FF8A5C;
}

.ea-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}

.ea-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.ea-hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF6B35 !important;
  border: 2px solid #FF6B35 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(255,107,53,0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.ea-hero__btn-primary:hover {
  background: #E85A20 !important;
  border-color: #E85A20 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,107,53,0.45);
}

.ea-hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1) !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.ea-hero__btn-secondary:hover {
  background: rgba(255,255,255,0.2) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* Estadísticas del viaje */
.ea-hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.ea-stat {
  display: flex;
  flex-direction: column;
}

.ea-stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.ea-stat__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Visual: wrapper compartido */
.ea-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ——————————————————————————————————
   Imagen / GIF subido desde back office
   —————————————————————————————————— */
.ea-hero__img-wrapper {
  position: relative;
  display: inline-block;
}

.ea-hero__img {
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.12),
    0 0 60px rgba(26,92,255,0.35),
    0 24px 80px rgba(13,27,42,0.4);
  display: block;
}

/* Badge sobre imagen */
.ea-globe__badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: #FF6B35;
  color: #fff;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255,107,53,0.4);
  line-height: 1.3;
  white-space: nowrap;
  z-index: 4;
}

.ea-globe__badge span {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
}

/* ——————————————————————————————————
   Fallback: animación planeta girando
   —————————————————————————————————— */
.ea-planet {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ea-planet__sphere {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 35% 35%, #4A90E2 0%, #1A5CFF 35%, #0D3E8F 65%, #061A40 100%);
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.08),
    0 0 60px rgba(26,92,255,0.45),
    0 0 120px rgba(26,92,255,0.2),
    inset -20px -20px 40px rgba(6,26,64,0.6);
  animation: ea-planet-rotate 12s linear infinite;
}

@keyframes ea-planet-rotate {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(8deg); }
}

/* Superficie con continentes simulados */
.ea-planet__surface {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80px 50px at 30% 40%, rgba(74,180,74,0.55) 0%, transparent 100%),
    radial-gradient(ellipse 60px 40px at 65% 30%, rgba(74,180,74,0.5) 0%, transparent 100%),
    radial-gradient(ellipse 50px 35px at 50% 65%, rgba(74,180,74,0.45) 0%, transparent 100%),
    radial-gradient(ellipse 40px 25px at 80% 55%, rgba(74,180,74,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 30px 20px at 20% 70%, rgba(74,180,74,0.35) 0%, transparent 100%);
  animation: ea-surface-drift 12s linear infinite;
}

@keyframes ea-surface-drift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Atmósfera brillante */
.ea-planet__atmosphere {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(100,180,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Brillo especular */
.ea-planet__shine {
  position: absolute;
  top: 12%;
  left: 18%;
  width: 28%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.25) 0%, transparent 100%);
  pointer-events: none;
}

/* Líneas de latitud */
.ea-planet__lat {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.ea-planet__lat--1 { top: 33%; }
.ea-planet__lat--2 { top: 50%; }
.ea-planet__lat--3 { top: 67%; }

/* Órbita del pin (punto de posición actual) */
.ea-planet__orbit {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,107,53,0.35);
  animation: ea-orbit-spin 8s linear infinite;
}

@keyframes ea-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ea-planet__pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF6B35;
  box-shadow: 0 0 0 4px rgba(255,107,53,0.25), 0 0 14px rgba(255,107,53,0.6);
}

/* Badge sobre el planeta */
.ea-planet .ea-globe__badge {
  position: absolute;
  bottom: 10px;
  right: -10px;
}

/* Ola de transición */
.ea-hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 3;
}

.ea-hero__wave svg {
  width: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 991px) {
  .ea-hero { min-height: auto; }
  .ea-hero__content { padding: 80px 0 60px; }
  .ea-globe { width: 280px; height: 280px; }
}

@media (max-width: 767px) {
  .ea-hero__actions {
    flex-direction: column;
    gap: 10px;
  }
  .ea-hero__actions .ea-hero__btn-primary,
  .ea-hero__actions .ea-hero__btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .ea-hero__stats { gap: 20px; }
  .ea-globe {
    width: 220px;
    height: 220px;
    margin: 40px auto 0;
  }
  .ea-globe__badge {
    bottom: -10px;
    right: -10px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}
