:root{
  --bg-dark:#202123;
  --text-light:#ffffff;
  --accent:#C6A664;
  --accent-dark:#b39452;
  --glass:rgba(255,255,255,0.22);
}

.color{
  color: rgb(189, 174, 124);
}

/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Noto Sans KR", system-ui, sans-serif;
}

html{ scroll-behavior:smooth; }

body{
  background:var(--bg-dark);
  color:var(--text-light);
  line-height:1.6;
  overflow-x:hidden;
}

section{
  padding:100px 20px;
  scroll-margin-top:100px;
}

.container{
  max-width:1200px;
  margin:auto;
}

/* ================= LOGO ================= */
.logo img{
  height:50px;
  max-width:150px;
}

/* ================= HEADER / NAV ================= */
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;
}

/* ================= 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;
}

a {
  color: inherit;      /* usa el color del texto normal */
  text-decoration: none;
}

.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;
}

/* ================= HERO ================= */
.hero{
  height:100vh;
  position:relative;
  overflow:hidden;
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(198,166,100,.45), rgba(32,33,35,.75));
}

.hero-content{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:flex;
  align-items:flex-start;
  padding-top:180px;
}

.hero-text{
  max-width:680px;
  margin-left:100px;
  background:rgba(198,166,100,.08);
  backdrop-filter:blur(10px);
  padding:40px 45px;
  border-radius:8px;
}

.hero h1{ font-size:56px; line-height:1.1; }

/* ================= SERVICES ================= */
.services{
  display:flex;
  flex-direction:column;
  gap:35px;
}

.service-card{
  background:rgba(255,255,255,0.08);
  border-radius:20px;
  padding:30px 40px;
  transition:transform .3s ease, box-shadow .3s ease;
}

.service-card:hover{
  transform:translateY(-4px);
  box-shadow:0 15px 35px rgba(0,0,0,.25);
}

.card-inner{
  display:flex;
  align-items:center;
  gap:50px;
}

/* IMAGEN IZQUIERDA (tenue como la referencia) */
.card-img{
  width:200px;
  height:200px;
  object-fit:cover;
  border-radius:20px;
  opacity:0.25;
  transition:opacity .3s ease, transform .3s ease;
  flex-shrink:0;
}

.service-card:hover .card-img{
  opacity:0.4;
  transform:scale(1.03);
}

/* BLOQUE CENTRAL (titulo + boton) */
.card-front{
  min-width:220px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.card-front h3{
  font-size:38px;
  color:#fff;
  margin-bottom:18px;
  font-weight:700;
}

/* BOTÓN */
.read-more{
  background:var(--accent);
  border:none;
  color:#000;
  padding:12px 24px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition:.3s ease;
}

.read-more a{
  text-decoration:none;
  color:inherit;
}

.read-more:hover{
  background:var(--accent-dark);
  color:#fff;
}

/* TEXTO DERECHO */
.card-back{
  flex:1;
  color:#eaeaea;
  line-height:1.7;
  font-size:16px;
  max-width:800px;
}
.service-card:hover .service-preview{
  opacity:1;
  transform:translateX(0);
}

/* ================= WORKS / SLIDER ================= */
.works-section{ padding:120px 0; background:#0f0f0f; }
.works-wrapper{ max-width:1400px; margin:auto; padding:0 40px; position:relative; }
.works-slider{ overflow:hidden; }

.work-slide{
  display:none;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
  opacity:0;
  transform:translateX(80px) scale(.98);
  filter:blur(4px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1), filter .6s ease;
}

.work-slide.active{
  display:grid;
  opacity:1;
  transform:translateX(0) scale(1);
  filter:none;
}

.works-image{ overflow:hidden; border-radius:20px; }
.works-image img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.works-image:hover img{ transform:scale(1.08); }

.works-text h2{ font-size:42px; margin-bottom:20px; }
.works-text p{ color:rgba(255,255,255,.75); max-width:520px; }

.section-tag{ color:var(--accent); letter-spacing:2px; font-size:14px; text-transform:uppercase; }

.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:50px;
  height:50px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(6px);
  color:#fff;
  font-size:24px;
  z-index:10;
  transition:.3s ease;
}
.slider-btn.left{ left:0; }
.slider-btn.right{ right:0; }
.slider-btn:hover{ background:var(--accent); }

/* ================= ABOUT ================= */
.about{ display:grid; grid-template-columns:1fr 1fr; gap:50px; }
.about .contact-grid{ margin-top:40px; }
#about .contact-grid{ display:flex; flex-direction:column; gap:20px; }

#about img{
  max-width:420px;
  max-height:420px;
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:12px;
  margin-left:auto;
  box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.about-card{
  width:420px;
  height:420px;
  perspective:1200px;
  margin-left:auto;
}

.about-card::after{
  content:"Click para ver contacto";
  position:absolute;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,.55);
  padding:6px 14px;
  font-size:12px;
  letter-spacing:.4px;
  border-radius:20px;
  opacity:0;
  transition:.3s ease;
  pointer-events:none;
}

.about-card:hover::after{ opacity:1; }

.about-card-inner{
  width:100%;
  height:100%;
  position:relative;
  transform-style:preserve-3d;
  transition:transform .8s cubic-bezier(.22,1,.36,1);
  cursor:pointer;
}

.about-card.flipped .about-card-inner{ transform:rotateY(180deg); }

.about-card-front, .about-card-back{
  position:absolute;
  inset:0;
  backface-visibility:hidden;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.about-card-front img{ width:100%; height:100%; object-fit:cover; }

.about-card-back{
  background:linear-gradient(135deg, #0b2034, #0e2a47);
  color:#fff;
  transform:rotateY(180deg);
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
}

.about-card-back h3{ color:var(--accent); margin-bottom:10px; }


.about-card-back a{
  color: #ffffff !important;
  text-decoration: none;
}

.about-card-back a:visited{
  color: #ffffff !important;
}

.about-card-back a:hover{
  color: var(--accent); /* dorado al pasar el mouse */
}


.about-left,
.about-right{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.about-section-title{
  font-size:28px;
  color:var(--accent);
  letter-spacing:1px;
}

.about-map{
  width:100%;
  height:420px;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.about-map iframe{
  width:100%;
  height:100%;
  border:0;
}


/* ================= CONTACT ================= */
.contact{ background:#000000; }
.contact-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:40px;
}
.contact-item h3{ color:#e2c27b; }

/* ================= FOOTER ================= */
footer{
  padding:30px;
  background:#000000;
  text-align:center;
  font-size:14px;
  border-top:1px solid rgba(234, 0, 0, 0.05);
}
.footer-credits{
  padding-bottom:30px;
  text-align:center;
  margin-top:20px;
  font-size:12px;
  color:rgba(255,255,255,.5);
  letter-spacing:.3px;
}
.footer-credits a{
  color:rgba(212,175,55,.7);
  text-decoration:none;
}
.footer-credits a:hover{ color:rgba(212,175,55,1); }

/* ================= REVEAL ================= */
.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:.8s ease;
}
.reveal.active{
  opacity:1;
  transform:none;
}

/* ================= ANIMACIONES ================= */
@keyframes fadeSlideRight{
  0%{ opacity:0; transform:translateX(30px); }
  100%{ opacity:1; transform:translateX(0); }
}

@keyframes fadeSlideLeft{
  0%{ opacity:0; transform:translateX(-30px); }
  100%{ opacity:1; transform:translateX(0); }
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){

  /* HERO */
  .hero-text{
    margin-left:20px;
    padding:30px 25px;
  }
  .hero h1{ font-size:38px; }

  /* SERVICES / PROCESOS */
  .services{ gap:30px; }

  .service-card{
    padding:20px;
    border-radius:8px;
    display:flex;
    flex-direction:column; /* vertical */
    align-items:center;
  }

.service-card .card-inner{
   flex-direction: column; /* vertical */
  gap: 15px;
  width: 100%;
}

  .card-front, .card-back{
    width:100%;
    padding:15px 0;
    text-align:center;
    position:relative; /* evita que el texto quede fuera */
  }

  .service-card .service-preview{
    display:none; /* ocultar imagen lateral en móvil */
  }

  .service-card img{
    max-width:100%;
    max-height:250px;
    width:100%;
    height:auto;
    margin:0 auto;
    border-radius:12px;
  }

  .service-card .read-more{
    display:block;
    margin:10px auto 0;
    padding:8px 14px;
    font-size:14px;
  }

  .service-card.expanded .card-back{ 
    display:block; 
    margin-top:10px; 
  }

  .service-card .service-preview{
    position:relative;
    top:auto;
    left:auto;
    margin:0;
    width:100%;
    max-height:250px;
    opacity:1;
    transform:none;
  }

  /* ABOUT / CONTACTO */
  .about{
    grid-template-columns:1fr;
    gap:30px;
    justify-items:center;
  }

  .about-card{
    width:100%;
    max-width:400px;
    height:auto;
  }


  /* ABOUT CARD MÓVIL */
  .about-card-inner{
    transform:none !important;
    cursor:auto;
  }
  .about-card-front{
    display:none !important;
  }
  .about-card-back{
    display:flex !important;
    transform:none !important;
    width:100%;
    height:auto;
    padding:20px;
    flex-direction:column;
    gap:10px;
  }


  .about-card-front, .about-card-back{
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    backface-visibility:visible;
    box-shadow:0 20px 40px rgba(0,0,0,.35);
  }

  /* ABOUT CARD - MÓVIL */
.about-card::after {
    display: none; /* oculta el texto en móvil */
}

  #about img{
    display:none; /* ocultamos imágenes internas */
  }

  /* CONTACT GRID */
  .contact-grid{
    grid-template-columns:1fr 1fr;
    gap:20px;
  }

  /* WORKS / SLIDER */
  .works-wrapper{
    padding:0 20px;
  }

  .works-text h2{
    font-size:28px;
  }

  /* Ajustes generales */
  .read-more{ font-size:14px; }
}


/* MÓVIL solo para proyectos */
@media(max-width:900px){
  .service-card.proyectos .card-inner{
    display: flex;
    flex-direction: column; /* imagen arriba, texto abajo */
    align-items: center;
    gap: 15px;
  }

  .service-card.proyectos .card-front,
  .service-card.proyectos .card-back{
    width: 100%;
    position: relative; /* que el texto no quede fuera */
    padding: 15px 0;
    text-align: center;
  }

  .service-card.proyectos img.card-img{
    width: 100%;
    height: auto;
    max-height: 250px;
    margin: 0 auto;
  }

  .service-card.proyectos .service-preview{
    display: none; /* ocultar lateral */
  }

  /* Aseguramos que al hacer click se vea el back */
  .service-card.proyectos.expanded .card-back{
    display: block;
    margin-top: 10px;
  }
}


/*NO SE POR QUE PUTAS FUNCIONA ASI EL DE PROYECTO PERO NO LO TOQUEN PQ SE ROMPER TODO Y LOS VOY A BUSCAR A LA CASA*/