/* =========================
   HERO CONNECT - OMAR JARENO
   ========================= */

:root {
  --color-brand-blue: #174f78;
  --color-brand-grey: #a8b7ba;
  --color-brand-green: #05c8a6;
  --radius-large: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.25);
}

/* CONTENEDOR PRINCIPAL */
.hero-connect {
  background: var(--color-brand-blue);
  max-width: 1180px;
  width: 100%;
  margin: 48px auto;
  padding: 48px 30px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

/* COLUMNA IZQUIERDA - FOTO + BLOBS */
.hero-connect__photo {
  position: relative;
  flex: 0 0 46%;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
}

/* BADGE DORADO ESTÁTICO, POSICIÓN ORIGINAL */
.hero-connect__award-badge {
  position: absolute;
  bottom: -3%;
  right: -110%;
  width: 200px;
  height: 200px;
  z-index: 3;
  animation: none;
  transition: none;
  transform-origin: -200px center;
  transform: none;
}

.hero-connect__award-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.hero-connect__award-badge:hover {
  animation: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

/* ANIMACIONES KEYFRAMES (GENERALES) */
@keyframes pulse {
  0%, 100% {
    transform: scale(1) rotate(var(--rotation, 0deg));
  }
  50% {
    transform: scale(1.03) rotate(var(--rotation, 0deg));
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 8px 24px rgba(23, 79, 120, 1));
  }
  50% {
    filter: drop-shadow(0 8px 32px rgba(23, 79, 120, 1));
  }
}

/* ROTACIÓN CONTINUA (NO USADA AHORA) */
@keyframes rotateAround {
  0% {
    transform: rotate(0deg) translateX(320px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(320px) rotate(-360deg);
  }
}

/* ROTACIÓN DE LOS BLOBS */
@keyframes blobRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Blobs con animación de rotación */
.hero-connect__blob {
  position: absolute;
  border-radius: 60% 40% 50% 50%;
  z-index: 1;
  animation: blobRotate 15s linear infinite;
}

.hero-connect__blob--back {
  width: 420px;
  height: 260px;
  background: var(--color-brand-green);
  bottom: -4%;
  left: -4%;
  animation-duration: 20s;
  animation-direction: normal;
}

.hero-connect__blob--front {
  width: 360px;
  height: 230px;
  background: var(--color-brand-grey);
  bottom: 0;
  left: 12%;
  animation-duration: 25s;
  animation-direction: reverse;
}

/* Foto: base sin animación ni transición */
.hero-connect__image-circle {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  transform: rotate(0deg);
  animation: none;
  transition: none;
}

/* Keyframes para una sola vuelta */
@keyframes hero-photo-rotate-once {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Clase que activa la animación una vez */
.hero-connect__image-circle--rotate-once {
  animation: hero-photo-rotate-once 0.8s ease-out forwards;
}

.hero-connect__image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* COLUMNA DERECHA - CONTENIDO */
.hero-connect__content {
  flex: 0 0 48%;
  margin-left: 0;
  transform: translateX(-40px);
}

/* TIPOGRAFÍA */
.hero-connect__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-green);
  margin: 0 0 8px;
}

.hero-connect__title {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #ffffff;
}

.hero-connect__text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 360px;
  margin: 0 0 24px;
}

/* BOTONES */
.hero-connect__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-connect .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.hero-connect .btn__icon {
  font-size: 18px;
}

/* Botón Book a Call – gris corporativo */
.hero-connect .btn--primary {
  background: var(--color-brand-grey);
  color: #111827;
  box-shadow: 0 12px 24px rgba(168, 183, 186, 0.4);
}

.hero-connect .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(168, 183, 186, 0.6);
  background: #b8c7c9;
}

/* Botón WhatsApp – verde corporativo */
.hero-connect .btn--whatsapp {
  background: var(--color-brand-green);
  color: #ffffff;
}

.hero-connect .btn--whatsapp:hover {
  background: #04af92;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-connect {
    flex-direction: column;
    padding: 32px 20px 40px;
    margin: 24px 16px;
  }

  .hero-connect__photo {
    margin-left: 0;
  }

  .hero-connect__photo,
  .hero-connect__content {
    flex: 1 1 100%;
    transform: none;
  }

  .hero-connect__photo {
    order: -1;
  }

  .hero-connect__title {
    font-size: 32px;
  }

  .hero-connect__text {
    max-width: 100%;
    line-height: 1.7;
  }
}

@media (max-width: 640px) {
  .hero-connect__award-badge {
    width: 100px;
    height: 100px;
    bottom: -37%;
    right: -18%;
    top: auto;
    left: auto;
    transform-origin: -100px center;
    animation: none;
    transform: none;
  }

  @keyframes rotateAround {
    0% {
      transform: rotate(0deg) translateX(180px) rotate(0deg);
    }
    100% {
      transform: rotate(360deg) translateX(180px) rotate(-360deg);
    }
  }

  .hero-connect__image-circle {
    width: 230px;
    height: 230px;
  }

  .hero-connect__blob--back {
    width: 320px;
    height: 210px;
  }

  .hero-connect__blob--front {
    width: 280px;
    height: 190px;
    left: 16%;
  }

  .hero-connect__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-connect .btn {
    width: 100%;
    justify-content: center;
  }
}
