/* ===== CSS VARIABLES ===== */
:root {
  --cream: #F5F0E8;
  --dark: #100E0E;
  --gold: #B8860B;
  --gold-light: #ffee89;
  --text-dark: #210E00;
  --text-muted: #6B5F4E;
  --white: #FFFFFF;
  --card-bg: #100E0E;
  --border-gold: rgba(150, 101, 8, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lexend', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 2em;
  height: 0.08em;
  background: var(--gold);
}

/* ===== BUTTONS ===== */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 34px;
  background: #000;
  color: var(--gold);
  font-family: 'Lexend', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0px;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-dark:hover {
  background: var(--gold);
  color: #000;
  border-color: #000;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--white);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: transparent;
  color: var(--gold);
  font-family: 'Lexend', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid #333;
  padding: 0 60px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 95px;
  height: auto;
  margin-left: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-img img {
  width: 100%;
  height: auto;
  display: block;
}

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

.nav-links a {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 60px;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-icon-btn:hover {
  color: var(--gold);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 95px;
  left: 0;
  width: 100%;
  background: #000;
  border-bottom: 1px solid #333;
  padding: 0 32px;
  z-index: 99;
  gap: 20px;

  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s 0.5s;
}

.nav-mobile.open {
  max-height: 450px;
  padding: 24px 32px;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s;
}

.nav-mobile a {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.nav-mobile .btn-dark {
  margin-top: 8px;
  justify-content: center;
}

nav .btn-dark {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 24px;
}

/* ===== HERO ===== */
.hero .btn-dark {
  border: none;
  font-size: 20px;
  padding: 20px 44px;
}

.hero {
  padding-top: 70px;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #d9cfc0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 48px;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-hint span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(107, 95, 78, 0.5);
  border: 1px dashed rgba(201, 168, 76, 0.4);
  padding: 12px 20px;
}

.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 60px 100px 80px;
  width: 70%;
  min-width: 520px;
}

.hero-title {
  font-size: clamp(70px, 6.6vw, 98px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.1;
  white-space: nowrap;
}

.hero-desc {
  font-size: 20px;
  color: black;
  width: 100%;
  max-width: 800px;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.7;
}


/* ===== FEATURES ===== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-item {
  padding: 40px 36px;
  position: relative;
  text-align: center;
}

.feature-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 180px;
  background: var(--border-gold);
}

.feature-item:last-child::after {
  display: none;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 40%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ORIGEN ===== */
.origen {
  background-image: url("../img/origen-bg.jpg");
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
}

/* Overlay oscuro cuando hay imagen de fondo en origen */
.origen.has-bg {
  position: relative;
}

.origen.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 14, 14, 0.72);
  z-index: 0;
}

.origen.has-bg .container {
  position: relative;
  z-index: 1;
}

.origen-header {
  text-align: center;
  margin-bottom: 64px;
}

.origen-header .section-label {
  justify-content: center;
  color: var(--gold);
}

.origen-header .section-label::before {
  background: var(--gold);
}

.origen-title {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--white);
}

.origen-title em {
  color: var(--gold);
}

.origen-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.55);
  margin-top: 24px;
  line-height: 1.6;
}

.origen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.origen-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  padding: 40px 36px 36px;
  transition: border-color 0.3s ease;
}

.origen-card:hover {
  border-color: var(--gold);
}

.origen-img {
  width: 80%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(201, 168, 76, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: -16px auto 24px;
}

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

.origen-name {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 20px;
  text-align: center;
}

.origen-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  line-height: 1.6;
  text-align: center;
}

.origen-desc-highlight {
  font-size: 15px;
  color: var(--gold);
  line-height: 1.6;
  text-align: center;
}

.origen-link {
  font-family: 'Lexend', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.origen-link:hover {
  border-color: var(--gold);
}

.origen-cta {
  text-align: center;
}

/* ===== STORY ===== */
.story .btn-dark {
  border: none;
}

.story {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.story-left {
  padding: 80px 40px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.story-title {
  font-size: clamp(38px, 4vw, 54px);
  color: var(--text-dark);
  margin-bottom: 24px;
}

.story-title em {
  color: var(--gold);
}

.story-text {
  font-size: 16px;
  color: black;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.story-icons {
  display: flex;
  gap: 100px;
  margin-bottom: 40px;
}

.story-icon-item {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-icon-item::after {
  content: '';
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 100px;
  background: var(--border-gold);
}

.story-icon-item:last-child::after {
  display: none;
}

.story-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-muted);
}

.story-icon-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.story-right {
  position: relative;
  overflow: hidden;
}

.story-img-placeholder {
  position: absolute;
  inset: 0;
  background: #e0d8cc;
  overflow: hidden;
}

.story-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--dark);
  padding: 60px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cta-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--gold);
}

.cta-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--white);
}

.cta-title em {
  color: var(--gold);
}

.cta-banner-center {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 260px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
footer {
  background: #0F0D0A;
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: 95px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 220px;
}

.footer-redes-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-redes-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-redes-link i {
  width: 20px;
  font-size: 18px;
}

.footer-redes-link:hover {
  color: var(--gold);
}

.footer-redes-link:has(.fa-whatsapp) { color: #25D366; }
.footer-redes-link:has(.fa-instagram) { color: #E1306C; }
.footer-redes-link:has(.fa-facebook-f) { color: #1877F2; }
.footer-redes-link:has(.fa-envelope) { color: #ffffff; }

.footer-redes-link:has(.fa-whatsapp):hover { color: #20b857; }
.footer-redes-link:has(.fa-instagram):hover { color: #c92d5f; }
.footer-redes-link:has(.fa-facebook-f):hover { color: #1462c9; }
.footer-redes-link:has(.fa-envelope):hover { color: #cccccc; }

.footer-col-title {
  font-family: 'Lexend', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-bottom-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: var(--gold);
}

/* ===== DESKTOP LINE BREAK ===== */
.dl {
  display: block;
}

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

/* Nav zona de colapso: entre 1025px y 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
  nav {
    padding: 0 24px;
  }

  .nav-logo-img {
    margin-left: 16px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-right {
    margin-right: 16px;
    gap: 12px;
  }

  nav .btn-dark {
    font-size: 12px;
    padding: 10px 16px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  nav .btn-dark {
    display: none;
  }

  .nav-logo-img {
    margin-left: 40px;
  }

  .hero-left {
    padding: 80px 32px 80px 32px;
    max-width: 100%;
  }

  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(245, 240, 232, 0.90) 0%,
      rgba(245, 240, 232, 0.75) 100%
    );
  }

  .hero-bg-hint {
    justify-content: center;
    padding-right: 0;
  }

  .hero,
  .story-right,
  .origen {
    width: 100%;
  }

  .hero,
  .origen {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .hero-left {
    width: 100%;
    min-width: unset;
    padding: 80px 40px 80px 40px;
  }

  .hero-title {
    font-size: 62px;
    white-space: normal;
  }

  .hero-desc {
    font-size: 18px;
    max-width: 600px;
  }

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

  .feature-item:nth-child(2)::after {
    display: none;
  }

  .feature-item:nth-child(3) {
    border-top: none;
  }

  .feature-item:nth-child(3)::after {
    display: block;
  }

  .feature-item:nth-child(4) {
    border-top: none;
  }

  .feature-item:nth-child(4)::after {
    display: none;
  }

  .origen-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .story-left {
    padding: 64px 32px;
  }

  .story-right {
    height: 340px;
  }

  .story-img-placeholder {
    min-height: 340px;
    border-left: none;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 32px;
    text-align: left;
  }

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

@media (max-width: 768px) {
  nav {
    padding: 0 16px;
    height: 70px;
  }

  .nav-logo-img {
    width: 60px;
    margin-left: 0;
  }

  .nav-right {
    margin-right: 0;
    gap: 12px;
  }

  .nav-hamburger span {
    width: 22px;
    height: 2px;
  }

  .nav-mobile {
    top: 70px;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero .btn-dark {
    font-size: 15px;
    padding: 14px 28px;
  }

  .hero-left {
    padding: 48px 24px 40px;
    width: 100%;
    min-width: unset;
  }

  .hero-title {
    font-size: 40px;
    white-space: normal;
  }

  .dl {
    display: inline;
  }

  .hero-desc {
    font-size: 15px;
    max-width: 55%;
  }

  .hero-badge {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .feature-item {
    border-right: none;
    border-bottom: none;
  }

  .feature-item::after {
    top: unset;
    bottom: 0;
    left: 50%;
    right: unset;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
  }

  .feature-item:last-child::after {
    display: none;
  }

  .feature-item:last-child {
    border-bottom: none;
  }

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

  .origen-img {
    width: 60%;
  }

  .story-left {
    padding: 48px 24px;
  }

  .story-icons {
    gap: 40px;
    justify-content: center;
  }

  .story-icon {
    width: 60px;
    height: 60px;
  }

  .story-icon-item::after {
    height: 60px;
    right: -20px;
  }

  .story-icon-label {
    font-size: 11px;
    white-space: normal;
  }

  .story-text {
    text-align: justify;
    text-wrap: pretty;

  }

  .cta-banner {
    padding: 40px 24px;
  }

  .cta-banner-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-bottom-icon {
    position: static;
    transform: none;
  }
}

@media (max-width: 480px) {
  nav {
    height: 60px;
    padding: 0 12px;
  }

  .nav-logo-img {
    width: 50px;
  }

  .nav-mobile {
    top: 60px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-left {
    padding: 36px 16px 32px;
  }

  .hero-title {
    font-size: 32px;
  }

  .dl {
    display: inline;
  }

  .hero-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero .btn-dark {
    font-size: 13px;
    padding: 12px 22px;
  }

  .section-label {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .feature-title {
    font-size: 13px;
  }

  .feature-desc {
    font-size: 14px;
  }

  .origen-title {
    font-size: 28px;
  }

  .origen-img {
    width: 80%;
  }

  .origen-name {
    font-size: 20px;
  }

  .origen-desc,
  .origen-desc-highlight {
    font-size: 13px;
  }

  .origen-subtitle {
    font-size: 17px;
  }

  .story-title {
    font-size: 28px;
  }

  .story-text {
    font-size: 15px;
    text-align: justify;
    text-wrap: pretty;

  }

  .story-icons {
    gap: 24px;
  }

  .story-icon {
    width: 50px;
    height: 50px;
  }

  .story-icon-item::after {
    height: 50px;
    right: -12px;
  }

  .story-icon-label {
    font-size: 10px;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .origen-img {
    width: 90%;
  }

  .origen-card {
    padding: 32px 20px 28px;
  }
}