/* =========================================================
   Contabilidad Ya — Home (hero premium estilo OG + oficios)
   Se carga SOLO en index.html, después de style.css
   Paleta de marca: azul #125ef4 + morado #800ef4
   ========================================================= */

/* ---------- Hero premium ---------- */
.hero-premium {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 84px 0 72px;
}

/* --- Animated finance background --- */
.hero-anim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.anim-chart {
  position: absolute;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.anim-chart-1 { width: 55%; right: 2%; bottom: 10%; opacity: .10; }
.anim-chart-2 { width: 40%; left: 5%; top: 15%; opacity: .07; }
.anim-line {
  stroke: rgba(123,47,255,.8);
  stroke-width: 2.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 4s ease-out forwards;
}
.anim-line-delay {
  stroke: rgba(18,94,244,.7);
  animation-delay: 1.2s;
  animation-duration: 5s;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.anim-bars {
  position: absolute;
  right: 8%; top: 18%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  opacity: .08;
}
.anim-bars span {
  width: 8px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, rgba(123,47,255,.6), rgba(18,94,244,.4));
  height: 0;
  animation: grow-bar 1.5s ease-out forwards;
  animation-delay: var(--d);
}
@keyframes grow-bar { to { height: var(--h); } }
.anim-dots span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(180,150,255,.5);
  left: var(--x); top: var(--y);
  animation: float-dot var(--dur) ease-in-out infinite;
  animation-delay: var(--del);
}
@keyframes float-dot {
  0%,100% { transform: translateY(0) scale(1); opacity: .3; }
  50% { transform: translateY(-30px) scale(1.5); opacity: .7; }
}
.anim-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,47,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 0%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .anim-line { animation: none; stroke-dashoffset: 0; }
  .anim-bars span { animation: none; height: var(--h); }
  .anim-dots span { animation: none; }
}

.hero-premium::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  right: -180px; top: -240px;
  background: radial-gradient(circle, rgba(18,94,244,.42) 0%, rgba(18,94,244,0) 65%);
  pointer-events: none;
}
.hero-premium::after {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  left: -180px; bottom: -260px;
  background: radial-gradient(circle, rgba(128,14,244,.30) 0%, rgba(128,14,244,0) 65%);
  pointer-events: none;
}
.hero-premium .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero-premium .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9db4ff;
  background: rgba(18,94,244,.16);
  border: 1px solid rgba(18,94,244,.38);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-premium .hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4d8bff; box-shadow: 0 0 0 4px rgba(77,139,255,.25);
}
.hero-premium h1 {
  color: #fff;
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero-premium h1 .accent { color: #b18cff; }
.hero-premium .lead {
  color: #cdd7f5;
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-premium .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-premium .hero-rating { font-size: 14px; color: #9aa8d4; }
.hero-premium .hero-rating strong { color: #fff; }

/* Escenario con persona + tarjetas flotantes */
.hero-stage {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-stage .stage-blob {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: linear-gradient(150deg, #125ef4 0%, #800ef4 100%);
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-stage .stage-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.18);
  bottom: -8px; left: 50%; transform: translateX(-50%);
}
.hero-person {
  position: relative;
  z-index: 2;
  max-height: 500px;
  width: auto;
  filter: drop-shadow(0 22px 44px rgba(0,0,0,.45));
}
.hero-floatcard {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,.97);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-floatcard .fc-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.hero-floatcard .fc-label { font-size: 11px; color: var(--gray-500); font-weight: 600; }
.hero-floatcard .fc-value { font-size: 16px; color: var(--navy); font-weight: 800; line-height: 1.1; }
.hero-floatcard .fc-up { color: var(--primary); font-weight: 700; font-size: 12px; }
.hero-floatcard.fc-1 { top: 24px; left: -10px; animation: floaty 4.5s ease-in-out infinite; }
.hero-floatcard.fc-2 { bottom: 70px; right: -12px; animation: floaty 4.5s ease-in-out infinite 1.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Sección Oficios (humana) ---------- */
.oficios { padding: 80px 0; background: var(--white); }
.oficios .section-head { margin-bottom: 40px; }
.oficios-strip {
  display: flex;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  gap: 3px;
}
.oficios-strip img {
  flex: 1;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: flex .4s ease;
  min-width: 0;
}
.oficios-strip img:hover { flex: 2.5; }
.oficios-note { text-align: center; margin-top: 28px; font-size: 15px; color: var(--gray-700); }
.oficios-note strong { color: var(--primary-dark); }
@media (max-width: 680px) { .oficios-strip { height: 220px; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-premium .container { grid-template-columns: 1fr; gap: 24px; }
  .hero-premium h1 { font-size: 38px; }
  .hero-stage { min-height: 420px; margin-top: 8px; }
}
@media (max-width: 760px) {
  .hero-premium { padding: 56px 0 48px; }
  .hero-premium h1 { font-size: 32px; }
  .hero-person { max-height: 400px; }
  .hero-floatcard.fc-1 { left: 0; }
  .hero-floatcard.fc-2 { right: 0; }
  .oficios { padding: 56px 0; }
}
