:root{
    --ink:#0B233D;
    --ink-2:#123353;
    --paper:#F5F7F9;
    --paper-2:#EDF0F3;
    --amber:#F2672E;
    --amber-2:#C94E1C;
    --teal:#0072BC;
    --slate:#5C7288;
    --line:#DDE3E9;
    --line-dark:#1D3A57;
    --white:#FFFFFF;
    --danger:#C23B3B;

    --radius-sm:8px;
    --radius:14px;
    --radius-lg:22px;
    --radius-pill:999px;

    --shadow-sm:0 1px 2px rgba(11,35,61,0.06), 0 1px 1px rgba(11,35,61,0.04);
    --shadow-md:0 12px 28px rgba(11,35,61,0.10), 0 2px 8px rgba(11,35,61,0.05);
    --shadow-lg:0 28px 64px rgba(11,35,61,0.16), 0 4px 12px rgba(11,35,61,0.06);

    --font-display:'Space Grotesk', sans-serif;
    --font-body:'IBM Plex Sans', sans-serif;
    --font-mono:'IBM Plex Mono', monospace;
  }

  *{margin:0;padding:0;box-sizing:border-box;}


  [hidden]{
    display:none !important;
  }

  html{scroll-behavior:smooth;}
  body{
    font-family:var(--font-body);
    background:var(--white);
    color:var(--ink);
    overflow-x:hidden;
  }
  img{max-width:100%;display:block;}
  a{color:inherit;text-decoration:none;}
  ul{list-style:none;}
  button{font-family:inherit;border:none;background:none;cursor:pointer;}

  .wrap{
    max-width:1200px;
    margin:0 auto;
    padding:0 32px;
  }

  /* ---------- utility ---------- */
  .eyebrow{
    font-family:var(--font-mono);
    font-size:12px;
    letter-spacing:0.12em;
    text-transform:uppercase;
    color:var(--teal);
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
  }
  .eyebrow::before{
    content:'';
    width:16px;height:2px;
    border-radius:2px;
    background:var(--amber);
    display:inline-block;
  }
  .code-tag{
    font-family:var(--font-mono);
    font-size:11px;
    letter-spacing:0.06em;
    padding:3px 9px;
    border:1px solid var(--line);
    border-radius:var(--radius-pill);
    display:inline-block;
  }

  /* ---------- header ---------- */
  header{
    position:fixed;
    top:0;left:0;right:0;
    z-index:100;
    background:rgba(255,255,255,0.86);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 32px;
    max-width:1200px;
    margin:0 auto;
  }
  .logo-link{
    display:inline-flex;
    align-items:center;
  }
  .logo-img{
    height:34px;
    width:auto;
    display:block;
  }
  .nav-links{
    display:flex;
    gap:32px;
    font-size:14.5px;
    font-weight:500;
    color:var(--ink);
  }
  .nav-links a{
    position:relative;
    padding:4px 0;
  }
  .nav-links a::after{
    content:'';
    position:absolute;
    left:0;bottom:0;
    width:0;height:2px;
    border-radius:2px;
    background:var(--teal);
    transition:width .25s ease;
  }
  .nav-links a:hover::after{width:100%;}
  .nav-cta{
    display:flex;
    align-items:center;
    gap:8px;
    background:var(--teal);
    color:var(--white);
    padding:10px 20px;
    border-radius:var(--radius-pill);
    font-size:13.5px;
    font-weight:600;
    letter-spacing:0.01em;
    transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .nav-cta:hover{background:#045A90; transform:translateY(-1px); box-shadow:var(--shadow-sm);}
  .nav-cta svg{width:16px;height:16px;fill:currentColor;}
  .burger{display:none;}

  /* ---------- hero: carrusel de banners de imagen (sin texto) ---------- */
  .hero{
    position:relative;
  }
  .carousel-viewport{
    position:relative;
    overflow:hidden;
    background:var(--paper-2); /* se ve un instante mientras carga la primera imagen */
  }
  .carousel-track{
    display:flex;
    transition:transform .6s cubic-bezier(.4,0,.2,1);
  }
  .carousel-slide{
    flex:none;
    min-width:0;
    aspect-ratio:21 / 8;
  }
  .carousel-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transform:scale(1);
    transition:transform 7s ease-out;
  }
  .carousel-slide.is-active img{
    transform:scale(1.06);
  }
  @media (prefers-reduced-motion: reduce){
    .carousel-slide img{transition:none;}
  }

  /* velo sutil abajo, para que los puntos siempre se lean bien sin
     importar cuán clara sea la foto que suban */
  .carousel-viewport::after{
    content:'';
    position:absolute;
    left:0; right:0; bottom:0;
    height:110px;
    background:linear-gradient(to top, rgba(11,35,61,0.5), transparent);
    pointer-events:none;
    z-index:2;
  }

  .carousel-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:46px;height:46px;
    border-radius:50%;
    background:rgba(255,255,255,0.92);
    border:1px solid rgba(255,255,255,0.6);
    box-shadow:var(--shadow-sm);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--ink);
    z-index:5;
    transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .carousel-arrow:hover{
    background:var(--white);
    box-shadow:var(--shadow-md);
    transform:translateY(-50%) scale(1.06);
  }
  .carousel-arrow svg{width:20px;height:20px;}
  .carousel-arrow.prev{left:20px;}
  .carousel-arrow.next{right:20px;}

  .carousel-dots{
    position:absolute;
    left:50%;
    bottom:22px;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:9px;
    z-index:5;
  }
  .carousel-dot{
    width:8px;height:8px;
    border-radius:var(--radius-pill);
    background:rgba(255,255,255,0.6);
    box-shadow:0 1px 3px rgba(11,35,61,0.35);
    transition:background .25s ease, width .25s ease;
  }
  .carousel-dot:hover{background:rgba(255,255,255,0.85);}
  .carousel-dot.is-active{
    background:var(--white);
    width:26px;
  }

  @media (max-width:900px){
    .carousel-arrow{display:none;}
  }
  @media (max-width:520px){
    .carousel-slide{aspect-ratio:16 / 9;}
    .carousel-dots{bottom:16px;}
  }

  /* ---------- botones (globales — los usa el hero, el carrito, el admin) ---------- */
  .btn{
    font-size:14.5px;
    font-weight:600;
    padding:15px 26px;
    border-radius:var(--radius-pill);
    display:inline-flex;
    align-items:center;
    gap:10px;
    letter-spacing:0.01em;
    transition:transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .btn-primary{
    background:var(--teal);
    color:var(--white);
    box-shadow:var(--shadow-sm);
  }
  .btn-primary:hover{background:#045A90; transform:translateY(-2px); box-shadow:var(--shadow-md);}
  .btn-primary svg{width:18px;height:18px;fill:currentColor;}
  .btn-ghost{
    border:1.5px solid var(--line);
    color:var(--ink);
    background:var(--white);
  }
  .btn-ghost:hover{border-color:var(--teal); color:var(--teal); transform:translateY(-2px); box-shadow:var(--shadow-sm);}

  /* ---------- sections generic ---------- */
  section{padding:100px 0;}
  .section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
    margin-bottom:52px;
    padding-bottom:24px;
    border-bottom:1px solid var(--line);
    flex-wrap:wrap;
  }
  .section-head h2{
    font-family:var(--font-display);
    font-weight:700;
    font-size:clamp(30px,3.6vw,44px);
    line-height:1.1;
    letter-spacing:-0.01em;
    color:var(--ink);
  }
  .section-note{
    font-size:14.5px;
    color:var(--slate);
    max-width:340px;
    text-align:right;
    line-height:1.55;
  }

  /* ---------- about ---------- */
  .about{background:var(--white);}
  .about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
    align-items:start;
  }
  .about-lead{
    font-size:22px;
    line-height:1.5;
    font-weight:500;
    color:var(--ink);
  }
  .about-lead b{color:var(--teal);}
  .about-body p{
    font-size:15.5px;
    line-height:1.75;
    color:var(--slate);
    margin-bottom:16px;
  }
  .manifest-list{
    margin-top:28px;
    border-top:1px solid var(--line);
  }
  .manifest-item{
    display:grid;
    grid-template-columns:56px 1fr;
    gap:18px;
    padding:20px 0;
    border-bottom:1px solid var(--line);
  }
  .manifest-item .num{
    font-family:var(--font-mono);
    font-size:12px;
    font-weight:600;
    color:var(--teal);
    padding-top:3px;
  }
  .manifest-item h4{
    font-family:var(--font-display);
    font-weight:600;
    font-size:16.5px;
    color:var(--ink);
    margin-bottom:4px;
  }
  .manifest-item p{
    font-size:14px;
    color:var(--slate);
    line-height:1.6;
  }

  /* ---------- catalog ---------- */
  .catalog{background:var(--paper);}
  .sector-block{margin-bottom:64px;}
  .sector-block:last-child{margin-bottom:0;}
  .sector-head{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:28px;
  }
  .sector-code{
    font-family:var(--font-mono);
    font-size:12px;
    font-weight:600;
    letter-spacing:0.06em;
    padding:7px 13px;
    background:rgba(0,114,188,0.1);
    color:var(--teal);
    border-radius:var(--radius-pill);
  }
  .sector-head h3{
    font-family:var(--font-display);
    font-weight:700;
    font-size:23px;
    color:var(--ink);
  }
  .sector-head .rule{
    flex:1;
    height:1px;
    background:var(--line);
  }
  .product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
  }
  .product-card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    padding:16px 16px 20px;
    position:relative;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .product-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-md);
    border-color:#C9DCE8;
  }
  .product-card-media{
    margin:-16px -16px 16px;
    aspect-ratio:1 / 1;
    background:var(--paper-2);
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .product-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .4s ease;
  }
  .product-card:hover .product-card-media img{transform:scale(1.04);}
  .product-card-media-empty{
    font-family:var(--font-mono);
    font-size:32px;
    font-weight:600;
    letter-spacing:0.06em;
    color:#C3CDD8;
  }
  .product-card .sku{
    font-family:var(--font-mono);
    font-size:10.5px;
    color:var(--slate);
    letter-spacing:0.04em;
    margin-bottom:8px;
  }
  .product-card h5{
    font-family:var(--font-body);
    font-weight:600;
    font-size:15.5px;
    line-height:1.4;
    color:var(--ink);
    margin-bottom:18px;
    min-height:44px;
  }
  .price-tag{
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-top:1px solid var(--line);
    padding-top:14px;
  }
  .price-tag .price{
    font-family:var(--font-display);
    font-weight:700;
    font-size:19px;
    color:var(--ink);
  }
  .price-tag .price span{
    font-family:var(--font-body);
    font-size:12px;
    color:var(--slate);
    font-weight:400;
  }
  .qty-btn{
    font-size:12.5px;
    font-weight:600;
    color:var(--teal);
    background:rgba(0,114,188,0.08);
    padding:8px 14px;
    border-radius:var(--radius-pill);
    transition:background .2s ease,color .2s ease;
  }
  .qty-btn:hover{background:var(--teal); color:var(--white);}

  /* ---------- why us ---------- */
  .why{background:var(--white);}
  .why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
  }
  .why-card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    padding:32px 28px;
    transition:box-shadow .25s ease, transform .25s ease;
  }
  .why-card:hover{box-shadow:var(--shadow-md); transform:translateY(-4px);}
  .why-card .code-tag{
    color:var(--teal);
    border-color:transparent;
    background:rgba(0,114,188,0.1);
    margin-bottom:18px;
  }
  .why-card h4{
    font-family:var(--font-display);
    font-weight:700;
    font-size:19px;
    color:var(--ink);
    margin-bottom:10px;
  }
  .why-card p{
    font-size:14.5px;
    color:var(--slate);
    line-height:1.65;
  }

  /* ---------- contact ---------- */
  .contact{
    background:var(--ink);
    color:var(--paper);
    position:relative;
    overflow:hidden;
  }
  .contact::before{
    content:'';
    position:absolute;
    inset:0;
    background:radial-gradient(900px 420px at 50% 0%, rgba(0,114,188,0.18), transparent 60%);
    pointer-events:none;
  }
  .contact-inner{
    position:relative;
    z-index:2;
    text-align:center;
    max-width:640px;
    margin:0 auto;
  }
  .contact-inner .eyebrow{justify-content:center; color:var(--amber);}
  .contact-inner .eyebrow::before{background:var(--amber);}
  .contact h2{
    font-family:var(--font-display);
    font-weight:700;
    font-size:clamp(32px,4.2vw,48px);
    letter-spacing:-0.01em;
    color:var(--white);
    margin:16px 0 18px;
    line-height:1.12;
  }
  .contact p{
    font-size:16px;
    color:#C9CDD8;
    line-height:1.6;
    margin-bottom:32px;
  }
  .whatsapp-big{
    display:inline-flex;
    align-items:center;
    gap:12px;
    background:var(--teal);
    color:var(--white);
    padding:18px 34px;
    border-radius:var(--radius-pill);
    font-size:16px;
    font-weight:700;
    letter-spacing:0.01em;
    transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .whatsapp-big:hover{background:#045A90; transform:translateY(-2px) scale(1.02); box-shadow:var(--shadow-lg);}
  .whatsapp-big svg{width:22px;height:22px;fill:currentColor;}
  .contact-meta{
    margin-top:28px;
    display:flex;
    justify-content:center;
    gap:28px;
    font-family:var(--font-mono);
    font-size:12px;
    color:#8B96A8;
    flex-wrap:wrap;
  }

  /* ---------- footer ---------- */
  footer{
    background:var(--ink);
    border-top:1px solid var(--line-dark);
    padding:32px 0 40px;
  }
  .footer-grid{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#8B96A8;
    font-size:13px;
    flex-wrap:wrap;
    gap:12px;
  }
  .logo-img-footer{height:24px;}

  /* ---------- floating whatsapp ---------- */
  .float-wa{
    position:fixed;
    bottom:24px;
    right:24px;
    z-index:90;
    background:var(--teal);
    color:var(--white);
    width:58px;height:58px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:var(--shadow-lg);
  }
  .float-wa svg{width:28px;height:28px;fill:currentColor;}

  /* ---------- nav actions / cart toggle ---------- */
  .nav-actions{
    display:flex;
    align-items:center;
    gap:16px;
  }
  .cart-toggle{
    position:relative;
    width:40px;height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    border-radius:var(--radius-pill);
    color:var(--ink);
    transition:border-color .2s ease, background .2s ease;
  }
  .cart-toggle:hover{border-color:var(--teal); background:rgba(0,114,188,0.08);}
  .cart-toggle svg{width:19px;height:19px;fill:currentColor;}
  .cart-badge{
    position:absolute;
    top:-6px;right:-6px;
    background:var(--amber);
    color:var(--white);
    font-family:var(--font-mono);
    font-size:10.5px;
    font-weight:700;
    min-width:18px;height:18px;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 4px;
    line-height:1;
  }

  .catalog-loading{
    font-family:var(--font-mono);
    font-size:12.5px;
    color:var(--slate);
    grid-column:1/-1;
    padding:12px 0;
  }

  /* ---------- cart drawer ---------- */
  .cart-overlay{
    position:fixed;
    inset:0;
    background:rgba(11,35,61,0.5);
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
    z-index:150;
  }
  .cart-overlay.open{opacity:1; visibility:visible;}

  .cart-drawer{
    position:fixed;
    top:0;right:0;
    height:100%;
    width:min(420px, 100%);
    background:var(--white);
    color:var(--ink);
    z-index:160;
    box-shadow:-24px 0 48px rgba(11,35,61,0.25);
    transform:translateX(100%);
    transition:transform .32s cubic-bezier(.4,0,.2,1);
    display:flex;
    flex-direction:column;
  }
  .cart-drawer.open{transform:translateX(0);}

  .cart-drawer-head{
    padding:24px 24px 18px;
    border-bottom:1px solid var(--line);
    position:relative;
  }
  .cart-drawer-head h3{
    font-family:var(--font-display);
    font-weight:700;
    font-size:24px;
    margin-top:4px;
    color:var(--ink);
  }
  .cart-close{
    position:absolute;
    top:20px;right:20px;
    width:32px;height:32px;
    font-size:16px;
    color:var(--slate);
    border-radius:50%;
    transition:background .2s ease;
  }
  .cart-close:hover{background:var(--paper-2);}

  .cart-items{
    flex:1;
    overflow-y:auto;
    padding:8px 24px;
  }
  .cart-empty{
    font-size:14px;
    color:var(--slate);
    padding:32px 0;
    text-align:center;
  }
  .cart-item{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    padding:16px 0;
    border-bottom:1px solid var(--line);
  }
  .cart-item-sku{
    font-family:var(--font-mono);
    font-size:10.5px;
    color:var(--teal);
    letter-spacing:0.04em;
    margin-bottom:3px;
  }
  .cart-item-name{
    font-size:14px;
    font-weight:600;
    line-height:1.35;
    margin-bottom:4px;
    max-width:220px;
  }
  .cart-item-price{
    font-family:var(--font-mono);
    font-size:12px;
    color:var(--slate);
  }
  .cart-item-controls{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
  }
  .qty-step{
    width:24px;height:24px;
    border:1px solid var(--line);
    border-radius:var(--radius-sm);
    font-size:14px;
    line-height:1;
    color:var(--ink);
    transition:border-color .2s ease;
  }
  .qty-step:hover{border-color:var(--teal); color:var(--teal);}
  .qty-value{
    font-family:var(--font-mono);
    font-size:13px;
    min-width:18px;
    text-align:center;
  }
  .cart-item-remove{
    margin-left:4px;
    color:var(--danger);
    font-size:13px;
    opacity:.7;
    transition:opacity .2s ease;
  }
  .cart-item-remove:hover{opacity:1;}

  .cart-footer{
    padding:18px 24px 24px;
    border-top:1px solid var(--line);
    background:var(--paper);
  }
  .cart-subtotal{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    font-size:14px;
    margin-bottom:16px;
  }
  .cart-subtotal b{
    font-family:var(--font-display);
    font-size:22px;
    color:var(--ink);
  }

  .manifest-preview{
    background:var(--ink);
    color:var(--paper);
    border-radius:var(--radius);
    padding:16px 16px 14px;
    margin-bottom:16px;
    position:relative;
  }
  .manifest-preview-head{
    display:flex;
    justify-content:space-between;
    font-family:var(--font-mono);
    font-size:10.5px;
    color:var(--amber);
    letter-spacing:0.04em;
    margin-bottom:8px;
  }
  .manifest-preview-title{
    font-family:var(--font-display);
    font-weight:600;
    font-size:14px;
    margin-bottom:10px;
    color:var(--white);
  }
  .manifest-preview-lines{
    display:flex;
    flex-direction:column;
    gap:6px;
    max-height:120px;
    overflow-y:auto;
  }
  .manifest-line{
    display:flex;
    justify-content:space-between;
    font-family:var(--font-mono);
    font-size:11.5px;
    color:#C9CDD8;
    gap:8px;
  }
  .manifest-line span:first-child{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .cart-send{
    width:100%;
    justify-content:center;
    margin-bottom:10px;
  }
  .cart-clear{
    width:100%;
    text-align:center;
    font-size:12.5px;
    color:var(--slate);
    text-decoration:underline;
    padding:4px 0;
  }
  .cart-clear:hover{color:var(--danger);}

  @media (max-width:520px){
    .cart-drawer{width:100%;}
  }

  /* ---------- reveal helpers ---------- */
  .reveal{opacity:0; transform:translateY(28px);}

  /* ---------- focus ---------- */
  a:focus-visible, button:focus-visible{
    outline:2px solid var(--teal);
    outline-offset:2px;
  }

  /* ---------- responsive ---------- */
  @media (max-width:1000px){
    .product-grid{grid-template-columns:repeat(2,1fr);}
  }
  @media (max-width:900px){
    .about-grid{grid-template-columns:1fr; gap:36px;}
    .why-grid{grid-template-columns:1fr;}
    .nav-links{display:none;}
    .section-head{flex-direction:column; align-items:flex-start;}
    .section-note{text-align:left;}
  }
  @media (max-width:520px){
    .wrap{padding:0 20px;}
    .nav{padding:14px 20px;}
    .product-grid{grid-template-columns:1fr;}
    .contact-meta{flex-direction:column; gap:8px;}
  }

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
  }
