:root {
  --bg: #070707;
  --text: #eaeaea;
  --muted: #bdbdbd;
  --gold: #d5a628;
  --gold-2: #b98f1f;
  --border: rgba(255, 255, 255, 0.12);
  --glass: rgba(0, 0, 0, 0.65);

  --container: 1100px;
  --radius: 12px;
  --nav-h: 64px;
  --space: 24px;
}

/* ================= RESET ================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ================= CONTAINER ================= */

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* ================= NAVBAR ================= */

.navbar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  backdrop-filter: blur(10px);
  background: rgba(7, 7, 7, 0.75);
}

.navbar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.navbar__menu {
  list-style: none;
  display: flex;
  gap: 32px;
}

.navbar__menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: white;
  transition: background 0.3s ease;
}

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

.navbar__menu a:hover::after {
  background: var(--gold);
}

.navbar__toggle {
  display: none;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;

  background: url("../images/hero.jpg") center / cover no-repeat;
  animation: zoomHero 20s ease-in-out infinite alternate;
}

/* Zoom cinematográfico */
@keyframes zoomHero {
  from {
    background-size: 100%;
  }
  to {
    background-size: 110%;
  }
}

/* Overlay oscuro */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.65)
  );
}

/* Contenido animado */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 650px;

  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Texto */

.hero__eyebrow {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero__subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.6;
}

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

/* ================= BOTONES ================= */

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--gold);
  color: black;
}

.btn--primary:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ================= ABOUT (WHAT WE DO) ================= */

.about {
  position: relative;
  padding: 90px 0;
  overflow: hidden;

  /* imagen solo para esta sección */
  background: url("../images/petrolera.jpg") center / cover no-repeat;

  /* efecto premium en desktop */
  background-attachment: fixed;
}

/* overlay oscuro para legibilidad */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92),
    rgba(0, 0, 0, 0.78)
  );
  z-index: 0;
}

/* asegura que el contenido quede arriba del overlay */
.about .container {
  position: relative;
  z-index: 1;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.about__text h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 14px;
  font-weight: 700;
}

.about__text p {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* contenedor del logo */
.about__logo {
  display: flex;
  justify-content: flex-end;
}

.about__logo img {
  width: min(320px, 85%);
  height: auto;
  display: block;

  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);

  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  :root {
    --space: 20px;
    --nav-h: 60px;
  }

  .navbar__toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    z-index: 1100;
  }

  .navbar__content {
    position: relative;
  }

  .navbar__menu {
    position: absolute;
    top: calc(var(--nav-h) - 8px);
    right: 0;
    background: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    gap: 16px;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .navbar__menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .about {
    padding: 70px 0;
    background-attachment: scroll; /* evita lag en móvil */
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about__logo {
    justify-content: flex-start;
  }

  .about__logo img {
    width: min(280px, 100%);
  }
}

@media (max-width: 320px) {
  :root {
    --space: 16px;
    --nav-h: 56px;
  }

  .container {
    width: min(var(--container), 94%);
  }
}

/* ================= PRODUCTS ================= */

.products {
  position: relative;
  padding: 110px 0;
  overflow: hidden;

  background: url("../images/granja-tanques.jpg") center / cover no-repeat;
  background-attachment: fixed; /* efecto premium en desktop */
}

/* Overlay oscuro para que el texto se lea perfecto */
.products::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 12, 18, 0.8),
    rgba(10, 25, 45, 0.5)
  );
  z-index: 0;
}

/* Asegura que el contenido quede encima del overlay */
.products .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-header p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 16px;
}

/* GRID */

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

/* CARD */

.product-card {
  background: rgba(0, 0, 0, 0.65);
  padding: 36px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
}

.product-card h3 {
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 19px;
  letter-spacing: 1px;
  font-weight: 600;
}

/* LISTAS */

.product-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-card li {
  color: #dcdcdc;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}

.product-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* HOVER PREMIUM */

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .products {
    padding: 80px 0;
    background-attachment: scroll; /* evita lag en móvil */
  }

  .section-header {
    margin-bottom: 50px;
  }

  .product-card {
    padding: 28px;
  }

  .product-card h3 {
    font-size: 17px;
  }

  .product-card li {
    font-size: 13px;
  }
}

/* ================= COMMODITIES ================= */

.commodities {
  position: relative;
  padding: 120px 0;
  overflow: hidden;

  background: url("../images/commodities\ \(2\).png") center / cover no-repeat;
  background-attachment: fixed;
}

/* Overlay oscuro premium para legibilidad */
.commodities::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 5, 5, 0.55),
    rgba(10, 18, 30, 0.35)
  );
  z-index: 0;
}

/* Contenido encima del overlay */
.commodities .container {
  position: relative;
  z-index: 1;
}

/* GRID */

.commodities__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* ================= TEXT ================= */

.commodities__text h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
  font-weight: 700;
}

.commodities__text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 600px;
  font-size: 16px;
}

/* ================= FORM ================= */

.commodities__form {
  background: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
}

.commodities__form:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.commodities__form h3 {
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 1px;
}

.commodities__form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inputs */

.commodities__form input,
.commodities__form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.commodities__form input:focus,
.commodities__form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

/* Botón ya usa tu clase global .btn--primary */

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .commodities__grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .commodities {
    padding: 90px 0;
    background-attachment: scroll; /* evita lag en móvil */
  }

  .commodities__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .commodities__form {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .commodities {
    padding: 80px 0;
  }

  .commodities__text p {
    font-size: 15px;
  }
}

/* ================= CORPORATE ================= */

.corporate {
  position: relative;
  padding: 100px 0;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(213, 166, 40, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(213, 166, 40, 0.06),
      transparent 45%
    ),
    linear-gradient(135deg, #0a0a0a, #111111);

  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Title */

.corporate__content h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
}

/* Grid */

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

/* Cards */

.corporate__item {
  background: rgba(255, 255, 255, 0.02);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.corporate__item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Labels */

.label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Values */

.value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Optional status style (por si lo vuelves a usar) */

.status--active {
  color: #4caf50;
}

/* Responsive */

@media (max-width: 768px) {
  .corporate {
    padding: 80px 0;
  }

  .corporate__content h2 {
    margin-bottom: 40px;
  }
}
