/* Buen Agarre — estilos. Medidas y colores tomados del mockup aprobado. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fuentes/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fuentes/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800 900; font-style: normal; font-display: swap; src: url("../fuentes/big-shoulders-display.woff2") format("woff2"); }

:root {
  --fondo: #F6F2E9;
  --fondo-elevado: #FCFAF5;
  --linea: #DDD4C3;
  --tinta: #232A3D;
  --tinta-suave: #5A6172;
  --verde-pegote: #589C5F;
  --verde-texto: #3D7445;
  --naranja: #F29035;
  --naranja-suave: #FCE3C9;
  --lapiz: #F3BE45;
  --firma: #B5BACB;
  --linea-oscura: #343C52;
  --titulo: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --texto: "Barlow", system-ui, sans-serif;
  --radio: 14px;
  --radio-chico: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--texto); font-size: 18px; line-height: 28px; }
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, figure { margin: 0; }
a { color: var(--tinta); }
a:hover { color: var(--verde-texto); }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 4px; }
.oscuro :focus-visible, .pie :focus-visible { outline-color: var(--lapiz); }

h1, h2, h3, .marca, .monto, .monto-grande, .boton, .boton-wa {
  font-family: var(--titulo); font-weight: 900; text-transform: uppercase;
}

.contenedor { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.saltar { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 8px 16px; background: var(--fondo-elevado); border-radius: var(--radio-chico); font-weight: 600; }
.saltar:focus { top: 16px; }

.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.franja { height: 14px; background: repeating-linear-gradient(-45deg, var(--lapiz) 0 18px, var(--tinta) 18px 36px); }

/* Franja de envío (arriba de todo) y etiqueta "Envío gratis" */
.aviso-envio { padding: 8px 16px; background: var(--lapiz); color: var(--tinta); text-align: center; font-weight: 600; font-size: 15px; line-height: 22px; }
.envio-gratis {
  display: inline-block; padding: 2px 8px; border-radius: var(--radio-chico); background: var(--tinta); color: var(--fondo);
  font-weight: 600; font-size: 11px; line-height: 16px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
}
.tarjeta-precio { position: relative; }
.tarjeta-precio .envio-gratis { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); }
.precio-caso .envio-gratis, .caso-chico .envio-gratis { margin-top: 8px; align-self: start; }
.tamano { font-size: 13px; line-height: 18px; }
.nota { font-size: 15px; line-height: 22px; color: var(--linea); }
.envio-aviso { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; }
.caso-chico .envio-aviso { color: var(--tinta-suave); }

/* Rubro arriba del título: pastilla crema como el menú, para que pase contraste sobre el verde */
.rubro {
  align-self: start; padding: 6px 12px; border-radius: var(--radio-chico); background: var(--fondo-elevado);
  font-weight: 600; font-size: 15px; line-height: 22px;
}
.heroe-texto .rubro { margin-bottom: -8px; }

/* Botones */
.boton-wa {
  align-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 32px;
  border-radius: 9999px; background: var(--naranja); color: var(--tinta); text-decoration: none;
  font-weight: 800; font-size: 24px; line-height: 1; box-shadow: 0 3px 0 var(--tinta);
  transition: transform .15s ease, box-shadow .15s ease;
}
.boton-wa:hover { color: var(--tinta); transform: translateY(-2px); box-shadow: 0 5px 0 var(--tinta); }
.boton-wa:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tinta); }

.boton {
  align-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 2px solid currentColor; border-radius: var(--radio-chico); color: var(--tinta); text-decoration: none;
  font-weight: 800; font-size: 20px; line-height: 1.1; transition: background-color .15s ease, color .15s ease;
}
.boton:hover { background: var(--tinta); color: var(--fondo); }
.boton[data-wa] { gap: 8px; }
.boton[data-wa]::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; background: currentColor;
  -webkit-mask: var(--icono-wa) center / contain no-repeat; mask: var(--icono-wa) center / contain no-repeat;
}
:root { --icono-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.7-5A8.5 8.5 0 1 1 8 19.3L3 21z'/%3E%3Cpath d='M9 9.5c0 3 2.5 5.5 5.5 5.5l1.5-1.5-2-1-1 1c-1 0-2.5-1.5-2.5-2.5l1-1-1-2L9 9.5z'/%3E%3C/svg%3E"); }

/* Héroe */
.heroe { background: var(--verde-pegote); overflow: hidden; }
.barra { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.marca { display: inline-flex; align-items: center; min-height: 44px; font-size: 32px; line-height: 32px; text-decoration: none; }
.marca:hover { color: var(--tinta); }
.nav { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 6px; background: var(--fondo-elevado); text-decoration: none; }
.nav a:hover { color: var(--verde-texto); text-decoration: underline; }
.heroe-grilla { padding-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px; align-items: end; }
.heroe-texto { display: flex; flex-direction: column; gap: 24px; padding-bottom: 64px; }
h1 { font-size: clamp(56px, 14vw, 96px); line-height: .9; }
.globo-heroe { background: var(--fondo-elevado); border-radius: var(--radio); padding: 20px 24px; max-width: 480px; box-shadow: 0 3px 0 var(--verde-texto); }
.heroe-foto { display: flex; justify-content: center; align-items: flex-end; }
.heroe-foto img { width: 100%; max-width: 520px; border-radius: var(--radio) var(--radio) 0 0; }

/* Precios de un vistazo */
.precios { padding-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.precios-titulo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.precios-titulo h2 { font-size: 40px; line-height: 40px; }
.precios-titulo p { font-size: 15px; line-height: 22px; color: var(--tinta-suave); }
.precios-grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 12px; }
.tarjeta-precio {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; text-align: center; text-decoration: none;
  background: var(--fondo-elevado); border: 1px solid var(--linea); border-radius: var(--radio);
  transition: transform .15s ease, border-color .15s ease;
}
.tarjeta-precio:hover { color: var(--tinta); border-color: var(--verde-pegote); transform: translateY(-2px); }
.tarjeta-precio.destacada { border: 2px solid var(--verde-pegote); }
.tarjeta-precio img { height: 90px; width: auto; }
.etiqueta { font-weight: 600; font-size: 13px; line-height: 18px; text-transform: uppercase; }
.tarjeta-precio .monto { margin-top: auto; font-size: 30px; line-height: 30px; }

/* Sellos */
.sellos { list-style: none; margin-block: 0; padding-block: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; font-weight: 600; font-size: 15px; line-height: 22px; }
.sellos li { position: relative; }
.sellos a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.sellos li + li::before { content: "●"; position: absolute; left: -22px; color: var(--verde-pegote); }

/* ¿Qué tenés que pegar? */
.trabajos { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 48px; }
.titulo-trabajos { text-align: center; font-size: clamp(44px, 11vw, 64px); line-height: .94; }
.caso {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; align-items: center;
  background: var(--fondo-elevado); border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px;
}
.caso-texto { display: flex; flex-direction: column; gap: 16px; }
.volanta { font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--verde-texto); }
.caso h3 { font-size: clamp(34px, 8vw, 44px); line-height: 1; }
.consejo { display: flex; gap: 12px; align-items: flex-start; }
.consejo img { width: 56px; height: auto; flex-shrink: 0; }
.consejo p { background: var(--fondo); border-radius: var(--radio); padding: 12px 16px; }
.precios-caso { display: flex; flex-wrap: wrap; gap: 12px; }
.precio-caso { background: var(--naranja-suave); border-radius: var(--radio-chico); padding: 12px 16px; }
.precio-caso .monto { margin-top: 4px; font-size: 36px; line-height: 36px; }
.caso-foto { display: flex; justify-content: center; }
.caso-foto img { width: auto; }
.foto-alta { height: clamp(240px, 60vw, 340px); }
.foto-media { height: clamp(230px, 56vw, 320px); }

.caso.oscuro { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }
.oscuro .volanta { color: var(--lapiz); }
.oscuro .consejo p, .oscuro .precio-caso { background: var(--fondo); color: var(--tinta); }
.oscuro .boton { color: var(--fondo); }
.oscuro .boton:hover { background: var(--fondo); color: var(--tinta); border-color: var(--fondo); }

.casos-chicos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.caso-chico {
  display: grid; grid-template-columns: 1fr 110px; gap: 20px; align-items: center;
  background: var(--fondo-elevado); border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px;
}
.caso-chico-texto { display: flex; flex-direction: column; gap: 12px; }
.caso-chico h3 { font-size: 32px; line-height: 32px; }
.detalle { font-size: 15px; line-height: 22px; color: var(--tinta-suave); }
.monto-grande { font-size: 40px; line-height: 40px; }
.caso-chico .boton { font-size: 18px; }
.caso-chico img { width: 110px; height: 230px; object-fit: contain; }
.otros { text-align: center; color: var(--tinta-suave); }
.otros a { font-weight: 600; }

/* Empresas */
.empresas { background: var(--naranja-suave); padding-block: 64px; }
.empresas-grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; align-items: center; }
.empresas-texto { display: flex; flex-direction: column; gap: 16px; }
.empresas h2, .preguntas h2, .pie h2 { font-size: clamp(40px, 10vw, 56px); line-height: .93; }
.charla { display: flex; flex-direction: column; gap: 12px; }
.mensaje { max-width: 420px; padding: 12px 16px; }
.recibido { align-self: flex-start; background: var(--fondo-elevado); border-radius: 14px 14px 14px 4px; }
.enviado { align-self: flex-end; background: var(--tinta); color: var(--fondo); border-radius: 14px 14px 4px 14px; }
.charla figcaption { align-self: center; font-size: 13px; line-height: 18px; color: var(--tinta); }

/* Preguntas */
.preguntas { max-width: 860px; margin-inline: auto; padding: 64px 24px; display: flex; flex-direction: column; gap: 16px; }
.preguntas h2 { margin-bottom: 8px; text-align: center; }
.pregunta { background: var(--fondo-elevado); border: 1px solid var(--linea); border-radius: var(--radio); }
.pregunta summary { padding: 16px 24px; font-weight: 600; cursor: pointer; border-radius: var(--radio); }
.pregunta p { padding: 0 24px 16px; color: var(--tinta-suave); }

/* Pie */
.pie { background: var(--tinta); color: var(--fondo); }
.pie-grilla { padding-block: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; align-items: center; }
.pie-foto { display: flex; justify-content: center; }
.pie-foto img { width: 100%; max-width: 280px; }
.pie-texto { display: flex; flex-direction: column; gap: 16px; }
.pie address { font-style: normal; display: flex; flex-direction: column; gap: 16px; color: var(--linea); }
.pie address a { display: inline-block; padding-block: 8px; margin-block: -8px; color: var(--fondo); font-weight: 600; }
.pie address a:hover { color: var(--lapiz); }
.boton-lapiz { min-height: 48px; padding: 0 24px; color: var(--lapiz); font-size: 22px; }
.boton-lapiz:hover { background: var(--lapiz); color: var(--tinta); border-color: var(--lapiz); }
.pie-firma { padding: 16px 24px; text-align: center; font-size: 13px; line-height: 18px; color: var(--firma); border-top: 1px solid var(--linea-oscura); }

/* Ventas en MercadoLibre al lado del botón principal: pastilla crema como el menú (contraste AA sobre el verde) */
.heroe-accion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.prueba {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: var(--radio-chico);
  background: var(--fondo-elevado); color: var(--tinta); font-weight: 600; font-size: 15px; line-height: 22px;
}
.prueba:hover { color: var(--verde-texto); }

/* Barra fija de WhatsApp: solo en celular, y solo cuando no se ve el botón del héroe ni el pie */
.barra-flotante { display: none; }

@media (max-width: 760px) {
  .caso .caso-foto { order: -1; }
}

@media (max-width: 600px) {
  .barra-flotante:not([hidden]) {
    display: block; position: fixed; z-index: 5; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--fondo-elevado); border-top: 1px solid var(--linea); box-shadow: 0 -4px 16px rgb(35 42 61 / .12);
    animation: asomar .2s ease-out;
  }
  .barra-flotante .boton-wa { width: 100%; justify-content: center; min-height: 52px; }
  .precios-grilla { grid-template-columns: repeat(2, 1fr); }
  .tarjeta-precio:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sellos { gap: 8px 20px; }
  .sellos li + li::before { content: none; }
  .caso, .caso-chico { padding: 24px 20px; }
  .caso-chico { grid-template-columns: 1fr 80px; gap: 12px; }
  .caso-chico img { width: 80px; height: 180px; }
  .heroe-texto { padding-bottom: 40px; }
  .boton-wa { font-size: 22px; padding: 0 24px; }
}

@keyframes asomar { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .barra-flotante:not([hidden]) { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
