/* Operación Pollo Hermosillo — estilos (colores y letra del Instagram @operacionpollo.hmo) */
:root {
  --am: #fbd431;        /* amarillo de las publicaciones */
  --am-claro: #fde88a;
  --ro: #e23c30;        /* rojo de las publicaciones */
  --ro-osc: #a8161b;
  --tinta: #24150d;
  --blanco: #ffffff;
  --titulo: "Archivo Black", "Arial Black", Impact, sans-serif;
  --texto: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ancho: 1080px;
  --lado: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--am); color: var(--tinta); font-family: var(--texto); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

section { position: relative; overflow: hidden; }
.am { background: var(--am); color: var(--tinta); }
.ro { background: var(--ro); color: var(--blanco); }
.dentro { position: relative; max-width: var(--ancho); margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) var(--lado); }

.sobre { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ro); margin: 0 0 0.7rem; }
.sobre--am { color: var(--am); }
.texto { font-size: 1.15rem; max-width: 30em; }
.am h2 em { font-style: normal; color: var(--ro); display: block; }
.ro h2 em { font-style: normal; color: var(--am); }

/* Barra */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.4rem; padding: 0.55rem var(--lado); background: var(--am); border-bottom: 3px solid var(--tinta); }
.marca { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; margin-right: auto; }
.marca__txt { font-family: var(--titulo); font-size: 0.95rem; line-height: 1.05; letter-spacing: 0.2em; }
.marca img { width: 33px; }
.menu { display: flex; gap: 1.3rem; }
.menu a { text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.menu a:hover { color: var(--ro); }

/* Botones */
.boton { display: inline-block; text-decoration: none; text-align: center; font-weight: 700; font-size: 1.02rem; background: var(--ro); color: #fff; padding: 0.85rem 1.7rem; border-radius: 999px; transition: transform 0.15s ease, box-shadow 0.15s ease; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); }
.boton:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22); }
.boton:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22); }
.boton:focus-visible, .menu a:focus-visible, .texto a:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.ro .boton:focus-visible { outline-color: #fff; }
.boton--chico { padding: 0.45rem 1.2rem; font-size: 0.95rem; }
.boton--grande { font-size: 1.15rem; padding: 1.05rem 2.1rem; }
.boton--am { background: var(--am); color: var(--tinta); }
.boton--negro { background: var(--tinta); color: #fff; }
.boton--blanco { background: #fff; color: var(--ro); }
.acciones { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.acciones--centro { justify-content: center; }

/* Inicio */
.hero { background: linear-gradient(180deg, #fdc71c 0%, var(--am) 70%); }
.cerro { position: absolute; left: -10%; right: -10%; bottom: -2px; height: 46%; background: #f9b81a; opacity: 0.55; clip-path: polygon(0 100%, 0 70%, 18% 58%, 34% 30%, 46% 12%, 52% 6%, 58% 14%, 72% 40%, 86% 60%, 100% 68%, 100% 100%); }
.hero__dentro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero__sobre { font-weight: 600; font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin: 0 0 0.2rem; }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 4.6rem); color: var(--ro); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 1.4rem; }
.hero__fecha { font-size: 1.15rem; max-width: 17em; margin: 0; }
.hero__fecha strong { display: block; font-family: var(--titulo); font-weight: 400; font-size: 1.5rem; color: var(--ro); }
.hero__pollo, .aliados__pollo { position: relative; display: grid; place-items: center; }
.hero__pollo img, .aliados__pollo img { position: relative; width: min(100%, 380px); }
.hero__pollo img { transform-origin: 50% 100%; animation: mecer 5s ease-in-out infinite; }
.circulo { position: absolute; width: min(108%, 430px); aspect-ratio: 1; border-radius: 50%; background: var(--am-claro); opacity: 0.75; }
.sello { position: absolute; z-index: 2; left: -4%; top: -6%; width: clamp(105px, 15vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--ro); color: #fff; display: grid; place-content: center; text-align: center; rotate: -12deg; line-height: 1; }
.sello span { font-weight: 600; font-size: clamp(0.95rem, 1.8vw, 1.25rem); }
.sello b { font-family: var(--titulo); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.1rem); }

@keyframes mecer { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes latir { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* Contador */
.contador__dentro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.contador h2 { font-family: var(--texto); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0; }
.sobre--am { display: flex; align-items: center; gap: 0.55rem; }
.vivo { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--am); animation: latir 1.6s ease-in-out infinite; }
.cifra { font-family: var(--titulo); font-size: clamp(5rem, 13vw, 8.5rem); line-height: 0.95; margin: 0.05em 0 0.1em; color: var(--am); font-variant-numeric: tabular-nums; }
.contador__faltan { font-size: 1.1rem; margin: 0; }
.termo { position: relative; display: flex; align-items: center; }
.termo__bulbo { flex: none; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff3a8, var(--am) 60%); border: 5px solid #fff; margin-right: -14px; z-index: 1; }
.termo__tubo { flex: 1; height: 34px; background: rgba(0, 0, 0, 0.2); border: 5px solid #fff; border-left: 0; border-radius: 0 999px 999px 0; overflow: hidden; }
.termo__tubo span { display: block; height: 100%; min-width: 22px; background: linear-gradient(90deg, var(--am), #ffb300); border-radius: 0 999px 999px 0; transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.termo__marcas { display: flex; justify-content: space-between; margin: 0.45rem 0 0 56px; font-family: var(--titulo); font-size: 0.95rem; }
.contador__datos { display: flex; justify-content: space-between; gap: 1rem; margin: 1.3rem 0 0.4rem; font-size: 1.05rem; }
.contador__datos strong { font-family: var(--titulo); font-weight: 400; font-size: 1.3rem; color: var(--am); }
.contador__nota { font-size: 0.85rem; opacity: 0.85; margin-bottom: 1.4rem; }
/* El pollito va parado sobre el termómetro */
.termo { margin-top: 118px; }
.contador__pollo { position: absolute; right: 10px; bottom: 46px; width: 108px; }

/* Quiénes somos */
.dos { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.dos--centro { align-items: center; }
.remate { font-family: var(--titulo); font-size: 1.5rem; line-height: 1.15; color: var(--ro); margin: 1.4rem 0 0; }
.datos { display: grid; gap: 0.9rem; }
.datos li { background: var(--ro); color: #fff; border-radius: 22px; padding: 1.1rem 1.4rem; display: grid; grid-template-columns: 5.2rem 1fr; gap: 1rem; align-items: center; }
.datos b { font-family: var(--titulo); font-weight: 400; font-size: 1.9rem; color: var(--am); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.mv__caja { position: relative; background: #fff; border-radius: 26px; padding: 2rem; border-left: 8px solid var(--ro); }
.mv__caja h3 { font-size: clamp(2.2rem, 4.5vw, 3rem); color: var(--ro); margin-bottom: 0.8rem; }
.mv__caja p:not(.sobre) { font-weight: 600; font-size: 1.1rem; margin: 0; }
.mv__caja .sobre { margin: 0; }
.mv__caja img { position: absolute; right: 1rem; top: -2.2rem; width: 96px; }
.etiqueta { display: inline-block; margin-top: 1.2rem; background: var(--ro); color: #fff; font-weight: 600; font-size: 0.9rem; padding: 0.4rem 1rem; border-radius: 999px; }

/* Pastillas */
.pastillas { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pastillas li { font-weight: 600; padding: 0.7rem 1.5rem; border-radius: 999px; }
.pastillas--osc { flex-direction: column; max-width: 24rem; }
.pastillas--osc li { background: var(--ro-osc); color: #fff; text-align: center; font-size: 1.15rem; padding: 0.9rem 1.5rem; }
.pastillas--ro { margin-bottom: 1.8rem; }
.pastillas--ro li { background: var(--ro); color: #fff; }

/* La cena */
.cena__dentro { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: end; padding-bottom: 0; padding-right: 0; }
.cena__lista { padding-bottom: clamp(3rem, 8vw, 5.5rem); }
/* El chef va pegado a la orilla derecha de la pantalla, como en la publicación */
.cena__pollo { width: min(100%, 330px); justify-self: end; margin-bottom: -4%; margin-right: min(0px, calc((var(--ancho) - 100vw) / 2)); }

/* A dónde llegan */
.donde { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
.texto a { font-weight: 600; text-decoration-color: var(--ro); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Voluntarios */
.tareas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.tareas li { background: var(--am); color: var(--tinta); border-radius: 22px; padding: 1.6rem; }
.tareas h3 { margin-bottom: 0.4rem; }
.tareas p { margin: 0; }
.vol__pie { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-top: 2.2rem; }
.frase { font-size: 1.2rem; max-width: 20em; margin-bottom: 1.4rem; }
.vol__pie img { justify-self: end; width: min(100%, 400px); }

/* Empresas */
.numeros { counter-reset: n; display: grid; gap: 1rem; margin: 1.8rem 0 2rem; }
.numeros li { counter-increment: n; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: center; font-size: 1.12rem; }
.numeros li::before { content: counter(n); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ro); color: #fff; font-family: var(--titulo); }

/* Donar */
.final__dentro { text-align: center; display: grid; justify-items: center; }
.final__dentro img { width: min(70%, 300px); margin-bottom: 1.5rem; }
.final h2 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); color: var(--am); }
.final .texto { margin: 0 auto; }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; width: 100%; max-width: 760px; margin-top: 2.8rem; text-align: left; }
.extra { background: var(--am); color: var(--tinta); border-radius: 22px; padding: 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.extra h3 { font-size: 1.3rem; }
.extra p { margin: 0; }
.cuenta { margin: 0; display: grid; gap: 0.45rem; width: 100%; }
.cuenta dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ro-osc); }
.cuenta dd { margin: 0; font-weight: 600; }
.clabe { font-size: 1.12rem; letter-spacing: 0.04em; overflow-wrap: anywhere; user-select: all; }
.extra button { border: 0; cursor: pointer; font-family: inherit; margin-top: 0.3rem; }
.boton--wa { background: #1fa855; color: #fff; width: 100%; }

/* Pie */
.pie { background: var(--tinta); color: #f6e9c8; font-size: 0.95rem; }
.pie__dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-top: 1.8rem; padding-bottom: 1.8rem; }
.pie .marca__txt { color: var(--am); }
.pie__ligas { display: flex; gap: 1.4rem; font-weight: 600; }

/* Aparición al hacer scroll (solo si el JS está activo) */
.js .aparece { opacity: 0; translate: 0 18px; transition: opacity 0.6s ease, translate 0.6s ease; }
.js .aparece.visible { opacity: 1; translate: 0 0; }

/* Móvil */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .menu { display: none; }
  .hero__dentro, .contador__dentro, .dos, .mv, .donde, .tareas, .vol__pie, .extras { grid-template-columns: 1fr; }
  .hero__pollo img { width: min(64%, 260px); }
  .hero__pollo .circulo { width: min(74%, 300px); }
  .sello { left: 4%; top: -2%; }
  .acciones .boton { width: 100%; }
  .termo { margin-top: 100px; }
  .contador__pollo { width: 90px; }
  .sobre--am { max-width: 15em; }
  .cena__dentro { grid-template-columns: 1fr; padding-right: var(--lado); }
  .cena__lista { padding-bottom: 0; }
  .cena__pollo { width: 200px; margin-right: calc(var(--lado) * -1); }
  .pastillas--osc { max-width: none; }
  .aliados__pollo img { width: min(70%, 280px); }
  .aliados__pollo .circulo { width: min(80%, 320px); }
  .vol__pie img { justify-self: center; }
  .mv__caja img { width: 78px; }
}
