/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdfdfd;
  padding-top: 70px;
}

/* Navbar principal */
.navbar {
  font-family: 'Playfair Display', serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: #111;
  color: #fff;
  position: fixed; /* cambio aquí */
  top: 0;
  left: 0;
  width: 100%;     /* importante */
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Enlaces */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
 
.nav-links a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  padding: 5px 0;
  transition: color 0.3s ease;
  font-family: 'Montserrat', sans-serif; /* Nueva tipografía */
  font-weight: 600; /* Negrita ligera */
  letter-spacing: 0.5px; /* Un poco de espacio entre letras */
}
 

/* Animación subrayado */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #a9b9ca;
}
 
.nav-links a:hover::after {
  width: 100%;
}
/* Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    background: #111;
    flex-direction: column;
    width: 200px;
    transition: right 0.4s ease;
    padding: 20px;
    border-left: 2px solid #f7c400;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
.btn-cita {
  background-color: #a78709;
  color: #111;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 20px;
}
.btn-cita:hover {
  background-color: #d6a800;
  color: #000000;
}
@media (max-width: 768px) {
  .btn-cita {
    display: none; /* oculto en la navbar para móvil */
  }
}
.btn-cita-mobile {
  display: none;
}

@media (max-width: 768px) {
  .btn-cita-mobile {
    display: block;
    background-color: #f7c400;
    color: #111;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
  }

  .btn-cita-mobile:hover {
    background-color: #d6a800;
    color: #fff;
  }
}
/* Subrayado visible (antes no tenía color) */
.nav-links a::after { background: currentColor; }

/* Panel móvil como off-canvas */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;      /* antes absolute: que sea un panel flotante */
    top: 70px;            /* debajo de la navbar fija */
    right: -260px;        /* fuera de la pantalla */
    width: 260px;
    height: calc(100vh - 70px);
    z-index: 1000;        /* por encima de sliders/carruseles */
    overflow-y: auto;
  }
  .nav-links.active { right: 0; }
  .hamburger { display: flex; background: transparent; border: 0; }
}

/* Opcional: reduce padding en móvil para que todo quepa */
@media (max-width: 768px) {
  .navbar { padding: 14px 16px; }
}