:root{
  --orange:#ff7a00;
  --yellow:#ffd000;
  --red:#ff0000;
  --dark:#111;
  --black:#000000;
}

/* RESET */
*{margin:0;padding:0;box-sizing:border-box;}

body{
  font-family:Poppins,sans-serif;
  color:#333;
}

/* HEADER */

header{
  position:fixed;
  width:100%;
  backdrop-filter:blur(12px);
  background:rgba(0,0,0,0.35);
  z-index:100;
  transition:.3s;
}

header.scrolled{
  background:rgba(0,0,0,0.9);
}

.container{width:90%;margin:auto;}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 0;
}

.logo{
  color:white;
  font-weight:700;
  font-size:22px;
}

.logo span{color:var(--orange);}



/* === CABECERA CON LOGO CENTRADO === */
#header .container.nav {
  display: flex;
  justify-content: flex-end;  /* Menú y botón a la derecha */
  align-items: left;
  position: relative;
  padding: 10px 20px;         /* Espaciado interior */
}

#header .logo {
  position: absolute;
  left: 20%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 10;                /* Para que quede sobre otros elementos */
}

#header .logo img {
  max-height: 45px;           /* Ajusta la altura según tu logo */
  width: auto;
  display: block;
}

#header #menu {
  display: flex;
  gap: 25px;                  /* Separación entre enlaces */
  margin-right: 20px;         /* Separación con el botón menú */
}

#header .menu-btn {
  /* Mantén los estilos que ya tengas para el botón */
  z-index: 10;
}






/* MENU LINKS */

nav{
  display:flex;
}

nav a{
  color:white;
  margin-left:25px;
  text-decoration:none;
  position:relative;
}

nav a::after{
  content:"";
  position:absolute;
  bottom:-5px;
  left:0;
  height:2px;
  width:0;
  background:var(--yellow);
  transition:.3s;
}

nav a:hover::after,
nav a.active::after{
  width:100%;
}

/* HAMBURGUESA */

.menu-btn{display:none;cursor:pointer;}

.menu-btn span{
  display:block;
  width:25px;
  height:3px;
  background:white;
  margin:5px 0;
}

/* HERO */

.hero{
  height:100vh;
  background:linear-gradient(135deg,var(--black),var(--red));
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.hero-content{
  color:white;
}

/* BOTÓN */

.btn{
  margin-top:20px;
  display:inline-block;
  padding:12px 25px;
  background:white;
  color:var(--orange);
  border-radius:25px;
  text-decoration:none;
  transition:.3s;
}

.btn:hover{
  transform:translateY(-3px);
}

/* SECCIONES */

.section{
  padding:100px 10%;
  text-align:center;
}

.dark{
  background:var(--dark);
  color:white;
}

/* GRID */

.grid{
  display:grid;
  gap:20px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

/* CARDS */

.card,.price{
  background:#f5f5f5;
  padding:25px;
  border-radius:12px;
  transition:.3s;
}

.card:hover,
.price:hover{
  transform:translateY(-8px);
  box-shadow:0 15px 30px rgba(0,0,0,0.15);
}

.highlight{
  background:var(--red);
  color:white;
}

/* GALERÍA */

.gallery{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.gallery img{
  width:100%;
  border-radius:10px;
}

/* FORM */

.contact-form{
  max-width:500px;
  margin:auto;
  display:flex;
  flex-direction:column;
}

.contact-form input,
.contact-form textarea{
  padding:12px;
  margin-bottom:10px;
  border:none;
  border-radius:6px;
}

/* FOOTER */

footer{
  background:#000;
  color:white;
  padding:20px;
  text-align: center;
}

/* BOTÓN SUBIR */

#topBtn{
  position:fixed;
  bottom:85px;
  right:25px;
  background:var(--red);
  color:white;
  border:none;
  padding:12px 15px;
  border-radius:50%;
  display:none;
  cursor:pointer;
  transition: background-color 0.3s;
  font-size: 28px;       /* Flecha grande */
  font-weight: bold;      /* Negrita */
  display: flex;         /* Para centrar contenido */
  align-items: center;
  justify-content: center;
}

/* OVERLAY */

#overlay{
  position:fixed;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.77);
  opacity:0;
  pointer-events:none;
  transition:.3s;
}

#overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* MENÚ MÓVIL */

@media(max-width:768px){

nav{
  position:fixed;
  right:-100%;
  top:0;
  width:260px;
  height:100%;
  flex-direction:column;
  padding-top:90px;

  /* ✅ Fondo mucho más contrastado */
  background:rgba(5,5,5,0.98);   /* casi sólido */
  backdrop-filter:blur(6px);

  /* sombra para separar del contenido */
  box-shadow:-10px 0 30px rgba(0,0,0,0.6);

  transition:.35s ease;
}

nav.active{
  right:0;
}

/* enlaces más visibles */
nav a{
  margin:18px 25px;
  font-size:18px;
  color:#fff;
}

nav a:hover{
  color:var(--yellow);
}

.menu-btn{
  display:block;
}

}


/* boton flotante de whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .whatsapp-float:hover {
    background-color: #20b859;
    transform: scale(1.1);
  }

  /* Para móviles, lo ajustamos un poco */
  @media screen and (max-width: 768px) {
    .whatsapp-float {
      width: 55px;
      height: 55px;
      font-size: 28px;
      bottom: 15px;
      right: 15px;
    }
  }