
:root {
  --primary: #6f2dbd;
  --primary-dark: #4b1d84;
  --secondary: #8e44ad;
  --accent: #b57edc;
  --dark: #111827;
  --soft-bg: #f7f4fb;
  --text: #374151;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: #ffffff; }
section { scroll-margin-top: 90px; }
.navbar { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06); }
.navbar .nav-link { color: var(--dark); font-weight: 600; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--primary); }

.nav-store-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .85rem !important;
  border-radius: 999px;
  background: rgba(111,45,189,0.10);
  color: var(--primary) !important;
  white-space: nowrap;
}
.nav-store-link:hover, .nav-store-link:focus {
  background: var(--primary);
  color: var(--white) !important;
}
.nav-store-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.navbar-nav .nav-item { position: relative; padding: 0 10px; }
.navbar-nav .nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 18px;
  background: #d1d5db;
}
.hero {
  position: relative;
  padding: 180px 0 120px;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 20, 37, 0.94), rgba(79, 30, 122, 0.88));
}
.hero.small-hero { padding: 170px 0 110px; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: .10;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(181,126,220,0.35), transparent 35%),
              radial-gradient(circle at bottom left, rgba(111,45,189,0.25), transparent 40%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.05; }
.hero p { max-width: 760px; font-size: 1.1rem; color: rgba(255,255,255,0.88); }
.badge.bg-light.text-primary { color: var(--primary) !important; }
.btn-main, .btn-outline-light-custom, .btn-soft, .btn-consultar {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: all .25s ease;
}
.btn-main {
  background: var(--white); color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(255,255,255,0.18);
}
.btn-main:hover { transform: translateY(-2px); color: var(--primary-dark); }
.btn-outline-light-custom { border: 1px solid rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light-custom:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-soft { background: rgba(111,45,189,0.12); color: var(--primary); }
.btn-soft:hover { background: var(--primary); color: white; }
.btn-consultar {
  background: rgba(111,45,189,0.12);
  color: var(--primary);
  padding: .6rem 1.2rem;
  font-weight: 600;
}
.btn-consultar:hover { background: var(--primary); color: white; }
.bg-soft { background: var(--soft-bg); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--dark); }
.section-subtitle { max-width: 780px; margin: 0 auto; color: #6b7280; }
.service-card-link { text-decoration: none; color: inherit; }
.service-card, .package-card, .about-card, .contact-card, .content-card, .feature-card, .mini-card, .stats-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover, .package-card:hover, .about-card:hover, .contact-card:hover,
.feature-card:hover, .mini-card:hover, .stats-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
}
.icon-img {
  width: 72px; height: 72px; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(111,45,189,0.12), rgba(181,126,220,0.22));
  margin-bottom: 1rem;
}
.icon-img img { width: 40px; height: 40px; object-fit: contain; }
.subpage .icon-img {
  width: 56px; height: 56px; background: transparent; border-radius: 0; margin-bottom: .75rem;
}
.subpage .icon-img svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.package-card.featured { background: linear-gradient(180deg, #ffffff, #f6effd); border: 2px solid rgba(111,45,189,0.18); }
.package-card p { margin-bottom: .4rem; line-height: 1.25; }
.package-list { padding-left: 1rem; color: #4b5563; }
.package-list li { margin-bottom: .05rem; line-height: 1.2; }
.logo-carousel-wrap {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-track { display: flex; gap: 2rem; width: max-content; animation: scrollLogos 30s linear infinite; }
.logo-item {
  width: 180px; min-width: 180px; height: 95px; background: #fff; border-radius: 22px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08); display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.logo-item img { max-width: 100%; max-height: 52px; object-fit: contain; filter: grayscale(100%); opacity: .8; transition: all .3s ease; }
.logo-item:hover img { filter: grayscale(0%); opacity: 1; }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.about-card { background: linear-gradient(145deg, #ffffff, #faf7ff); }
.contact-card { background: linear-gradient(145deg, #1f1030, #4b1d84); color: white; }
.contact-card p, .contact-card a, .contact-card li, .contact-card .small { color: rgba(255,255,255,0.84) !important; }
.form-control, .form-select { border-radius: 14px; min-height: 52px; border: 1px solid #e5e7eb; }
.form-control:focus, .form-select:focus { border-color: rgba(111,45,189,0.45); box-shadow: 0 0 0 .25rem rgba(111,45,189,0.12); }
.footer { background: #0f172a; color: rgba(255,255,255,0.7); }
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer a:hover { color: #fff; }
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; width: 62px; height: 62px;
  background: #25d366; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.35); z-index: 1000;
}
.whatsapp-float:hover { transform: translateY(-3px); color: white; }
.cta-divider {
  width: min(680px, 92%); height: 1px; margin: 2.2rem auto 0;
  background: linear-gradient(to right, rgba(156,163,175,0), rgba(156,163,175,0.75), rgba(156,163,175,0));
}
.vline-gradient { position: relative; padding-left: 16px; }
.vline-gradient::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.9), rgba(255,255,255,0));
}
.image-frame { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.image-frame img {
  width: 100%; height: 100%; display: block; object-fit: cover; cursor: zoom-in; transition: transform .3s ease;
}
.image-frame img:hover { transform: scale(1.03); }
.cta-band {
  background: linear-gradient(145deg, #1f1030, #4b1d84);
  color: #fff; border-radius: 28px; padding: 2.2rem; box-shadow: var(--shadow);
}
.list-check { list-style: none; padding-left: 0; margin-bottom: 0; }
.list-check li { position: relative; padding-left: 1.6rem; margin-bottom: .3rem; line-height: 1.3; }
.list-check li::before { content: "•"; position: absolute; left: 0; top: -.05rem; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.image-modal {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.9);
  z-index:2000; align-items:center; justify-content:center;
}
.image-modal img { max-width:90%; max-height:90%; border-radius:10px; }
@media (max-width: 991.98px) {
  .hero { padding-top: 150px; padding-bottom: 90px; }
  .hero.small-hero { padding-top: 145px; padding-bottom: 90px; }
  .logo-item { width: 150px; min-width: 150px; }
}
@media (max-width: 575.98px) {
  .service-card, .package-card, .about-card, .contact-card, .content-card, .feature-card, .mini-card, .stats-card { padding: 1.4rem; }
  .hero h1 { font-size: 2.2rem; }
}

/* Ajuste general: versión más compacta sin modificar footer, logo ni menú principal */
body { font-size: 0.95rem; }

body > section.py-5 {
  padding-top: 2.7rem !important;
  padding-bottom: 2.7rem !important;
}

body > section .container.py-4 {
  padding-top: 1.1rem !important;
  padding-bottom: 1.1rem !important;
}

.hero {
  padding: 145px 0 85px;
}

.hero.small-hero {
  padding: 135px 0 80px;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 3.05rem);
  line-height: 1.1;
}

.hero p {
  max-width: 700px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.section-title {
  font-size: clamp(1.45rem, 2.35vw, 2.05rem);
  line-height: 1.18;
}

.section-subtitle {
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-card,
.package-card,
.about-card,
.contact-card,
.content-card,
.feature-card,
.mini-card,
.stats-card {
  padding: 1.45rem;
  border-radius: 20px;
}

.service-card h5,
.feature-card h5,
.mini-card h5,
.package-card h4,
.content-card h4,
.about-card h2,
.contact-card h2 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.service-card p,
.package-card p,
.about-card p,
.contact-card p,
.content-card p,
.feature-card p,
.mini-card p,
.stats-card p,
.package-list,
.list-check {
  font-size: 0.92rem;
}

.icon-img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin-bottom: .75rem;
}

.icon-img img {
  width: 32px;
  height: 32px;
}

.subpage .icon-img {
  width: 48px;
  height: 48px;
}

.subpage .icon-img svg {
  width: 24px;
  height: 24px;
}

.btn-main,
.btn-outline-light-custom,
.btn-soft,
.btn-consultar {
  padding: .75rem 1.18rem;
  font-size: 0.92rem;
}

.logo-item {
  width: 160px;
  min-width: 160px;
  height: 82px;
  border-radius: 18px;
}

.logo-item img {
  max-height: 46px;
}

.cta-band {
  padding: 1.6rem;
  border-radius: 22px;
}

.form-control,
.form-select {
  min-height: 46px;
  font-size: 0.92rem;
}

@media (max-width: 991.98px) {
  .hero { padding-top: 130px; padding-bottom: 72px; }
  .hero.small-hero { padding-top: 125px; padding-bottom: 72px; }
  .logo-item { width: 135px; min-width: 135px; height: 76px; }
}

@media (max-width: 575.98px) {
  body { font-size: 0.93rem; }
  .hero h1 { font-size: 1.78rem; }
  .section-title { font-size: 1.35rem; }
  .service-card,
  .package-card,
  .about-card,
  .contact-card,
  .content-card,
  .feature-card,
  .mini-card,
  .stats-card { padding: 1.15rem; }
}

/* Ajuste específico: tarjetas de Servicios más compactas */
#servicios .container.py-4 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
#servicios .text-center.mb-5 {
  margin-bottom: 1.8rem !important;
}
#servicios .section-title {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}
#servicios .section-subtitle {
  font-size: .92rem;
  max-width: 680px;
  line-height: 1.45;
}
#servicios .row.g-4 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}
#servicios .service-card {
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  min-height: 100%;
}
#servicios .service-card:hover {
  transform: translateY(-3px);
}
#servicios .icon-img {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  margin-bottom: .65rem;
}
#servicios .icon-img img {
  width: 28px;
  height: 28px;
}
#servicios .service-card h5 {
  font-size: .98rem;
  margin-bottom: .35rem;
  line-height: 1.2;
}
#servicios .service-card p {
  font-size: .84rem;
  line-height: 1.35;
}
#servicios .service-card .mt-3 {
  margin-top: .65rem !important;
  font-size: .84rem;
}

@media (max-width: 575.98px) {
  #servicios .service-card {
    padding: 1rem;
  }
  #servicios .icon-img {
    width: 46px;
    height: 46px;
  }
  #servicios .icon-img img {
    width: 25px;
    height: 25px;
  }
}

/* Banner URUSTORE debajo del hero principal - versión más chica */
.urustore-banner-section {
  padding: 1.25rem 0 .7rem;
  background: #ffffff;
}
.urustore-banner-section .container {
  max-width: 980px;
}
.urustore-banner-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.10);
  transform: translateZ(0);
}
.urustore-banner-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease, filter .35s ease;
}
.urustore-banner-link:hover .urustore-banner-img {
  transform: scale(1.035);
  filter: brightness(1.06);
}
@media (max-width: 991.98px) {
  .urustore-banner-section .container { max-width: 92%; }
}
@media (max-width: 575.98px) {
  .urustore-banner-section { padding: 1rem 0 .6rem; }
  .urustore-banner-section .container { max-width: 94%; }
  .urustore-banner-link { border-radius: 12px; }
}


/* Imagen lateral en el banner principal */
.hero .row {
  position: relative;
  z-index: 2;
}
.hero-image-card {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.hero-side-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-copy p {
  max-width: 620px;
}
@media (max-width: 991.98px) {
  .hero-image-card {
    margin-top: 1.25rem;
    border-radius: 20px;
  }
  .hero-side-image {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 575.98px) {
  .hero-image-card {
    border-radius: 16px;
  }
}


/* =========================================================
   FIX MOBILE HOME - solo afecta celulares
   Mantiene escritorio como está
   ========================================================= */
.mobile-store-promo-card,
.btn-arrow-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 126px 0 1.15rem !important;
    background:
      radial-gradient(circle at 50% 30%, rgba(111,45,189,.34), transparent 34%),
      linear-gradient(145deg, #090f27 0%, #1b1643 52%, #392072 100%) !important;
  }

  .hero::before {
    opacity: .13 !important;
  }

  .hero .container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero .row {
    display: flex;
    flex-direction: column;
    gap: 1.15rem !important;
  }

  .hero .row > .col-lg-6:nth-child(2) {
    order: 1;
  }

  .hero .row > .hero-copy {
    order: 2;
    text-align: center;
  }

  .hero-image-card {
    margin-top: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.32) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
  }

  .hero-side-image {
    aspect-ratio: 16 / 10.8 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .hero .badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: .25rem auto 1.1rem !important;
    padding: .65rem 1.05rem !important;
    font-size: .86rem !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 22px rgba(255,255,255,.14);
  }

  .hero h1 {
    max-width: 92%;
    margin: 0 auto 1rem !important;
    font-size: clamp(2.05rem, 9.2vw, 3.1rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em;
  }

  .hero p {
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.35rem !important;
    font-size: 1.03rem !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,.9) !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column;
    gap: .75rem !important;
    width: 100%;
    margin: 0 auto 1rem;
  }

  .hero-actions .btn-main,
  .hero-actions .btn-outline-light-custom {
    width: 100%;
    min-height: 60px;
    border-radius: 999px !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    padding: .9rem 1.2rem !important;
  }

  .hero-actions .btn-main {
    position: relative;
    background: #ffffff !important;
    color: var(--primary-dark) !important;
  }

  .btn-arrow-mobile {
    display: inline-flex;
    position: absolute;
    right: 1.35rem;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--primary-dark);
  }

  .hero-actions .btn-outline-light-custom {
    border: 1.5px solid rgba(255,255,255,.6) !important;
    background: rgba(255,255,255,.02) !important;
    color: #ffffff !important;
  }

  .mobile-store-promo-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    width: 100%;
    margin-top: 1.1rem;
    padding: 1rem .95rem;
    border-radius: 22px;
    text-align: left;
    text-decoration: none;
    color: #ffffff;
    border: 1.5px solid rgba(77,201,255,.88);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset,
                0 0 28px rgba(0,174,255,.42),
                0 14px 36px rgba(0,0,0,.28);
    background:
      radial-gradient(circle at 9% 50%, rgba(0,225,255,.33), transparent 21%),
      linear-gradient(135deg, rgba(0,105,255,.98) 0%, rgba(20,77,203,.92) 52%, rgba(50,28,130,.95) 100%);
    transform: translateZ(0);
    transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
  }

  .mobile-store-promo-card:hover,
  .mobile-store-promo-card:focus,
  .mobile-store-promo-card:active,
  .mobile-store-promo-card.is-pressed {
    transform: scale(1.025);
    filter: brightness(1.06);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset,
                0 0 34px rgba(0,174,255,.62),
                0 18px 42px rgba(0,0,0,.34);
  }

  .mobile-store-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: radial-gradient(circle, rgba(255,255,255,.12), rgba(0,212,255,.2));
    box-shadow: 0 0 28px rgba(0,225,255,.55), inset 0 0 0 2px rgba(49,221,255,.92);
  }

  .mobile-store-copy {
    display: block;
    min-width: 0;
  }

  .mobile-store-copy strong {
    display: block;
    font-size: 1.12rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.025em;
    margin-bottom: .32rem;
  }

  .mobile-store-copy small {
    display: block;
    font-size: .82rem;
    line-height: 1.32;
    color: rgba(255,255,255,.92);
  }

  .mobile-store-copy b {
    display: block;
    margin-top: .25rem;
    font-size: .98rem;
    line-height: 1.1;
    color: #20e4ff;
  }

  .mobile-store-button {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .7rem .82rem;
    border-radius: 16px;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
    color: #ffffff;
    background: linear-gradient(135deg, #00b9ff, #3158ff);
    box-shadow: 0 8px 22px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.35);
  }

  .mobile-store-button span {
    font-size: 1.15rem;
    line-height: 1;
  }

  .urustore-banner-section {
    display: none !important;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 430px) {
  .hero .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: clamp(1.82rem, 9.1vw, 2.55rem) !important;
  }

  .hero p {
    font-size: .94rem !important;
  }

  .mobile-store-promo-card {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: .65rem;
    padding: .85rem .72rem;
    border-radius: 19px;
  }

  .mobile-store-icon {
    width: 56px;
    height: 56px;
  }

  .mobile-store-copy strong {
    font-size: .98rem;
  }

  .mobile-store-copy small {
    font-size: .73rem;
  }

  .mobile-store-copy b {
    font-size: .88rem;
  }

  .mobile-store-button {
    padding: .62rem .68rem;
    border-radius: 14px;
    font-size: .72rem;
  }
}

@media (max-width: 365px) {
  .mobile-store-promo-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .mobile-store-button {
    grid-column: 2;
    justify-self: start;
    margin-top: .35rem;
  }
  .mobile-store-icon {
    width: 50px;
    height: 50px;
  }
}
