:root{
  --bg:#071b2c;
  --bg2:#0a2a44;
  --text:#0d1b2a;
  --muted:#6b7280;
  --white:#fff;
  --card:#ffffff;
  --line:rgba(255,255,255,.12);
  --shadow: 0 18px 50px rgba(0,0,0,.18);
  --shadow2: 0 10px 28px rgba(0,0,0,.14);
  --primary:#f6b800;
  --primary2:#ffcc33;
  --radius:18px;
}

*{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:#fff;
}

/* Helpers */
.container{width:min(1120px, calc(100% - 40px)); margin:0 auto;}
.section{padding:72px 0;}
.section--dark{background:linear-gradient(180deg,var(--bg),var(--bg2)); color:#fff;}
.section--light{background:#f6f8fb;}
.section__title{margin:0 0 28px;}
.section__title h2{margin:0 0 10px; font-size:40px; letter-spacing:-.02em;}
.section__title p{margin:0; color:rgba(255,255,255,.75);}
.section:not(.section--dark) .section__title p{color:var(--muted)}
.small{font-size:13px}
.muted{color:var(--muted)}
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  border:1px solid rgba(0,0,0,.06);
}
.grid{display:grid; gap:18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  transition:transform .05s ease, filter .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.btn:active{transform:translateY(1px)}
.btn--lg{padding:14px 22px; font-size:16px}
.btn--primary{background:var(--primary); color:#0d1b2a}
.btn--primary:hover{filter:brightness(1.03)}
.btn--outline{background:transparent; border-color:#1d4ed8; color:#1d4ed8}
.btn--outline:hover{background:rgba(29,78,216,.06)}
.btn--ghost{background:transparent; border-color:rgba(255,255,255,.55); color:#fff}
.btn--ghost:hover{background:rgba(255,255,255,.10)}
.btn--wa{background:#22c55e; color:#fff; width:100%; padding:14px 16px}

/* Header con logo */
.agis-header{
  position:sticky; top:0; z-index:50;
  background:rgba(8,25,41,.95);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.agis-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.agis-brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}
.agis-brand__logo{
  height:40px;
  width:auto;
  object-fit:contain;
}

/* Nav desktop */
.agis-nav{display:flex; gap:18px}
.agis-nav a{color:rgba(255,255,255,.80); text-decoration:none; font-weight:600; font-size:14px}
.agis-nav a:hover{color:#fff}
.agis-header__cta{display:block}

/* Burger button */
.agis-burger{
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,.2);
  border-radius:8px;
  padding:8px;
  cursor:pointer;
  width:44px;
  height:44px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.agis-burger span{
  display:block;
  width:24px;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition: all 0.3s ease;
}

/* Menú mobile */
.agis-mobile{
  display:none;
  flex-direction:column;
  gap:2px;
  padding:12px 0 18px;
  background:rgba(8,25,41,.98);
  border-top:1px solid rgba(255,255,255,.08);
}
.agis-mobile a{
  color:#fff;
  text-decoration:none;
  padding:12px 16px;
  font-weight:600;
  border-bottom:1px solid rgba(255,255,255,.05);
  transition:background 0.2s ease;
}
.agis-mobile a:hover{
  background:rgba(255,255,255,.05);
}
.agis-mobile .btn{
  margin:12px 16px 0;
}

/* Hero - CON FONDO PERSONALIZADO */
.hero{position:relative; min-height:72vh; display:grid; align-items:center; color:#fff}
.hero__bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,27,44,0.85) 0%, rgba(11,44,73,0.90) 100%),
    url('../img/fondos-01.jpg') center/cover no-repeat;
}
.hero:not(.hero--custom-bg) .hero__bg{
  background:
    radial-gradient(1200px 500px at 70% 30%, rgba(255,255,255,.10), transparent 65%),
    radial-gradient(900px 500px at 15% 40%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #071b2c 0%, #0b2c49 100%);
}
.hero__inner{position:relative; padding:56px 0}
.hero__content{width:min(720px,100%)}
.hero h1{margin:0 0 14px; font-size:56px; line-height:1.02; letter-spacing:-.03em}
.hero p{margin:0 0 22px; color:rgba(255,255,255,.82); font-size:16px; line-height:1.6}
.hero__actions{display:flex; gap:12px; flex-wrap:wrap}
.hero__proof{margin-top:18px; display:flex; gap:16px; flex-wrap:wrap; color:rgba(255,255,255,.80); font-weight:600; font-size:13px}

/* Logo Marquee - SIN BORDES */
.logo-marquee-wrapper {
  margin: 0 -50vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
}

.logo-marquee {
  overflow: hidden;
}

.logo-track {
  display: block;
  white-space: nowrap;
  padding: 24px 0;
  animation: marquee 15s linear infinite;
}

.logo-card {
  display: inline-block;
  width: 240px;
  height: 80px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px #cccccc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 12px;
  margin-right: 20px;
  text-align: center;
  vertical-align: middle;
  line-height: 56px;
}

.logo-card img {
  max-width: 90%;
  max-height: 80%;
  width: auto;
  height: auto;
  filter: grayscale(1) opacity(0.8);
  transition: filter 0.1s ease;
  vertical-align: middle;
}

.logo-card:hover img {
  filter: grayscale(0) opacity(1);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}




/* Stats con animación de contador */
.stats{grid-template-columns:repeat(3,1fr)}
.stat{padding:28px; text-align:center; transition:transform 0.3s ease;}
.stat:hover{transform:translateY(-4px)}
.stat__num{
  font-size:52px;
  font-weight:900;
  letter-spacing:-.02em;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.stat__label{color:var(--muted); font-weight:600; margin-top:8px; font-size:15px}

/* Plans - MODERNIZADO */
.plans{grid-template-columns:repeat(3,1fr); align-items:stretch; gap:24px}
.plan{
  padding:28px;
  position:relative;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.plan:hover{
  transform:translateY(-8px);
  box-shadow:0 24px 48px rgba(0,0,0,.16);
}
.plan__head{padding:0 0 20px; border-bottom:1px solid rgba(0,0,0,.08)}
.plan__sub{margin:12px 0 0; color:var(--muted); font-weight:600; line-height:1.5}
.badge{
  display:inline-flex;
  align-items:center;
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  letter-spacing:.03em;
  text-transform:uppercase;
  background:#0b2c49;
  color:#fff;
}
.badge--premium{
  background:linear-gradient(135deg,#ffb703,#ffd60a);
  color:#0d1b2a;
  box-shadow:0 8px 20px rgba(255,183,3,.3);
}
.badge--standard{background:#1d4ed8; box-shadow:0 8px 20px rgba(29,78,216,.2)}
.badge--kit{background:#0f766e; box-shadow:0 8px 20px rgba(15,118,110,.2)}
.plan__list{
  list-style:none;
  padding:0;
  margin:20px 0 0;
  display:grid;
  gap:12px;
}
.plan__list li{
  position:relative;
  padding-left:32px;
  font-weight:600;
  color:#111827;
  font-size:14px;
  line-height:1.5;
}
.plan__list li:before{
  content:"";
  position:absolute;
  left:0;
  top:2px;
  width:20px;
  height:20px;
  border-radius:6px;
  background:#e5e7eb;
}
.plan__list li.ok:before{background:#22c55e}
.plan__list li.opt:before{background:#f59e0b}
.plan__list li.no:before{background:#ef4444}
.plan__list li.ok:after,
.plan__list li.opt:after,
.plan__list li.no:after{
  position:absolute;
  left:5px;
  top:1px;
  font-size:14px;
  font-weight:900;
  color:#fff;
}
.plan__list li.ok:after{content:"✓"}
.plan__list li.opt:after{content:"+"}
.plan__list li.no:after{content:"×"}
.plan__foot{margin-top:24px; padding-top:20px; border-top:1px solid rgba(0,0,0,.08)}
.plan--featured{
  transform:scale(1.05);
  border:2px solid rgba(246,184,0,.4);
  background:linear-gradient(to bottom, #fff, #fffbf0);
}
.plan--featured:hover{
  transform:scale(1.05) translateY(-8px);
}

/* Benefit strip - SIN BORDES LATERALES Y SIN FONDO */
.benefit-strip-wrapper{
  width:100%;
  overflow:hidden;
  padding:32px 0;
  background:#f6f8fb;
}
.benefit-strip{
  width:100vw;
  margin-left:calc(-50vw + 50%);
  overflow:hidden;
}
.strip{
  overflow:hidden;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.07);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  max-width:90%;
  margin:0 auto;
}
.strip__track{
  display:flex;
  gap:24px;
  padding:16px 24px;
  width:max-content;
  animation: strip 25s linear infinite;
  color:#111827;
  font-weight:700;
  font-size:15px;
}
.strip__track span{
  white-space:nowrap;
}
@keyframes strip{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* App - VIDEO MÁS GRANDE */
.app{grid-template-columns: 1fr 1.5fr; align-items:center; gap:40px}
.media{padding:14px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); box-shadow:none}
.media--large{padding:0; background:transparent; border:none}
.video{position:relative; padding-top:56.25%; border-radius:16px; overflow:hidden}
.video--large{
  padding-top:75%;
  border-radius:20px;
  box-shadow:0 24px 48px rgba(0,0,0,.4);
}
.video iframe{position:absolute; inset:0; width:100%; height:100%}
.section--dark .app__text p{color:rgba(255,255,255,.82); line-height:1.6}
.checklist{list-style:none; padding:0; margin:16px 0 0; display:grid; gap:12px}
.checklist li{position:relative; padding-left:28px; font-weight:700; color:#fff; line-height:1.6}
.checklist li:before{content:"✓"; position:absolute; left:0; top:0; color:var(--primary); font-weight:900; font-size:18px}
.app__actions{display:flex; gap:12px; margin-top:24px; flex-wrap:wrap}

/* Testimonials - CON LOGOS DE EMPRESAS */
.testimonials{grid-template-columns:repeat(3,1fr)}
.testimonial{
  padding:28px;
  transition:transform 0.3s ease;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.testimonial:hover{
  transform:translateY(-4px);
}
.testimonial__logo{
  height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:20px;
}
.testimonial__logo img{
  max-height:100%;
  max-width:200px;
  width:auto;
  object-fit:contain;
  filter:grayscale(0.3);
  transition:filter 0.3s ease;
}
.testimonial:hover .testimonial__logo img{
  filter:grayscale(0);
}
.quote{margin:0; color:#111827; line-height:1.7; font-weight:600; font-size:15px; flex:1}
.author{margin:0; color:var(--muted); font-weight:800; font-size:13px}

/* Form */
.form-card{padding:28px}
.form-grid{grid-template-columns:repeat(2,1fr); gap:20px}
.field{display:grid; gap:8px}
.field--full{grid-column:1 / -1}
label{font-weight:800; color:#111827; font-size:14px}
input, textarea{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  padding:14px 14px;
  font:inherit;
  outline:none;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus{
  border-color:rgba(29,78,216,.55);
  box-shadow:0 0 0 4px rgba(29,78,216,.12);
}
.form-actions{display:flex; gap:12px; margin-top:20px; flex-wrap:wrap}

/* FAQ */
.faq{display:grid; gap:14px}
details{
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  padding:18px 20px;
  transition:box-shadow 0.3s ease;
}
details:hover{
  box-shadow:0 14px 28px rgba(0,0,0,.10);
}
summary{
  cursor:pointer;
  font-weight:900;
  list-style:none;
  font-size:16px;
}
summary::-webkit-details-marker{display:none}
.faq__body{margin-top:12px; color:#374151; line-height:1.7; font-weight:600}

/* Last CTA */
.last-cta{text-align:center}
.last-cta h2{margin:0 0 10px; font-size:40px}
.last-cta p{margin:0 0 24px; color:rgba(255,255,255,.78); font-weight:600; font-size:17px}

/* Footer con logo */
.footer{background:#061626; color:rgba(255,255,255,.75); padding:32px 0}
.footer__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  font-size:14px;
}
.footer__logo img{
  height:50px;
  width:auto;
  object-fit:contain;
}

/* WhatsApp floating */
.wa-float{
  position:fixed;
  right:20px;
  bottom:20px;
  width:60px;
  height:60px;
  border-radius:50%;
  border:none;
  outline:none;
  background:#25D366;
  box-shadow:0 8px 24px rgba(37,211,102,.4);
  cursor:pointer;
  z-index:999;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-float:hover{
  transform:scale(1.1);
  box-shadow:0 12px 32px rgba(37,211,102,.5);
}
.wa-icon{
  display:block;
  width:100%;
  height:100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M19.11 17.44c-.27-.14-1.6-.79-1.85-.88-.25-.09-.44-.14-.62.14-.18.27-.71.88-.87 1.06-.16.18-.32.2-.59.07-.27-.14-1.16-.43-2.2-1.38-.81-.72-1.36-1.62-1.52-1.89-.16-.27-.02-.42.12-.56.12-.12.27-.32.41-.48.14-.16.18-.27.27-.45.09-.18.05-.34-.02-.48-.07-.14-.62-1.5-.85-2.06-.22-.53-.45-.46-.62-.47h-.53c-.18 0-.48.07-.73.34-.25.27-.96.94-.96 2.29 0 1.35.98 2.66 1.12 2.84.14.18 1.93 2.95 4.68 4.13.65.28 1.16.45 1.56.58.65.21 1.24.18 1.71.11.52-.08 1.6-.65 1.82-1.28.23-.63.23-1.17.16-1.28-.07-.11-.25-.18-.52-.32zM16.04 27.3h-.01a11.3 11.3 0 0 1-5.77-1.59l-.41-.24-4.27 1.12 1.14-4.16-.27-.43a11.25 11.25 0 0 1-1.72-6.01c0-6.22 5.07-11.28 11.31-11.28 3.02 0 5.86 1.18 7.99 3.3a11.2 11.2 0 0 1 3.32 7.98c0 6.22-5.07 11.31-11.31 11.31zm9.63-20.98A13.55 13.55 0 0 0 16.03 2.3C8.42 2.3 2.23 8.49 2.23 16.1c0 2.4.64 4.74 1.86 6.81L2 30.7l7.98-2.09a13.78 13.78 0 0 0 6.05 1.4h.01c7.61 0 13.8-6.19 13.8-13.8 0-3.68-1.44-7.14-4.17-9.89z'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M19.11 17.44c-.27-.14-1.6-.79-1.85-.88-.25-.09-.44-.14-.62.14-.18.27-.71.88-.87 1.06-.16.18-.32.2-.59.07-.27-.14-1.16-.43-2.20-1.38-.81-.72-1.36-1.62-1.52-1.89-.16-.27-.02-.42.12-.56.12-.12.27-.32.41-.48.14-.16.18-.27.27-.45.09-.18.05-.34-.02-.48-.07-.14-.62-1.5-.85-2.06-.22-.53-.45-.46-.62-.47h-.53c-.18 0-.48.07-.73.34-.25.27-.96.94-.96 2.29 0 1.35.98 2.66 1.12 2.84.14.18 1.93 2.95 4.68 4.13.65.28 1.16.45 1.56.58.65.21 1.24.18 1.71.11.52-.08 1.6-.65 1.82-1.28.23-.63.23-1.17.16-1.28-.07-.11-.25-.18-.52-.32zM16.04 27.3h-.01a11.3 11.3 0 0 1-5.77-1.59l-.41-.24-4.27 1.12 1.14-4.16-.27-.43a11.25 11.25 0 0 1-1.72-6.01c0-6.22 5.07-11.28 11.31-11.28 3.02 0 5.86 1.18 7.99 3.3a11.2 11.2 0 0 1 3.32 7.98c0 6.22-5.07 11.31-11.31 11.31zm9.63-20.98A13.55 13.55 0 0 0 16.03 2.3C8.42 2.3 2.23 8.49 2.23 16.1c0 2.4.64 4.74 1.86 6.81L2 30.7l7.98-2.09a13.78 13.78 0 0 0 6.05 1.4h.01c7.61 0 13.8-6.19 13.8-13.8 0-3.68-1.44-7.14-4.17-9.89z'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
  background:#fff;
}

/* WhatsApp modal */
.wa-modal{position:fixed; inset:0; z-index:1000; display:none}
.wa-modal.is-open{display:block}
.wa-modal__backdrop{position:absolute; inset:0; background:rgba(0,0,0,.4); backdrop-filter:blur(2px)}
.wa-modal__panel{
  position:absolute;
  right:20px;
  bottom:100px;
  width:min(380px, calc(100% - 40px));
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 60px rgba(0,0,0,.3);
  overflow:hidden;
}
.wa-modal__head{
  background:#0f766e;
  color:#fff;
  padding:18px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.wa-modal__title{display:flex; gap:12px; align-items:center}
.wa-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.25);
}
.wa-modal__brand{font-weight:900; font-size:16px}
.wa-modal__status{font-size:13px; opacity:.9; margin-top:2px}
.wa-modal__close{
  border:none;
  background:transparent;
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  padding:4px 8px;
}
.wa-modal__body{padding:20px; background:#f6f7fb}
.wa-modal__hint{margin:0 0 16px; color:#111827; font-weight:700; font-size:14px}
.wa-form{display:grid; gap:14px}
.wa-form label{display:grid; gap:8px; font-size:14px; font-weight:700; color:#111827}
.wa-form input{
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  padding:14px;
  font:inherit;
}

/* Responsive */
@media (max-width: 991px){
  /* Header mobile */
  .agis-nav{display:none}
  .agis-header__cta{display:none}
  .agis-burger{display:flex !important}
  
  /* Mostrar menú mobile cuando no está hidden */
  .agis-mobile:not([hidden]){
    display:flex !important;
  }
  
  /* Hero */
  .hero h1{font-size:42px}
  .hero p{font-size:15px}
  
  /* Stats */
  .stats{grid-template-columns:1fr}
  .stat__num{font-size:44px}
  
  /* Plans */
  .plans{grid-template-columns:1fr; gap:20px}
  .plan--featured{transform:none}
  .plan--featured:hover{transform:translateY(-8px)}
  
  /* Testimonials */
  .testimonials{grid-template-columns:1fr}
  
  /* Form */
  .form-grid{grid-template-columns:1fr}
  
  /* App - Video más pequeño en mobile */
  .app{grid-template-columns:1fr; gap:32px}
  .video--large{padding-top:56.25%}
  
  /* Section titles */
  .section__title h2{font-size:32px}
  
  /* Footer */
  .footer__logo img{height:40px}
}

@media (max-width: 600px){
  .section{padding:48px 0}
  .hero h1{font-size:36px}
  .section__title h2{font-size:28px}
  .stat__num{font-size:38px}
  .agis-brand__logo{height:32px}
  .testimonial__logo{height:70px}
  .testimonial__logo img{max-width:180px}
}
