/* ── Variables (en sync con cart.css) ── */
:root {
  --brand:   #062a42;
  --accent:  #00aaff;
  --accent2: #0077cc;
  --bg:      #f0f4f8;
  --border:  #e2e8f0;
  --text:    #1a2b3c;
  --muted:   #6b7f91;
  --shadow:  0 4px 24px rgba(6,42,66,.12);
}

/* ── Reset ── */
* { margin: 0; box-sizing: border-box; }

a {
  text-decoration: none;
  color: var(--brand);
  font-family: "DM Sans", "Roboto", sans-serif;
}

body {
  height: 80px;
}

/* ── Header bar ── */
.all {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  z-index: 900;
}

/* ── Logo ── */
.logoData {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icona {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.textLogo {
  color: var(--brand);
  font-family: "Playfair Display", "Roboto", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.5px;
}

/* ── Nav links ── */
.sections {
  display: flex;
  align-items: center;
  gap: 6px;
}

.textSection {
  color: var(--brand);
  font-family: "DM Sans", "Roboto", sans-serif;
  font-size: .95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.textSection:hover {
  background: rgba(0,170,255,.08);
  color: var(--accent2);
}
.textSection p { margin: 0; }

/* Cart icon link */
.textSection img {
  width: 22px;
  height: 22px;
  filter: invert(13%) sepia(47%) saturate(1200%) hue-rotate(185deg) brightness(60%);
  transition: filter .2s;
}
.textSection:hover img {
  filter: invert(40%) sepia(90%) saturate(500%) hue-rotate(185deg) brightness(90%);
}

/* ── Hamburger ── */
#menu {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
  cursor: pointer;
}
#menu:hover { background: rgba(0,170,255,.1); }
#menu img {
  width: 24px; height: 24px;
  filter: invert(13%) sepia(47%) saturate(1200%) hue-rotate(185deg) brightness(60%);
}

/* ── Lateral menu ── */
#menuLateral {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(6,42,66,.12);
  overflow-x: hidden;
  transition: width .3s cubic-bezier(.4,0,.2,1);
  padding-top: 20px;
  z-index: 1000;
}

#menuLateral a {
  padding: 14px 28px;
  text-decoration: none;
  font-family: "DM Sans", "Roboto", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--brand);
  display: block;
  transition: background .2s, color .2s, padding-left .2s;
  border-left: 3px solid transparent;
}

#menuLateral a:hover {
  background: rgba(0,170,255,.07);
  color: var(--accent2);
  border-left-color: var(--accent);
  padding-left: 34px;
}

#menuLateral #cerrarMenu {
  text-align: right;
  padding: 4px 20px 20px;
  border-left: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
#menuLateral #cerrarMenu:hover {
  background: rgba(255,77,77,.07);
  border-left-color: transparent;
  padding-left: 28px;
}

#creu {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--muted);
  margin: 0;
  transition: color .2s;
}
#menuLateral #cerrarMenu:hover #creu { color: #ff4d4d; }

/* ── Animaciones cruz ── */
@keyframes rotationClose {
  0%   { rotate: 72deg; }
  25%  { rotate: 144deg; }
  50%  { rotate: 216deg; }
  75%  { rotate: 288deg; }
  100% { rotate: 360deg; }
}

@keyframes rotationOpen {
  0%   { rotate: 288deg; }
  25%  { rotate: 216deg; }
  50%  { rotate: 144deg; }
  75%  { rotate: 72deg; }
  100% { rotate: 0deg; }
}

/* ── Responsive ── */
@media (max-width: 800px) {
  #menu { display: flex; }
  .textSection { display: none; }
  .all { padding: 0 20px; }
}