/* ==========================
VARIABLES
========================== */
:root {
  --primary: #C6B7A6;
  --bg: #fff;
  --text: #222;
  --soft: #777;
  --border: #eaeaea;
  --heading: 'Playfair Display', serif;
  --body: 'DM Sans', sans-serif;
}

/* ==========================
BASE
========================== */
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.body-locked {
  overflow: hidden;
  touch-action: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================
NAVBAR
========================== */
.navbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  height: 70px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* HAMBURGER */
.navpanel-toggle-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
}

.navpanel-toggle-btn span {
  width: 22px;
  height: 2px;
  background: #333;
}

/* LOGO */
.logo img {
  border-radius: 10px;
}

/* SEARCH DESKTOP */
.search-box {
  flex: 1;
  max-width: 500px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: #fafafa;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  outline: none;
}

.search-box button {
  border: none;
  background: transparent;
  padding: 0 14px;
  cursor: pointer;
}

/* ICONS */
.nav-right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #444;
}

/* ==========================
MOBILE SEARCH BUTTON (BONITO)
========================== */
.mobile-only {
  display: none;
}
.navpanel-close-btn {
  width: 24px;
  height: 24px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}

.navpanel-close-btn::before,
.navpanel-close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #333;
}

.navpanel-close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navpanel-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }

  .search-box {
    display: none;
  }
  .nav-left {
 
  width: 100%;
}
  .nav-left .logo {
    height: 100%;
    margin: 0 auto;
  }
}

.search-mobile-btn {
  font-size: 18px;
  border: none;
  background: #f5f5f5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: 0.2s;
}

.search-mobile-btn:hover {
  background: #eaeaea;
}

/* ==========================
MOBILE SEARCH
========================== */
.mobile-search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: white;
  transform: translateY(-100%);
  opacity: 0;
  transition: 0.3s ease;
  z-index: 2000;
}

.mobile-search.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-search input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 10px 14px;
}

/* ==========================
OVERLAY
========================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1000;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
/* ==========================
SIDEBAR
========================== */
.navpanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: white;
  padding: 20px;
  transform: translateX(-100%);
  transition: 0.35s ease;
  z-index: 1100;
}

.navpanel.active {
  transform: translateX(0);
}

/* HEADER */
.navpanel-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navpanel-title {
  font-family: var(--heading);
}

/* BOTÓN X PRO */
.close-btn {
  width: 24px;
  height: 24px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #333;
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* MENU */
.navpanel-menu {
  list-style: none;
  padding: 0;
}

.navpanel-item {
  border-bottom: 1px solid var(--border);
}

/* ACCORDION */
.navpanel-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
}

.navpanel-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}

.navpanel-item.active .navpanel-content {
  padding-bottom: 10px;
}

.navpanel-toggle {
  transition: 0.3s;
}

.navpanel-item.active .navpanel-toggle {
  transform: rotate(45deg);
}

/* CONTACTO (ARREGLADO EN COLUMNA) */
.navpanel-contact {
  margin-top: 20px;
  font-size: 14px;
  color: var(--soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.navpanel-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}

