/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  transition: box-shadow var(--transition), background var(--transition), backdrop-filter var(--transition);
}

nav.scrolled,
nav.menu-open {
  background: rgba(0, 0, 0, 0.92);
}

nav.scrolled:not(.menu-open) {
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-img {
  height: 68px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--red);
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.6) 100%);
}

/* ─── HERO CARRUSEL ─────────────────────────────────────────── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  animation: hero-kenburns 7s ease-in-out forwards;
}

.hero-slide-1,
.hero-slide-2,
.hero-slide-3 {
  filter: saturate(1.1);
}

@keyframes hero-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  background: var(--red);
  transform: scale(1.3);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-title {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--red);
}

.hero-text {
  font-size: 1.15rem;
  color: #E5E5E5;
  margin-bottom: 36px;
  max-width: 560px;
}

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

/* ─── SECTION ───────────────────────────────────────────────── */
section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-intro {
  max-width: 680px;
  color: var(--mid);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-intro {
  color: var(--white);
}

.section-light {
  background: var(--lighter);
}

/* ─── GRID ──────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 32px;
}

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

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: #B0B0B0;
  padding: 64px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2A2A2A;
}

.footer-brand .logo-img {
  height: 56px;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-family: var(--heading);
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal-left].revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--black);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 20px 24px;
    font-size: 1.05rem;
    border-top: 1px solid #222;
  }

  .nav-links a.nav-cta {
    width: calc(100% - 48px);
    margin: 24px;
    text-align: center;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ─── PRODUCT HERO (fondo con Ken Burns) ───────────────────── */
.product-hero {
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/images/fondo-productos.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  animation: product-hero-kenburns 18s ease-in-out infinite alternate;
}

.product-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%);
}

.product-hero > .container {
  position: relative;
  z-index: 1;
}

@keyframes product-hero-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}
