*{box-sizing:border-box}
:root{
  --blue:#0b63f6;
  --blue-dark:#0847b7;
  --navy:#071426;
  --ink:#111827;
  --muted:#657084;
  --line:#e5e9f0;
  --soft:#f4f7fb;
  --white:#fff;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.6;
}
.container{width:min(1120px,calc(100% - 40px));margin:auto}
.site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(229,233,240,.9)
}
.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}
.brand-mark{
  width:44px;height:44px;border-radius:13px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,var(--blue),#0846c8);
  color:white;font-weight:800;font-size:22px;
  box-shadow:0 10px 25px rgba(11,99,246,.22)
}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-text strong{font-size:18px;letter-spacing:.04em}
.brand-text small{font-size:9px;letter-spacing:.16em;margin-top:5px;color:var(--muted)}
.desktop-nav{display:flex;gap:28px;margin-left:auto}
.desktop-nav a{color:#384255;text-decoration:none;font-weight:600;font-size:14px}
.desktop-nav a:hover{color:var(--blue)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--blue);color:white;text-decoration:none;
  border:0;border-radius:12px;padding:14px 20px;font-weight:700;
  cursor:pointer;transition:.2s ease;
  box-shadow:0 10px 24px rgba(11,99,246,.18)
}
.btn:hover{transform:translateY(-2px);background:var(--blue-dark)}
.btn-small{padding:11px 15px;font-size:13px}
.btn-ghost{background:white;color:var(--ink);border:1px solid var(--line);box-shadow:none}
.btn-ghost:hover{background:#f8fafc;color:var(--blue)}
.hero{
  padding:90px 0 78px;
  background:
    radial-gradient(circle at 80% 20%, rgba(11,99,246,.12), transparent 26%),
    linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  overflow:hidden
}
.hero-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:70px;align-items:center}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.16em;color:var(--blue)}
.hero h1,.section h2,.cta-box h2{margin:12px 0 18px;line-height:1.05}
.hero h1{font-size:clamp(42px,6vw,72px);max-width:720px;letter-spacing:-.045em}
.hero-copy>p{font-size:18px;color:var(--muted);max-width:700px}
.hero-actions{display:flex;gap:12px;margin:30px 0 36px}
.trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding-top:25px;border-top:1px solid var(--line)}
.trust-row strong,.trust-row span{display:block}
.trust-row strong{font-size:14px}
.trust-row span{font-size:12px;color:var(--muted)}
.hero-card{
  background:var(--navy);border-radius:28px;padding:24px;
  box-shadow:0 30px 80px rgba(7,20,38,.24);
  transform:rotate(1deg)
}
.device-card{
  display:flex;align-items:center;gap:16px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.09);
  padding:18px;border-radius:18px;margin-bottom:14px;color:white
}
.device-icon{width:48px;height:48px;border-radius:14px;background:rgba(11,99,246,.24);display:grid;place-items:center;font-size:23px}
.device-card span,.device-card strong{display:block}
.device-card span{font-size:12px;color:#9db6db;margin-bottom:3px}
.device-card strong{font-size:14px}
.availability{color:#cfe0ff;font-size:12px;padding:12px 4px 3px}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#28c76f;margin-right:8px}
.section{padding:90px 0}
.section.alt{background:var(--soft)}
.section-heading{max-width:720px;margin-bottom:36px}
.section-heading h2,.quote-grid h2,.about-panel h2{font-size:clamp(32px,4vw,48px);letter-spacing:-.035em}
.section-heading p,.quote-grid>div>p,.about-panel p{color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.service-card{
  border:1px solid var(--line);border-radius:20px;padding:25px;
  background:white;transition:.2s ease
}
.service-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(15,23,42,.08)}
.service-card .icon{font-size:27px;margin-bottom:15px}
.service-card h3{margin:0 0 8px}
.service-card p{margin:0;color:var(--muted);font-size:14px}
.quote-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start}
.mini-list{display:flex;flex-direction:column;gap:10px;margin-top:28px;color:#2a3547;font-weight:600}
.quote-form{
  background:white;border:1px solid var(--line);border-radius:24px;
  padding:28px;box-shadow:0 20px 55px rgba(15,23,42,.07)
}
.quote-form label{display:block;font-size:13px;font-weight:700;margin-bottom:16px}
input,select,textarea{
  width:100%;margin-top:7px;border:1px solid #d9deea;border-radius:11px;
  padding:13px 14px;font:inherit;color:var(--ink);background:white;outline:none
}
input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(11,99,246,.11)}
textarea{resize:vertical}
.btn-full{width:100%;margin-top:4px}
.form-note{font-size:11px;color:#7c8799;margin:12px 0 0}
.about-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:70px;align-items:center}
.benefits{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.benefits div{border:1px solid var(--line);border-radius:18px;padding:22px;background:#fff}
.benefits strong{display:block;color:var(--blue);font-size:22px}
.benefits span{font-weight:700;font-size:14px}
.cta-section{padding:20px 0 80px}
.cta-box{
  background:linear-gradient(135deg,#0b63f6,#06398f);
  border-radius:28px;padding:44px;display:flex;align-items:center;justify-content:space-between;gap:30px;color:#fff
}
.cta-box h2{font-size:clamp(32px,4vw,46px)}
.cta-box p{margin-bottom:0;color:#dbe8ff}
.eyebrow.light{color:#dce9ff}
.btn-light{background:white;color:var(--blue);box-shadow:none;white-space:nowrap}
.btn-light:hover{background:#eef4ff;color:var(--blue-dark)}
footer{background:#050b14;color:#c8d0dd;padding:34px 0}
.footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:20px}
.footer-brand .brand-text strong{color:white}
.footer-brand .brand-text small{color:#92a0b5}
footer p{font-size:12px;margin:0;text-align:center}
.copyright{text-align:right}
@media(max-width:900px){
  .desktop-nav{display:none}
  .hero-grid,.quote-grid,.about-grid{grid-template-columns:1fr;gap:38px}
  .cards{grid-template-columns:1fr 1fr}
  .hero{padding-top:64px}
  .hero-card{transform:none}
  .footer-grid{grid-template-columns:1fr;text-align:center}
  .footer-brand{justify-content:center}
  .copyright{text-align:center}
}
@media(max-width:640px){
  .container{width:min(100% - 28px,1120px)}
  .nav{height:70px}
  .nav>.btn-small{display:none}
  .hero{padding:48px 0 56px}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%}
  .trust-row{grid-template-columns:1fr;gap:12px}
  .cards{grid-template-columns:1fr}
  .section{padding:64px 0}
  .benefits{grid-template-columns:1fr}
  .cta-box{padding:30px;flex-direction:column;align-items:flex-start}
  .btn-light{width:100%}
}


.brand-logo img{
  display:block;
  width:132px;
  height:54px;
  object-fit:contain;
  background:#fff;
  border-radius:10px;
}
.footer-brand.brand-logo img{
  width:118px;
  height:48px;
}
.contact-section{background:#fff}
.contact-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:28px;
}
.contact-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  background:#fff;
}
.contact-icon{font-size:26px;margin-bottom:12px}
.contact-card h3{margin:0 0 8px}
.contact-card p{margin:0 0 10px;color:var(--muted);font-size:14px}
.text-link{
  color:var(--blue);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.text-link:hover{text-decoration:underline}
.contact-cta{margin-top:28px}
@media(max-width:900px){
  .contact-cards{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .brand-logo img{width:106px;height:44px}
  .contact-cards{grid-template-columns:1fr}
}

.products-cta{
  display:flex;
  gap:12px;
  margin-top:28px;
  flex-wrap:wrap;
}
.map-wrap{
  margin-top:28px;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  background:#fff;
}
.map-copy{padding:30px}
.map-copy h3{font-size:28px;line-height:1.15;margin:10px 0 12px}
.map-copy p{color:var(--muted);margin:0 0 12px}
.map-wrap iframe{
  width:100%;
  min-height:330px;
  border:0;
}
.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:82px;
  z-index:50;
  display:flex;
  align-items:center;
  gap:9px;
  padding:13px 17px;
  border-radius:999px;
  background:#25D366;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 16px 35px rgba(0,0,0,.22);
  transition:.2s ease;
}
.whatsapp-float:hover{transform:translateY(-2px)}
.whatsapp-float span{font-size:20px}
@media(max-width:900px){
  .map-wrap{grid-template-columns:1fr}
}
@media(max-width:640px){
  .products-cta{flex-direction:column}
  .products-cta .btn{width:100%}
  .whatsapp-float{
    right:14px;
    bottom:76px;
    padding:12px 14px;
  }
  .whatsapp-float strong{display:none}
}

/* V3 - Branding y trabajos reales */
.site-header .brand-logo img{
  width:170px;
  height:62px;
  object-fit:contain;
  border-radius:12px;
}
.work-section{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.work-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}
.work-card{
  margin:0;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 14px 38px rgba(15,23,42,.06);
}
.work-card img{
  display:block;
  width:100%;
  height:360px;
  object-fit:cover;
  background:#08111f;
}
.work-card figcaption{
  padding:18px 20px 20px;
}
.work-card figcaption strong,
.work-card figcaption span{
  display:block;
}
.work-card figcaption strong{
  font-size:16px;
  margin-bottom:5px;
}
.work-card figcaption span{
  font-size:13px;
  color:var(--muted);
}
.work-featured{
  grid-column:span 2;
}
.work-featured img{
  height:460px;
  object-fit:cover;
}
.work-cta{
  margin-top:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:24px;
  border-radius:20px;
  background:var(--navy);
  color:#fff;
}
.work-cta strong,
.work-cta span{
  display:block;
}
.work-cta strong{
  font-size:18px;
  margin-bottom:4px;
}
.work-cta span{
  font-size:13px;
  color:#b8c5d8;
}
@media(max-width:900px){
  .site-header .brand-logo img{
    width:145px;
    height:54px;
  }
  .work-grid{
    grid-template-columns:1fr;
  }
  .work-featured{
    grid-column:auto;
  }
  .work-featured img,
  .work-card img{
    height:320px;
  }
  .work-cta{
    flex-direction:column;
    align-items:flex-start;
  }
}
@media(max-width:640px){
  .site-header .brand-logo img{
    width:126px;
    height:48px;
  }
  .work-card img,
  .work-featured img{
    height:260px;
  }
  .work-cta .btn{
    width:100%;
  }
}


/* V3.1 — Cabecera y logo PLAY con mayor presencia */
.site-header .container,
.site-header .nav{
  min-height:92px;
}
.site-header .brand-logo{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-width:235px;
}
.site-header .brand-logo img{
  width:225px !important;
  height:78px !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:left center;
  display:block;
}
@media (max-width: 1000px){
  .site-header .brand-logo{
    min-width:185px;
  }
  .site-header .brand-logo img{
    width:180px !important;
    height:68px !important;
  }
}
@media (max-width: 760px){
  .site-header .container,
  .site-header .nav{
    min-height:76px;
  }
  .site-header .brand-logo{
    min-width:150px;
  }
  .site-header .brand-logo img{
    width:150px !important;
    height:58px !important;
  }
}

/* V3.2 — logo recortado y visible */
.site-header .container,
.site-header .nav{
  min-height:104px !important;
}
.site-header .brand-logo{
  min-width:270px !important;
  display:flex !important;
  align-items:center !important;
}
.site-header .brand-logo img{
  width:250px !important;
  height:88px !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:left center !important;
}
@media(max-width:1000px){
  .site-header .brand-logo{min-width:210px !important;}
  .site-header .brand-logo img{
    width:200px !important;
    height:74px !important;
  }
}
@media(max-width:760px){
  .site-header .container,
  .site-header .nav{min-height:82px !important;}
  .site-header .brand-logo{min-width:165px !important;}
  .site-header .brand-logo img{
    width:160px !important;
    height:62px !important;
  }
}


/* V3.3 — conversión y confianza */
.local-proof{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin-top:16px;font-weight:700;color:#243247;font-size:15px;
}
.local-proof span{color:#0d6efd;font-weight:900}
@media(max-width:640px){.local-proof{font-size:14px;gap:7px}}

/* V3.5 - Sección de confianza */
.trust-section { background: #f7faff; }
.trust-heading { max-width: 760px; }
.trust-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:30px; }
.trust-card { display:flex; gap:14px; align-items:flex-start; background:#fff; border:1px solid #e3eaf5; border-radius:18px; padding:22px; box-shadow:0 10px 30px rgba(15,35,70,.05); }
.trust-check { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#eaf2ff; color:#0867f2; font-weight:800; font-size:19px; }
.trust-card strong { display:block; color:#0b1324; font-size:16px; line-height:1.35; margin:2px 0 7px; }
.trust-card p { margin:0; color:#687386; font-size:13px; line-height:1.55; }
@media (max-width:900px){.trust-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:620px){.trust-grid{grid-template-columns:1fr}.trust-card{padding:18px}}

/* V3.8 — móvil y rendimiento */
img{max-width:100%;}
section[id]{scroll-margin-top:118px;}
.mobile-menu-toggle,.mobile-menu{display:none;}
.mobile-menu-toggle{
  width:44px;height:44px;padding:9px;border:1px solid var(--line);border-radius:12px;
  background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;
}
.mobile-menu-toggle span{width:21px;height:2px;border-radius:99px;background:var(--navy);transition:.2s ease;}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{
  position:absolute;left:0;right:0;top:100%;padding:10px 20px 18px;background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--line);box-shadow:0 16px 30px rgba(15,23,42,.08);
}
.mobile-menu.is-open{display:grid;gap:2px;}
.mobile-menu>a:not(.btn){padding:12px 8px;color:#253146;text-decoration:none;font-weight:700;border-bottom:1px solid #eef1f5;}
.mobile-menu .mobile-whatsapp{margin-top:10px;width:100%;}

@media(max-width:900px){
  .site-header{backdrop-filter:none;background:rgba(255,255,255,.98)}
  .mobile-menu-toggle{display:flex;flex:0 0 auto;}
  .header-whatsapp{display:none;}
  .nav{gap:12px;}
  .hero-grid{gap:30px;}
  .hero-card{max-width:620px;width:100%;margin:0 auto;}
  .work-card img,.work-featured img{content-visibility:auto;}
}
@media(max-width:640px){
  .container{width:min(100% - 24px,1120px);}
  .site-header .container,.site-header .nav{min-height:72px !important;height:72px;}
  .site-header .brand-logo{min-width:0 !important;}
  .site-header .brand-logo img{width:132px !important;height:54px !important;}
  .hero{padding:40px 0 50px;}
  .hero h1{font-size:clamp(39px,13vw,56px);line-height:1.02;}
  .hero-copy>p{font-size:16px;line-height:1.55;}
  .hero-actions{margin:24px 0 28px;}
  .btn{min-height:48px;}
  input,select,textarea{font-size:16px;min-height:48px;}
  textarea{min-height:118px;}
  .quote-form{padding:20px;border-radius:20px;}
  .hero-card{padding:18px;border-radius:22px;}
  .device-card{padding:15px;gap:12px;}
  .device-icon{width:44px;height:44px;flex:0 0 44px;}
  .section-heading{margin-bottom:28px;}
  .section-heading h2,.quote-grid h2,.about-panel h2{font-size:clamp(30px,9vw,40px);}
  .service-card,.contact-card{padding:20px;}
  .map-copy{padding:22px;}
  .map-wrap iframe{min-height:280px;}
  .whatsapp-float{width:50px;height:50px;padding:0;justify-content:center;right:12px;bottom:74px;}
  .whatsapp-float span{font-size:21px;line-height:1;}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* V3.9 — ajuste fino móvil */
@media(max-width:640px){
  /* Más aire en la parte inferior para elementos flotantes del navegador/hosting */
  body{padding-bottom:env(safe-area-inset-bottom,0px);}

  /* WhatsApp más discreto y separado del distintivo de Netlify */
  .whatsapp-float{
    width:44px;
    height:44px;
    right:14px;
    bottom:calc(126px + env(safe-area-inset-bottom,0px));
    padding:0;
    border:2px solid rgba(255,255,255,.96);
    box-shadow:0 10px 24px rgba(0,0,0,.18);
  }
  .whatsapp-float span{font-size:18px;}

  /* Menú móvil más compacto y cómodo en iPhone */
  .mobile-menu{
    max-height:calc(100vh - 72px - env(safe-area-inset-bottom,0px));
    overflow-y:auto;
    padding:8px 14px 16px;
    -webkit-overflow-scrolling:touch;
  }
  .mobile-menu>a:not(.btn){padding:11px 8px;}
  .mobile-menu .mobile-whatsapp{min-height:46px;}

  /* Evita que el último contenido quede visualmente pegado al borde */
  footer{padding-bottom:calc(34px + env(safe-area-inset-bottom,0px));}
}

/* V4.0 — cierre móvil: menú limpio y CTA flotante sin interferencias */
@media(max-width:900px){
  body.mobile-menu-open{overflow:hidden;}
  .mobile-menu{
    position:fixed;
    z-index:999;
    top:72px;
    left:0;right:0;
    height:calc(100dvh - 72px);
    max-height:none;
    padding:20px 26px calc(28px + env(safe-area-inset-bottom,0px));
    background:#fff;
    border-bottom:0;
    box-shadow:none;
    overflow-y:auto;
    align-content:start;
  }
  .mobile-menu.is-open{display:grid;gap:0;}
  .mobile-menu>a:not(.btn){padding:17px 16px;font-size:18px;background:#fff;}
  .mobile-menu .mobile-whatsapp{margin-top:22px;min-height:52px;}
  body.mobile-menu-open .whatsapp-float{opacity:0;pointer-events:none;visibility:hidden;}
}
@media(max-width:640px){
  .whatsapp-float{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(8px);
    transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
    right:12px;
    bottom:calc(92px + env(safe-area-inset-bottom,0px));
  }
  .whatsapp-float.is-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
  }
}


/* V4.1 — conversión: accesos rápidos a WhatsApp */
.quick-help-section{padding-top:54px;padding-bottom:54px;background:#fff;}
.quick-help-heading{max-width:760px;margin-bottom:28px;}
.quick-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.quick-help-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:14px;padding:20px;border:1px solid #e5eaf1;border-radius:18px;background:#fff;text-decoration:none;color:#0f1b2d;box-shadow:0 8px 26px rgba(15,27,45,.05);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.quick-help-card:hover{transform:translateY(-2px);border-color:#b9d2ff;box-shadow:0 14px 32px rgba(15,27,45,.09);}
.quick-help-card>span{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#edf4ff;font-size:24px;}
.quick-help-card strong{display:block;font-size:17px;margin-bottom:4px;}
.quick-help-card small{display:block;color:#667085;font-size:13px;line-height:1.45;}
.quick-help-card>b{font-size:22px;color:#1268f3;}
.quick-help-note{margin:18px 0 0;color:#667085;font-size:13px;}
@media(max-width:700px){.quick-help-section{padding-top:38px;padding-bottom:42px}.quick-help-grid{grid-template-columns:1fr}.quick-help-card{grid-template-columns:44px 1fr auto;padding:16px;border-radius:16px}.quick-help-card>span{width:44px;height:44px}.quick-help-card strong{font-size:16px}.quick-help-note{text-align:center}}
