/* ===== Porcícola Las Mercedes ===== */
:root {
  --red: #e1141b;
  --red-dark: #a8070d;
  --ink: #1d1b1b;
  --ink-2: #2a2626;
  --muted: #6b6464;
  --warm: #f7f2ee;
  --line: #e8e0da;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 27, 27, .08);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.text-red { color: var(--red); }

/* ---- Botones ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: .95rem; padding: .8rem 1.4rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225, 20, 27, .3); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---- Header ---- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.nav a:not(.btn) { position: relative; color: var(--ink-2); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: .65rem 1.2rem; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; color: #fff; padding-top: 76px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(15,12,12,.92) 0%, rgba(15,12,12,.72) 45%, rgba(15,12,12,.25) 100%),
  url("https://images.unsplash.com/photo-1607623814075-e51df1bdc82f?w=1920&q=75&auto=format&fit=crop") center/cover;
  animation: zoom 20s ease-out forwards; }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__content { position: relative; padding: 4rem 0 7rem; max-width: 1200px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 900; max-width: 14ch; margin: 1.2rem 0; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 56ch; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; padding: .4rem .9rem; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225,20,27,.3); }
.trust { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.45); border-top: 1px solid rgba(255,255,255,.12); }
.trust__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1rem 0; font-size: .85rem; font-weight: 600; font-family: var(--font-head); color: rgba(255,255,255,.9); }

/* ---- Secciones ---- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--warm { background: var(--warm); }
.section--dark { background: var(--ink); color: #fff; }
.section--red { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head p { color: var(--muted); }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .8rem; }
.eyebrow--light { color: rgba(255,255,255,.85); }
.section--dark .eyebrow--light { color: var(--red); }
.bar { width: 64px; height: 4px; background: var(--red); border-radius: 2px; margin-top: 1.5rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.grid-2--center { align-items: center; }
.grid-2--reverse > :first-child { order: 2; }

.quote { margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-left: 4px solid var(--red); background: var(--warm); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 500; font-style: italic; }

/* ---- Tarjetas ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--red); transition: width .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { width: 100%; }
.card__num { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; color: var(--red); opacity: .9; margin-bottom: 1rem; }
.card p { color: var(--muted); }
.card__link { display: inline-block; margin-top: 1.4rem; font-family: var(--font-head); font-weight: 700; color: var(--red); }

/* ---- Features ---- */
.feature__img { aspect-ratio: 4 / 3.4; border-radius: 20px; background: var(--img) center/cover; box-shadow: 0 25px 50px rgba(0,0,0,.15); position: relative; }
.feature__img::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 40%; height: 40%; border: 4px solid var(--red); border-radius: 20px; z-index: -1; }
.feature .btn { margin-top: 1.8rem; }
.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(225,20,27,.1); color: var(--red); font-weight: 800; font-size: .75rem; display: grid; place-items: center; }
.checklist--light li::before { background: rgba(255,255,255,.2); color: #fff; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.two-lists h4 { font-size: .95rem; margin-bottom: .8rem; }

/* ---- Productos ---- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__img { aspect-ratio: 16 / 10; background: var(--img) center/cover; transition: transform .6s; }
.product:hover .product__img { transform: scale(1.06); }
.product__body { padding: 1.3rem 1.4rem 1.5rem; position: relative; background: #fff; }
.product__body p { color: var(--muted); font-size: .95rem; }

/* ---- Por qué ---- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why__item { padding: 1.8rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); transition: border-color .3s, transform .3s; }
.why__item:hover { border-color: var(--red); transform: translateY(-4px); }
.why__icon { font-size: 1.8rem; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: rgba(225,20,27,.15); margin-bottom: 1.2rem; }
.why__item p { color: rgba(255,255,255,.7); font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 3rem; gap: 1.5rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; color: var(--red); line-height: 1; }
.stat > span { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---- Proceso ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 16px); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step__n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line); }
.step p { color: var(--muted); font-size: .95rem; max-width: 26ch; margin-inline: auto; }

/* ---- Formulario ---- */
.section--red p { color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }
.form { background: #fff; color: var(--ink); border-radius: 20px; padding: 2.2rem; box-shadow: 0 30px 60px rgba(0,0,0,.25); display: grid; gap: 1rem; }
.form h3 { font-size: 1.4rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; font-family: var(--font-head); }
.form input, .form select, .form textarea { font: inherit; font-family: var(--font-body); font-weight: 400; font-size: .95rem; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,20,27,.12); }

/* ---- Contacto ---- */
.contact { list-style: none; display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.contact li { display: flex; gap: 1rem; align-items: flex-start; }
.contact li > span { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--warm); font-size: 1.3rem; }
.contact a { color: var(--red); font-weight: 600; }
.map { border-radius: 20px; overflow: hidden; min-height: 380px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---- Footer ---- */
.footer { background: #141212; color: rgba(255,255,255,.7); padding: 4rem 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer__logo { display: inline-block; background: #fff; border-radius: 14px; padding: .8rem 1.1rem; margin-bottom: 1rem; }
.footer__logo img { height: 70px; width: auto; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer__inner a { display: block; margin-bottom: .5rem; transition: color .2s; }
.footer__inner a:hover { color: var(--red); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; text-align: center; }

/* ---- WhatsApp flotante ---- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.45); animation: pulse 2.4s infinite; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---- Animación al hacer scroll ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .wa-float { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .why, .stats { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 1.1rem; font-size: .85rem; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); transform: translateY(-120%); transition: transform .35s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: .9rem .5rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__cta { margin-top: 1rem; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .grid-2, .cards { grid-template-columns: 1fr; }
  .grid-2--reverse > :first-child { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .trust__inner { justify-content: center; font-size: .78rem; }
}
@media (max-width: 560px) {
  .header__logo img { height: 46px; }
  .products, .why, .two-lists { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__content { padding-bottom: 9rem; }
  .hero__actions .btn { width: 100%; }
  .trust__inner span:nth-child(n+4) { display: none; }
  .form { padding: 1.5rem; }
  .feature__img { aspect-ratio: 16 / 11; }
  .feature__img::after { display: none; }
}
