/* ============================ COPYKAT ============================ */
:root {
  --tinta: #161616;
  --verde: #5aa62a;          /* verde marca (botones, acentos) */
  --verde-osc: #47881f;      /* verde hover */
  --verde-claro: #eef7e6;    /* fondo suave verde */
  --oliva: #718a28;
  --lima: #7ed957;
  --gris: #f5f6f2;
  --gris-borde: #e3e5dd;
  --texto: #2c2e28;
  --wa: #25d366;
  --radio: 14px;
  --sombra: 0 8px 30px rgba(22,22,22,.09);
  /* colores del logotipo, para la barra de acento */
  --c1: #23479e; --c2: #27a7b7; --c3: #43a879;
  --c4: #79a943; --c5: #d49a2c; --c6: #c84440;
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  background: #fff;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { width: min(760px, 92vw); }

h1, h2, h3 { line-height: 1.2; color: var(--tinta); font-weight: 700; }
a { color: var(--verde-osc); }
img { max-width: 100%; display: block; }

/* -------------------- Botones -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: .15s;
  font-family: inherit;
}
.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--verde-osc); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { filter: brightness(.95); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { display: flex; width: 100%; margin-top: .6rem; }

/* -------------------- Header -------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--gris-borde); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 0; gap: 1rem;
}
.logo img { height: 46px; width: auto; }

.main-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.main-nav a { color: #55584d; text-decoration: none; font-size: .95rem; font-weight: 600; }
.main-nav a:hover { color: var(--verde-osc); }
.header-cta { margin-left: 1.2rem; }

.nav-toggle { display: none; background: none; border: 0; color: var(--tinta); font-size: 1.6rem; cursor: pointer; }

.brand-bar { display: flex; height: 4px; }
.brand-bar span { flex: 1; }
.brand-bar span:nth-child(1) { background: var(--c1); }
.brand-bar span:nth-child(2) { background: var(--c2); }
.brand-bar span:nth-child(3) { background: var(--c3); }
.brand-bar span:nth-child(4) { background: var(--c4); }
.brand-bar span:nth-child(5) { background: var(--c5); }
.brand-bar span:nth-child(6) { background: var(--c6); }

/* -------------------- Hero -------------------- */
.hero { background: linear-gradient(180deg, #fff, var(--verde-claro)); padding: 4rem 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; color: var(--oliva); margin-bottom: .8rem; }
.hero-text h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.hero-text p { font-size: 1.15rem; margin: 1rem 0 1.8rem; max-width: 36ch; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 1.6rem; font-size: .95rem; font-weight: 500; }
.hero-art { display: grid; place-items: center; }
.hero-art img { max-width: 340px; filter: drop-shadow(0 12px 24px rgba(22,22,22,.12)); }

/* -------------------- Secciones -------------------- */
section { padding: 4rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: #666; margin: .6rem auto 2.5rem; max-width: 52ch; }

/* -------------------- Cotizador -------------------- */
.cotizador { background: var(--gris); }
.cot-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cot-config { background: #fff; border-radius: var(--radio); padding: 1.8rem; box-shadow: var(--sombra); }

.field { margin-bottom: 1.6rem; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-weight: 600; margin-bottom: .6rem; color: var(--tinta); }
.field-note { display: block; margin-top: .45rem; color: #777; font-size: .82rem; }
.field-note.field-note-error { color: #a83226; font-weight: 600; background: #fdecea; border: 1px solid #f3c6c1; border-radius: 8px; padding: .55rem .7rem; margin-top: .7rem; }

.upload-box {
  position: relative; border: 2px dashed var(--gris-borde); border-radius: var(--radio);
  padding: 1.6rem 1rem; text-align: center; background: var(--gris); transition: .15s; cursor: pointer;
}
.upload-box.is-drag, .upload-box:hover { border-color: var(--verde); background: var(--verde-claro); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-hint { color: #666; font-size: .95rem; pointer-events: none; }
.upload-hint small { color: #999; }
.file-info { margin-top: .7rem; font-weight: 500; font-size: .9rem; color: var(--tinta); }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--gris-borde); border-radius: 10px; overflow: hidden; }
.stepper button { width: 44px; border: 0; background: var(--gris); font-size: 1.2rem; cursor: pointer; color: var(--tinta); }
.stepper button:hover { background: var(--verde); color: #fff; }
.stepper input {
  width: 70px; text-align: center; border: 0; border-left: 1px solid var(--gris-borde);
  border-right: 1px solid var(--gris-borde); font-size: 1rem; font-family: inherit;
}

.options { display: flex; flex-wrap: wrap; gap: .55rem; }
.opt {
  flex: 1 1 auto; min-width: 90px; padding: .6rem .8rem; border-radius: 10px;
  border: 2px solid var(--gris-borde); background: #fff; cursor: pointer;
  font-family: inherit; font-size: .92rem; font-weight: 600; color: var(--texto);
  text-align: center; line-height: 1.25; transition: .12s;
}
.opt small { display: block; font-weight: 400; font-size: .72rem; color: #999; }
.opt:hover { border-color: var(--verde); }
.opt.is-active { border-color: var(--verde); background: var(--verde-claro); color: var(--verde-osc); }
.opt.is-active small { color: var(--oliva); }
.opt[hidden] { display: none; }

.options-toggle { margin-top: .55rem; }

/* -------------------- Resumen -------------------- */
.cot-summary { position: sticky; top: 90px; }
.summary-card { background: #fff; border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra); }
.summary-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.summary-card-head h3 { margin-bottom: 0; }
.btn-limpiar { background: none; border: none; padding: 0; color: #999; font-size: .8rem; text-decoration: underline; cursor: pointer; font-family: inherit; }
.btn-limpiar:hover { color: var(--tinta); }
.summary-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.summary-lines { list-style: none; margin-bottom: 1rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .88rem; border-bottom: 1px dashed var(--gris-borde); }
.summary-lines li span:first-child { color: #777; }

.carrito-item-desglose { list-style: none; margin-top: .3rem; }
.carrito-item-desglose li { display: flex; justify-content: space-between; gap: .6rem; font-size: .76rem; color: #999; padding: .05rem 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0; border-top: 2px solid var(--tinta); margin-top: .3rem; }
.summary-total strong { font-size: 1.6rem; color: var(--verde-osc); }
.summary-note { font-size: .76rem; color: #888; margin: .4rem 0 1rem; }

.carrito-lista { list-style: none; margin-bottom: .3rem; }
.carrito-item {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem;
  padding: .6rem 0; border-bottom: 1px dashed var(--gris-borde);
}
.carrito-item-info { display: flex; flex-direction: column; overflow: hidden; }
.carrito-item-info strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carrito-item-info small { color: #888; font-size: .74rem; }
.carrito-item-precio { font-weight: 700; color: var(--verde-osc); font-size: .9rem; white-space: nowrap; }
.carrito-quitar {
  border: 0; background: var(--gris); color: #888; width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: .85rem; line-height: 1;
}
.carrito-quitar:hover { background: #f4d3d3; color: #a33; }
.carrito-vacio { color: #888; font-size: .85rem; padding: .5rem 0 1rem; }
.carrito-error { color: #a33; font-size: .85rem; padding: .4rem 0; }

#btnPagar { margin-bottom: .3rem; }
.btn-destacado { animation: pulso 1.2s ease-in-out 2; }
@keyframes pulso { 50% { transform: scale(1.04); } }

.pedido-form { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--gris-borde); }
.pedido-form label { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; color: #555; gap: .25rem; }
.pedido-form input, .pedido-form textarea {
  font-family: inherit; font-size: .95rem; padding: .55rem .7rem;
  border: 1px solid var(--gris-borde); border-radius: 8px;
}
.pedido-form input:focus, .pedido-form textarea:focus { outline: 2px solid var(--verde); border-color: transparent; }

/* -------------------- Pasos -------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--gris); border-radius: var(--radio); padding: 1.6rem; text-align: center; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto .8rem; border-radius: 50%; background: var(--verde); color: #fff; font-weight: 700; font-size: 1.2rem; }
.step h3 { margin-bottom: .4rem; }

/* -------------------- Envío / listas -------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.envio { background: var(--gris); }
.check-list { list-style: none; margin-top: 1rem; }
.check-list li { padding: .4rem 0 .4rem 1.6rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--verde); font-weight: 700; }

/* -------------------- Nosotros -------------------- */
.nosotros { text-align: center; }
.nosotros-icon { width: 96px; margin: 0 auto 1rem; }
.nosotros p { font-size: 1.1rem; margin-top: 1rem; }

/* -------------------- Contacto + mapa -------------------- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; margin-top: 2rem; }
.contact-list { list-style: none; }
.contact-list li { padding: .7rem 0; border-bottom: 1px solid var(--gris-borde); font-size: 1rem; }
.contact-list li strong { color: var(--oliva); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.mapa iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radio); box-shadow: var(--sombra); }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--tinta); color: #b8bab0; padding: 2.5rem 0; text-align: center; font-size: .88rem; }
.footer-logo { height: 40px; width: auto; margin: 0 auto 1rem; filter: brightness(0) invert(1); opacity: .9; }
.site-footer a { color: var(--lima); }
.footer-credit { margin-top: .3rem; opacity: .7; }

/* -------------------- Botón flotante de WhatsApp -------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* -------------------- Responsive -------------------- */
@media (max-width: 940px) {
  .cot-grid { grid-template-columns: 1fr; }
  .cot-summary { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: .5rem 6vw 1rem; gap: .1rem;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .7rem 0; border-bottom: 1px solid var(--gris-borde); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-header { position: relative; }
}
