/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--color-cream) 0%,
    var(--color-warm) 100%
  );
  padding: 2rem 5rem 2rem 2rem;
}

/* Hero Background Images */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/presentacion.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  z-index: 0;
}

/* Overlay sutil — sin texto sobre el hero */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(250, 247, 242, 0.2) 0%,
    rgba(244, 237, 228, 0.15) 100%
  );
  z-index: 1;
}

/* Para pantallas verticales/móviles */
@media screen and (orientation: portrait) {
  .hero::before {
    background-image: url("../images/hero-phone.webp");
  }
}

/* Logo wrapper — alineado a la derecha del hero */
.hero-logo-wrapper {
  z-index: 2;
  animation: fadeIn 1.2s ease-out;
}

/* ==========================================
   HERO PANEL — slide-up on scroll
   ========================================== */
.hero-panel {
  position: relative;
  z-index: 5;
  margin-top: -130px;
  background: var(--color-cream);
  border-radius: 30px 30px 0 0;
  padding: 4rem 5rem 5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
  /* Estado inicial: invisible, desplazado hacia abajo */
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.7s ease, transform 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-panel.slide-up {
  opacity: 1;
  transform: translateY(-150px);
  pointer-events: all;
}

.hero-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-panel-logo {
  margin-bottom: 2rem;
}

.hero-panel-logo img {
  height: 18rem;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.logo-container {
  background: transparent;
  padding: 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

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

.logo-container img {
  max-width: 450px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.hero-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  font-weight: 400;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
  line-height: 1.6;
  text-align: left;
}

/* Badges */
.badges {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  width: 90%;
}

.badge {
  background: white;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Botones CTA */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  color: white;
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(45, 80, 22, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(45, 80, 22, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-primary);
  opacity: 0.8;
  transition: var(--transition);
}

.scroll-indicator:hover svg {
  opacity: 1;
}

/* Responsive Hero Section */
@media (max-width: 1024px) {
  .hero {
    align-items: center;
    padding: 2rem;
  }

  .hero-panel {
    padding: 3rem 2rem 4rem;
    flex-direction: column-reverse;
  }

  .hero-panel-inner {
    align-items: center;
    text-align: center;
  }

  .hero-panel h1 {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .badges {
    justify-content: center;
  }

  .logo-container {
    padding: 12px;
  }

  .logo-container img {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
    align-items: center;
  }

  .hero-panel {
    margin-top: -80px;
    padding: 3rem 1.5rem 4rem;
  }

  .logo-container {
    padding: 12px;
  }

  .logo-container img {
    max-width: 300px;
  }

  .badges {
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
  }

  .badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .logo-container {
    padding: 10px;
    width: 100%;
  }

  .logo-container img {
    max-width: 240px;
  }
}