/* ============================================
   H2B — Sections
   ============================================ */

/* HERO VIDEO */
#hero-video {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* HERO BANNER */
#hero-banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/bg_hero.jpeg') center center / cover no-repeat;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.hero-col-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-col-left img {
  width: 400px;
  height: auto;
}
.hero-col-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 15vh;
}
.hero-col-right img {
  width: 400px;
  height: auto;
}

/* MANIFIESTO CTA */
.manifiesto-section { position: relative; padding: 80px 0; overflow: hidden; }
.manifiesto-section::before { content: ''; position: absolute; inset: 0; background: url('../img/bg_hero.jpeg') center/cover no-repeat fixed; z-index: 0; }
.manifiesto-section::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.65); z-index: 1; }
.manifiesto-inner { position: relative; z-index: 2; }
.manifiesto-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.manifiesto-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: var(--white); line-height: 1.1; }
.manifiesto-btn { font-size: 16px; padding: 16px 40px; }

/* COMO FUNCIONA */
#como-funciona { padding: var(--section-py) 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 52px; }
.step-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-card); transition: var(--trans-med); }
.step-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.step-img { position: relative; height: 200px; background-size: cover; background-position: center; }
.step-img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.15); }
.step-num { position: absolute; top: 16px; right: 20px; z-index: 1; font-family: var(--font-display); font-size: 56px; font-weight: 900; color: #ffffff; line-height: 1; text-shadow: 2px 2px 6px rgba(0,0,0,0.6); }
.step-body { padding: 24px; background: var(--white); }
.step-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.step-card p  { font-size: 16px; color: var(--gray-600); line-height: 1.6; }
.como-video-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 52px; padding-top: 32px; gap: 16px; width: 100%; }
.como-video-player { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.18); }
.como-video-player iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* BENEFICIOS PARALLAX */
#beneficios { position: relative; padding: var(--section-py) 0; background-attachment: scroll; background-size: cover; background-position: center; background-image: linear-gradient(rgba(14,19,28,0.25),rgba(14,19,28,0.25)), url('../img/parallax-bg.jpg'); color: var(--white); }
.benefits-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 52px; }
.benefit-item { display: flex; gap: 20px; align-items: flex-start; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 28px 24px; transition: var(--trans-med); }
.benefit-item:hover { background: rgba(0,0,0,0.70); border-color: rgba(125,184,26,0.30); transform: translateX(4px); }
.benefit-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px; background: rgba(125,184,26,0.15); border: 1px solid rgba(125,184,26,0.30); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.benefit-icon.blue { background: rgba(45,156,219,0.15); border-color: rgba(45,156,219,0.30); }
.benefit-text h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.benefit-text p  { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.benefit-stat { font-family: var(--font-display); font-size: 36px; font-weight: 900; color: var(--h2b-green-light); display: block; line-height: 1; margin-bottom: 2px; }

/* PRODUCTOS */
#productos { padding: var(--section-py) 0; }
.products-header { text-align: center; margin-bottom: 56px; }
.products-header .section-subtitle { margin: 12px auto 0; }
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: start; }
.product-card { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--gray-200); transition: var(--trans-med); position: relative; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0,0,0,0.14); }
.product-card.featured { border-color: var(--h2b-blue); box-shadow: 0 8px 40px rgba(45,156,219,0.18); }
.product-badge { position: absolute; top: 16px; right: 16px; background: var(--h2b-blue); color: var(--white); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.product-img-wrap { padding: 0; overflow: hidden; }
.product-img-wrap img { width: 100%; height: auto; object-fit: cover; display: block; transition: transform var(--trans-med); }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-body { padding: 24px; background: var(--white); }
.product-name { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
.product-tagline { font-size: 15px; color: var(--gray-400); margin-bottom: 20px; }
.product-specs { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 14px 0; margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-item { display: flex; flex-direction: column; gap: 2px; }
.spec-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-400); }
.spec-val   { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--gray-800); }
.product-incluye { margin: 14px 0 10px; padding: 12px 14px; background: var(--gray-100); border-radius: 6px; border-left: 3px solid var(--h2b-green); }
.product-incluye ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.product-incluye ul li { font-size: 13px; color: var(--gray-700); }
.product-pago { margin-bottom: 14px; font-size: 13px; color: var(--gray-600); }
.product-incluye-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-800); margin-bottom: 6px; }
.product-price-wrap { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.product-currency     { font-size: 16px; font-weight: 700; color: var(--gray-600); }
.product-price        { font-family: var(--font-display); font-size: 38px; font-weight: 900; color: var(--h2b-green-dark); line-height: 1; }
.product-currency-end { font-size: 13px; color: var(--gray-400); margin-left: 2px; }
.product-card .btn    { width: 100%; justify-content: center; }

/* TESTIMONIOS */
#testimonios { position: relative; padding: var(--section-py) 0; background-image: linear-gradient(rgba(14,19,28,0.25),rgba(14,19,28,0.25)), url('../img/h2b.jpg'); background-size: cover; background-position: center; background-attachment: fixed; color: var(--white); }
.testimonios-header { text-align: center; margin-bottom: 52px; }
#testimonios .section-title { color: var(--white); }
#testimonios .section-subtitle { color: rgba(255,255,255,0.80); }
.videos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.video-card { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--white); transition: var(--trans-med); cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }
.video-card:hover .video-play-btn { transform: translate(-50%,-50%) scale(1.15); }
.video-thumb { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; background: rgba(255,255,255,0.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--h2b-green-dark); transition: transform var(--trans-med); padding-left: 4px; }
.video-modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; }
.video-modal.open { display: flex; }
.video-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.80); }
.video-modal-box { position: relative; width: 100%; max-width: 950px; z-index: 1; margin: 0 20px; }
.video-modal-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; line-height: 1; }
.video-modal-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.video-modal-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.video-caption { padding: 16px 20px; }
.video-caption h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.video-caption p  { font-size: 15px; color: var(--gray-600); }
.video-stars { display: flex; gap: 3px; margin-bottom: 8px; }
.video-stars span { color: #F4B400; font-size: 14px; }

/* CONOCE EL NEGOCIO */
.negocio-section { position: relative; padding: var(--section-py) 0; color: var(--white); overflow: hidden; }
.negocio-bg { position: absolute; inset: 0; background: url('../img/bg_conoce.jpg') center/cover no-repeat; z-index: 0; }
.negocio-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.negocio-inner { position: relative; z-index: 1; padding-top: var(--section-py); padding-bottom: var(--section-py); text-align: center; }
.negocio-inner .section-tag { color: var(--h2b-green-light); border-color: var(--h2b-green-light); }
.negocio-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 48px; }
.negocio-title span { color: var(--h2b-green-light); }
.negocio-preguntas { display: flex; flex-direction: column; gap: 20px; max-width: 680px; margin: 0 auto 48px; }
.negocio-pregunta { display: flex; align-items: center; gap: 24px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 24px 32px; backdrop-filter: blur(6px); text-align: left; }
.negocio-num { font-family: var(--font-display); font-size: 48px; font-weight: 900; color: var(--h2b-green-light); line-height: 1; flex-shrink: 0; width: 48px; }
.negocio-pregunta p { font-size: 20px; color: rgba(255,255,255,0.90); line-height: 1.4; }
.negocio-pregunta strong { color: var(--white); }
.negocio-cta { font-size: 18px; padding: 18px 48px; }

/* CONTACTO */
#contacto { padding: var(--section-py) 0; background: var(--dark-section); }
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contacto-info .section-title { color: var(--white); }
.contact-points { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-point { display: flex; align-items: center; gap: 16px; transition: opacity var(--trans-fast); }
a.contact-point:hover { opacity: 0.75; }
.contact-point-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(125,184,26,0.15); border: 1px solid rgba(125,184,26,0.30); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-point-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--white); }
.contact-point-text span   { font-size: 13px; color: rgba(255,255,255,0.55); }
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: 10px; padding: 36px 32px; }
.form-group   { margin-bottom: 20px; }
.form-label   { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; color: var(--white); font-family: var(--font-body); font-size: 15px; padding: 12px 16px; transition: border-color var(--trans-fast),background var(--trans-fast); outline: none; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.30); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--h2b-green); background: rgba(125,184,26,0.06); }
.form-select option { background: var(--dark-section); color: var(--white); }
.form-textarea  { resize: vertical; min-height: 110px; }
.form-submit    { width: 100%; justify-content: center; margin-top: 8px; }

/* FOOTER */
#footer { background-image: linear-gradient(rgba(14,19,28,0.88),rgba(14,19,28,0.88)), url('../img/footer.jpg'); background-size: cover; background-position: center; padding: 56px 0 28px; color: rgba(255,255,255,0.65); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p   { font-size: 15px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.50); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.70); border: 1px solid rgba(255,255,255,0.12); transition: background var(--trans-fast), color var(--trans-fast); }
.footer-social-icon:hover { background: var(--h2b-green); color: var(--white); border-color: var(--h2b-green); }
.footer-col h4    { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.50); transition: color var(--trans-fast); }
.footer-col ul li a:hover { color: var(--h2b-green-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.30); flex-wrap: wrap; gap: 8px; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 24px rgba(37,211,102,0.40); z-index: 999; transition: transform var(--trans-fast),box-shadow var(--trans-fast); animation: wa-bounce 2s ease-in-out 3s 3; }
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
@keyframes wa-bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .steps-grid    { grid-template-columns: repeat(2,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .videos-grid   { grid-template-columns: repeat(2,1fr); }
  .hero-visual   { padding: 0 60px; }
  .hero-device-img { height: 460px; }
}
@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .hero-inner       { grid-template-columns: 1fr; gap: 40px; padding: 100px 0 60px; }
  .hero-visual      { order: -1; padding: 0 70px; }
  .hero-device-img  { height: 320px; }
  .hero-stats       { gap: 20px; flex-wrap: wrap; }
  .benefits-grid    { grid-template-columns: 1fr; }
  .steps-grid       { grid-template-columns: 1fr; }
  .products-grid    { grid-template-columns: 1fr; }
  .videos-grid      { grid-template-columns: 1fr; }
  .contacto-inner   { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner     { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  #beneficios       { background-attachment: scroll; }
}
