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

.hero{
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* IMAGEN REAL */
.hero-img{
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  object-fit: cover;
  object-position: center top;

  max-height: 190vh;
}

/* CONTENIDO ENCIMA (ARREGLADO) */
.hero-center{
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  width: 100%;
  max-width: 900px;
}

/* BOTÓN (ARREGLADO) */
.hero-overlay{
  position: relative; /* 🔥 ya no absolute */
}

.hero-btn{
  margin-top: 20px;
  padding: 14px 32px;
  border-radius: 50px;

  background: linear-gradient(135deg, #ff4c29, #ff7a18);
  color: var(--text);
  font-weight: 600;

  box-shadow: 0 10px 30px rgba(255,76,41,.35);
  transition: .3s;
}

.hero-btn:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255,76,41,.6);
}

/* TEXTO */
.hero-sub{
  margin-top: 15px;
  font-size: 18px;
  color: var(--text-muted);
}

/* =========================
   HUMO (FIJO)
========================= */

.coffee-smoke{
  position: absolute;
  z-index: 6;

  left: 27%;
  bottom: 42%;

  transform: translateX(-50%);
  pointer-events: none;
}

/* LÍNEAS DE VAPOR */
.coffee-smoke span{
  position: absolute;
  bottom: 0;
  left: 50%;

  width: 34px;
  height: 160px;

  background: linear-gradient(
    to top,
    rgba(255,255,255,0.65),
    rgba(255,255,255,0.25),
    transparent
  );

  border-radius: 50%;

  filter: blur(12px);

  transform: translateX(-50%);

  opacity: 0;

  animation: smokeReal 6s infinite ease-in-out;
}

/* =========================
   VARIACIONES
========================= */

.coffee-smoke span:nth-child(1){
  left: 45%;
  animation-delay: 0s;
}

.coffee-smoke span:nth-child(2){
  left: 52%;
  animation-delay: 1s;
}

.coffee-smoke span:nth-child(3){
  left: 48%;
  animation-delay: 2s;
}

.coffee-smoke span:nth-child(4){
  left: 56%;
  animation-delay: 3s;
}

.coffee-smoke span:nth-child(5){
  left: 42%;
  animation-delay: 4s;
}

/* =========================
   ANIMACIÓN
========================= */

@keyframes smokeReal{

  0%{
    transform: translate(-50%, 0) scaleX(1);
    opacity: 0;
  }

  10%{
    opacity: .7;
  }

  40%{
    transform: translate(-45%, -80px) scaleX(1.6);
    opacity: .5;
  }

  70%{
    transform: translate(-55%, -160px) scaleX(2);
    opacity: .25;
  }

  100%{
    transform: translate(-50%, -240px) scaleX(2.6);
    opacity: 0;
  }
}

/* =========================
   NAV
========================= */

.topnav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(10, 15, 28, 0.15);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topnav__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;

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

.brand__name{
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-gold);

  text-shadow:
    0 1px 0 rgba(255,255,255,.15),
    0 2px 2px rgba(0,0,0,.6);
}

/* LINKS DESKTOP */
.navlinks{
  display: flex;
  gap: 25px;
}

.navlink{
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.navlink:hover{
  color: var(--text);
}

.navlink::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .3s ease;
}

.navlink:hover::after{
  width: 100%;
}

/* =========================
   MOBILE
========================= */

.nav-toggle{
  display: none;
}

/* 📱 MOBILE NAV */
@media (max-width: 768px){

  .nav-toggle{
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10000;
  }

  .navlinks{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;

    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);

    /* 🔥 ANIMACIÓN */
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;

    transition: all 0.35s ease;
  }

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

  /* 🔥 LINKS ANIMADOS */
  .navlinks a{
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .navlinks.active a{
    opacity: 1;
    transform: translateY(0);
  }

  /* delay bonito */
  .navlinks.active a:nth-child(1){ transition-delay: .05s; }
  .navlinks.active a:nth-child(2){ transition-delay: .1s; }
  .navlinks.active a:nth-child(3){ transition-delay: .15s; }
  .navlinks.active a:nth-child(4){ transition-delay: .2s; }
}
/* =========================
   MOBILE
========================= */

.nav-toggle{
  display: none;
}
@media (max-width: 768px){
  .nav-toggle{
    display: block;
  }
}
@media (max-width: 768px){
/* IMAGEN REAL */
.hero-img{
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  object-fit: cover;
  object-position: center top;
  margin-top: 40px;
  max-height: 90vh;
}
}
@media (max-width: 1024px){

  .hero-img{
    max-height: 80vh;
  }

  .coffee-smoke{
    left: 30%;
    bottom: 20%;
  }
}

@media (max-width: 768px){

  .hero-img{
    max-height: 70vh;
  }

  .coffee-smoke{
    left: 35%;
    bottom: 18%;
  }

  .hero-center{
    bottom: 
  }


  .coffee-smoke span{
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 18px;   /* 🔥 más fino */
  height: 90px;  /* 🔥 más alto */

  background: rgba(255,255,255,.35); /* 🔥 más visible */
  border-radius: 50%;

  filter: blur(10px); /* 🔥 menos blur */
  transform: translateX(-50%);

  animation: smokeUp 4s infinite ease-in-out;
}

/* variación natural */
.coffee-smoke span:nth-child(2){
  left: 55%;
  animation-delay: 1s;
}

.coffee-smoke span:nth-child(3){
  left: 45%;
  animation-delay: 2s;
}
  .brand__name{
  font-size: 12px;
}
/* 🔥 MOVIMIENTO REAL DE HUMO */
@keyframes smokeUp{
  0%{
    transform: translate(-50%, 0) scale(1);
    opacity: .6;
  }

  50%{
    transform: translate(-50%, -80px) scale(1.4);
    opacity: .4;
  }

  100%{
    transform: translate(-50%, -160px) scale(1.8);
    opacity: 0;
  }

}