/* ============================================================
   POLLOS DON JUAN — Hoja de estilos principal
   Paleta tomada del logo: rojo, negro cálido, dorado, crema
   ============================================================ */

:root {
  --red: #c1121f;
  --red-dark: #8e0e17;
  --red-deep: #6a0a11;
  --gold: #e8963f;
  --gold-light: #f2b24c;
  --dark: #1c140f;
  --dark-2: #2a1e16;
  --dark-3: #3a2b20;
  --cream: #faf5ee;
  --cream-2: #f3eade;
  --white: #ffffff;
  --ink: #2b2018;
  --muted: #7d6c5d;
  --line: #e8ddcf;
  --wa: #25d366;
  --wa-dark: #1ebe5d;

  --font-display: 'Anton', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(28, 20, 15, 0.10);
  --shadow-lg: 0 20px 50px rgba(28, 20, 15, 0.18);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Tipografía ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: 1px; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { background: var(--wa-dark); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(193, 18, 31, 0.3);
}
.btn-red:hover { background: var(--red-dark); }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 20, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 150, 63, 0.15);
  transition: box-shadow 0.3s ease;
}

.header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 54px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.brand-name span { color: var(--gold); display: block; font-size: 0.72rem; letter-spacing: 3px; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--gold-light); }

.nav a.active { color: var(--gold); }

.nav .nav-cta {
  background: var(--wa);
  color: #fff;
  border-radius: 50px;
  padding: 10px 20px;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav .nav-cta:hover { background: var(--wa-dark); color: #fff; }
.nav .nav-cta svg { width: 17px; height: 17px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-color: var(--dark);
  background-image:
    linear-gradient(115deg, rgba(28, 20, 15, 0.96) 0%, rgba(42, 30, 22, 0.88) 45%, rgba(106, 10, 17, 0.55) 100%),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to top, var(--cream), transparent);
  opacity: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 90px 20px 100px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 150, 63, 0.15);
  border: 1px solid rgba(232, 150, 63, 0.4);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 20px 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(360px, 80%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Franja de datos bajo el hero */

.stats {
  background: var(--dark-2);
  border-top: 1px solid rgba(232, 150, 63, 0.2);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.stat {
  padding: 26px 18px;
  text-align: center;
  color: var(--white);
}

.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.08); }

.stat b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  letter-spacing: 1px;
}

.stat small { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; }

/* ---------- Secciones ---------- */

.section { padding: 90px 0; }
.section.alt { background: var(--white); }
.section.dark {
  background-color: var(--dark);
  background-image: linear-gradient(120deg, rgba(193, 18, 31, 0.12), transparent 60%);
  color: var(--white);
}
.section.dark .section-head p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Tarjetas de valor ---------- */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card .icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(193, 18, 31, 0.25);
}

.card .icon svg { width: 28px; height: 28px; stroke: #fff; }

.card h3 { margin-bottom: 10px; color: var(--dark); }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Productos ---------- */

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-img {
  height: 200px;
  background-color: var(--cream-2);
  background-image: linear-gradient(rgba(28, 20, 15, 0.0), rgba(28, 20, 15, 0.12));
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-img .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 50px;
}

.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.product-body h3 { color: var(--dark); margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.product-body .btn {
  margin-top: 18px;
  padding: 11px 20px;
  font-size: 0.9rem;
  justify-content: center;
}

/* Filtro de categorías (productos.html) */

.cat-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 60px 0 26px;
}

.cat-title:first-of-type { margin-top: 0; }

.cat-title h2 { color: var(--dark); font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

.cat-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
}

/* ---------- Clientes / para quién ---------- */

.client-card {
  text-align: center;
  padding: 34px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 150, 63, 0.25);
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease;
}

.client-card:hover { background: rgba(232, 150, 63, 0.1); transform: translateY(-4px); }

.client-card .emoji { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.client-card h3 { color: var(--gold-light); margin-bottom: 8px; }
.client-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

/* ---------- Cobertura ---------- */

.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.coverage-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.coverage-list li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-3);
}

.coverage-list li::before { content: "📍 "; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA final ---------- */

.cta-band {
  background:
    linear-gradient(120deg, rgba(142, 14, 23, 0.95), rgba(193, 18, 31, 0.88)),
    url('../img/cta.jpg') center/cover;
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 30px; font-size: 1.1rem; }

/* ---------- Proceso (nosotros) ---------- */

.steps { counter-reset: step; }

.step { position: relative; padding-left: 0; }

.step .num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.9;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

/* ---------- Página interior: banner ---------- */

.page-banner {
  background-color: var(--dark);
  background-image:
    linear-gradient(115deg, rgba(28, 20, 15, 0.95), rgba(106, 10, 17, 0.75)),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}

.page-banner h1 { color: #fff; }
.page-banner p { color: rgba(255, 255, 255, 0.8); max-width: 620px; margin: 14px auto 0; font-size: 1.1rem; }

/* ---------- Contacto ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.contact-card .icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card .icon.green { background: linear-gradient(135deg, var(--wa), var(--wa-dark)); }
.contact-card .icon.gold { background: linear-gradient(135deg, var(--gold), #c97a28); }

.contact-card .icon svg { width: 26px; height: 26px; stroke: #fff; }

.contact-card h3 { color: var(--dark); margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 0.95rem; }
.contact-card a.link { color: var(--red); font-weight: 700; }
.contact-card a.link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer .brand img { height: 64px; }

.footer p, .footer li { font-size: 0.92rem; }

.footer h4 {
  font-family: var(--font-display);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer ul li { margin-bottom: 10px; }
.footer ul a:hover { color: var(--gold-light); }

.footer-info li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.wa-float:hover { transform: scale(1.1); }

.wa-float svg { width: 32px; height: 32px; fill: #fff; }

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Animaciones de aparición ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo img { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid rgba(232, 150, 63, 0.2);
    z-index: 98;
  }

  .nav.open { transform: translateY(0); }

  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav .nav-cta { margin-left: 0; justify-content: center; margin-top: 8px; }

  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 70px 20px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(240px, 60%); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .stat:nth-child(-n+2) { border-top: none; }
  .coverage { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; padding: 0 10px; }
  .cta-band { padding: 46px 24px; }
  .brand-name { font-size: 1rem; }
  .brand img { height: 44px; }
}
