/* =========================================================
   KAD COMERCIAL — STYLESHEET PRINCIPAL
   Estilos base + componentes que antes estaban inline.
   ========================================================= */

:root{

    --navy:#052860;

    --navy-deep:#031B42;

    --navy-soft:#0B3B85;

    --steel:#6E7884;

    --electric:#3580FE;

    --graphite:#1A2434;

    --bg:#F5F7FA;

    --paper:#FFFFFF;

    --line:rgba(5,40,96,0.12);

    --ink:#101826;

    --muted:#5B6472;

    --radius:2px;

    --wrap:1200px;

    --shadow:0 20px 50px -25px rgba(5,40,96,0.35);

  }

  *,*::before,*::after{box-sizing:border-box;}

  html{scroll-behavior:smooth;}

  body{

    margin:0;

    font-family:'Inter',sans-serif;

    color:var(--ink);

    background:var(--paper);

    -webkit-font-smoothing:antialiased;

    overflow-x:hidden;

  }

  img{max-width:100%;display:block;}

  a{color:inherit;text-decoration:none;}

  ul{margin:0;padding:0;list-style:none;}

  h1,h2,h3,h4{margin:0;font-family:'Big Shoulders Display',sans-serif;text-transform:uppercase;letter-spacing:0.01em;line-height:0.95;color:var(--navy);}

  .mono{font-family:'JetBrains Mono',monospace;}

  .wrap{max-width:var(--wrap);margin:0 auto;padding:0 32px;}

  section{position:relative;}

  .eyebrow{

    display:inline-flex;align-items:center;gap:10px;

    font-family:'JetBrains Mono',monospace;

    font-size:12.5px;letter-spacing:0.14em;text-transform:uppercase;

    color:var(--electric);font-weight:600;margin-bottom:18px;

  }

  .eyebrow::before{content:"";width:22px;height:2px;background:var(--electric);display:inline-block;}

  .section-head{max-width:640px;margin-bottom:52px;}

  .section-head p{color:var(--muted);font-size:17px;line-height:1.65;margin-top:16px;}

  .section-head h2{font-size:clamp(34px,4.6vw,52px);}

  /* Buttons */

  .btn{

    display:inline-flex;align-items:center;justify-content:center;gap:10px;

    padding:15px 28px;font-family:'Inter',sans-serif;font-weight:600;font-size:15px;

    border-radius:var(--radius);border:1.5px solid transparent;cursor:pointer;

    transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;

    white-space:nowrap;

  }

  .btn-primary{background:var(--electric);color:#fff;}

  .btn-primary:hover{background:#2769e0;transform:translateY(-2px);box-shadow:0 14px 28px -12px rgba(53,128,254,0.55);}

  .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,0.4);}

  .btn-outline:hover{border-color:#fff;background:rgba(255,255,255,0.08);transform:translateY(-2px);}

  .btn-outline-navy{background:transparent;color:var(--navy);border-color:var(--line);}

  .btn-outline-navy:hover{border-color:var(--navy);background:rgba(5,40,96,0.04);transform:translateY(-2px);}

  .btn-block{width:100%;}

  .btn svg{width:18px;height:18px;flex:none;}

  /* ---------- HEADER ---------- */

  header.site-header{

    position:sticky;top:0;z-index:100;

    background:rgba(255,255,255,0);

    padding:20px 0;

    transition:background .25s ease, box-shadow .25s ease, padding .25s ease;

  }

  header.site-header.scrolled{

    background:rgba(255,255,255,0.96);

    backdrop-filter:blur(10px);

    box-shadow:0 1px 0 var(--line);

    padding:13px 0;

  }

  .header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;}

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

  .brand img{height:46px;width:auto;}

  nav.main-nav{display:flex;align-items:center;gap:36px;}

  nav.main-nav a{

    font-size:14.5px;font-weight:600;color:var(--navy);

    position:relative;padding:4px 0;

  }

  nav.main-nav a::after{

    content:"";position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--electric);

    transition:width .2s ease;

  }

  nav.main-nav a:hover::after{width:100%;}

  .header-actions{display:flex;align-items:center;gap:14px;}

  .nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:6px;}

  .nav-toggle svg{width:26px;height:26px;color:var(--navy);}

  /* ---------- HERO ---------- */

  .hero{background:var(--navy);position:relative;overflow:hidden;}

  .hero-grid{

    display:grid;grid-template-columns:1.05fr 0.95fr;align-items:stretch;min-height:640px;

  }

  .hero-copy{padding:64px 0 80px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2;}

  .hero-copy .eyebrow{color:#8fb4ff;}

  .hero-copy .eyebrow::before{background:#8fb4ff;}

  .hero-copy h1{color:#fff;font-size:clamp(48px,6.4vw,84px);}

  .hero-copy h1 span{color:var(--electric);}

  .hero-copy .lede{color:rgba(255,255,255,0.78);font-size:18px;line-height:1.7;max-width:480px;margin:24px 0 34px;}

  .hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:44px;}

  .hero-tags{display:flex;flex-wrap:wrap;gap:10px 28px;}

  .hero-tags span{

    display:flex;align-items:center;gap:8px;font-family:'JetBrains Mono',monospace;

    font-size:12.5px;color:rgba(255,255,255,0.65);letter-spacing:.02em;

  }

  .hero-tags svg{width:15px;height:15px;color:var(--electric);flex:none;}

  .hero-visual{

    position:relative;

    clip-path:polygon(14% 0, 100% 0, 100% 100%, 0% 100%);

    background:linear-gradient(160deg,#0B3B85 0%, var(--navy) 55%);

  }

  .hero-visual .frame{

    position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;

    padding:0 6% 0 14%;

  }

  .hero-visual img{

    width:100%;max-width:620px;object-fit:contain;object-position:bottom;

    filter:drop-shadow(0 30px 40px rgba(0,0,0,0.35));

    transform:translateY(4%);

  }

  .hero-visual .grid-lines{

    position:absolute;inset:0;

    background-image:linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),

                      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);

    background-size:44px 44px;

    mix-blend-mode:overlay;

    pointer-events:none;

  }

  .hero-bottom-bar{

    background:var(--navy-deep);border-top:1px solid rgba(255,255,255,0.08);

    position:relative;z-index:2;

  }

  .hero-bottom-bar .wrap{

    display:flex;flex-wrap:wrap;gap:14px 40px;justify-content:space-between;align-items:center;

    padding:18px 32px;

  }

  .hero-bottom-bar .hb-item{

    display:flex;align-items:center;gap:10px;font-family:'JetBrains Mono',monospace;

    font-size:12px;letter-spacing:.06em;color:rgba(255,255,255,0.72);text-transform:uppercase;

  }

  .hero-bottom-bar svg{width:16px;height:16px;color:var(--electric);flex:none;}

  /* ---------- NOSOTROS ---------- */

  .nosotros{background:var(--paper);padding:100px 0 90px;}

  .nosotros-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start;}

  .nosotros-copy p{color:var(--muted);font-size:16.5px;line-height:1.75;margin-bottom:18px;}

  .nosotros-copy p:last-child{margin-bottom:0;}

  .sectors-panel{

    background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:36px;

  }

  .sectors-panel .panel-label{

    font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.12em;

    text-transform:uppercase;color:var(--steel);margin-bottom:22px;display:block;

  }

  .sector-list{display:grid;grid-template-columns:1fr 1fr;gap:22px 18px;}

  .sector-item{display:flex;align-items:center;gap:12px;}

  .sector-item .ic{

    width:42px;height:42px;flex:none;border-radius:50%;background:#fff;border:1px solid var(--line);

    display:flex;align-items:center;justify-content:center;

  }

  .sector-item .ic svg{width:20px;height:20px;color:var(--navy);}

  .sector-item span{font-size:14px;font-weight:600;color:var(--navy);}

  /* ---------- PRODUCTOS ---------- */

  .productos{background:var(--bg);padding:100px 0;}

  .product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}

  .product-card{

    background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;

    display:flex;flex-direction:column;position:relative;

    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;

  }

  .product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:transparent;}

  .product-card .tag-corner{

    position:absolute;top:0;right:0;width:0;height:0;

    border-style:solid;border-width:0 46px 46px 0;border-color:transparent var(--electric) transparent transparent;

    z-index:2;

  }

  .product-card .tag-corner .num{

    position:absolute;top:6px;right:-40px;font-family:'JetBrains Mono',monospace;

    font-size:11px;color:#fff;font-weight:700;

  }

  .product-photo{

    height:200px;background:#fff;display:flex;align-items:center;justify-content:center;

    border-bottom:1px dashed var(--line);padding:18px;

  }

  .product-photo img{height:100%;width:100%;object-fit:contain;}

  .product-body{padding:26px 24px 24px;display:flex;flex-direction:column;flex:1;}

  .product-body .cat{

    font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.1em;

    text-transform:uppercase;color:var(--electric);font-weight:600;margin-bottom:10px;

  }

  .product-body h3{font-size:24px;color:var(--navy);margin-bottom:10px;}

  .product-body p.desc{color:var(--muted);font-size:14.5px;line-height:1.6;margin-bottom:16px;}

  .feature-list{margin-bottom:22px;flex:1;}

  .feature-list li{

    display:flex;align-items:flex-start;gap:9px;font-size:13.5px;color:var(--ink);

    margin-bottom:8px;line-height:1.4;

  }

  .feature-list svg{width:16px;height:16px;color:var(--electric);flex:none;margin-top:1px;}

  .product-card .btn{margin-top:auto;}

  /* ---------- STRETCH FILM SPOTLIGHT ---------- */

  .spotlight{background:var(--navy);padding:100px 0;position:relative;overflow:hidden;}

  .spotlight::before{

    content:"";position:absolute;top:0;right:0;width:46%;height:100%;

    background:var(--navy-soft);clip-path:polygon(30% 0,100% 0,100% 100%,0% 100%);

    opacity:.55;

  }

  .spotlight-grid{display:grid;grid-template-columns:0.95fr 1.05fr;gap:60px;align-items:center;position:relative;z-index:2;}

  .spotlight-photo{

    background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.12);border-radius:var(--radius);

    padding:26px;display:flex;align-items:center;justify-content:center;

  }

  .spotlight-photo img{max-height:420px;object-fit:contain;}

  .spotlight-copy .eyebrow{color:#8fb4ff;}

  .spotlight-copy .eyebrow::before{background:#8fb4ff;}

  .spotlight-copy h2{color:#fff;font-size:clamp(32px,4.2vw,46px);margin-bottom:20px;}

  .spotlight-copy>p{color:rgba(255,255,255,0.72);font-size:16px;line-height:1.7;margin-bottom:32px;max-width:480px;}

  .spotlight-checklist{

    display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;margin-bottom:40px;

  }

  .spotlight-checklist li{

    display:flex;align-items:center;gap:10px;color:#fff;font-size:14.5px;font-weight:500;

  }

  .spotlight-checklist svg{width:19px;height:19px;color:var(--electric);flex:none;}

  .presentaciones{border-top:1px solid rgba(255,255,255,0.14);padding-top:28px;}

  .presentaciones .panel-label{

    font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase;

    color:rgba(255,255,255,0.5);display:block;margin-bottom:18px;

  }

  .pres-row{display:flex;gap:30px;flex-wrap:wrap;}

  .pres-item{display:flex;flex-direction:column;align-items:center;gap:10px;}

  .pres-item .ic{

    width:52px;height:52px;border-radius:50%;border:1px solid rgba(255,255,255,0.2);

    display:flex;align-items:center;justify-content:center;

  }

  .pres-item .ic svg{width:24px;height:24px;color:#fff;}

  .pres-item span{font-size:12px;color:rgba(255,255,255,0.7);text-align:center;}

  /* ---------- SOLUCIONES ---------- */

  .soluciones{background:var(--paper);padding:100px 0;}

  .sol-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}

  .sol-card{

    padding:38px 30px;border:1px solid var(--line);border-radius:var(--radius);

    transition:border-color .2s ease, transform .2s ease;

  }

  .sol-card:hover{border-color:var(--electric);transform:translateY(-4px);}

  .sol-card .ic{

    width:56px;height:56px;border-radius:50%;background:var(--navy);

    display:flex;align-items:center;justify-content:center;margin-bottom:22px;

  }

  .sol-card .ic svg{width:26px;height:26px;color:#fff;}

  .sol-card h3{font-size:22px;color:var(--navy);margin-bottom:10px;}

  .sol-card p{color:var(--muted);font-size:14.5px;line-height:1.6;}

  /* ---------- CTA BAND ---------- */

  .cta-band{

    background:linear-gradient(115deg, var(--electric) 0%, var(--navy-soft) 60%, var(--navy) 100%);

    padding:78px 0;

  }

  .cta-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;}

  .cta-inner h2{color:#fff;font-size:clamp(28px,3.6vw,42px);max-width:560px;}

  .cta-inner .actions{display:flex;gap:14px;flex-wrap:wrap;}

  .cta-inner .btn-primary{background:#fff;color:var(--navy);}

  .cta-inner .btn-primary:hover{background:#eef3ff;box-shadow:0 14px 28px -12px rgba(0,0,0,0.35);}

  /* ---------- FOOTER ---------- */

  footer{background:var(--graphite);color:rgba(255,255,255,0.75);padding:76px 0 0;}

  .footer-top{

    display:grid;grid-template-columns:1.3fr 0.8fr 0.9fr 1fr;gap:40px;padding-bottom:56px;

    border-bottom:1px solid rgba(255,255,255,0.08);

  }

  .footer-brand img{height:44px;margin-bottom:18px;}

  .footer-brand p{font-size:14px;line-height:1.7;color:rgba(255,255,255,0.55);max-width:280px;margin-bottom:22px;}

  .social-row{display:flex;gap:10px;}

  .social-row a{

    width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,0.18);

    display:flex;align-items:center;justify-content:center;transition:background .2s ease, border-color .2s ease;

  }

  .social-row a:hover{background:var(--electric);border-color:var(--electric);}

  .social-row svg{width:17px;height:17px;color:#fff;}

  .footer-col h4{

    font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase;

    color:rgba(255,255,255,0.45);font-weight:600;margin-bottom:20px;

  }

  .footer-col ul li{margin-bottom:13px;}

  .footer-col ul li a{font-size:14.5px;color:rgba(255,255,255,0.75);transition:color .2s ease;}

  .footer-col ul li a:hover{color:var(--electric);}

  .footer-contact li{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;line-height:1.5;}

  .footer-contact svg{width:17px;height:17px;color:var(--electric);flex:none;margin-top:2px;}

  .footer-bottom{

    display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;

    padding:24px 0;font-size:12.5px;color:rgba(255,255,255,0.4);

    font-family:'JetBrains Mono',monospace;

  }

  .footer-bottom a{color:rgba(255,255,255,0.55);}

  .footer-bottom a:hover{color:var(--electric);}

  /* WhatsApp float button */

  .wa-float{

    position:fixed;bottom:26px;right:26px;z-index:200;

    width:58px;height:58px;border-radius:50%;background:var(--electric);

    display:flex;align-items:center;justify-content:center;box-shadow:0 14px 30px -10px rgba(53,128,254,0.6);

    transition:transform .2s ease;

  }

  .wa-float:hover{transform:scale(1.08);}

  .wa-float svg{width:27px;height:27px;color:#fff;}

  /* Reveal animation */

  .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease, transform .7s ease;}

  .reveal.in{opacity:1;transform:translateY(0);}

  @media (prefers-reduced-motion:reduce){

    .reveal{opacity:1;transform:none;transition:none;}

    html{scroll-behavior:auto;}

  }

  /* ---------- RESPONSIVE ---------- */

  @media (max-width:1080px){

    .product-grid{grid-template-columns:repeat(2,1fr);}

    .sol-grid{grid-template-columns:repeat(3,1fr);}

    .footer-top{grid-template-columns:1fr 1fr;}

  }

  @media (max-width:880px){

    nav.main-nav{position:fixed;top:0;right:0;height:100vh;width:280px;background:#fff;

      flex-direction:column;align-items:flex-start;padding:100px 32px 32px;gap:26px;

      box-shadow:-10px 0 40px rgba(0,0,0,0.15);transform:translateX(100%);transition:transform .3s ease;z-index:99;}

    nav.main-nav.open{transform:translateX(0);}

    .nav-toggle{display:block;}

    .hero-grid{grid-template-columns:1fr;min-height:auto;}

    .hero-visual{clip-path:none;min-height:340px;}

    .hero-visual .frame{padding:0;justify-content:center;}

    .hero-copy{padding:52px 0 40px;}

    .nosotros-grid{grid-template-columns:1fr;gap:44px;}

    .product-grid{grid-template-columns:1fr;}

    .sol-grid{grid-template-columns:1fr;}

    .spotlight-grid{grid-template-columns:1fr;gap:40px;}

    .spotlight::before{display:none;}

    .spotlight-checklist{grid-template-columns:1fr;}

    .footer-top{grid-template-columns:1fr;gap:36px;}

    .cta-inner{flex-direction:column;align-items:flex-start;}

    .hero-bottom-bar .wrap{justify-content:flex-start;}

  }

  @media (max-width:480px){

    .wrap{padding:0 20px;}

    .pres-row{gap:20px;justify-content:space-between;}

  }

    .quote-section{padding:110px 0;background:var(--bg);border-top:1px solid var(--line);}

  .quote-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:70px;align-items:start;}

  .quote-copy{padding-top:20px;}

  .quote-copy h2{font-size:clamp(42px,5vw,68px);margin-bottom:22px;}

  .quote-copy>p{max-width:570px;color:var(--muted);font-size:17px;line-height:1.7;margin:0 0 38px;}

  .quote-benefits{display:grid;gap:22px;}

  .quote-benefit{display:grid;grid-template-columns:52px 1fr;gap:15px;align-items:start;padding-top:18px;border-top:1px solid var(--line);}

  .quote-number{font-family:'JetBrains Mono',monospace;color:var(--electric);font-weight:600;font-size:13px;letter-spacing:.08em;padding-top:3px;}

  .quote-benefit strong{display:block;color:var(--ink);font-size:16px;margin-bottom:5px;}

  .quote-benefit p{margin:0;color:var(--muted);font-size:14px;line-height:1.5;}

  .quote-card{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);padding:34px;}

  .quote-form-head{margin-bottom:26px;padding-bottom:20px;border-bottom:1px solid var(--line);}

  .quote-form-head .mono{display:block;color:var(--electric);font-size:11px;letter-spacing:.14em;font-weight:600;margin-bottom:8px;}

  .quote-form-head h3{font-size:32px;}

  .quote-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}

  .quote-field{display:flex;flex-direction:column;gap:7px;}

  .quote-field-full{grid-column:1/-1;}

  .quote-field label{font-size:13px;font-weight:700;color:var(--ink);}

  .quote-field label span{color:#e33b3b;}

  .quote-field input,.quote-field select,.quote-field textarea{width:100%;border:1px solid rgba(5,40,96,.16);background:#fff;color:var(--ink);font-family:'Inter',sans-serif;font-size:14px;padding:13px 14px;border-radius:2px;outline:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;}

  .quote-field input,.quote-field select{height:48px;}

  .quote-field textarea{resize:vertical;min-height:120px;line-height:1.5;}

  .quote-field input::placeholder,.quote-field textarea::placeholder{color:#8a93a0;}

  .quote-field input:focus,.quote-field select:focus,.quote-field textarea:focus{border-color:var(--electric);box-shadow:0 0 0 3px rgba(53,128,254,.10);}

  .quote-form-footer{margin-top:22px;}

  .quote-form-footer>p{font-size:12px;color:var(--muted);margin:0 0 13px;}

  .quote-form-footer>p strong{color:#e33b3b;}

  .quote-form-footer .btn{height:52px;}

  .quote-form-footer .btn svg{width:18px;}

  .quote-status{display:none;margin-top:14px;padding:13px 15px;font-size:13px;line-height:1.5;border:1px solid var(--line);}

  .quote-status.success{display:block;background:#f1fbf5;border-color:#b8e5c8;color:#196c3b;}

  .quote-status.error{display:block;background:#fff5f5;border-color:#efc0c0;color:#a52a2a;}

  .quote-status.loading{display:block;background:var(--bg);color:var(--muted);}

  .quote-honey{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}

  .quote-card button[disabled]{opacity:.65;cursor:not-allowed;transform:none!important;box-shadow:none!important;}

  @media(max-width:900px){

    .quote-grid{grid-template-columns:1fr;gap:42px;}

    .quote-copy{padding-top:0;}

  }

  @media(max-width:600px){

    .quote-section{padding:75px 0;}

    .quote-card{padding:24px 18px;}

    .quote-form-grid{grid-template-columns:1fr;}

    .quote-field-full{grid-column:auto;}

    .quote-form-head h3{font-size:28px;}

  }

/* =========================================================
   kad-product-actions
   Movido desde index.html
   ========================================================= */
/* ===== BOTONES DE PRODUCTO ===== */
.product-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.product-actions .btn{
  margin:0 !important;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn-tech{
  appearance:none;
  font-family:inherit;
  cursor:pointer;
  background:#fff !important;
  color:var(--navy) !important;
  border:1.5px solid rgba(5,40,96,.30) !important;
}
.btn-tech:hover{
  background:#f7f9fc !important;
  border-color:var(--navy) !important;
}
@media(max-width:520px){
  .product-actions{grid-template-columns:1fr;}
}


/* =========================================================
   kad-product-upgrade
   Movido desde index.html
   ========================================================= */
.product-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:auto!important}
.product-actions .btn{margin:0!important;min-height:46px!important;padding:12px 14px!important;font-size:13px!important}
.btn-tech{background:#fff!important;color:var(--navy)!important;border:1.5px solid rgba(5,40,96,.30)!important}
.btn-tech:hover{background:#f7f9fc!important;border-color:var(--navy)!important}

.product-modal{background:rgba(3,19,44,.75)!important;backdrop-filter:blur(5px)!important}
.product-modal-card{width:min(1040px,96vw)!important;max-height:92vh!important;border-radius:4px!important}
.product-modal-head{padding:24px 28px!important;background:var(--navy)!important;border-bottom:4px solid var(--electric)!important}
.product-modal-head h3{color:#fff!important;font-size:30px!important}
.product-modal-body{padding:28px!important}
.modal-intro{font-size:15px!important;line-height:1.72!important;margin-bottom:22px!important}
.modal-types{border-radius:0!important;border:1px solid var(--line)!important;background:#fafbfd!important}
.modal-types span{border-radius:0!important;background:#fff!important;border-right:1px solid var(--line)!important;font-size:12px!important}
.spec-table{font-size:13px!important}
.spec-table th{background:#f4f7fb!important;color:var(--navy)!important;width:32%!important}
.modal-note{border-radius:0!important;background:#f5f7fa!important}
#modalCustomContent{display:none}
#modalCustomContent.active{display:block}

.stretch-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}
.calibre-card{border:1px solid var(--line);background:#fff}
.calibre-card h4{margin:0;padding:11px 13px;background:var(--navy);color:#fff;font-family:'Inter',sans-serif;font-size:13px;text-transform:uppercase}
.calibre-card-body{padding:13px}
.calibre-use{color:var(--electric);font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.calibre-card ul{margin:0;padding-left:17px;list-style:disc}
.calibre-card li{font-size:12px;line-height:1.5;margin:4px 0;color:var(--graphite)}
.calibre-length{margin-top:11px;padding-top:9px;border-top:1px solid var(--line);font-family:'JetBrains Mono',monospace;font-size:10px;line-height:1.55;color:var(--muted)}

.tech-section-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin:4px 0 12px;padding-bottom:9px;border-bottom:2px solid var(--navy)}
.tech-section-title h4{margin:0;color:var(--navy);font-family:'Big Shoulders Display',sans-serif;font-size:24px;text-transform:uppercase}
.tech-section-title span{font-family:'JetBrains Mono',monospace;font-size:9.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--steel)}
.matrix-scroll{overflow-x:auto}
.spec-matrix{width:100%;min-width:820px;border-collapse:collapse;table-layout:fixed;background:#fff;font-size:11px}
.spec-matrix th,.spec-matrix td{border:1px solid var(--line);padding:9px 8px;text-align:center;vertical-align:middle}
.spec-matrix thead th{background:var(--navy);color:#fff;font-family:'JetBrains Mono',monospace;text-transform:uppercase;font-size:9px;letter-spacing:.03em}
.spec-matrix thead th:first-child{width:27%}
.spec-matrix thead th:nth-child(2){width:16%}
.spec-matrix tbody td:first-child{background:#f5f7fa;color:var(--navy);font-weight:800;text-align:left}
.spec-matrix tbody td:nth-child(2){color:var(--muted);font-family:'JetBrains Mono',monospace;font-size:9.5px}

.tech-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.tech-info-box{border:1px solid var(--line);background:#fafbfd;padding:15px}
.tech-info-box h5{margin:0 0 9px;color:var(--navy);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.tech-info-box ul{margin:0;padding-left:17px;list-style:disc}
.tech-info-box li{font-size:12px;line-height:1.55;margin:4px 0;color:var(--graphite)}
.temp-value{font-size:24px;font-weight:800;color:var(--navy);margin:2px 0 0}


@media(max-width:720px){
  
  .product-actions{grid-template-columns:1fr!important}.stretch-overview{grid-template-columns:1fr}
  .tech-info-grid{grid-template-columns:1fr}.product-modal-body,.product-modal-head{padding:18px!important}
  .tech-section-title{flex-direction:column;align-items:flex-start}
}


/* =========================================================
   kad-modal-runtime-fix
   Movido desde index.html
   ========================================================= */
/* ===== FIX DEFINITIVO: FICHAS TÉCNICAS / MODAL ===== */
.product-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:10000 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  overflow-y:auto !important;
  background:rgba(3,19,44,.78) !important;
  backdrop-filter:blur(5px) !important;
  -webkit-backdrop-filter:blur(5px) !important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.product-modal.open,
.product-modal[aria-hidden="false"]{
  display:flex !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
.product-modal[aria-hidden="true"]{
  display:none !important;
}
.product-modal-card{
  position:relative !important;
  width:min(1040px,96vw) !important;
  max-height:90vh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  margin:auto !important;
  background:#fff !important;
  border:1px solid rgba(5,40,96,.14) !important;
  border-radius:4px !important;
  box-shadow:0 28px 90px rgba(0,0,0,.34) !important;
}
.product-modal-head{
  position:sticky !important;
  top:0 !important;
  z-index:2 !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:20px !important;
  padding:24px 28px !important;
  background:var(--navy,#052860) !important;
  border-bottom:4px solid var(--electric,#3580FE) !important;
}
.product-modal-head .eyebrow{color:#9cc0ff !important;margin-bottom:7px !important;}
.product-modal-head h3{color:#fff !important;margin:0 !important;}
.modal-close{
  flex:0 0 auto !important;
  width:42px !important;
  height:42px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.38) !important;
  border-radius:3px !important;
  background:transparent !important;
  color:#fff !important;
  font-size:28px !important;
  line-height:1 !important;
  cursor:pointer !important;
}
.modal-close:hover{background:rgba(255,255,255,.10) !important;}
.product-modal-body{padding:28px !important;}
body.kad-modal-open{overflow:hidden !important;}

/* La ficha comparativa de Emplaye debe poder desplazarse en móvil */
.matrix-scroll{width:100% !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch;}
.spec-matrix{min-width:820px !important;}

@media(max-width:720px){
  .product-modal{padding:10px !important;align-items:flex-start !important;}
  .product-modal-card{width:100% !important;max-height:calc(100vh - 20px) !important;}
  .product-modal-head{padding:18px !important;}
  .product-modal-body{padding:18px !important;}
}


/* =========================================================
   kad-tech-visual-polish
   Movido desde index.html
   ========================================================= */
/* =========================================================
   AJUSTES VISUALES — FICHAS TÉCNICAS
   ========================================================= */

/* Separación clara entre la nota/párrafo final y el botón */
.product-modal .modal-note{
  display:block;
  margin-top:18px !important;
  margin-bottom:24px !important;
  padding:14px 16px !important;
  border-left:3px solid var(--electric,#3580FE) !important;
  background:#f6f8fb !important;
  color:var(--muted,#5B6472) !important;
  font-size:13px !important;
  line-height:1.6 !important;
}

.product-modal .modal-quote{
  display:flex !important;
  justify-content:flex-start !important;
  margin-top:0 !important;
  padding-top:0 !important;
}

.product-modal .modal-quote .btn{
  margin:0 !important;
  min-height:48px !important;
  padding:13px 22px !important;
}

/* Si la ficha no trae una nota, aún dejamos espacio antes del botón */
.product-modal .modal-note:empty{
  display:none !important;
}
.product-modal .modal-note:empty + .modal-quote{
  margin-top:22px !important;
}

/* ---------- Presentaciones / Tipos ---------- */
.product-modal .modal-types{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:0 !important;
  margin:0 0 22px !important;
  padding:0 !important;
  border:1px solid rgba(5,40,96,.14) !important;
  background:#fff !important;
  overflow:hidden !important;
}

.product-modal .modal-types::before{
  content:"PRESENTACIONES / TIPOS";
  flex:0 0 100%;
  display:block;
  padding:10px 13px;
  background:var(--navy,#052860);
  color:#fff;
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.product-modal .modal-types span{
  display:flex !important;
  align-items:center !important;
  min-height:38px !important;
  padding:9px 13px !important;
  margin:0 !important;
  background:#fff !important;
  color:var(--navy,#052860) !important;
  border:0 !important;
  border-right:1px solid rgba(5,40,96,.12) !important;
  border-top:1px solid rgba(5,40,96,.12) !important;
  border-radius:0 !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
}

.product-modal .modal-types span:last-child{
  border-right:0 !important;
}

/* ---------- Tabla estándar ---------- */
.product-modal .spec-table{
  width:100% !important;
  border-collapse:collapse !important;
  table-layout:fixed !important;
  margin:0 0 4px !important;
  background:#fff !important;
  border:1px solid rgba(5,40,96,.14) !important;
  font-size:13px !important;
}

.product-modal .spec-table thead th{
  padding:11px 14px !important;
  background:var(--navy,#052860) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.16) !important;
  font-family:'JetBrains Mono',monospace !important;
  font-size:10px !important;
  font-weight:700 !important;
  letter-spacing:.07em !important;
  text-transform:uppercase !important;
  text-align:left !important;
}

.product-modal .spec-table thead th:first-child{
  width:32% !important;
}

.product-modal .spec-table tbody th,
.product-modal .spec-table tbody td{
  padding:10px 14px !important;
  border:1px solid rgba(5,40,96,.12) !important;
  vertical-align:top !important;
  line-height:1.45 !important;
}

.product-modal .spec-table tbody th{
  width:32% !important;
  background:#eef4ff !important;
  color:var(--navy,#052860) !important;
  font-weight:700 !important;
  text-align:left !important;
}

.product-modal .spec-table tbody td{
  background:#fff !important;
  color:var(--graphite,#1A2434) !important;
  overflow-wrap:anywhere !important;
}

.product-modal .spec-table tbody tr:nth-child(even) td{
  background:#fafbfd !important;
}

/* ---------- Tabla comparativa Emplaye ---------- */
.product-modal .spec-matrix thead th{
  background:var(--navy,#052860) !important;
  color:#fff !important;
}

.product-modal .spec-matrix tbody td:first-child{
  background:#eef4ff !important;
  color:var(--navy,#052860) !important;
}

/* Las cajas inferiores de Emplaye también quedan consistentes */
.product-modal .tech-info-box{
  background:#fff !important;
  border:1px solid rgba(5,40,96,.14) !important;
}

.product-modal .tech-info-box h5{
  padding-bottom:8px !important;
  margin-bottom:10px !important;
  border-bottom:2px solid var(--electric,#3580FE) !important;
  color:var(--navy,#052860) !important;
}

/* Mejor respiración general del contenido */
.product-modal .product-modal-body{
  padding-bottom:32px !important;
}

@media(max-width:700px){
  .product-modal .spec-table{
    table-layout:auto !important;
  }

  .product-modal .spec-table thead th:first-child,
  .product-modal .spec-table tbody th{
    width:40% !important;
  }

  .product-modal .spec-table thead th,
  .product-modal .spec-table tbody th,
  .product-modal .spec-table tbody td{
    padding:9px 10px !important;
  }

  .product-modal .modal-types span{
    flex:1 1 50% !important;
  }

  .product-modal .modal-quote .btn{
    width:100% !important;
    justify-content:center !important;
  }
}


/* =========================================================
   kad-hero-image-center
   Movido desde index.html
   ========================================================= */
/* ===== AJUSTE: IMAGEN PRINCIPAL CENTRADA VERTICALMENTE ===== */
.hero-visual .frame{
  align-items:center !important;
}

.hero-visual img{
  object-position:center !important;
  transform:none !important;
}

/* En pantallas pequeñas también se mantiene centrada */
@media(max-width:900px){
  .hero-visual .frame{
    align-items:center !important;
    justify-content:center !important;
  }

  .hero-visual img{
    object-position:center !important;
    transform:none !important;
  }
}


/* =========================================================
   kad-nosotros-sectores-v2
   Movido desde index.html
   ========================================================= */
/* =========================================================
   NOSOTROS + SECTORES
   ========================================================= */

.nosotros{
  padding:110px 0 !important;
  background:#fff;
}

.nosotros-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr) !important;
  gap:72px !important;
  align-items:start !important;
}

.nosotros-title{
  font-size:clamp(38px,4.6vw,58px) !important;
  line-height:.94 !important;
  margin:0 0 26px !important;
}

.nosotros-copy > p{
  max-width:650px;
  color:var(--muted,#5B6472);
  font-size:16px;
  line-height:1.75;
  margin:0 0 17px;
}

.nosotros-copy .nosotros-lead{
  color:var(--graphite,#1A2434);
  font-size:18px;
  font-weight:500;
}

.nosotros-points{
  display:grid;
  gap:0;
  margin-top:34px;
  border-top:1px solid var(--line,rgba(5,40,96,.12));
}

.nosotros-point{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:15px;
  padding:18px 0;
  border-bottom:1px solid var(--line,rgba(5,40,96,.12));
}

.nosotros-point > span{
  font-family:'JetBrains Mono',monospace;
  color:var(--electric,#3580FE);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  padding-top:3px;
}

.nosotros-point strong{
  display:block;
  color:var(--navy,#052860);
  font-size:15px;
  margin-bottom:4px;
}

.nosotros-point p{
  margin:0;
  color:var(--muted,#5B6472);
  font-size:13px;
  line-height:1.55;
}

.kad-work-panel{
  border:1px solid var(--line,rgba(5,40,96,.12));
  background:#f7f9fc;
  padding:32px;
  position:sticky;
  top:105px;
}

.kad-work-panel .panel-label{
  display:block;
  font-family:'JetBrains Mono',monospace;
  color:var(--steel,#6E7884);
  font-size:10px;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin-bottom:15px;
}

.kad-work-panel h3{
  margin:0 0 16px;
  color:var(--navy,#052860);
  font-size:29px;
  line-height:1.08;
}

.work-intro{
  color:var(--muted,#5B6472);
  font-size:14px;
  line-height:1.65;
  margin:0 0 24px;
}

.work-list{
  border-top:1px solid var(--line,rgba(5,40,96,.12));
}

.work-row{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  padding:16px 0;
  border-bottom:1px solid var(--line,rgba(5,40,96,.12));
}

.work-num{
  font-family:'JetBrains Mono',monospace;
  color:var(--electric,#3580FE);
  font-size:10px;
  font-weight:700;
  padding-top:3px;
}

.work-row strong{
  display:block;
  color:var(--navy,#052860);
  font-size:14px;
  margin-bottom:4px;
}

.work-row p{
  margin:0;
  color:var(--muted,#5B6472);
  font-size:12.5px;
  line-height:1.5;
}

.work-footer{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:22px;
  padding-top:17px;
  color:var(--navy,#052860);
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
}

/* ---------- SECTORES INDEPENDIENTE ---------- */

.kad-sectors-section{
  padding:110px 0 105px;
  background:var(--navy,#052860);
  position:relative;
  overflow:hidden;
}

.kad-sectors-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:58px 58px;
  pointer-events:none;
}

.kad-sectors-section .wrap{
  position:relative;
  z-index:1;
}

.kad-sectors-head{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:80px;
  align-items:end;
  margin-bottom:50px;
}

.kad-sectors-head .eyebrow{
  color:#80adff;
}

.kad-sectors-head h2{
  margin:0;
  color:#fff;
  font-size:clamp(42px,5vw,68px);
  line-height:.92;
}

.kad-sectors-head > p{
  margin:0 0 4px;
  color:rgba(255,255,255,.7);
  font-size:15px;
  line-height:1.75;
  max-width:520px;
}

.kad-sector-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  border-top:1px solid rgba(255,255,255,.16);
  border-left:1px solid rgba(255,255,255,.16);
}

.kad-sector-card{
  grid-column:span 2;
  min-height:315px;
  padding:27px 25px 25px;
  border-right:1px solid rgba(255,255,255,.16);
  border-bottom:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.035);
  transition:background .2s ease, transform .2s ease;
}

.kad-sector-card:nth-child(4),
.kad-sector-card:nth-child(5){
  grid-column:span 3;
}

.kad-sector-card:hover{
  background:rgba(255,255,255,.07);
}

.sector-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:45px;
}

.sector-index{
  font-family:'JetBrains Mono',monospace;
  color:#72a7ff;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
}

.sector-card-top svg{
  width:30px;
  height:30px;
  color:#72a7ff;
}

.kad-sector-card h3{
  color:#fff;
  font-size:24px;
  margin:0 0 12px;
}

.kad-sector-card p{
  min-height:82px;
  margin:0 0 20px;
  color:rgba(255,255,255,.67);
  font-size:13px;
  line-height:1.62;
}

.sector-tags{
  display:flex;
  flex-wrap:wrap;
  gap:0;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.12);
}

.sector-tags span{
  color:rgba(255,255,255,.75);
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:600;
  letter-spacing:.04em;
}

.sector-tags span:not(:last-child)::after{
  content:" / ";
  color:#4f8fff;
  margin:0 7px;
}

.sector-bottom{
  margin-top:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:25px 27px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.08);
}

.sector-bottom > div{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.sector-bottom-label{
  color:#72a7ff;
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
}

.sector-bottom strong{
  color:#fff;
  font-size:18px;
}

.sector-bottom .btn{
  flex:none;
}

@media(max-width:980px){
  .nosotros-grid{
    grid-template-columns:1fr !important;
    gap:45px !important;
  }

  .kad-work-panel{
    position:relative;
    top:auto;
  }

  .kad-sectors-head{
    grid-template-columns:1fr;
    gap:22px;
  }

  .kad-sector-card{
    grid-column:span 3;
  }

  .kad-sector-card:nth-child(5){
    grid-column:span 6;
  }
}

@media(max-width:640px){
  .nosotros,
  .kad-sectors-section{
    padding:78px 0 !important;
  }

  .nosotros-title{
    font-size:40px !important;
  }

  .kad-work-panel{
    padding:24px 20px;
  }

  .work-footer{
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  .kad-sector-grid{
    grid-template-columns:1fr;
  }

  .kad-sector-card,
  .kad-sector-card:nth-child(4),
  .kad-sector-card:nth-child(5){
    grid-column:auto;
    min-height:0;
  }

  .kad-sector-card p{
    min-height:0;
  }

  .sector-card-top{
    margin-bottom:28px;
  }

  .sector-bottom{
    align-items:flex-start;
    flex-direction:column;
  }

  .sector-bottom .btn{
    width:100%;
  }
}


/* =========================================================
   kad-contact-expanded
   Movido desde index.html
   ========================================================= */
/* =========================================================
   CONTACTO AMPLIADO
   ========================================================= */

#contacto{
  padding:105px 0 0 !important;
  background:#031B42 !important;
  color:#fff;
}

.kad-contact-head{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:80px;
  align-items:end;
  padding-bottom:44px;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.kad-contact-title .eyebrow{
  color:#79aaff !important;
}

.kad-contact-title h2{
  margin:0;
  color:#fff;
  font-size:clamp(46px,5.5vw,74px);
  line-height:.9;
}

.kad-contact-intro{
  max-width:560px;
}

.kad-contact-intro p{
  margin:0 0 12px;
  color:rgba(255,255,255,.68);
  font-size:15px;
  line-height:1.75;
}

.kad-contact-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-left:1px solid rgba(255,255,255,.14);
  margin-top:38px;
}

.kad-contact-card{
  min-height:300px;
  padding:28px;
  border-top:1px solid rgba(255,255,255,.14);
  border-right:1px solid rgba(255,255,255,.14);
  border-bottom:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.025);
  color:#fff;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  transition:background .2s ease, transform .2s ease;
}

a.kad-contact-card:hover{
  background:rgba(255,255,255,.06);
}

.kad-contact-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(113,165,255,.42);
  margin-bottom:38px;
  color:#75a9ff;
}

.kad-contact-icon svg{
  width:21px;
  height:21px;
}

.kad-contact-label{
  font-family:'JetBrains Mono',monospace;
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:#75a9ff;
  margin-bottom:10px;
}

.kad-contact-card strong{
  display:block;
  color:#fff;
  font-size:20px;
  line-height:1.3;
  overflow-wrap:anywhere;
  margin-bottom:12px;
}

.kad-contact-card p{
  margin:0 0 22px;
  color:rgba(255,255,255,.62);
  font-size:13px;
  line-height:1.65;
}

.kad-contact-link{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.10);
  color:#fff;
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  font-weight:600;
  letter-spacing:.04em;
}

.kad-contact-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:44px;
  margin-top:28px;
  padding:30px 32px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(90deg,rgba(53,128,254,.16),rgba(255,255,255,.035));
}

.kad-contact-cta-label{
  display:block;
  color:#78abff;
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  margin-bottom:8px;
}

.kad-contact-cta h3{
  margin:0 0 6px;
  color:#fff;
  font-size:24px;
}

.kad-contact-cta p{
  margin:0;
  color:rgba(255,255,255,.62);
  font-size:13px;
}

.kad-contact-cta .btn{
  flex:none;
  min-width:205px;
}

.kad-footer-divider{
  height:1px;
  background:rgba(255,255,255,.12);
  margin-top:70px;
}

#contacto .kad-footer-top{
  padding:44px 0 38px !important;
  display:grid !important;
  grid-template-columns:1.5fr .65fr .85fr !important;
  gap:60px !important;
}

#contacto .footer-brand p{
  max-width:430px;
}

#contacto .footer-bottom{
  padding:20px 0 26px !important;
  border-top:1px solid rgba(255,255,255,.10) !important;
}

@media(max-width:900px){
  .kad-contact-head{
    grid-template-columns:1fr;
    gap:22px;
  }

  .kad-contact-grid{
    grid-template-columns:1fr;
    border-left:1px solid rgba(255,255,255,.14);
  }

  .kad-contact-card{
    min-height:0;
  }

  .kad-contact-icon{
    margin-bottom:24px;
  }

  .kad-contact-cta{
    align-items:flex-start;
    flex-direction:column;
  }

  #contacto .kad-footer-top{
    grid-template-columns:1fr 1fr !important;
  }

  #contacto .footer-brand{
    grid-column:1/-1;
  }
}

@media(max-width:600px){
  #contacto{
    padding-top:78px !important;
  }

  .kad-contact-title h2{
    font-size:45px;
  }

  .kad-contact-card{
    padding:23px 20px;
  }

  .kad-contact-cta{
    padding:24px 20px;
  }

  .kad-contact-cta .btn{
    width:100%;
    min-width:0;
  }

  #contacto .kad-footer-top{
    grid-template-columns:1fr !important;
    gap:30px !important;
  }

  #contacto .footer-brand{
    grid-column:auto;
  }
}


/* =========================================================
   kad-contact-priority
   Movido desde index.html
   ========================================================= */
/* =========================================================
   CONTACTO — COTIZACIÓN COMO ACCIÓN PRINCIPAL
   ========================================================= */

.kad-contact-cta{
  min-height:300px !important;
  margin-top:38px !important;
  padding:44px 48px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.35fr) auto !important;
  align-items:center !important;
  gap:54px !important;
  border:1px solid rgba(113,165,255,.42) !important;
  border-left:4px solid var(--electric,#3580FE) !important;
  background:
    linear-gradient(115deg, rgba(53,128,254,.22), rgba(53,128,254,.08) 48%, rgba(255,255,255,.03)) !important;
  position:relative;
  overflow:hidden;
}

.kad-contact-cta::after{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:-90px;
  top:-95px;
  border:1px solid rgba(255,255,255,.08);
  transform:rotate(45deg);
  pointer-events:none;
}

.kad-contact-cta > div{
  position:relative;
  z-index:1;
  max-width:720px;
}

.kad-contact-cta-label{
  font-size:10px !important;
  letter-spacing:.14em !important;
  margin-bottom:14px !important;
}

.kad-contact-cta h3{
  max-width:720px;
  margin:0 0 12px !important;
  color:#fff !important;
  font-size:clamp(34px,4vw,52px) !important;
  line-height:1.02 !important;
}

.kad-contact-cta p{
  max-width:660px;
  margin:0 !important;
  color:rgba(255,255,255,.70) !important;
  font-size:15px !important;
  line-height:1.7 !important;
}

.kad-contact-cta .btn{
  position:relative;
  z-index:1;
  min-width:230px !important;
  min-height:58px !important;
  padding:16px 26px !important;
  font-size:14px !important;
}

/* Las tres vías de contacto quedan como información secundaria */
.kad-contact-grid{
  margin-top:20px !important;
}

.kad-contact-card{
  min-height:235px !important;
  padding:24px !important;
  background:rgba(255,255,255,.018) !important;
}

.kad-contact-icon{
  width:40px !important;
  height:40px !important;
  margin-bottom:24px !important;
}

.kad-contact-icon svg{
  width:18px !important;
  height:18px !important;
}

.kad-contact-card strong{
  font-size:17px !important;
}

.kad-contact-card p{
  font-size:12.5px !important;
  line-height:1.58 !important;
  margin-bottom:16px !important;
}

.kad-contact-link{
  padding-top:13px !important;
  font-size:9.5px !important;
}

@media(max-width:900px){
  .kad-contact-cta{
    grid-template-columns:1fr !important;
    min-height:0 !important;
    padding:34px !important;
    gap:28px !important;
  }

  .kad-contact-cta .btn{
    width:100% !important;
  }
}

@media(max-width:600px){
  .kad-contact-cta{
    padding:28px 22px !important;
  }

  .kad-contact-cta h3{
    font-size:36px !important;
  }

  .kad-contact-card{
    min-height:0 !important;
  }
}


/* =========================================================
   kad-subtle-effects
   Movido desde index.html
   ========================================================= */
/* =========================================================
   EFECTOS VISUALES SUTILES
   ========================================================= */

/* ---------- Navegación ---------- */
#mainNav > a{
  position:relative;
  transition:color .2s ease;
}

#mainNav > a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:100%;
  height:2px;
  background:var(--electric,#3580FE);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .22s ease;
}

#mainNav > a:hover::after{
  transform:scaleX(1);
}

/* ---------- Botones ---------- */
.btn{
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease !important;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-primary:hover{
  box-shadow:0 10px 24px rgba(53,128,254,.22) !important;
}

.btn-outline:hover,
.btn-outline-navy:hover,
.btn-tech:hover{
  box-shadow:0 8px 18px rgba(5,40,96,.09) !important;
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  right:-170px;
  top:80px;
  border:1px solid rgba(53,128,254,.12);
  transform:rotate(45deg);
  pointer-events:none;
}

.hero-visual .frame{
  transition:transform .35s ease, box-shadow .35s ease;
}

.hero-visual .frame:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 55px -32px rgba(5,40,96,.35);
}

/* ---------- Sección Nosotros ---------- */
.nosotros{
  position:relative;
}

.nosotros::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:90px;
  height:3px;
  background:linear-gradient(90deg,var(--electric,#3580FE),transparent);
}

.nosotros-point,
.work-row{
  transition:transform .18s ease, background .18s ease;
}

.nosotros-point:hover,
.work-row:hover{
  transform:translateX(4px);
}

.kad-work-panel{
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.kad-work-panel:hover{
  transform:translateY(-3px);
  border-color:rgba(53,128,254,.28);
  box-shadow:0 18px 40px -30px rgba(5,40,96,.35);
}

/* ---------- Sectores ---------- */
.kad-sector-card{
  position:relative;
  overflow:hidden;
  transition:
    transform .22s ease,
    background .22s ease,
    border-color .22s ease !important;
}

.kad-sector-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:3px;
  height:0;
  background:var(--electric,#3580FE);
  transition:height .22s ease;
}

.kad-sector-card:hover{
  transform:translateY(-4px);
  background:rgba(255,255,255,.065) !important;
}

.kad-sector-card:hover::before{
  height:100%;
}

.sector-card-top svg{
  transition:transform .22s ease;
}

.kad-sector-card:hover .sector-card-top svg{
  transform:translateY(-2px) scale(1.04);
}

/* ---------- Productos ---------- */
.product-card{
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease !important;
}

.product-card:hover{
  transform:translateY(-5px) !important;
  border-color:rgba(53,128,254,.32) !important;
  box-shadow:0 20px 45px -30px rgba(5,40,96,.42) !important;
}

.product-photo img{
  transition:transform .28s ease;
}

.product-card:hover .product-photo img{
  transform:scale(1.025) !important;
}

.product-body h3{
  transition:color .18s ease;
}

.product-card:hover .product-body h3{
  color:var(--electric,#3580FE) !important;
}

/* ---------- Fichas técnicas ---------- */
.product-modal-card{
  animation:kadModalIn .22s ease both;
}

@keyframes kadModalIn{
  from{
    opacity:0;
    transform:translateY(10px) scale(.99);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.product-modal .spec-table tbody tr,
.product-modal .spec-matrix tbody tr{
  transition:background .15s ease;
}

.product-modal .spec-table tbody tr:hover td,
.product-modal .spec-table tbody tr:hover th,
.product-modal .spec-matrix tbody tr:hover td{
  background:#f2f6fc !important;
}

/* ---------- Formulario ---------- */
.quote-card{
  transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.quote-card:hover{
  transform:translateY(-3px);
  border-color:rgba(53,128,254,.24);
  box-shadow:0 24px 50px -32px rgba(5,40,96,.42);
}

.quote-field input,
.quote-field select,
.quote-field textarea{
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease !important;
}

/* ---------- Contacto ---------- */
.kad-contact-cta{
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.kad-contact-cta:hover{
  transform:translateY(-3px);
  border-color:rgba(113,165,255,.58) !important;
  box-shadow:0 22px 46px -30px rgba(0,0,0,.35);
}

.kad-contact-card{
  transition:transform .2s ease, background .2s ease, border-color .2s ease !important;
}

a.kad-contact-card:hover{
  transform:translateY(-3px);
  border-color:rgba(113,165,255,.28) !important;
}

/* ---------- Footer ---------- */
.footer-col a{
  transition:color .18s ease, transform .18s ease;
  display:inline-block;
}

.footer-col a:hover{
  transform:translateX(3px);
}

.social-row a{
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}

.social-row a:hover{
  transform:translateY(-2px);
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    animation:none !important;
    transition:none !important;
  }
}


/* =========================================================
   kad-quote-truck-animation
   Movido desde index.html
   ========================================================= */
/* =========================================================
   BOTÓN DE COTIZACIÓN — CAMIÓN DE ENTREGA
   ========================================================= */

#quoteSubmit{
  position:relative !important;
  min-height:58px !important;
  overflow:hidden !important;
  isolation:isolate;
}

#quoteSubmit .quote-submit-default{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:opacity .18s ease, transform .18s ease;
}

#quoteSubmit .quote-send-icon{
  width:18px;
  height:18px;
}

#quoteSubmit .quote-delivery{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-rows:31px 15px;
  align-content:center;
  gap:1px;
  padding:6px 16px 5px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(4px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}

#quoteSubmit.is-sending .quote-submit-default,
#quoteSubmit.is-success .quote-submit-default{
  opacity:0;
  transform:translateY(-5px);
  pointer-events:none;
}

#quoteSubmit.is-sending .quote-delivery,
#quoteSubmit.is-success .quote-delivery{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* Ruta */
.delivery-track{
  position:relative;
  display:block;
  width:100%;
  height:31px;
}

.delivery-road{
  position:absolute;
  left:10px;
  right:12px;
  top:20px;
  height:2px;
  overflow:hidden;
  background:rgba(255,255,255,.27);
}

.delivery-road::after{
  content:"";
  position:absolute;
  inset:0;
  width:0;
  background:#fff;
}

#quoteSubmit.is-sending .delivery-road::after{
  animation:kadRoadProgress 1.35s cubic-bezier(.22,.75,.25,1) forwards;
}

#quoteSubmit.is-success .delivery-road::after{
  width:100%;
}

/* Camioncito */
.delivery-truck{
  position:absolute;
  z-index:2;
  left:8px;
  top:1px;
  width:48px;
  height:27px;
  color:#fff;
  filter:drop-shadow(0 3px 3px rgba(0,0,0,.12));
}

.delivery-truck svg{
  display:block;
  width:100%;
  height:100%;
}

#quoteSubmit.is-sending .delivery-truck{
  animation:
    kadTruckDrive 1.35s cubic-bezier(.22,.75,.25,1) forwards,
    kadTruckBounce .28s ease-in-out 5;
}

#quoteSubmit.is-success .delivery-truck{
  left:calc(100% - 66px);
  animation:kadTruckArrive .38s cubic-bezier(.2,.9,.3,1) both;
}

/* Destino */
.delivery-destination{
  position:absolute;
  z-index:3;
  right:5px;
  top:0;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  color:#fff;
}

.delivery-destination svg{
  position:absolute;
  width:24px;
  height:24px;
  transition:opacity .18s ease, transform .18s ease;
}

.destination-pin{
  opacity:.72;
}

.destination-check{
  opacity:0;
  transform:scale(.55);
}

#quoteSubmit.is-success .destination-pin{
  opacity:0;
  transform:scale(.65);
}

#quoteSubmit.is-success .destination-check{
  opacity:1;
  transform:scale(1);
  animation:kadCheckPop .35s .12s cubic-bezier(.2,1.25,.4,1) both;
}

/* Texto inferior */
.delivery-label{
  display:block;
  position:relative;
  z-index:4;
  text-align:center;
  color:#fff;
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:700;
  line-height:1;
  letter-spacing:.07em;
  text-transform:uppercase;
  white-space:nowrap;
}

#quoteSubmit.is-sending .delivery-label::after{
  content:"";
  display:inline-block;
  width:14px;
  text-align:left;
  animation:kadLoadingDots 1.2s steps(4,end) infinite;
}

#quoteSubmit.is-success{
  background:#1f9b64 !important;
  border-color:#1f9b64 !important;
  box-shadow:0 10px 26px rgba(31,155,100,.24) !important;
}

/* Error: pequeño movimiento, sin confundirlo con una entrega exitosa */
#quoteSubmit.is-error{
  animation:kadSubmitShake .28s ease;
}

/* Animaciones */
@keyframes kadTruckDrive{
  0%{
    left:8px;
    transform:translateY(0);
  }
  72%{
    left:calc(100% - 102px);
    transform:translateY(0);
  }
  100%{
    left:calc(100% - 102px);
    transform:translateY(0);
  }
}

@keyframes kadTruckBounce{
  0%,100%{ margin-top:0; }
  50%{ margin-top:-1.5px; }
}

@keyframes kadTruckArrive{
  0%{
    left:calc(100% - 102px);
    transform:translateX(0);
  }
  76%{
    left:calc(100% - 64px);
    transform:translateX(0);
  }
  88%{
    transform:translateX(-3px);
  }
  100%{
    left:calc(100% - 66px);
    transform:translateX(0);
  }
}

@keyframes kadRoadProgress{
  from{ width:0; }
  to{ width:84%; }
}

@keyframes kadCheckPop{
  from{ opacity:0; transform:scale(.55); }
  to{ opacity:1; transform:scale(1); }
}

@keyframes kadLoadingDots{
  0%{ content:""; }
  25%{ content:"."; }
  50%{ content:".."; }
  75%,100%{ content:"..."; }
}

@keyframes kadSubmitShake{
  0%,100%{ transform:translateX(0); }
  33%{ transform:translateX(-3px); }
  66%{ transform:translateX(3px); }
}

@media(max-width:520px){
  #quoteSubmit{
    min-height:60px !important;
  }

  #quoteSubmit .quote-delivery{
    padding-left:12px;
    padding-right:12px;
  }

  .delivery-truck{
    width:43px;
  }

  @keyframes kadTruckDrive{
    0%{ left:5px; }
    72%,100%{ left:calc(100% - 92px); }
  }

  @keyframes kadTruckArrive{
    0%{ left:calc(100% - 92px); }
    76%{ left:calc(100% - 59px); }
    88%{ left:calc(100% - 62px); }
    100%{ left:calc(100% - 61px); }
  }
}

@media(prefers-reduced-motion:reduce){
  #quoteSubmit .delivery-truck,
  #quoteSubmit .delivery-road::after,
  #quoteSubmit .destination-check{
    animation:none !important;
  }
}


/* =========================================================
   kad-multi-quote
   Movido desde index.html
   ========================================================= */
/* =========================================================
   COTIZACIÓN DE MÚLTIPLES PRODUCTOS
   ========================================================= */

.quote-items-field{
  margin-top:2px;
}

.quote-items-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:11px;
}

.quote-items-heading > label{
  margin:0 !important;
}

.quote-items-heading > p{
  margin:0;
  color:var(--muted,#5B6472);
  font-size:11.5px;
  line-height:1.45;
  text-align:right;
}

.quote-items{
  display:grid;
  gap:9px;
}

.quote-item-row{
  display:grid;
  grid-template-columns:42px minmax(0,1.15fr) minmax(190px,.85fr) 38px;
  gap:10px;
  align-items:end;
  padding:13px;
  border:1px solid rgba(5,40,96,.13);
  background:#f8fafc;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.quote-item-row:focus-within{
  border-color:rgba(53,128,254,.46);
  background:#fff;
  box-shadow:0 7px 20px -16px rgba(5,40,96,.30);
}

.quote-item-number{
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(5,40,96,.12);
  background:#fff;
  color:var(--electric,#3580FE);
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  font-weight:700;
}

.quote-item-control{
  min-width:0;
}

.quote-item-control label{
  display:block;
  margin:0 0 6px;
  color:var(--navy,#052860);
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.quote-item-control select,
.quote-item-control input{
  width:100%;
  min-height:46px;
  margin:0 !important;
}

.quote-item-remove{
  width:38px;
  height:46px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(5,40,96,.13);
  background:#fff;
  color:#7b8593;
  cursor:pointer;
  transition:color .18s ease, border-color .18s ease, background .18s ease;
}

.quote-item-remove:hover{
  color:#c44;
  border-color:rgba(190,60,60,.30);
  background:#fff8f8;
}

.quote-item-remove svg{
  width:15px;
  height:15px;
}

.quote-item-row:only-child .quote-item-remove{
  opacity:.32;
  pointer-events:none;
}

.quote-add-item{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:10px;
  padding:10px 13px;
  border:0;
  background:transparent;
  color:var(--electric,#3580FE);
  font-family:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.quote-add-item:hover{
  color:var(--navy,#052860);
}

.quote-add-plus{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  font-size:18px;
  font-weight:400;
  line-height:1;
}

@media(max-width:760px){
  .quote-items-heading{
    display:block;
  }

  .quote-items-heading > p{
    margin-top:5px;
    text-align:left;
  }

  .quote-item-row{
    grid-template-columns:36px 1fr 38px;
  }

  .quote-item-number{
    grid-column:1;
    grid-row:1;
  }

  .quote-item-control{
    grid-column:2;
  }

  .quote-item-qty{
    grid-column:2;
  }

  .quote-item-remove{
    grid-column:3;
    grid-row:1;
  }
}

@media(max-width:480px){
  .quote-item-row{
    grid-template-columns:1fr 38px;
    padding:11px;
  }

  .quote-item-number{
    display:none;
  }

  .quote-item-control,
  .quote-item-qty{
    grid-column:1;
  }

  .quote-item-remove{
    grid-column:2;
    grid-row:1;
  }
}


/* =========================================================
   kad-multi-quote-compact
   Movido desde index.html
   ========================================================= */
/* =========================================================
   COTIZACIÓN MÚLTIPLE COMPACTA
   ========================================================= */

.compact-heading{
  margin-bottom:10px !important;
}

.quote-products-compact{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:88px;
  padding:15px 16px;
  border:1px solid rgba(5,40,96,.14);
  background:#f8fafc;
}

.quote-products-compact-info{
  min-width:0;
}

.quote-products-count{
  display:block;
  margin-bottom:6px;
  color:var(--electric,#3580FE);
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.quote-products-compact-info strong{
  display:block;
  max-width:100%;
  overflow:hidden;
  color:var(--navy,#052860);
  font-size:13px;
  font-weight:600;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.quote-products-manage{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:10px 14px;
  border:1px solid rgba(53,128,254,.34);
  background:#fff;
  color:var(--electric,#3580FE);
  font-family:inherit;
  font-size:11.5px;
  font-weight:700;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.quote-products-manage:hover{
  background:#f2f6ff;
  border-color:var(--electric,#3580FE);
  transform:translateY(-1px);
}

.quote-products-manage-icon{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  font-size:17px;
  font-weight:400;
  line-height:1;
}

/* Modal */
.quote-products-modal{
  position:fixed;
  inset:0;
  z-index:12000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(3,19,44,.76);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}

.quote-products-modal.open{
  display:flex;
}

.quote-products-modal-card{
  width:min(820px,96vw);
  max-height:min(760px,90vh);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}

.quote-products-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:22px 24px;
  background:var(--navy,#052860);
  border-bottom:3px solid var(--electric,#3580FE);
}

.quote-products-modal-head .eyebrow{
  color:#8fb9ff !important;
}

.quote-products-modal-head h3{
  margin:4px 0 5px;
  color:#fff;
  font-size:27px;
}

.quote-products-modal-head p{
  max-width:620px;
  margin:0;
  color:rgba(255,255,255,.67);
  font-size:12.5px;
  line-height:1.55;
}

.quote-products-modal-close{
  flex:0 0 auto;
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.28);
  background:transparent;
  color:#fff;
  cursor:pointer;
}

.quote-products-modal-close svg{
  width:18px;
  height:18px;
}

.quote-products-modal-body{
  min-height:0;
  overflow-y:auto;
  padding:18px 20px 20px;
  background:#f6f8fb;
}

.quote-products-modal-body .quote-items{
  display:grid;
  gap:9px;
}

.quote-products-modal-body .quote-add-item{
  margin-top:12px;
}

.quote-products-modal-foot{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 20px;
  border-top:1px solid rgba(5,40,96,.12);
  background:#fff;
}

.quote-products-modal-foot > span{
  color:var(--muted,#5B6472);
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
}

.quote-products-modal-foot .btn{
  min-width:120px;
}

/* Las filas ahora viven dentro del modal y no afectan la altura de la página */
.quote-products-modal .quote-item-row{
  background:#fff;
}

/* Scroll fino dentro del gestor */
.quote-products-modal-body::-webkit-scrollbar{
  width:8px;
}
.quote-products-modal-body::-webkit-scrollbar-thumb{
  background:rgba(5,40,96,.18);
}
.quote-products-modal-body::-webkit-scrollbar-track{
  background:transparent;
}

body.quote-products-open{
  overflow:hidden !important;
}

@media(max-width:680px){
  .quote-products-compact{
    grid-template-columns:1fr;
    gap:12px;
  }

  .quote-products-manage{
    width:100%;
  }

  .quote-products-modal{
    padding:8px;
    align-items:flex-end;
  }

  .quote-products-modal-card{
    width:100%;
    max-height:92vh;
  }

  .quote-products-modal-head{
    padding:18px;
  }

  .quote-products-modal-body{
    padding:14px;
  }

  .quote-products-modal-foot{
    padding:11px 14px;
  }
}


/* =========================================================
   kad-responsive-smartphones
   Movido desde index.html
   ========================================================= */
html,body{max-width:100%;overflow-x:hidden}
img,svg{max-width:100%}

@media(max-width:980px){
  .site-header{width:100%}
  .header-inner{min-height:82px!important;gap:14px!important;position:relative!important}
  .brand{flex:0 0 auto}
  .brand img{display:block;width:auto!important;max-width:132px!important;max-height:50px!important}
  .header-actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:12px!important}
  .header-actions>.btn{min-width:118px!important;min-height:48px!important;padding:12px 18px!important}
  .nav-toggle{flex:0 0 auto!important;width:46px!important;height:46px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .main-nav{position:absolute!important;z-index:9999!important;top:100%!important;left:0!important;right:0!important;width:100%!important;display:none!important;grid-template-columns:1fr!important;padding:10px 22px 16px!important;background:#fff!important;border-top:1px solid rgba(5,40,96,.08)!important;border-bottom:1px solid rgba(5,40,96,.14)!important;box-shadow:0 16px 28px rgba(5,40,96,.10)!important}
  .main-nav.open{display:grid!important}
  .main-nav>a{width:100%!important;padding:13px 5px!important;border-bottom:1px solid rgba(5,40,96,.08)!important}
  .main-nav>a:last-child{border-bottom:0!important}
  .main-nav>a::after{display:none!important}

  .hero{min-height:0!important;height:auto!important;padding:0!important}
  .hero>.wrap{width:100%!important}
  .hero-grid{display:grid!important;grid-template-columns:1fr!important;min-height:0!important;height:auto!important;gap:38px!important;padding-top:64px!important;padding-bottom:54px!important}
  .hero-copy{position:relative!important;z-index:3!important;width:100%!important;max-width:690px!important;min-width:0!important;padding:0!important}
  .hero-copy .eyebrow{max-width:100%!important;white-space:normal!important;line-height:1.5!important}
  .hero-copy h1{max-width:100%!important;margin-top:18px!important;margin-bottom:26px!important;font-size:clamp(62px,10vw,92px)!important;line-height:.84!important;overflow-wrap:normal!important}
  .hero-copy .lede{width:100%!important;max-width:650px!important;margin-bottom:28px!important;font-size:17px!important;line-height:1.68!important}
  .hero-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;width:100%!important;margin-bottom:28px!important}
  .hero-actions .btn{min-height:50px!important;margin:0!important}
  .hero-tags{position:relative!important;z-index:3!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 18px!important;width:100%!important;max-width:650px!important;margin:0!important;padding:0!important}
  .hero-tags span{min-width:0!important;display:flex!important;align-items:flex-start!important;gap:8px!important;white-space:normal!important;line-height:1.45!important}
  .hero-tags svg{flex:0 0 15px!important;width:15px!important;height:15px!important;margin-top:2px!important}

  .hero-visual{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;z-index:1!important;width:100%!important;max-width:720px!important;height:auto!important;min-height:0!important;margin:0 auto!important;padding:0!important;transform:none!important}
  .hero-visual .grid-lines{position:absolute!important;inset:-22px -22px 22px 22px!important;opacity:.45!important;pointer-events:none!important}
  .hero-visual .frame{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important;margin:0!important;padding:0!important;overflow:hidden!important;transform:none!important;background:#fff!important}
  .hero-visual .frame img,.hero-visual img{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;margin:0!important;object-fit:cover!important;object-position:center center!important;transform:none!important}

  .hero-bottom-bar{position:relative!important;z-index:4!important}
  .hero-bottom-bar .wrap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important}
  .hero-bottom-bar .hb-item{min-width:0!important;padding:15px 12px!important;justify-content:center!important;text-align:center!important;white-space:normal!important;line-height:1.35!important}

  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .quote-layout,.quote-grid,.quote-card,.quote-copy{min-width:0!important}
}

@media(max-width:640px){
  .wrap{width:calc(100% - 36px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}

  .header-inner{min-height:72px!important;width:calc(100% - 28px)!important}
  .brand img{max-width:108px!important;max-height:42px!important}
  .header-actions{gap:7px!important}
  .header-actions>.btn{min-width:92px!important;min-height:42px!important;padding:10px 13px!important;font-size:13px!important}
  .nav-toggle{width:42px!important;height:42px!important;padding:8px!important}
  .main-nav{padding-left:18px!important;padding-right:18px!important}

  .hero-grid{gap:30px!important;padding-top:46px!important;padding-bottom:38px!important}
  .hero-copy h1{margin-top:14px!important;margin-bottom:22px!important;font-size:clamp(54px,17vw,72px)!important;line-height:.86!important}
  .hero-copy .lede{font-size:15.5px!important;line-height:1.65!important;margin-bottom:24px!important}
  .hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin-bottom:25px!important}
  .hero-actions .btn{width:100%!important;min-height:50px!important;justify-content:center!important}
  .hero-tags{grid-template-columns:1fr!important;gap:9px!important}
  .hero-tags span{width:100%!important}
  .hero-visual{max-width:100%!important}
  .hero-visual .grid-lines{inset:-12px -12px 12px 12px!important}
  .hero-visual .frame{aspect-ratio:1/1!important}
  .hero-visual .frame img,.hero-visual img{object-fit:cover!important;object-position:center!important}
  .hero-bottom-bar .wrap{width:100%!important;grid-template-columns:1fr!important}
  .hero-bottom-bar .hb-item{min-height:45px!important;padding:11px 18px!important;border-bottom:1px solid rgba(255,255,255,.09)!important}
  .hero-bottom-bar .hb-item:last-child{border-bottom:0!important}

  .nosotros-grid{grid-template-columns:1fr!important;gap:34px!important}
  .nosotros-title{font-size:clamp(39px,12vw,52px)!important;line-height:.94!important}
  .nosotros-copy>p,.nosotros-copy .nosotros-lead{font-size:15px!important;line-height:1.7!important}
  .kad-work-panel{width:100%!important}

  .kad-sectors-head h2{font-size:clamp(42px,13vw,58px)!important}
  .kad-sectors-head>p{font-size:14px!important}

  .product-grid{grid-template-columns:1fr!important}
  .product-card{min-width:0!important}
  .product-photo{min-height:240px!important}
  .product-actions{grid-template-columns:1fr 1fr!important}

  .quote-layout{grid-template-columns:1fr!important;gap:34px!important}
  .quote-card{width:100%!important;padding-left:20px!important;padding-right:20px!important}
  .quote-grid{grid-template-columns:1fr!important}
  .quote-field,.quote-field-full{grid-column:1!important;min-width:0!important}
  .quote-field input,.quote-field select,.quote-field textarea{width:100%!important;max-width:100%!important;min-width:0!important}
  .quote-products-compact{grid-template-columns:1fr!important}

  .kad-contact-grid{grid-template-columns:1fr!important}
  .kad-contact-cta{width:100%!important}

  #contacto .kad-footer-top{grid-template-columns:1fr!important}
  #contacto .footer-brand{grid-column:auto!important}
  #contacto .footer-bottom{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}

  .whatsapp-float,.chat-float{right:16px!important;bottom:16px!important;transform:scale(.9);transform-origin:bottom right}
}

@media(max-width:390px){
  .wrap{width:calc(100% - 28px)!important}
  .header-actions>.btn{min-width:82px!important;padding-left:10px!important;padding-right:10px!important}
  .brand img{max-width:96px!important}
  .hero-copy h1{font-size:50px!important}
  .hero-copy .eyebrow{font-size:9px!important}
  .product-actions{grid-template-columns:1fr!important}
  .quote-card{padding-left:16px!important;padding-right:16px!important}
}


/* =========================================================
   kad-footer-fabulous
   Movido desde index.html
   ========================================================= */
/* =========================================================
   FOOTER KAD — PROFESIONAL / PREMIUM
   Contraste limpio con Contacto, sin exceso de decoración.
   ========================================================= */

#contacto .kad-footer-divider{
  position:relative;
  height:0 !important;
  margin-top:72px !important;
  background:transparent !important;
}

#contacto .kad-footer-divider::after{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:100vw;
  height:3px;
  transform:translateX(-50%);
  background:linear-gradient(
    90deg,
    #3580FE 0%,
    #73A9FF 34%,
    #3580FE 68%,
    #0A3470 100%
  );
}

/* Fondo mucho más oscuro que Contacto:
   se siente claramente como cierre de página. */
#contacto .kad-footer-top{
  position:relative;
  display:grid !important;
  grid-template-columns:minmax(0,1.45fr) .58fr .78fr minmax(260px,1fr) !important;
  gap:54px !important;
  align-items:start !important;
  padding:62px 0 54px !important;
  background:#041326 !important;
  color:#fff !important;
  box-shadow:0 0 0 100vmax #041326;
  clip-path:inset(0 -100vmax);
}

/* Único detalle visual decorativo: un resplandor muy tenue. */
#contacto .kad-footer-top::before{
  content:"";
  position:absolute;
  pointer-events:none;
  width:360px;
  height:360px;
  right:-190px;
  top:-210px;
  border-radius:50%;
  background:radial-gradient(
    circle,
    rgba(53,128,254,.10) 0%,
    rgba(53,128,254,.035) 40%,
    transparent 70%
  );
}

/* ---------- Marca ---------- */
.kad-footer-brand{
  min-width:0;
  padding-right:25px;
}

.kad-footer-brand img{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:126px !important;
  max-height:50px !important;
  margin:0 0 22px !important;
  filter:brightness(0) invert(1);
}

.kad-footer-brand p{
  max-width:430px;
  margin:0 0 24px;
  color:rgba(255,255,255,.64);
  font-size:13.5px;
  line-height:1.72;
}

.kad-footer-badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  max-width:100%;
  color:rgba(255,255,255,.76);
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:600;
  letter-spacing:.035em;
  line-height:1.5;
}

.kad-footer-dot{
  flex:0 0 auto;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#4C91FF;
  box-shadow:0 0 0 5px rgba(76,145,255,.11);
}

/* ---------- Columnas ---------- */
.kad-footer-nav,
.kad-footer-contact{
  position:relative;
  min-width:0;
  padding-top:2px;
}

.kad-footer-heading{
  display:block;
  margin-bottom:20px;
  color:#8FB9FF;
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.kad-footer-nav{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:11px;
}

.kad-footer-nav a{
  position:relative;
  display:inline-block;
  color:rgba(255,255,255,.72) !important;
  font-size:13px;
  line-height:1.4;
  text-decoration:none;
  transition:color .18s ease, transform .18s ease;
}

.kad-footer-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-3px;
  width:100%;
  height:1px;
  background:#4C91FF;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease;
}

.kad-footer-nav a:hover{
  color:#fff !important;
  transform:translateX(2px);
}

.kad-footer-nav a:hover::after{
  transform:scaleX(1);
}

/* ---------- Contacto en footer ---------- */
.kad-footer-contact{
  padding-left:28px;
  border-left:1px solid rgba(255,255,255,.11);
}

.kad-footer-contact > p{
  margin:-2px 0 21px;
  color:rgba(255,255,255,.58);
  font-size:12.5px;
  line-height:1.62;
}

.kad-footer-contact-link{
  display:block;
  padding:12px 0;
  border-top:1px solid rgba(255,255,255,.085);
  text-decoration:none;
}

.kad-footer-contact-link:last-of-type{
  border-bottom:1px solid rgba(255,255,255,.085);
}

.kad-footer-contact-link span{
  display:block;
  margin-bottom:4px;
  color:#77AAFF;
  font-family:'JetBrains Mono',monospace;
  font-size:8px;
  font-weight:700;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.kad-footer-contact-link strong{
  display:block;
  max-width:100%;
  color:#fff;
  font-size:12px;
  font-weight:600;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.kad-footer-contact-link:hover strong{
  color:#A8C8FF;
}

.kad-footer-social{
  display:flex;
  gap:8px;
  margin-top:18px;
}

.kad-footer-social a{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.035);
  color:#fff;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.kad-footer-social a:hover{
  transform:translateY(-2px);
  background:#3580FE;
  border-color:#3580FE;
}

.kad-footer-social svg{
  width:15px;
  height:15px;
}

/* ---------- Barra inferior ---------- */
#contacto .footer-bottom{
  position:relative;
  min-height:58px;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  padding:18px 0 20px !important;
  background:#020B18 !important;
  box-shadow:0 0 0 100vmax #020B18;
  clip-path:inset(0 -100vmax);
  border-top:1px solid rgba(255,255,255,.06) !important;
}

.kad-footer-legal-left{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

#contacto .footer-bottom span{
  color:rgba(255,255,255,.42) !important;
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  letter-spacing:.025em;
}

.kad-footer-separator{
  color:#397FD9 !important;
}

#contacto .footer-bottom > a{
  color:#82AFFF !important;
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  letter-spacing:.035em;
  text-decoration:none;
}

#contacto .footer-bottom > a:hover{
  color:#fff !important;
}

/* =========================================================
   TABLET
   ========================================================= */
@media(max-width:980px){
  #contacto .kad-footer-top{
    grid-template-columns:1.25fr .7fr .9fr !important;
    gap:40px !important;
  }

  .kad-footer-contact{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1.1fr 1fr 1fr auto;
    gap:20px;
    align-items:end;
    padding:24px 0 0;
    border-left:0;
    border-top:1px solid rgba(255,255,255,.10);
  }

  .kad-footer-contact .kad-footer-heading{
    grid-column:1;
  }

  .kad-footer-contact > p{
    grid-column:1;
    margin:0;
  }

  .kad-footer-contact-link{
    border-top:0;
    border-bottom:0 !important;
    padding:0;
  }

  .kad-footer-social{
    margin:0;
    justify-content:flex-end;
  }
}

/* =========================================================
   SMARTPHONE
   ========================================================= */
@media(max-width:640px){
  #contacto .kad-footer-divider{
    margin-top:54px !important;
  }

  #contacto .kad-footer-top{
    grid-template-columns:1fr 1fr !important;
    gap:34px 26px !important;
    padding:46px 0 40px !important;
  }

  .kad-footer-brand{
    grid-column:1/-1;
    padding:0 0 28px;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  .kad-footer-brand img{
    max-width:112px !important;
    margin-bottom:17px !important;
  }

  .kad-footer-brand p{
    max-width:100%;
    font-size:13px;
  }

  .kad-footer-contact{
    grid-column:1/-1;
    display:block;
    padding-top:28px;
  }

  .kad-footer-contact > p{
    margin-bottom:17px;
  }

  .kad-footer-contact-link{
    padding:11px 0;
    border-top:1px solid rgba(255,255,255,.085);
  }

  .kad-footer-contact-link:last-of-type{
    border-bottom:1px solid rgba(255,255,255,.085) !important;
  }

  .kad-footer-social{
    justify-content:flex-start;
    margin-top:18px;
  }

  #contacto .footer-bottom{
    align-items:flex-start !important;
    flex-direction:column !important;
    gap:8px !important;
  }
}

/* Teléfonos pequeños */
@media(max-width:390px){
  #contacto .kad-footer-top{
    grid-template-columns:1fr !important;
  }

  .kad-footer-brand,
  .kad-footer-contact{
    grid-column:auto;
  }

  .kad-footer-nav{
    padding-bottom:4px;
  }
}


/* =========================================================
   kad-groq-chatbot
   Movido desde index.html
   ========================================================= */
/* ===== ASISTENTE KAD ===== */
.kad-chat-launcher{
  position:fixed;right:22px;bottom:22px;z-index:11990;
  width:58px;height:58px;display:grid;place-items:center;
  padding:0;border:0;border-radius:50%;
  background:var(--electric,#3580FE);color:#fff;cursor:pointer;
  box-shadow:0 15px 36px rgba(5,40,96,.26);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.kad-chat-launcher:hover{transform:translateY(-3px);background:#246fe4;box-shadow:0 19px 42px rgba(5,40,96,.31)}
.kad-chat-launcher svg{width:27px;height:27px}
.kad-chat-online{
  position:absolute;right:2px;top:2px;width:11px;height:11px;
  border:2px solid #fff;border-radius:50%;background:#34c982;
}
.kad-chat{
  position:fixed;right:22px;bottom:92px;z-index:12000;
  width:min(390px,calc(100vw - 30px));
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(12px) scale(.985);transform-origin:bottom right;
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.kad-chat.open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.kad-chat-card{
  height:min(610px,calc(100dvh - 120px));min-height:450px;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;
  overflow:hidden;background:#fff;border:1px solid rgba(5,40,96,.12);
  box-shadow:0 28px 76px rgba(2,20,47,.25);
}
.kad-chat-head{
  display:flex;align-items:center;gap:11px;padding:15px;
  background:var(--navy,#052860);border-bottom:3px solid var(--electric,#3580FE);color:#fff;
}
.kad-chat-logo{
  flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.07);
  font-family:'Big Shoulders Display',sans-serif;font-size:25px;font-weight:800;
}
.kad-chat-head-copy{min-width:0;display:flex;flex:1;flex-direction:column}
.kad-chat-head-copy strong{font-size:14px}
.kad-chat-head-copy span{margin-top:4px;color:rgba(255,255,255,.67);font-family:'JetBrains Mono',monospace;font-size:8.5px}
.kad-chat-head-copy i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#34c982}
.kad-chat-close{
  flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;
  padding:0;border:1px solid rgba(255,255,255,.18);background:transparent;color:#fff;cursor:pointer;
}
.kad-chat-close svg{width:17px;height:17px}
.kad-chat-body{min-height:0;overflow-y:auto;padding:17px 15px;background:#f6f8fb;scroll-behavior:smooth}
.kad-chat-message{display:flex;margin-bottom:10px}
.kad-chat-message.user{justify-content:flex-end}
.kad-chat-bubble{max-width:86%;padding:11px 12px;font-size:12.5px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.kad-chat-message.assistant .kad-chat-bubble{border:1px solid rgba(5,40,96,.10);background:#fff;color:#263345}
.kad-chat-message.user .kad-chat-bubble{background:var(--navy,#052860);color:#fff}
.kad-chat-message.error .kad-chat-bubble{border:1px solid rgba(190,64,64,.18);background:#fff5f5;color:#963838}
.kad-chat-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.kad-chat-quick button{
  padding:7px 9px;border:1px solid rgba(53,128,254,.23);background:#fff;
  color:var(--navy,#052860);font-family:inherit;font-size:10.5px;cursor:pointer;
}
.kad-chat-quick button:hover{border-color:var(--electric,#3580FE);background:#eef4ff}
.kad-chat-typing{display:inline-flex;gap:4px;align-items:center;min-width:50px}
.kad-chat-typing i{width:6px;height:6px;border-radius:50%;background:#8490a0;animation:kadChatDot 1s infinite ease-in-out}
.kad-chat-typing i:nth-child(2){animation-delay:.12s}.kad-chat-typing i:nth-child(3){animation-delay:.24s}
@keyframes kadChatDot{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-3px);opacity:1}}
.kad-chat-tools{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid rgba(5,40,96,.10);background:#fff}
.kad-chat-tools button,.kad-chat-tools a{
  min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;
  padding:8px 9px;border:0;background:#fff;color:var(--navy,#052860);
  font-family:inherit;font-size:9.5px;font-weight:700;text-decoration:none;cursor:pointer;
}
.kad-chat-tools button{border-right:1px solid rgba(5,40,96,.10)}
.kad-chat-tools button:hover,.kad-chat-tools a:hover{background:#f4f7fb}
.kad-chat-tools svg{width:14px;height:14px}
.kad-chat-form{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:10px;border-top:1px solid rgba(5,40,96,.10)}
.kad-chat-form textarea{
  width:100%;min-height:42px;max-height:100px;resize:none;overflow-y:auto;
  padding:11px 12px;border:1px solid rgba(5,40,96,.15);outline:0;
  background:#fff;color:#1f2b3d;font-family:inherit;font-size:12px;line-height:1.45;
}
.kad-chat-form textarea:focus{border-color:rgba(53,128,254,.55);box-shadow:0 0 0 3px rgba(53,128,254,.08)}
.kad-chat-form button{width:44px;height:42px;display:grid;place-items:center;border:0;background:var(--electric,#3580FE);color:#fff;cursor:pointer}
.kad-chat-form button:disabled{opacity:.5;cursor:not-allowed}.kad-chat-form button svg{width:17px;height:17px}
.kad-chat-caption{padding:7px 10px 8px;background:#f6f8fb;color:#7b8592;font-family:'JetBrains Mono',monospace;font-size:7.5px;text-align:center}
@media(max-width:640px){
  .kad-chat-launcher{right:14px;bottom:14px;width:54px;height:54px}
  .kad-chat{right:7px;bottom:76px;width:calc(100vw - 14px)}
  .kad-chat-card{height:min(590px,calc(100dvh - 92px));min-height:390px}
}
@media(max-width:390px){
  .kad-chat{left:0;right:0;bottom:0;width:100vw}
  .kad-chat-card{height:92dvh;border-left:0;border-right:0;border-bottom:0}
}


/* =========================================================
   kad-mobile-menu-compact
   Movido desde index.html
   ========================================================= */
/* =========================================================
   MENÚ HAMBURGUESA — COMPACTO Y PROFESIONAL
   Corrige el panel móvil que estaba ocupando demasiado alto.
   ========================================================= */
@media (max-width:980px){

  .header-inner{
    position:relative !important;
  }

  .main-nav{
    /* Anulamos cualquier altura/gap heredado del CSS principal */
    position:absolute !important;
    top:calc(100% + 8px) !important;
    right:0 !important;
    left:auto !important;

    width:min(270px,calc(100vw - 28px)) !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    display:none !important;
    grid-template-columns:1fr !important;
    grid-auto-rows:auto !important;
    align-content:start !important;
    justify-content:stretch !important;
    align-items:stretch !important;
    gap:0 !important;

    margin:0 !important;
    padding:8px !important;

    background:#fff !important;
    border:1px solid rgba(5,40,96,.12) !important;
    border-radius:8px !important;
    box-shadow:0 18px 42px rgba(2,20,47,.16) !important;
    overflow:hidden !important;
  }

  .main-nav.open{
    display:grid !important;
  }

  .main-nav > a{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;

    width:100% !important;
    height:auto !important;
    min-height:44px !important;

    margin:0 !important;
    padding:10px 12px !important;

    color:#052860 !important;
    font-size:14px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
    text-align:left !important;
    text-decoration:none !important;

    border:0 !important;
    border-bottom:1px solid rgba(5,40,96,.08) !important;
    border-radius:4px !important;

    transition:background .16s ease,color .16s ease,padding-left .16s ease !important;
  }

  .main-nav > a:last-child{
    border-bottom:0 !important;
  }

  .main-nav > a:hover,
  .main-nav > a:focus-visible{
    background:#f2f6fc !important;
    color:#3580FE !important;
    padding-left:16px !important;
    outline:none !important;
  }

  .main-nav > a::after{
    display:none !important;
  }

  /* Mantiene el menú por encima del hero, sin crear un bloque blanco gigante */
  .site-header{
    position:relative !important;
    z-index:10050 !important;
    overflow:visible !important;
  }
}

@media (max-width:640px){
  .main-nav{
    top:calc(100% + 6px) !important;
    right:0 !important;
    left:auto !important;
    width:min(235px,calc(100vw - 28px)) !important;
    padding:7px !important;
  }

  .main-nav > a{
    min-height:42px !important;
    padding:9px 11px !important;
    font-size:13px !important;
  }
}

@media (max-width:390px){
  .main-nav{
    width:min(220px,calc(100vw - 22px)) !important;
  }
}


/* =========================================================
   kad-smart-header-style
   Movido desde index.html
   ========================================================= */
/* =========================================================
   HEADER INTELIGENTE V3
   FIXED para máxima compatibilidad en Safari/iPhone.
   ========================================================= */

:root{
  --kad-header-h: 84px;
}

.site-header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:10060 !important;
  transform:translate3d(0,0,0) !important;
  transition:
    transform .20s cubic-bezier(.2,.7,.3,1),
    box-shadow .20s ease !important;
  will-change:transform;
  backface-visibility:hidden;
}

.site-header.kad-header-hidden{
  transform:translate3d(0,-105%,0) !important;
}

.site-header.kad-header-scrolled{
  box-shadow:0 8px 24px rgba(2,20,47,.10) !important;
}

/* Como ahora el header es fixed, compensamos su altura para no tapar el hero */
body{
  padding-top:var(--kad-header-h) !important;
}

html{
  scroll-padding-top:calc(var(--kad-header-h) + 10px);
}

/* Con menú abierto jamás se oculta */
.site-header.kad-menu-open{
  transform:translate3d(0,0,0) !important;
}

@media(max-width:980px){
  :root{ --kad-header-h:82px; }
}

@media(max-width:640px){
  :root{ --kad-header-h:72px; }

  .site-header{
    transition-duration:.16s !important;
  }
}

@media(prefers-reduced-motion:reduce){
  .site-header{
    transition:none !important;
  }
}


/* =========================================================
   kad-header-restored-v5
   Movido desde index.html
   ========================================================= */
/* =========================================================
   HEADER RESTAURADO V5
   Conserva el acomodo original del sitio.
   Solo corrige el comportamiento visual del header fixed.
   ========================================================= */

.site-header{
  background:#fff !important;
  border-bottom:1px solid rgba(5,40,96,.08) !important;
}

.site-header.kad-header-scrolled{
  box-shadow:0 8px 24px rgba(2,20,47,.09) !important;
}

/* La altura ya la define el diseño original; solo evitamos que el contenido
   de la página quede debajo del header fijo. */
body{
  padding-top:var(--kad-header-h) !important;
}

/* Evita que logo/acciones se salgan verticalmente, sin mover su posición horizontal */
.header-inner{
  overflow:visible !important;
}

/* El logo conserva sus medidas/posición originales */
.brand,
.brand img{
  transform:none !important;
}

/* Menú móvil compacto se mantiene exactamente como en la versión anterior */
@media(max-width:980px){
  .site-header{
    overflow:visible !important;
  }

  .main-nav{
    z-index:10080 !important;
  }
}

/* En smartphone solo reforzamos que el contenido no se empalme */
@media(max-width:640px){
  body{
    padding-top:var(--kad-header-h) !important;
  }
}
