/* =========================
   VARIABLES
========================= */
:root {
  --orange: #f79027;
  --black: #282120;
  --white: #ffffff;
  --beige: #fbf3e8;
  --gray: #f5f5f5;
}

/* =========================
   RESET / BASE
========================= */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--gray);
  color: var(--black);
  line-height: 1.7;
  font-size: 19px;
}

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

/* =========================
   CONTAINER (DESKTOP MÁS ANCHO)
========================= */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================
   HEADER
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--black);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* =========================
   NAV
========================= */
nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: var(--orange);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  transition: 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--orange);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* =========================
   HERO / CARRUSEL (FIX DEFINITIVO)
========================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 85svh;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  display: none;
}

.hero-slider .slide.active {
  display: block;
  z-index: 1;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-content p {
  font-size: 1.6rem;
  max-width: 820px;
  margin-bottom: 34px;
}

/* =========================
   BOTÓN
========================= */
.btn {
  background: var(--orange);
  color: var(--black);
  padding: 16px 40px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

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

/* =========================
   SECCIONES
========================= */
section {
  padding: 90px 0;
}

section h2 {
  text-align: center;
  font-size: 3.2rem;
  margin-bottom: 18px;
}

section h2::after {
  content: "";
  width: 70px;
  height: 4px;
  background: var(--orange);
  display: block;
  margin: 18px auto 0;
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  font-size: 1.45rem;
  color: #555;
}

/* =========================
   SERVICIOS
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.service-card {
  background: var(--white);
  border-radius: 22px;
  padding: 42px 38px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  border-top: 5px solid var(--orange);
}

.service-card h3 {
  color: var(--orange);
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #444;
}

.services-cta {
  margin-top: 60px;
  text-align: center;
}

/* =========================
   WHY ALLPORK
========================= */
.why-allpork {
  background: var(--black);
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}

.why-card {
  background: #1f1b1a;
  border-radius: 22px;
  padding: 42px 36px;
  border-top: 5px solid var(--orange);
}

.why-card h3 {
  color: var(--orange);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.why-card p {
  font-size: 1.2rem;
  color: #e6e6e6;
}

/* =========================
   EQUIPAMIENTO / SISTEMAS
========================= */
.equipment-grid,
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}

.equipment-card,
.system-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  transition: 0.3s ease;
}

.equipment-card:hover,
.system-card:hover {
  transform: translateY(-6px);
}

.equipment-card img,
.system-card img {
  height: 240px;
  object-fit: cover;
}

.equipment-card h3,
.system-card h3 {
  margin: 22px 24px 10px;
  color: var(--orange);
  font-size: 1.8rem;
}

.equipment-card p,
.system-card p {
  margin: 0 24px 28px;
  font-size: 1.2rem;
  color: #444;
}

/* =========================
   QUIÉNES SOMOS
========================= */
.qs-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.qs-text p {
  font-size: 1.25rem;
  color: #444;
}

.qs-image img {
  border-radius: 22px;
  height: 380px;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(0,0,0,0.2);
}

/* =========================
   TESTIMONIOS
========================= */
.testimonios {
  background: var(--beige);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonio-card {
  background: var(--white);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  font-size: 1.2rem;
}

/* =========================
   CONFIANZA / PRODUCTORES
========================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-item {
  background: var(--white);
  border-radius: 22px;
  padding: 34px 26px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.trust-item strong {
  font-size: 2.8rem;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}

.trust-item p {
  font-size: 1.05rem;
  color: #444;
}

/* =========================
   CONTACTO
========================= */
form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

form input,
form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 22px;
  font-size: 1.1rem;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 36px 20px;
  font-size: 1.1rem;
}

/* =========================
   WHATSAPP
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  z-index: 999;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  body {
    font-size: 18px;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 78px;
    right: 0;
    background: var(--black);
    flex-direction: column;
    width: 240px;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .qs-layout {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  section {
    padding: 70px 0;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 22px;
  }
}
@media (min-width: 1200px) {
  p,
  .section-intro,
  .service-card p,
  .why-card p,
  .equipment-card p,
  .system-card p,
  .qs-text p,
  .testimonio-card {
    font-size: 1.4rem;
    line-height: 1.75;
  }
}











