/* ==========================================================================
   Inicio (home page)
   ========================================================================== */

.text-sr-orange { color: var(--sr-orange-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 115px 0 100px;
  background-image: url('../../img/index/hero-banner-sr10.jpg');
  background-position: 50% 100%;
}
.hero__overlay { background: linear-gradient(241deg, rgba(90, 70, 107, .7) 57%, rgba(135, 59, 59, .69) 71%); }
.hero__eyebrow,
.hero__title { margin-bottom: 30px; color: #fff; }
.hero__btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sr-orange-dark);
  --bs-btn-hover-border-color: var(--sr-orange-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sr-orange-dark);
  --bs-btn-active-border-color: var(--sr-orange-dark);
  --bs-btn-padding-y: 8px;
  --bs-btn-padding-x: 16px;
  --bs-btn-font-size: 20px;
  --bs-btn-line-height: 1.5;
  margin-bottom: 30px;
}

/* ---------- Intro ---------- */
.intro { padding: 93px 0 25px; }
.intro__shape svg { height: 30px; }
.intro__shape path { fill: var(--sr-purple); }
.intro__rotating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 .3em;
  margin: 0 0 10px;
  font-size: 35px;
  font-weight: 700;
  color: #3c3b44;
}
.intro__words { color: #ec6c00; }
.intro__title {
  margin: 0 0 30px;
  font-size: 45px;
  font-weight: 600;
  color: #3c3b44;
}
.intro__text {
  width: 80%;
  margin: 0 auto;
  font-size: 18px;
}

/* ---------- Benefits (feature boxes) ---------- */
.benefits { padding: 0 0 5px; }
.benefit { padding: 15px; transition: .3s; }
.benefit__icon {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 50px;
  font-size: 30px;
  color: var(--sr-purple);
  transition: .3s;
}
.benefit__icon i { display: block; width: 30px; height: 30px; line-height: 30px; }
.benefit:hover .benefit__icon { background: var(--sr-purple); color: #fff; }
.benefit__title {
  font-size: 25px;
  font-weight: 700;
  color: var(--sr-orange);
}
.benefit__text { line-height: 20px; }

/* ---------- Demo call-to-action ---------- */
.demo-cta { position: relative; z-index: 2; padding-top: 43px; }
.demo-cta__wrap { position: relative; top: 35px; }
.demo-cta__mover { transition: transform .1s ease; will-change: transform; }
.demo-cta__btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sr-purple);
  --bs-btn-border-color: var(--sr-purple);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #765194;
  --bs-btn-hover-border-color: #765194;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #765194;
  --bs-btn-active-border-color: #765194;
  --bs-btn-padding-y: 15px;
  --bs-btn-padding-x: 25px;
  --bs-btn-font-size: 22px;
  --bs-btn-font-weight: 500;
  --bs-btn-line-height: 1.6;
}

.demo-modal__dialog { max-width: 760px; }
.demo-modal .modal-content { border-radius: 0; }
.demo-modal .modal-body { padding: 20px 30px; }
.demo-modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* ---------- Business types ---------- */
.business {
  position: relative;
  z-index: 1;
  padding: 117px 30px 92px;
  background-color: #ee6c20;
}
.business__title {
  margin: 0 0 60px;
  font-size: 50px;
  line-height: 60px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}
.business__video { margin: 40px 0; }

.video-trigger { position: relative; z-index: 1; display: inline-flex; align-items: center; }
.video-trigger__icon {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 50px;
  background-color: var(--sr-orange-dark);
  color: #fff;
  line-height: 1;
}
.video-trigger__icon i { display: block; width: 25px; height: 25px; font-size: 25px; line-height: 25px; }
.video-trigger__ripple {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50px;
  background-color: var(--sr-orange-dark);
  box-shadow: 0 0 0 15px rgba(255, 255, 255, .8), 0 0 0 30px rgba(255, 255, 255, .6), 0 0 0 45px rgba(255, 255, 255, .4);
  animation: videoRipple 2s infinite;
}
@keyframes videoRipple {
  0%   { opacity: 0; transform: scale(.5); }
  10%  { opacity: 1; }
  90%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1); }
}

/* Overlay-image card ("slide top" effect) */
.business-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 20px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 5px 5px 4px 0 rgba(30, 30, 30, .3);
  text-align: center;
}
.business-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 50px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, -50px, 0);
  transition: .35s;
}
.business-card:hover .business-card__bg { transform: translate3d(0, 0, 0); }
.business-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 22, 0, .46);
  transition: .4s linear;
}
.business-card__bg--cafeteria   { background-image: url('../../img/index/negocio-cafeteria.jpg'); }
.business-card__bg--bar         { background-image: url('../../img/index/negocio-bar.jpg'); }
.business-card__bg--food-truck  { background-image: url('../../img/index/negocio-food-truck.jpg'); }
.business-card__bg--restaurante { background-image: url('../../img/index/negocio-restaurante.jpg'); }
.business-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.business-card__title {
  margin: 30px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  transform: translate3d(0, 15px, 0);
  transition: .35s;
}
.business-card__title a { color: #fff; }
.business-card__action { margin-top: 20px; transition: .3s; }
.business-card:hover .business-card__title { transform: translate3d(0, 0, 0); }
.business-card:hover .business-card__action { transform: translate3d(0, -15px, 0); }
.business-card .btn-sm {
  --bs-btn-padding-y: 4px;
  --bs-btn-padding-x: 8px;
  --bs-btn-font-size: 14px;
  --bs-btn-line-height: 1.5;
  --bs-btn-hover-bg: var(--sr-orange);
  --bs-btn-hover-border-color: var(--sr-orange);
}

/* ---------- Add-ons (flip boxes) ---------- */
.addons { padding: 97px 0 4px; }
.addons__title {
  margin: 0 0 50px;
  font-size: 40px;
  line-height: 40px;
  font-weight: 800;
  color: #3c3b44;
}
.addons__highlight { color: #ee6c20; }

.addon-flip { height: 280px; min-height: 280px; margin-bottom: 30px; }
.addon-flip .flipbox__inner { transition: transform .6s ease-in-out; }
.addon-flip__front,
.addon-flip__back { padding: 20px; overflow: hidden; color: #fff; }
.addon-flip__front::before,
.addon-flip__back::before { content: ""; position: absolute; inset: 0; }
.addon-flip__front::before { background-color: rgba(0, 0, 0, .45); }
.addon-flip__back::before  { background-color: var(--sr-orange-dark); }
.addon-flip__front > *,
.addon-flip__back > * { position: relative; z-index: 1; }
.addon-flip__icon { display: inline-block; width: 70px; height: auto; }
.addon-flip--movil .addon-flip__front        { background-image: url('../../img/shared/addon-movil-bg.webp'); }
.addon-flip--analytics .addon-flip__front    { background-image: url('../../img/shared/addon-analytics-bg.webp'); }
.addon-flip--menu-digital .addon-flip__front { background-image: url('../../img/shared/addon-menu-digital-bg.webp'); }
.addon-flip__btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: #343a40;
  --bs-btn-border-color: #343a40;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #23272b;
  --bs-btn-hover-border-color: #1d2124;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #23272b;
  --bs-btn-active-border-color: #1d2124;
  --bs-btn-padding-y: 8px;
  --bs-btn-padding-x: 12px;
  --bs-btn-line-height: 1.25;
}

.addons-more { padding: 0 0 41px; }
.addons-more__btn {
  --bs-btn-color: #858585;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #bdbdbd;
  --bs-btn-hover-color: #1a1a1a;
  --bs-btn-hover-bg: #ebedef;
  --bs-btn-hover-border-color: #ebedef;
  --bs-btn-active-color: #1a1a1a;
  --bs-btn-active-bg: #ebedef;
  --bs-btn-active-border-color: #ebedef;
  --bs-btn-padding-y: 8px;
  --bs-btn-padding-x: 12px;
  --bs-btn-line-height: 1.25;
  margin-bottom: 30px;
}

/* ---------- Company + counters ---------- */
.company__image {
  min-height: 70px;
  background-image: url('../../img/index/empresa-business.jpg');
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}
.company__body { padding: 50px 20% 50px 30px; }
.company__text {
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, .9);
  color: #3c3b44;
}
.company__title { font-size: 40px; line-height: 45px; font-weight: 800; }

.stat {
  margin: 0 5px 10px 0;
  padding: 20px;
  border-radius: 5px;
  background-color: #f7f9fb;
}
.stat--alt { background-color: #ecf0f5; }
.stat--narrow { padding: 20px 0; }
.stat__number {
  font-size: 30px;
  line-height: 18px;
  font-weight: 600;
  color: var(--sr-orange-dark);
}
.stat--plus .stat__number::before { content: "+"; display: inline-block; }
.stat__label {
  margin: 10px 10px 20px;
  font-size: 14px;
  line-height: 16px;
}

/* ---------- Safe reopening ---------- */
.reopening {
  padding: 132px 0 130px;
  background-color: #000;
  background-image: url('../../img/index/reapertura-bg.webp');
}
.reopening__overlay { background: linear-gradient(76deg, #bb5102 0%, rgba(39, 22, 63, .8) 60%); }
.reopening__title { font-size: 40px; font-weight: 600; color: #fefefe; }
.reopening__highlight { color: #fea323; font-style: italic; }
.reopening__text { margin-bottom: 30px; color: #fff; }

/* ---------- Resources ---------- */
.resources {
  padding: 0 0 3px;
  background-color: #f7f9fb;
  background-image: url('../../img/index/recursos-bg.jpg');
  background-position: 0 0;
}
.resources__overlay { background-color: #fddfc7; mix-blend-mode: overlay; }

.resource-card {
  position: relative;
  top: -80px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 150px;
  margin-bottom: 20px;
  padding: 0 0 10px 10px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 5px 5px 4px 0 rgba(30, 30, 30, .3);
}
.resource-card__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: .35s;
}
.resource-card--zoom-out .resource-card__bg { transform: scale3d(1.15, 1.15, 1); }
.resource-card--zoom-out:hover .resource-card__bg { transform: scale3d(1, 1, 1); }
.resource-card--zoom-in:hover .resource-card__bg { transform: scale3d(1.15, 1.15, 1); }
.resource-card__bg--calculadora-roi { background-image: url('../../img/index/recurso-calculadora-roi.webp'); }
.resource-card__bg--entrega-segura  { background-image: url('../../img/index/recurso-entrega-segura.webp'); }
.resource-card__bg--guia-negocio    { background-image: url('../../img/index/recurso-guia-negocio.png'); }
.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(88, 69, 106, .81) 25%, rgba(0, 0, 0, .17) 25%);
  transition: .4s linear;
}
.resource-card:hover::after { opacity: .8; }
.resource-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  transform: translate3d(15px, 0, 0);
  transition: .35s;
}
.resource-card:hover .resource-card__title { transform: translate3d(0, 0, 0); }
.resource-card__title a { color: #fff; }
.resource-card__title i { margin-right: 5px; }

.distributors { margin: -35px 0 30px; color: #3c3b44; }
.distributors__title { font-size: 40px; font-weight: 800; }
.distributors a { color: #3c3b44; }
.distributors__logo { width: 160px; max-width: 160px; }

/* ==========================================================================
   Tablet (768px – 991px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .intro__text { width: 90%; font-size: 17px; line-height: 27px; }

  .benefit { padding: 0; }
  .benefit__title { font-size: 20px; line-height: 20px; }

  .business { padding: 109px 30px 50px; }
  .business__title { margin-bottom: 30px; }
  .business .col-6 .business-card { margin-bottom: 20px; }

  .addon-flip { margin-bottom: 10px; }
  .addon-flip--movil,
  .addon-flip--menu-digital { height: 230px; min-height: 230px; }

  .addons-more { padding-bottom: 9px; }

  .company__body { padding: 0 40px 0 30px; }
  .company__title { font-size: 35px; line-height: 40px; }
  .stat { margin: 0 10px 20px 0; }
  .stat--last { margin-bottom: 0; }
  .stat--last .stat__label { margin: 10px 10px 6px; }

  .reopening__text { margin-bottom: 0; }

  .resource-card__title { font-size: 14px; line-height: 14px; }

}

/* ==========================================================================
   Mobile (≤ 767px)
   ========================================================================== */
@media (max-width: 767.98px) {
  .hero { padding-top: 80px; }
  .hero__eyebrow { font-size: 28px; line-height: 28px; }
  .hero__title { font-size: 23px; line-height: 23px; }
  .hero__btn { --bs-btn-font-size: 15px; }

  .intro { padding: 59px 0 0; }
  .intro__rotating { font-size: 20px; }
  .intro__title { font-size: 30px; line-height: 30px; }
  .intro__text { width: 100%; }

  .benefit { padding: 20px; }
  .benefit--last { margin-bottom: 30px; }

  .business { padding: 103px 30px 35px 31px; }
  .business__title { margin-bottom: 30px; font-size: 30px; line-height: 30px; }
  .business .col-6 .business-card { margin-bottom: 15px; }
  .business-card--food-truck { margin-bottom: 20px; }

  .addons__title { font-size: 30px; line-height: 30px; }
  .addon-flip { height: 200px; min-height: 200px; margin-bottom: 10px; }
  .addon-flip--analytics { margin-bottom: 30px; }
  .addon-flip--menu-digital { margin-bottom: 0; }

  .addons-more { padding-bottom: 4px; }

  .company { padding: 51px 29px 39px; }
  .company__image { min-height: 280px; }
  .company__body { padding: 0; }
  .company__title { font-size: 30px; line-height: 35px; }
  .company__text { margin-bottom: 20px; }
  .stat { margin: 0 5px 10px 0; }
  .stat__label { margin: 10px 10px 6px; }

  .reopening { padding: 79px 10px 48px; }
  .reopening__title { font-size: 35px; line-height: 40px; }
  .reopening__text { margin-bottom: 0; }

  .resources { padding: 0 25px 6px; }
  .resource-card { margin-bottom: 30px; }
  .resource-card--last { margin-bottom: 0; }

}

@media (prefers-reduced-motion: reduce) {
  .video-trigger__ripple { animation: none; }
  .demo-cta__mover { transition: none; }
}
