:root {
                        --section-pad: 60px;
--anchor-gap: 10px;
--nav-h: 84px;
--bg: #F0F2F2;
      --surface: rgba(255,255,255,.7);
      --surface2: rgba(255,255,255,.55);
      --text: #1E1F20;
      --muted: #5B6460;
      --line: rgba(20, 30, 25, .12);
      --primary: #5F966F;
      --primary2: #70A489;
      --deep: #2B5B3F;
      --black: #252525;

      --radius-xl: 24px;
      --radius-lg: 18px;
      --shadow: 0 20px 60px rgba(0,0,0,.10);
      --shadow-soft: 0 12px 30px rgba(0,0,0,.08);

      /* Tech motion helpers */
      --mx: 50%;
      --my: 20%;
      --grid: rgba(43,91,63,.10);
      --glow: rgba(95,150,111,.22);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth;
}

    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(1200px 800px at 20% -10%, rgba(95,150,111,.25), transparent 55%),
        radial-gradient(900px 700px at 90% 10%, rgba(112,164,137,.22), transparent 60%),
        radial-gradient(900px 600px at 50% 110%, rgba(37,37,37,.10), transparent 60%),
        var(--bg);
      overflow-x: hidden;
      position: relative;
      isolation: isolate;
    }

    /* Animated tech background layers (subtle) */
    
    /* Tech particle canvas */
    #fxCanvas{
      position: fixed;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      opacity: .55;
    }
    @media (prefers-reduced-motion: reduce){
      #fxCanvas{ display:none; }
    }
body::before,
    body::after{
      content:"";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;
    }

    /* Cursor glow + slow drifting blobs */
    body::before{
      background:
        radial-gradient(900px 520px at var(--mx) var(--my), var(--glow), transparent 60%),
        radial-gradient(700px 420px at 10% 30%, rgba(112,164,137,.14), transparent 65%),
        radial-gradient(700px 420px at 90% 70%, rgba(95,150,111,.12), transparent 65%);
      filter: blur(.2px);
      animation: bgShift 12s ease-in-out infinite;
      opacity: .95;
    }

    /* Moving dotted grid overlay */
    body::after{
      background-image:
        radial-gradient(circle at 1px 1px, var(--grid) 1px, transparent 1px),
        radial-gradient(circle at 1px 1px, rgba(95,150,111,.08) 1px, transparent 1px);
      background-size: 26px 26px, 46px 46px;
      background-position: 0 0, 10px 18px;
      opacity: .32;
      mix-blend-mode: multiply;
      animation: gridDrift 16s linear infinite;
    }

    @keyframes bgShift{
      0%{ transform: translate3d(0,0,0) scale(1); }
      50%{ transform: translate3d(0,-10px,0) scale(1.02); }
      100%{ transform: translate3d(0,0,0) scale(1); }
    }
    @keyframes gridDrift{
      0%{ transform: translate3d(0,0,0); }
      100%{ transform: translate3d(-80px,-60px,0); }
    }

    @keyframes navScan{
      0%{ transform: translateX(-30%); }
      50%{ transform: translateX(160%); }
      100%{ transform: translateX(160%); }
    }

    @keyframes badgeSpin{
      0%{ transform: rotate(0deg); }
      100%{ transform: rotate(360deg); }
    }

    @keyframes scanSweep{
      0%{ transform: translateX(-80%) rotate(18deg); opacity: 0; }
      15%{ opacity: .55; }
      50%{ transform: translateX(80%) rotate(18deg); opacity: .25; }
      100%{ transform: translateX(80%) rotate(18deg); opacity: 0; }
    }

    @keyframes pulseGlow{
      0%,100%{ filter: saturate(1); }
      50%{ filter: saturate(1.06); }
    }

    /* Prefer reduced motion */
    @media (prefers-reduced-motion: reduce){
      body::before, body::after{ animation: none !important; }
    }

    /* Animated accent text */
    .accent{
      color: transparent;
      background: linear-gradient(90deg, var(--deep), var(--primary), var(--primary2), var(--deep));
      background-size: 220% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      animation: accentFlow 6s ease-in-out infinite;
    }
    @keyframes accentFlow{
      0%{ background-position: 0% 50%; }
      50%{ background-position: 100% 50%; }
      100%{ background-position: 0% 50%; }
    }
    @media (prefers-reduced-motion: reduce){
      .accent{ animation: none !important; background-position: 50% 50%; }
    }

    a { color: inherit; text-decoration: none; }
    .container {
      width: min(1140px, calc(100% - 40px));
      margin: 0 auto;
    }

    /* Top nav */
    .nav {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(14px);
      background: rgba(240,242,242,.65);
      border-bottom: 1px solid var(--line);
      overflow: hidden;
    }
    /* subtle scan line */
    .nav::after{
      content:"";
      position:absolute;
      left:-35%;
      top:0;
      height:2px;
      width:70%;
      background: linear-gradient(90deg, transparent, rgba(95,150,111,.55), transparent);
      opacity: .55;
      animation: navScan 9s ease-in-out infinite;
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 0;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 220px;
    }
    .brand-badge {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(95,150,111,.25), rgba(112,164,137,.10));
      border: 1px solid var(--line);
      box-shadow: 0 10px 22px rgba(0,0,0,.06);
      display: grid;
      place-items: center;
      overflow: hidden;
      position: relative;
    }
    .brand-badge::after{
      content:"";
      position:absolute;
      inset:-45%;
      background: conic-gradient(from 180deg, transparent, rgba(95,150,111,.45), transparent 40%, transparent 60%, rgba(112,164,137,.35), transparent);
      opacity: .55;
      animation: badgeSpin 11s linear infinite;
    }
    .brand-badge img {
      width: 40px;
      height: 40px;
      object-fit: contain;
      border-radius: 10px;
      transform: translateY(1px);
      position: relative;
      z-index: 1;
    }
    .brand-title {
      display: grid;
      line-height: inherit;
    }
    .brand-title strong {
      font-size: 14px;
      letter-spacing: normal;
    }
    .brand-title span {
      font-size: 12px;
      color: var(--muted);
    }

    .nav-links {
      display: flex;
      gap: 18px;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;
    }
    .nav-links a {
      font-size: 13px;
      color: rgba(30,31,32,.85);
      padding: 10px 10px;
      border-radius: 12px;
    }
    .nav-links a:hover {
      background: rgba(255,255,255,.6);
      border: 1px solid var(--line);
      padding: 9px 9px; /* compensate border */
    }

    .nav-cta {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border-radius: 16px;
      padding: 11px 14px;
      font-weight: 600;
      font-size: 13px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.65);
      box-shadow: 0 12px 26px rgba(0,0,0,.06);
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
      user-select: none;
      position: relative;
      overflow: hidden;
    }
    /* Shimmer highlight for a more "tech" feel */
    .btn::after{
      content: "";
      position: absolute;
      inset: -40% -60%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
      transform: translateX(-60%) rotate(18deg);
      opacity: 0;
      transition: opacity .18s ease;
      pointer-events: none;
    }
    .btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 34px rgba(0,0,0,.09);
      background: rgba(255,255,255,.8);
    }
    .btn:active{
      transform: translateY(0) scale(.985);
    }
    .btn:hover::after{
      opacity: .9;
      animation: btnSweep 1.2s ease-in-out;
    }
    @keyframes btnSweep{
      0%{ transform: translateX(-60%) rotate(18deg); }
      100%{ transform: translateX(60%) rotate(18deg); }
    }
    .btn-primary {
      border: 1px solid rgba(95,150,111,.35);
      background: linear-gradient(135deg, rgba(95,150,111,.95), rgba(112,164,137,.90));
      color: white;
      box-shadow: 0 18px 40px rgba(95,150,111,.25);
    }
    .btn-primary{ animation: breathe 3.8s ease-in-out infinite; }
    @keyframes breathe{
      0%, 100%{ filter: saturate(1); }
      50%{ filter: saturate(1.08); }
    }
    @media (prefers-reduced-motion: reduce){
      .btn-primary{ animation: none !important; }
      .btn:hover::after{ animation: none !important; }
    }
    .btn-primary:hover {
      box-shadow: 0 24px 60px rgba(95,150,111,.30);
    }
    .icon {
      width: 18px; height: 18px;
      flex: 0 0 18px;
    }

    /* Attention pulse for primary CTA */
    .btn-primary{
      position: relative;
    }
    .btn-primary::after{
      content:"";
      position:absolute;
      inset:-2px;
      border-radius: 999px;
      background: radial-gradient(120px 60px at 30% 20%, rgba(255,255,255,.35), transparent 70%),
                  radial-gradient(120px 60px at 70% 80%, rgba(112,164,137,.35), transparent 70%);
      filter: blur(10px);
      opacity: .25;
      z-index: -1;
      animation: ctaPulse 2.8s ease-in-out infinite;
    }
    @keyframes ctaPulse{
      0%,100%{ transform: scale(.98); opacity:.18; }
      50%{ transform: scale(1.06); opacity:.34; }
    }
    @media (prefers-reduced-motion: reduce){
      .btn-primary::after{ animation:none !important; }
    }


    /* Hero */
    header.hero {
      padding: 54px 0 10px;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 28px;
      align-items: center;
    }
    .pill {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.65);
      border: 1px solid var(--line);
      box-shadow: 0 12px 30px rgba(0,0,0,.06);
      color: rgba(30,31,32,.82);
      font-weight: 600;
      font-size: 12px;
      letter-spacing: normal;
      width: fit-content;
      position: relative;
      overflow: hidden;
    }
    .pill::after{
      content: "";
      position: absolute;
      inset: -50% -80%;
      background: linear-gradient(90deg, transparent, rgba(95,150,111,.20), transparent);
      transform: translateX(-60%) rotate(18deg);
      opacity: .35;
      animation: scanSweep 12s ease-in-out infinite;
      pointer-events: none;
    }
    .pill > span{
      display: inline-block;
      animation: spark 2.8s ease-in-out infinite;
      transform-origin: 50% 70%;
    }
    @keyframes spark{
      0%,100%{ transform: translateY(0) rotate(0deg); }
      50%{ transform: translateY(-2px) rotate(-6deg); }
    }
    @media (prefers-reduced-motion: reduce){
      .pill::after, .pill > span{ animation: none !important; }
    }
    h1 {
      margin: 16px 0 10px;
      font-size: clamp(32px, 4vw, 54px);
      letter-spacing: normal;
      line-height: inherit;
    }
    .lead {
      margin: 0 0 18px;
      color: rgba(30,31,32,.75);
      font-size: 16px;
      line-height: inherit;
      max-width: 56ch;
    }
    .hero-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin: 14px 0 0;
    }

    .hero-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      min-height: 360px;
      animation: floatCard 7s ease-in-out infinite;
    }
    @keyframes floatCard{
      0%,100%{ transform: translate3d(0,0,0) rotate(0.25deg); }
	  50%{ transform: translate3d(0,-18px,0) rotate(-0.35deg); }
    }
    .hero-card::before {
      content: "";
      position: absolute;
      inset: -2px;
      background: radial-gradient(600px 220px at 40% -10%, rgba(95,150,111,.35), transparent 60%),
                  radial-gradient(500px 240px at 90% 20%, rgba(112,164,137,.28), transparent 60%);
      z-index: 0;
      filter: blur(0px);
    }
    .hero-card::after{
      content:"";
      position:absolute;
      inset: -40% -60%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
      transform: translateX(-70%) rotate(18deg);
      z-index: 0;
      pointer-events: none;
      animation: scanSweep 10s ease-in-out infinite;
      mix-blend-mode: overlay;
    }
    .hero-card-inner {
      position: relative;
      z-index: 1;
      padding: 22px 22px 18px;
      height: 100%;
      display: grid;
      gap: 14px;
    }
    .logo-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,.55);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 16px;
    }
    .logo-wrap img {
      width: min(420px, 100%);
      height: auto;
      display: block;
      filter: drop-shadow(0 10px 24px rgba(0,0,0,.10));
    }

    .stat-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .stat {
      background: rgba(255,255,255,.55);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px 14px;
    }
    .stat strong {
      display: block;
      font-size: 14px;
      letter-spacing: normal;
    }
    .stat span {
      display: block;
      margin-top: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: inherit;
    }

    /* Sections */
    section { padding: var(--section-pad) 0; }
.section-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 22px;
    }
    .section-head h2 {
      margin: 0;
      font-size: 26px;
      letter-spacing: normal;
    }
    .section-head p {
      margin: 0;
      color: var(--muted);
      max-width: 60ch;
      line-height: inherit;
      font-size: 14px;
    }

    /* Pricing */
    .pricing {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .plan {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-soft);
      padding: 18px;
      position: relative;
      overflow: hidden;
    }
    .plan,
    .card{
      transition: transform .22s ease, box-shadow .22s ease;
    }
    @media (prefers-reduced-motion: no-preference){
      .plan{ animation: pulseGlow 8.6s ease-in-out infinite; }
      .plan:nth-child(2){ animation-delay: -2.4s; }
      .card{ animation: pulseGlow 10.2s ease-in-out infinite; }
      .cards .card:nth-child(2n){ animation-delay: -1.8s; }
    }
    .plan:hover,
    .card:hover{
      transform: translateY(-2px);
      box-shadow: 0 22px 50px rgba(0,0,0,.10);
    }

    /* Subtle scanning sheen across cards */
    .card::after{
      content: "";
      position: absolute;
      inset: -40% -60%;
      background: linear-gradient(90deg, transparent, rgba(95,150,111,.16), transparent);
      transform: translateX(-70%) rotate(16deg);
      z-index: 0;
      opacity: .18;
      pointer-events: none;
      animation: scanSweep 14s ease-in-out infinite;
      mix-blend-mode: multiply;
    }
    .card:hover::after{ opacity: .75; animation: cardSweep 1.4s ease-in-out; }
    @keyframes cardSweep{
      0%{ transform: translateX(-70%) rotate(16deg); }
      100%{ transform: translateX(70%) rotate(16deg); }
    }
    @media (prefers-reduced-motion: reduce){
      .hero-card{ animation: none !important; }
      .card::after{ animation: none !important; opacity: .0 !important; }
    }

    /* continuous subtle sheen for plan cards too */
    .plan::before{
      content: "";
      position: absolute;
      inset: -40% -60%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
      transform: translateX(-70%) rotate(18deg);
      z-index: 0;
      pointer-events: none;
      animation: scanSweep 16s ease-in-out infinite;
      opacity: .22;
      mix-blend-mode: overlay;
    }
    .plan::after {
      content: "";
      position: absolute;
      inset: -2px;
      background: radial-gradient(500px 220px at 20% 0%, rgba(95,150,111,.28), transparent 55%);
      z-index: 0;
      pointer-events: none;
    }
    .plan-inner {
      position: relative;
      z-index: 1;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: normal;
      padding: 8px 10px;
      border-radius: 999px;
      border: 1px solid rgba(95,150,111,.30);
      background: rgba(95,150,111,.10);
      color: var(--deep);
    }
    .plan h3 {
      margin: 12px 0 6px;
      font-size: 18px;
    }
    .speed {
      color: var(--muted);
      font-size: 13px;
      margin: 0 0 14px;
    }
    .price {
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin: 14px 0 14px;
    }
    .price strong {
      font-size: 34px;
      letter-spacing: normal;
    }
    .price span {
      color: var(--muted);
      font-size: 13px;
    }
    .plan ul {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 10px;
      color: rgba(30,31,32,.78);
      font-size: 13px;
    }
    .plan li {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    .check {
      width: 18px; height: 18px;
      border-radius: 6px;
      background: rgba(95,150,111,.15);
      border: 1px solid rgba(95,150,111,.25);
      display: grid;
      place-items: center;
      flex: 0 0 18px;
      margin-top: 0;
    }
    .plan .btn {
      width: 100%;
      justify-content: center;
      margin-top: 0;
    }

    /* Contact cards */
    .cards {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 16px;
    }
    .card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-soft);
      padding: 18px;
      overflow: hidden;
      position: relative;
    }
    .card::before {
      content: "";
      position: absolute;
      inset: -2px;
      background: radial-gradient(700px 250px at 10% -10%, rgba(112,164,137,.22), transparent 55%);
      z-index: 0;
      pointer-events: none;
    }
    .card > * { position: relative; z-index: 1; }
    .kv {
      display: grid;
      gap: 10px;
      margin-top: 0;
    }
    .kv-row {
      display: flex;
      gap: 12px;
      padding: 12px 12px;
      background: rgba(255,255,255,.55);
      border: 1px solid var(--line);
      border-radius: 16px;
      align-items: center;
    }
    .kv-row .label {
      font-weight: 700;
      font-size: 12px;
      color: rgba(30,31,32,.70);
      min-width: 84px;
    }
    .kv-row .value {
      font-weight: 600;
      font-size: 13px;
      color: rgba(30,31,32,.88);
      overflow-wrap: anywhere;
    }

    .socials {
      display: grid;
      gap: 10px;
      margin-top: 0;
    }

    /* Footer */
    footer {
      padding: 26px 0 40px;
      color: rgba(30,31,32,.66);
    }
    .foot {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      border-top: 1px solid var(--line);
      padding-top: 18px;
    }
    .tiny {
      font-size: 12px;
      line-height: inherit;
    }

    /* Reveal animations */
    .reveal {
      opacity: 0;
      transform: translateY(14px);
      transition: opacity .6s ease, transform .6s ease;
    }
    .reveal.in {
      opacity: 1;
      transform: translateY(0);
    }

    /* Responsive */
    @media (max-width: 980px) {
      .hero-grid {
        grid-template-columns: 1fr;
      }
      header.hero {
        padding-top: 34px;
      }
      .cards {
        grid-template-columns: 1fr;
      }
      .pricing {
        grid-template-columns: 1fr;
      }
      .nav-links {
        display: none;
      }
      .brand {
        min-width: 0;
      }
    }

    /* Mobile menu */
    .mobile-drawer {
      display: none;
    }

    /* Backdrop for mobile drawer (placed outside .nav to avoid clipping) */
    .drawer-backdrop{
      display:none;
      position: fixed;
      inset: 0;
      background: rgba(12, 18, 14, .28);
      backdrop-filter: blur(6px);
      z-index: 9000;
    }
    .drawer-backdrop.open{ display:block; }

    .menu-btn {
      display: none;
    }
    @media (max-width: 980px) {
      .menu-btn {
        display: inline-flex;
      }
      .mobile-drawer {
        display: none;
        position: fixed;
        top: calc(var(--nav-h) + 10px);
        left: 14px;
        right: 14px;
        background: rgba(255,255,255,.82);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
        padding: 12px;
        backdrop-filter: blur(14px);
        z-index: 9001;
        max-height: calc(100vh - var(--nav-h) - 24px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        transform-origin: top;
        animation: drawerPop .18s ease-out;
      }
      .mobile-drawer.open { display: block; }
      .mobile-drawer a {
        display: flex;
        padding: 12px 12px;
        border-radius: 14px;
        font-weight: 700;
        font-size: 13px;
        color: rgba(30,31,32,.85);
      }
      .mobile-drawer a:hover {
        background: rgba(95,150,111,.10);
        border: 1px solid rgba(95,150,111,.20);
        padding: 11px 11px;
      }
    }

    @keyframes drawerPop{
      from{ opacity: 0; transform: translateY(-6px) scale(.985); }
      to{ opacity: 1; transform: translateY(0) scale(1); }
    }

    body.drawer-open{ overflow: hidden; }




/* Offset de anclas (fallback) — el scroll preciso lo maneja JS */
section[id] { scroll-margin-top: 0; }
*[id]:not(section) { scroll-margin-top: 0; }


/* ===== Pagar servicio ===== */
.pay-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 980px){
  .pay-grid{ grid-template-columns: 1fr; }
}

.pay-form{
  margin-top: 0;
  display:grid;
  gap:12px;
}

.field{ display:grid; gap:8px; }
.field-label{
  font-weight: 800;
  font-size: 12px;
  color: rgba(30,31,32,.75);
}

.input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  box-shadow: 0 12px 26px rgba(0,0,0,.04);
  font-weight: 700;
  font-size: 14px;
  outline: none;
  transition: box-shadow .18s ease, transform .18s ease, background .18s ease, border-color .18s ease;
}
.input:focus{
  border-color: rgba(95,150,111,.45);
  box-shadow: 0 18px 34px rgba(95,150,111,.15);
  background: rgba(255,255,255,.85);
}


/* Referencia + subida integrada */
.ref-instructions{
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(30,31,32,.70);
  line-height: 1.45;
}
.ref-input-wrap{
  position: relative;
}
.ref-input-wrap .input{
  padding-right: 118px; /* espacio para el botón */
}
.ref-upload-btn{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
  font-weight: 900;
  font-size: 12px;
  color: rgba(30,31,32,.78);
  cursor: pointer;
  user-select: none;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ref-upload-btn:hover{
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 30px rgba(0,0,0,.06);
}
.ref-upload-btn:active{
  transform: translateY(-50%) scale(.98);
}
.ref-upload-icon{
  width: 16px;
  height: 16px;
  opacity: .9;
}
.ref-file-input{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 420px){
  .ref-input-wrap .input{ padding-right: 92px; }
  .ref-upload-btn span{ display:none; }
}

/* Upload captura (OCR) */
.or-divider{ position:relative; text-align:center; margin: 6px 0 2px; }
.or-divider::before{ content:''; position:absolute; left:0; right:0; top:50%; border-top:1px solid var(--line); opacity:.9; }
.or-divider span{ position:relative; display:inline-block; padding: 4px 10px; border-radius: 999px; border:1px solid var(--line); background: rgba(255,255,255,.55); font-size:12px; font-weight: 800; color: rgba(30,31,32,.65); }
.field-help{ font-size:12px; font-weight:600; color: rgba(30,31,32,.62); line-height:1.4; }
.input[type="file"]{ padding: 10px 12px; }

.msg{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  line-height: inherit;
}
.msg-error{
  background: rgba(220, 53, 69, .10);
  border-color: rgba(220, 53, 69, .25);
  color: rgba(140, 20, 35, .95);
}
.msg-ok{
  background: rgba(95,150,111,.12);
  border-color: rgba(95,150,111,.28);
  color: rgba(30, 80, 50, .95);
}

.invoice-wrap{ margin-top: 0; display:grid; gap:14px; }

.summary{
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
}
.summary-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px){
  .summary-row{ grid-template-columns: 1fr; }
}
.summary-item{
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.summary-item .k{
  display:block;
  color: rgba(30,31,32,.70);
  font-size: 12px;
  font-weight: 800;
}
.summary-item .v{
  display:block;
  margin-top: 0;
  font-size: 20px;
  letter-spacing: normal;
}

.summary-item .v2{
  display:block;
  margin-top: 0;
  font-size: 13px;
  color: rgba(30,31,32,.70);
  font-weight: 800;
}
.summary-note{
  margin-top: 0;
  color: rgba(30,31,32,.70);
  font-size: 12px;
  line-height: inherit;
}

.invoice-list{
  display:grid;
  gap:10px;
}
.invoice{
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display:grid;
  gap:8px;
}
.invoice-top{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.invoice-title{ font-weight: 900; font-size: 13px; }
.invoice-meta{ color: rgba(30,31,32,.70); font-size: 12px; }
.invoice-amount{
  font-weight: 900;
  font-size: 14px;
}

.lock-pay{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(95,150,111,.25);
  background: rgba(95,150,111,.10);
}
.lock-pay .muted{
  margin-top: 0;
  color: rgba(30,31,32,.70);
  font-size: 12px;
  line-height: inherit;
}

.mini-summary{
  margin-top: 0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini{
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.mini span{
  display:block;
  color: rgba(30,31,32,.70);
  font-size: 12px;
  font-weight: 800;
}
.mini strong{
  display:block;
  margin-top: 0;
  font-size: 18px;
  letter-spacing: normal;
}

/* ===== Toast (notificación inferior derecha) ===== */
.toast-container{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast{
  pointer-events: auto;
  width: min(380px, calc(100vw - 36px));
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{ opacity: 1; transform: translateY(0); }
.toast.success{ border-left: 4px solid var(--primary); }
.toast.error{ border-left: 4px solid #d24b4b; }
.toast.info{ border-left: 4px solid var(--deep); }
.toast-body{ flex: 1; min-width: 0; }
.toast-title{ font-weight: 800; font-size: 14px; line-height: inherit; }
.toast-msg{ margin-top: 0; color: var(--muted); font-size: 13px; line-height: inherit; word-break: break-word; }
.toast-close{
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  line-height: inherit;
}
.toast-close:hover{ background: rgba(0,0,0,.04); }
@media (max-width: 520px){
  .toast-container{ right: 12px; bottom: 12px; }
}


/* ==========================================================
   Extra "cool tech" motion layer (keeps palette)
   ========================================================== */

.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span{
  display:block;
  height: 100%;
  width: var(--scroll-p, 0%);
  background: linear-gradient(90deg, var(--deep), var(--primary), var(--primary2), var(--deep));
  box-shadow: 0 0 18px rgba(95,150,111,.35);
  transform-origin: 0 50%;
  transition: width .08s linear;
  animation: progGlow 5.5s ease-in-out infinite;
}
@keyframes progGlow{
  0%,100%{ filter: saturate(1); opacity: .9; }
  50%{ filter: saturate(1.12); opacity: 1; }
}

.fx-noise{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(20,30,25,.04) 0, rgba(20,30,25,.04) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(95,150,111,.04) 0, rgba(95,150,111,.04) 1px, transparent 1px, transparent 4px);
  animation: noiseDrift 13s linear infinite;
}
@keyframes noiseDrift{
  0%{ transform: translate3d(0,0,0); }
  100%{ transform: translate3d(-40px, 28px, 0); }
}

/* Holographic animated borders on surfaces */
.card, .hero-card, .field, .summary-item{
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}
.card::before,
.hero-card::before,
.field::before,
.summary-item::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg,
    transparent 0 18%,
    rgba(95,150,111,.40) 22%,
    transparent 30% 55%,
    rgba(112,164,137,.32) 62%,
    transparent 70% 100%);
  opacity: .55;
  pointer-events:none;
  animation: borderSpin 10.8s linear infinite;
  /* show only the border ring */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@keyframes borderSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* Subtle floating motion on hero + key elements */
@media (prefers-reduced-motion: no-preference){
  .hero-card{ animation: heroFloat 8.8s ease-in-out infinite; }
  .hero-card-inner{ animation: heroShimmer 11.5s ease-in-out infinite; }
}
@keyframes heroFloat{
  0%,100%{ transform: translate3d(0,0,0) rotate(0.25deg); }
	  50%{ transform: translate3d(0,-18px,0) rotate(-0.35deg); }
}
@keyframes heroShimmer{
  0%,100%{ filter: saturate(1) contrast(1); }
  50%{ filter: saturate(1.06) contrast(1.02); }
}

/* Buttons: richer "tech" glow + ripple ready */
.btn, .btn-primary{
  position: relative;
  overflow: hidden;
}
.btn-primary{
  box-shadow:
    0 12px 28px rgba(43,91,63,.18),
    0 0 0 1px rgba(95,150,111,.18) inset;
}
.btn-primary::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), transparent 55%);
  transform: translate3d(-10%, -10%, 0);
  opacity: .0;
  transition: opacity .25s ease;
  pointer-events:none;
}
.btn-primary:hover::after{ opacity: .8; }

/* Ripple */
.ripple{
  position:absolute;
  border-radius: 999px;
  transform: scale(0);
  opacity: .55;
  pointer-events:none;
  background: rgba(255,255,255,.55);
  animation: ripple 520ms ease-out forwards;
}
@keyframes ripple{
  to{ transform: scale(1); opacity: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .scroll-progress span, .fx-noise, .card::before, .hero-card::before, .field::before, .summary-item::before{
    animation: none !important;
  }
}


/* Soft scanlines overlay */
.fx-scanlines{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .10;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.10),
    rgba(0,0,0,.10) 1px,
    transparent 1px,
    transparent 6px
  );
  mix-blend-mode: multiply;
  animation: scanlinesMove 5.5s linear infinite;
}
@keyframes scanlinesMove{
  0%{ transform: translateY(0); }
  100%{ transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce){
  .fx-scanlines{ animation:none !important; }
}



/* Fix: prevent .btn:hover from overriding .btn-primary background (keeps contrast on press/hover) */
.btn.btn-primary:hover,
.btn.btn-primary:active,
.btn.btn-primary:focus,
.btn.btn-primary:focus-visible{
  background: linear-gradient(135deg, rgba(95,150,111,.95), rgba(112,164,137,.90));
  color: #fff;
}
.btn.btn-primary:active{
  filter: brightness(.98) saturate(1.05);
}

/* Estado del servicio badge */
#estadoServicio{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: normal;
  margin-top: 0;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
}
#estadoServicio[data-state="activo"]{
  color: rgba(43,91,63,1);
  background: rgba(95,150,111,.18);
  border-color: rgba(95,150,111,.35);
}
#estadoServicio[data-state="suspendido"],
#estadoServicio[data-state="inactivo"],
#estadoServicio[data-state="cortado"]{
  color: rgba(140,60,60,1);
  background: rgba(220,90,90,.12);
  border-color: rgba(220,90,90,.28);
}
#estadoServicio[data-state="desconocido"]{
  color: rgba(30,31,32,.75);
}


/* Pago móvil recomendación */
.pay-reco{
  font-family: inherit;
  font-size: inherit;

  
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: inherit;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);

  margin-top: 0;
}
/* Pago móvil bloque */
.pay-info{ margin-top: 0; }
.pay-title{ margin: 0 0 10px 0; }
.pay-details{ display: grid; gap: 6px; margin: 0 0 12px 0; }
.pay-note{  margin: 0 0 14px 0;}
/* Pago móvil (copy) */
.pay-copy{ color: var(--muted); line-height: 1.7; }
.pay-copy p{ margin: 0; font-family: inherit; font-size: inherit; }
.pay-lead{ margin-bottom: 12px; }
.pay-details{ display: grid; gap: 6px; margin: 0 0 14px 0; }
.pay-note{ margin-bottom: 14px; }


/* Spacing fixes */
#formReferencia{ gap: 14px; }
#btnVerificar{ margin-top: 6px; margin-bottom: 14px; }

.actions-row, .plan-actions, .hero-actions, .cta-row{ gap: 12px; }
.actions-row .btn, .plan-actions .btn, .hero-actions .btn, .cta-row .btn{ margin-top: 8px; }

@media (max-width: 720px){
  #btnVerificar{ margin-bottom: 18px; }
  .actions-row .btn, .plan-actions .btn, .hero-actions .btn, .cta-row .btn{ margin-top: 10px; }
}


/* Spacing fixes v2 */
.pricing-grid .card .btn,
.pricing-grid article .btn,
.pricing-grid .pricing-card .btn,
.pricing-grid .plan-card .btn{
  margin-top: 14px;
}

#msgConsultarOk{
  margin-bottom: 14px;
}

@media (max-width: 720px){
  .pricing-grid .card .btn,
  .pricing-grid article .btn,
  .pricing-grid .pricing-card .btn,
  .pricing-grid .plan-card .btn{
    margin-top: 16px;
  }
  #msgConsultarOk{ margin-bottom: 16px; }
}


/* Visible spacing for Plan CTA buttons */
.plan-cta{
  display: inline-flex; /* keep button sizing */
  margin-top: 18px !important;
}
.pricing-grid article .plan-cta{
  align-self: flex-start;
}
.pricing-grid article ul{ margin-bottom: 10px; }


/* Real spacing for plan CTA buttons (prevents margin collapse/absorption) */
.plan-cta-wrap{
  padding-top: 18px;
  display: flex;
}
.plan-cta-wrap > .btn{
  width: 100%;
  justify-content: center;
}
/* ensure the list doesn't remove spacing */
.pricing-grid article ul{
  margin-bottom: 0;
}

.pricing-grid article > div{
  display: flex;
  flex-direction: column;
}
.pricing-grid article > div > * + *{
  margin-top: 10px;
}
.pricing-grid article > div > .plan-cta-wrap{
  margin-top: 0; /* spacing handled by padding */
}


/* Spacing for reference verification messages */
#msgRefError, #msgRefOk{
  margin-top: 10px !important;
  margin-bottom: 6px !important;
}
/* Focus pulse after successful payment */
.pulse-focus{
  animation: pulseFocus 1.4s ease-in-out 1;
}
@keyframes pulseFocus{
  0%{ box-shadow: 0 0 0 rgba(255,255,255,0); transform: translateZ(0); }
  35%{ box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 0 0 14px rgba(95,150,111,.10); }
  100%{ box-shadow: 0 0 0 rgba(255,255,255,0); }
}
