:root{
  --bg-dark:#202123;
  --text-light:#ffffff;
  --accent:#C6A664;
  --accent-dark:#b39452;
  --glass:rgba(255,255,255,0.22);
}
a {
  color: inherit;      /* usa el color del texto normal */
  text-decoration: none;
}
/* ================= LOGO ================= */
.logo{
  display: flex;
  align-items: center;
}

.logo-img{
  height: 45px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.nav{
  max-width:1200px;
  margin:auto;
  padding:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.nav-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nav-sections{
  font-size: x-large;
  display:flex;
  gap:1px;
  margin-left:auto;
  margin-right:auto;
  justify-content:center;
}

.brand-words .nav-item{
  font-size: 26px;   /* más grande */
  font-weight: 700;  /* más fuerte */
  font-size: 32px;
}

.nav-item{
  position:relative;
  font-weight:600;
  letter-spacing:1px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:60px;
  min-height:40px;
}

.nav-item .short,
.nav-item .full{
  transition: opacity .25s ease,
  transform .25s ease,
  color .25s ease,
  font-size .25s ease;
}

.nav-item .full{
  opacity:0;
  position:absolute;
  transform:translateY(0);
  white-space:nowrap;
  color:#d4af37;
  font-weight:600;
  font-size:22px;
}

.nav-item:hover .short{ 
  opacity:0; 
}

.nav-item:hover .full{
  opacity:1;
  font-size:30px;
  color:#d4af37;
  transform:translateY(0);
}

.nav-sections:hover .nav-item:not(:hover) .short,
.nav-sections:hover .nav-item:not(:hover) .full{
  opacity:0;
}

/* ================= HAMBURGER ================= */
.nav-toggle{
  width:30px;
  height:22px;
  position:relative;
  background:none;
  border:none;
  cursor:pointer;
  z-index:1100;
}

.nav-toggle span{
  position:absolute;
  width:100%;
  height:2px;
  background:#fff;
  left:0;
  transition:.4s ease;
}

.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top:10px; }
.nav-toggle span:nth-child(3){ top:20px; }

.nav-toggle.active span:nth-child(1){
  transform:rotate(45deg);
  top:10px;
}
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){
  transform:rotate(-45deg);
  top:10px;
}

/* ================= SUBMENU ================= */
.nav-sub{ position:relative; }

.nav-sub > span{
  cursor:pointer;
  font-weight:500;
  display:inline-block;
  padding:10px 0;
}

.nav-sub a{
  cursor:pointer;
  font-weight:500;
  display:inline-block;
  padding:10px 0;
  color:var(--text-light);
  text-decoration:none;
}

.nav-sub::before{
  content:"";
  position:absolute;
  top:100%;
  left:-40px;
  width:200%;
  height:60px;
}

.sub-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%);
  background:#fff;
  padding:12px 0;
  min-width:180px;
  list-style:none;
  opacity:0;
  visibility:hidden;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  z-index:2000;
}

.sub-menu li{ padding:10px 24px; }
.sub-menu li a{
  color:#000;
  white-space:nowrap;
  text-decoration:none;
}

/* ================= REDES ================= */
.nav-social{
  display:flex;
  align-items:center;
  gap: 70px;
  margin-left:35px;
}

.o{
  opacity: 0;
}

.nav-social img{
  width:26px;
  height:26px;
  opacity:.8;
  transition:.25s ease;
}

.nav-social img:hover{
  opacity:1;
  transform:scale(1.15);
}

/* ================= DRAWER MENU ================= */
.nav-links{
  position:fixed;
  top:0;
  right:0;
  width:260px;
  height:100vh;
  background:rgba(32,33,35,.97);
  backdrop-filter:blur(14px);
  list-style:none;
  padding:120px 40px;
  display:flex;
  flex-direction:column;
  gap:30px;
  transform:translateX(100%);
  opacity:0;
  pointer-events:none;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  z-index:1000;
}

.nav-links.show{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
}

.nav-links li{
  opacity:0;
  transform:translateX(30px);
  transition:.4s ease;
}

.nav-links.show li{
  opacity:1;
  transform:translateX(0);
}

.nav-links.show li:nth-child(1){ transition-delay:.05s; }
.nav-links.show li:nth-child(2){ transition-delay:.12s; }
.nav-links.show li:nth-child(3){ transition-delay:.19s; }
.nav-links.show li:nth-child(4){ transition-delay:.26s; }

.nav-links a{
  font-size:22px;
  font-weight:500;
  color:var(--text-light);
  text-decoration:none;
  position:relative;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:.3s ease;
}

.nav-links a:hover{
  color:var(--accent);
}

.nav-links a:hover::after{
  width:100%;
}

/* ================= OVERLAY ================= */
.nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(2px);
  opacity:0;
  pointer-events:none;
  transition:.35s ease;
  z-index:900;
}

.nav-overlay.show{
  opacity:1;
  pointer-events:auto;
}



/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Noto Sans KR", system-ui, sans-serif;
}


/*BODY*/

body{
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: 90px; /* espacio por el header fijo */
}

/* ================= HEADER / NAV ================= */

.o{
  opacity: 0;
}

header{
  position:fixed;
  top:0;
  width:100%;
  background:linear-gradient(135deg, rgba(23,23,23,.35), rgba(32,33,35,.65));
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(198,166,100,.25);
  z-index:1000;
}

header.scrolled{
  background:rgba(20,20,20,.9);
}

.nav{
  max-width:1200px;
  margin:auto;
  padding:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.nav-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nav-sections{
  font-size: x-large;
  display:flex;
  gap:1px;
  margin-left:auto;
  margin-right:auto;
  justify-content:center;
}

.brand-words .nav-item{
  font-size: 26px;   /* más grande */
  font-weight: 700;  /* más fuerte */
  font-size: 32px;
}

.nav-item{
  position:relative;
  font-weight:600;
  letter-spacing:1px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:60px;
  min-height:40px;
}

.nav-item .short,
.nav-item .full{
  transition: opacity .25s ease,
  transform .25s ease,
  color .25s ease,
  font-size .25s ease;
}

.nav-item .full{
  opacity:0;
  position:absolute;
  transform:translateY(0);
  white-space:nowrap;
  color:#d4af37;
  font-weight:600;
  font-size:22px;
}

.nav-item:hover .short{ 
  opacity:0; 
}

.nav-item:hover .full{
  opacity:1;
  font-size:30px;
  color:#d4af37;
  transform:translateY(0);
}

.nav-sections:hover .nav-item:not(:hover) .short,
.nav-sections:hover .nav-item:not(:hover) .full{
  opacity:0;
}


/* ================= SECCION NOSOTROS ================= */
.nosotros{
  width: 100%;
  padding: 120px 10%;
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Cada bloque */
.bloque{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  margin-bottom: 140px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(198,166,100,0.15);
  backdrop-filter: blur(10px);
}

/* Imagen */
.imagen img{
  width: 100%;
  max-width: 500px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.imagen img:hover{
  transform: scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

/* Texto */
.texto{
  max-width: 550px;
}

.texto h2{
  font-size: 38px;
  margin-bottom: 20px;
  color: var(--accent);
  letter-spacing: 1px;
}

.texto p{
  font-size: 18px;
  line-height: 1.8;
  color: #e0e0e0;
}

/* Invertir imagen y texto */
.reverse{
  flex-direction: row-reverse;
}


/* ================= ANIMACION SCROLL ================= */

/* Estado inicial oculto */
.reveal{
  opacity: 0;
}

/* Imagen entra desde la izquierda */
.bloque .imagen{
  transform: translateX(-100px);
  opacity: 0;
  transition: all 0.9s ease;
}

/* Texto entra desde la derecha */
.bloque .texto{
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.9s ease;
}

/* Cuando aparece en pantalla */
.reveal.active .imagen{
  transform: translateX(0);
  opacity: 1;
}

.reveal.active .texto{
  transform: translateX(0);
  opacity: 1;
}


.reveal{
  opacity: 0;
  transform: translateY(80px);
  transition: 0.8s ease;
}

.reveal.active{
  opacity: 1;
  transform: translateY(0);
}


/* ================= RESPONSIVE GENERAL ================= */

/* Tablets */
@media (max-width: 1024px){

  .nosotros{
    padding: 100px 6%;
  }

  .bloque{
    gap: 40px;
    margin-bottom: 100px;
    padding: 30px;
  }

  .texto h2{
    font-size: 30px;
  }

  .texto p{
    font-size: 17px;
  }

  .imagen img{
    max-width: 420px;
  }
}

/* Celulares */
@media (max-width: 768px){

  /* NAVBAR */
  .nav{
    padding: 15px;
  }

  .logo-img{
    height: 40px;
  }

  .nav-sections{
    font-size: 18px;
    gap: 10px;
  }

  /* SECCION NOSOTROS */
  .nosotros{
    padding: 90px 5%;
  }

  .bloque{
    flex-direction: column; /* CLAVE: apila imagen y texto */
    text-align: center;
    gap: 30px;
    margin-bottom: 80px;
    padding: 25px 20px;
  }

  /* Incluso los invertidos se ponen en columna */
  .reverse{
    flex-direction: column;
  }

  .imagen img{
    width: 100%;
    max-width: 100%;
  }

  .texto{
    max-width: 100%;
  }

  .texto h2{
    font-size: 26px;
  }

  .texto p{
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Celulares pequeños */
@media (max-width: 480px){

  .nosotros{
    padding: 80px 4%;
  }

  .bloque{
    padding: 20px 15px;
    border-radius: 16px;
  }

  .texto h2{
    font-size: 22px;
  }

  .texto p{
    font-size: 15px;
  }

  .nav-sections{
    font-size: 16px;
  }

  .logo-img{
    height: 35px;
  }
}


