/* Innova Food Trade — réplica estática del diseño Avada (oct 2026) */
:root {
  --yellow: #f7e01f;
  --black: #000;
  --page-bg: #e2e2e2;
  --grey-card: #b0b0b0;
  --grey-text: #747474;
  --line: #e2e2e2;
  --serif: "Merriweather", Georgia, serif;
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --sans: Arial, Helvetica, sans-serif;
  --btn: "Montserrat", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: #000;
  font: 400 16px/1.4 var(--cond);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #000; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0 0 .5em; line-height: 1.25; }
h2 { font-size: 25px; }
h3 { font-size: 20px; }
h4 { font: 400 20px/1.3 var(--cond); margin: 0 0 .6em; }

.site { max-width: 1300px; margin: 0 auto; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- barra superior / pie */
.topbar, .footer { background: var(--black); color: #fff; }
.topbar .inner, .footer .inner { display: flex; align-items: center; justify-content: space-between; padding: 0 30px; min-height: 48px; }
.social { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.social a { display: block; color: #fff; }
.social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.social a:hover { color: var(--yellow); }
.footer .inner { min-height: 96px; align-items: flex-start; padding-top: 28px; }
.footer .copy { margin: 0; font: 12px var(--sans); color: var(--grey-text); text-transform: uppercase; }

/* ---------- cabecera */
.header { position: relative; text-align: center; padding: 18px 30px 0; background: #fff; z-index: 20; }
.logo { display: inline-block; }
.logo img { height: 100px; width: auto; margin: 0 auto; }
.nav { margin-top: 14px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px 22px; flex-wrap: wrap; }
.menu > .menu-item > a { display: block; padding: 10px 0 16px; font: 700 13px var(--serif); text-decoration: none; letter-spacing: 0; }
.menu > .menu-item > a:hover, .menu > .menu-item:focus-within > a { color: #555; }
.menu-item { position: relative; }
.sub-menu { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 290px; background: #fff; border-top: 3px solid var(--black); box-shadow: 0 4px 12px rgba(0,0,0,.12);
  text-align: left; opacity: 0; visibility: hidden; transition: opacity .15s; }
.sub-menu .sub-menu { top: -3px; left: 100%; transform: none; }
.menu-item:hover > .sub-menu, .menu-item:focus-within > .sub-menu, .menu-item.open > .sub-menu { opacity: 1; visibility: visible; }
.sub-menu a { display: block; padding: 11px 18px; font: 13px/1.35 var(--sans); text-decoration: none; border-bottom: 1px solid #eee; }
.sub-menu a:hover { background: #f6f6f6; }
.sub-menu .has-sub > a::after { content: "›"; float: right; }
.menu-toggle { display: none; }

/* ---------- barra de título (amarilla) */
.page-title { background: var(--yellow); text-align: center; padding: 22px 30px 20px; }
.page-title h1 { font-size: 20px; margin: 0 0 4px; }
.crumbs { font: 12px var(--sans); color: #333; }
.crumbs a { color: #333; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 6px; }

/* ---------- secciones */
.section { padding: 60px 30px; }
.section-title { text-align: center; font-size: 22px; margin-bottom: 30px; }

.hero { margin-top: 0; padding: 150px 30px; background: #fff center/cover no-repeat; }
.hero-box { max-width: 760px; margin: 0 auto; padding: 15px; color: #fff; text-align: center;
  background: rgba(0,0,0,.5); border: 10px solid var(--yellow); box-shadow: 10px 10px 0 var(--yellow); }
.hero-box h2 { font-size: 25px; margin: .2em 0 .4em; }
.hero-box h2:first-child { margin-bottom: 0; }
.hero-box h4 { font-size: 18px; }

.band { background: var(--yellow); padding: 110px 30px; text-align: center; }
.band .globe { width: 64px; height: 64px; margin: 0 auto 18px; display: block; }
.band p { font: 700 18px/1.4 var(--serif); max-width: 1100px; margin: 0 auto; }

/* tarjetas de categoría: borde negro + sombra negra desplazada */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; max-width: 1200px; margin: 0 auto; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 50px 30px; }
.cat-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: 460px; padding: 50px 30px; text-align: center; text-decoration: none; color: #fff;
  border: 5px solid #000; box-shadow: 10px 10px 0 #000; background: var(--grey-card) center/cover no-repeat; isolation: isolate;
  transition: transform .15s, box-shadow .15s; }
.cat-card::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.31); z-index: -1; }
.cat-card.no-img::before { background: transparent; }
.cat-card:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 #000; }
.cat-card-title { font: 700 22px/1.25 var(--serif); text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.cards-4 .cat-card-title { font-size: 19px; }
.btn, .cat-card .btn, button[type=submit] {
  display: inline-block; background: #000; color: #fff; font: 600 13px var(--btn); padding: 12px 26px;
  text-decoration: none; border: 0; cursor: pointer; letter-spacing: .5px; }
.btn:hover, button[type=submit]:hover { background: #333; }
.cat-card .btn { background: var(--yellow); color: #000; }

.intro { max-width: 1000px; margin: 0 auto 50px; text-align: center; font: 16px/1.6 var(--sans); }
.intro ul { text-align: left; display: inline-block; margin: 0; padding-left: 20px; }

/* clientes */
.clientes { padding-top: 40px; }
.logos { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 24px; }
.logos img { width: 100%; filter: grayscale(0); }

/* contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 50px; background: #b3b3b3; }
.contact-col { background: rgba(255,255,255,.4); padding: 15px 15px 25px; }
.contact .section-title { margin: 10px 0 12px; font-size: 20px; }
.contact-form label { display: block; font: 13px var(--sans); margin-bottom: 14px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #d2d2d2;
  border-radius: 4px; font: 15px var(--sans); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font: 14px var(--sans); margin: 12px 0 0; min-height: 1em; }
.form-status.ok { color: #0a6b2a; } .form-status.err { color: #a30000; }
.contact-links { display: flex; align-items: center; justify-content: center; }
.social-card { background: #fff; border-radius: 18px; padding: 24px 20px; width: 100%; max-width: 440px; display: grid; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.social-card a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid #e8e8e8; border-radius: 10px;
  font: 600 14px var(--sans); text-decoration: none; transition: background .15s; overflow-wrap: anywhere; }
.social-card a:hover { background: #fafafa; }
.social-card svg { width: 24px; height: 24px; flex: none; }
.social-card .ig svg { fill: #e1306c; } .social-card .wa svg { fill: #25d366; } .social-card .li svg { fill: #0a66c2; }

/* nosotros */
.yellow-box { background: #fff; border: 10px solid var(--yellow); box-shadow: 10px 10px 0 var(--yellow); padding: 20px 25px; }
.about-box { max-width: 560px; margin: 40px auto 60px; text-align: center; }
.about-box h4 { font-size: 17px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.person h3 { font: 400 14px var(--sans); text-align: center; margin-bottom: 18px; }
.person .person-title { font: 400 17px/1.25 var(--cond); margin: 0 0 14px; }
.person p { font: 14px/1.35 var(--sans); margin: 0; }

/* productos */
.products { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; max-width: 1200px; }
.products-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product { border: 1px solid #ececec; background: #fff; display: flex; flex-direction: column; }
.product-img { display: block; background: #f6f7f6; aspect-ratio: 1; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.ph, .ph-big { display: block; width: 100%; height: 100%; background: #f6f7f6 url(/assets/img/logo.webp) center/40% no-repeat; opacity: .55; }
.product-body { padding: 14px 16px 10px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 16px; margin: 0 0 14px; flex: 1; }
.product h3 a { text-decoration: none; }
.sep2 { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 4px; margin: 4px 0 10px; }
.details { align-self: center; font: 12px var(--sans); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.details svg { width: 11px; height: 11px; fill: currentColor; }

.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 60px; }
.gallery .main-img { display: block; background: #fff; }
.gallery .main-img img { width: 100%; max-height: 640px; object-fit: contain; }
.ph-big { aspect-ratio: 1; }
.thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 100%; }
.thumbs button[aria-current=true] { border-color: #000; }
.summary h2 { font-size: 24px; margin-bottom: 18px; }
.summary .sep2 { margin-bottom: 18px; }
.desc { font: 14px/1.45 var(--sans); }
.desc p { margin: 0 0 14px; }
.meta { font: 14px var(--sans); margin: 22px 0; }
.meta a { text-decoration: none; } .meta a:hover { text-decoration: underline; }
.share { list-style: none; margin: 0 auto 50px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share li + li { border-left: 1px solid var(--line); }
.share a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; font: 13px var(--sans); text-decoration: none; }
.share svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #333; fill: #fff; flex: none; }
.share li:last-child svg { fill: none; stroke: #fff; }
.related { max-width: 1200px; margin: 0 auto; }
.line-title { display: flex; align-items: center; gap: 12px; font-size: 16px; margin-bottom: 24px; }
.line-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 4px; }

.notfound { text-align: center; padding: 100px 30px; }
.notfound p { font: 16px var(--sans); }

/* botón flotante de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 50; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .products, .products-4 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .cat-card { min-height: 360px; }
}
@media (max-width: 800px) {
  .menu-toggle { display: flex; align-items: center; gap: 5px; flex-direction: column; margin: 10px auto 12px;
    background: none; border: 0; cursor: pointer; font: 700 12px var(--serif); }
  .menu-toggle span { display: block; width: 26px; height: 3px; background: #000; }
  .menu-toggle b { font-weight: 700; margin-top: 2px; }
  .nav { display: none; margin: 0 -30px; border-top: 1px solid #eee; text-align: left; }
  .nav.open { display: block; }
  .menu { display: block; }
  .menu > .menu-item > a { padding: 14px 30px; border-bottom: 1px solid #eee; }
  .sub-menu, .sub-menu .sub-menu { position: static; transform: none; width: auto; box-shadow: none; border: 0;
    opacity: 1; visibility: visible; display: none; background: #fafafa; }
  .menu-item.open > .sub-menu { display: block; }
  .sub-menu a { padding-left: 46px; }
  .sub-menu .sub-menu a { padding-left: 62px; }
  .has-sub > a::after { content: " +"; float: none !important; }
  .menu-item.open > a::after { content: " –"; }
  .hero { padding: 60px 16px; }
  .hero-box { border-width: 6px; box-shadow: 6px 6px 0 var(--yellow); }
  .hero-box h2 { font-size: 19px; } .hero-box h4 { font-size: 16px; }
  .band { padding: 60px 16px; } .band p { font-size: 16px; }
  .section { padding: 40px 16px; }
  .topbar .inner, .footer .inner { padding-left: 16px; padding-right: 16px; }
  .header { padding: 14px 16px 0; }
  .nav { margin: 0 -16px; }
  .cards, .cards-2, .cards-4 { grid-template-columns: 1fr; gap: 32px; }
  .cat-card { min-height: 280px; margin-right: 10px; }
  .contact { grid-template-columns: 1fr; padding: 24px 16px; gap: 24px; }
  .team, .product-top { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .share { grid-template-columns: 1fr 1fr; }
  .share li:nth-child(3) { border-left: 0; }
  .share li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .yellow-box { margin-right: 10px; }
  .footer .inner { flex-direction: column; gap: 14px; min-height: 0; padding-bottom: 28px; }
}
@media (max-width: 480px) {
  .products, .products-4 { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; }
  .share li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- lista de cotización (html.cotizar-on lo pone main.js) */
.quote-add, .quote-menu, .quote-panel, .quote-fab { display: none; }
.cotizar-on .quote-add { display: block; margin: 26px 6px 22px 0; }
.cotizar-on .quote-menu { display: block; }
.quote-menu > a { background: var(--yellow); padding-left: 10px !important; padding-right: 10px !important; }
.quote-open[hidden], .quote-add-row[hidden], .quote-panel[hidden], .quote-fab[hidden],
.quote-send[hidden], .quote-pane[hidden], .quote-wa-done[hidden], .quote-done[hidden], .quote-empty[hidden] { display: none !important; }

/* en la ficha */
.quote-open { background: var(--yellow); color: #000; border: 3px solid #000; box-shadow: 5px 5px 0 #000;
  font: 700 16px var(--btn); padding: 12px 40px; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.quote-open:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }
.quote-add-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.quote-add label { font: 13px var(--sans); display: grid; gap: 4px; }
.quote-add input { width: 120px; padding: 10px; border: 1px solid #bbb; border-radius: 4px; font: 16px var(--sans); }
.add-quote { background: #000; color: var(--yellow); border: 0; font: 600 14px var(--btn); padding: 13px 22px; cursor: pointer; }
.add-quote:hover { background: #333; }
.quote-added { margin: 12px 0 0; font: 14px var(--sans); color: #0a6b2a; }
.quote-added:empty { display: none; }

/* panel lateral (PC) */
.cotizar-on .quote-panel { display: flex; }
.quote-panel { position: fixed; top: 16px; right: 16px; bottom: 16px; width: 340px; z-index: 60; flex-direction: column;
  background: #fff; border: 4px solid #000; box-shadow: 8px 8px 0 #000; font-family: var(--sans); }
.qp-head { display: flex; align-items: center; background: var(--yellow); border-bottom: 3px solid #000; }
.qp-head.bump { animation: bump .35s; }
@keyframes bump { 50% { filter: brightness(1.15); transform: scale(1.02); } }
.qp-toggle { flex: 1; text-align: left; background: none; border: 0; padding: 14px 16px; font: 700 18px var(--serif); cursor: default; color: #000; }
.qp-count { font-size: 15px; }
.qp-close { background: none; border: 0; font-size: 30px; line-height: 1; padding: 6px 14px; cursor: pointer; }
.qp-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }
.quote-empty { font-size: 14px; color: #444; }
.quote-items { list-style: none; margin: 0 0 6px; padding: 0; }
.quote-items li { display: grid; grid-template-columns: 1fr 74px; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.quote-items a { text-decoration: none; font-weight: 600; line-height: 1.3; }
.quote-items input { width: 100%; padding: 7px 8px; border: 1px solid #ccc; border-radius: 4px; font: 14px var(--sans); }
.quote-rm { grid-column: 1; justify-self: start; background: none; border: 0; padding: 0; color: #a30000; cursor: pointer; font-size: 12px; text-decoration: underline; }
.quote-done { color: #0a6b2a; font-weight: 600; font-size: 15px; }
.quote-hint { margin: 14px 0 10px; font-size: 14px; font-weight: 600; }
.quote-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.quote-tab { border: 2px solid #000; background: #fff; padding: 10px; font: 600 13px var(--btn); cursor: pointer; }
.quote-tab[data-tab=wa] { border-color: #1da851; color: #0d7a3a; }
.quote-tab[aria-selected=true] { background: #000; color: var(--yellow); border-color: #000; }
.quote-tab[data-tab=wa][aria-selected=true] { background: #25d366; color: #fff; border-color: #25d366; }
.quote-pane label { display: block; font-size: 13px; margin-bottom: 10px; }
.quote-pane input, .quote-pane textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #d2d2d2; border-radius: 4px; font: 15px var(--sans); }
.quote-pane button[type=submit] { width: 100%; }
.quote-wa { width: 100%; background: #25d366; color: #fff; border: 0; padding: 13px; font: 600 14px var(--btn); cursor: pointer; }
.quote-wa:hover { background: #1da851; }
.quote-wa-done { margin: 12px 0 0; font-size: 14px; color: #0a6b2a; }
.quote-clear { background: none; border: 0; padding: 0; text-decoration: underline; font: 600 14px var(--sans); cursor: pointer; }
.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* reabrir */
.cotizar-on .quote-fab { display: block; }
.quote-fab { position: fixed; right: 0; top: 40%; z-index: 50; background: #000; color: var(--yellow); border: 0;
  font: 600 14px var(--btn); padding: 14px 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* PC: el panel ocupa el costado; si no cabe en el blanco lateral, el sitio se corre a la izquierda */
@media (min-width: 1000px) {
  .qp-open .wa-float { right: auto; left: 20px; }
}
@media (min-width: 1000px) and (max-width: 2043px) {
  html.qp-open body { padding-right: 372px; }
}

/* acceso fijo arriba y botón «Ver cotización» junto a «Agregar»: solo celular */
.quote-top, .quote-go, .qp-continue { display: none; }
.quote-top[hidden] { display: none !important; }

/* celular/tablet: acceso fijo arriba + panel a pantalla completa */
@media (max-width: 999px) {
  .cotizar-on .topbar { position: sticky; top: 0; z-index: 40; }
  .cotizar-on .quote-top { display: inline-block; background: var(--yellow); color: #000; border: 0;
    font: 700 13px var(--btn); padding: 8px 14px; border-radius: 20px; cursor: pointer; }
  .quote-top.bump { animation: bump .35s; }
  .cotizar-on .quote-go { display: inline-block; margin-left: 4px; background: none; border: 0; padding: 0;
    font: 700 14px var(--sans); color: #000; text-decoration: underline; cursor: pointer; }
  .quote-panel { inset: 0; width: auto; height: 100vh; height: 100dvh; border: 0; box-shadow: none; }
  .quote-panel:not(.expanded) { display: none !important; }
  .qp-toggle { cursor: default; padding: 16px; font-size: 18px; }
  .qp-close { font-size: 34px; padding: 8px 16px; }
  .qp-body { padding-bottom: 32px; }
  .quote-items li { grid-template-columns: 1fr 90px; }
  .quote-pane input, .quote-pane textarea { font-size: 16px; padding: 11px 12px; }  /* 16px: iPhone no hace zoom */
  .cotizar-on .qp-continue { display: block; width: 100%; margin-top: 18px; background: #fff; border: 2px solid #000;
    padding: 13px; font: 600 14px var(--btn); cursor: pointer; }
  html.qp-full, html.qp-full body { overflow: hidden; }
  .cotizar-on .quote-fab { display: none; }  /* en celular se reabre desde arriba */
  .quote-menu > a { padding-left: 30px !important; }
}
