:root{
  --bg:#0b1320;
  --card:#111c2f;
  --text:#f5f7fb;
  --muted:#b9c2d3;
  --line:rgba(255,255,255,.10);
  --accent:#2b65ff;
  --accent2:#00c2ff;
  --danger:#ff3b30;
  --ok:#34c759;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(43,101,255,.25), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(0,194,255,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:24px}
.nav{
  display:flex;
  align-items:center;
  justify-content:center; /* sin botones arriba */
  gap:16px;
  padding:14px 16px;
  margin: 10px 0 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(11,19,32,.78);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  position: relative; /* no flotante */
  top: auto;
  z-index: 10;
  overflow:hidden; /* asegura radios visibles */
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{width:42px;height:42px;border-radius:999px;object-fit:cover;border:1px solid var(--line)}
.brand .title{font-weight:700;letter-spacing:.08em}
.nav .links{display:flex;gap:14px;align-items:center}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid var(--line);padding:8px 12px;border-radius:999px;
  text-decoration:none;color:var(--text);background:rgba(255,255,255,.03)
}
.pill:hover{border-color:rgba(255,255,255,.18)}
.hero{padding:42px 0 18px}
.hero h1{font-size:44px;line-height:1.05;margin:0 0 12px}
.hero p{margin:0;color:var(--muted);max-width:70ch}
.grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:900px){.grid{grid-template-columns:1.15fr .85fr}}
.card{
  background:rgba(17,28,47,.72);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.04);color:var(--text);
  text-decoration:none;cursor:pointer;
}
.btn:hover{border-color:rgba(255,255,255,.2)}
.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent2));border-color:transparent}
.btn.primary:hover{filter:brightness(1.03)}
.btn.danger{background:rgba(255,59,48,.12);border-color:rgba(255,59,48,.35)}
.muted{color:var(--muted)}
.badge{
  display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;
  border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--muted)
}
.products{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:900px){.products{grid-template-columns:1fr 1fr}}
.product{
  display:flex;gap:14px;align-items:flex-start
}
.product img{
  width:110px;
  height:180px;
  border-radius:14px;
  object-fit:contain;
  object-position:center;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
label{display:block;font-size:13px;color:var(--muted);margin:10px 0 6px}
input, select, textarea{
  width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.03);color:var(--text);outline:none;
}
input:focus, select:focus, textarea:focus{border-color:rgba(43,101,255,.55)}
.split{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:700px){.split{grid-template-columns:1fr 1fr}}
table{width:100%;border-collapse:collapse}
th, td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left}
th{color:var(--muted);font-weight:600;font-size:13px}
.right{text-align:right}
.footer{padding:30px 0;color:var(--muted);font-size:13px}
.notice{
  padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.03);
  color:var(--muted)
}
.notice.ok{border-color:rgba(52,199,89,.35);background:rgba(52,199,89,.08);color:#d9ffe6}
.notice.bad{border-color:rgba(255,59,48,.35);background:rgba(255,59,48,.08);color:#ffd9d7}

/* Bottom navigation (mobile-first) */
body{ padding-bottom: 78px; }
.bottom-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(11,19,32,.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.bottom-nav .wrap{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a{
  text-decoration:none;
  padding: 10px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color: var(--muted);
  font-size: 11px;
}
.bottom-nav a.active{ color: var(--text); }
.bottom-nav svg{ width: 22px; height: 22px; opacity: .95; }
.bottom-nav a.active svg{ filter: drop-shadow(0 0 10px rgba(43,101,255,.35)); }


/* Background assets */
.hero-bg{
  background-image:url('/assets/img/bg/bg_hero.png');
  background-size:cover;
  background-position:center;
  border-radius:18px;
}
.product-bg{
  position:relative;
  overflow:hidden;
  background-size:cover;
  background-position:center;
}
.product-bg::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,19,32,.20), rgba(11,19,32,.72));
}
.product-bg > *{ position:relative; z-index:1; }
.product-bg.london{ background-image:url('/assets/img/bg/bg_london.png'); }
.product-bg.blu{ background-image:url('/assets/img/bg/bg_blu.png'); }

/* Make bottle images pop a bit */
.product-bg img{
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}
/* Cookie banner (informativo, sin tracking) */
.cookie-banner{
  position: fixed;
  left: 0; right: 0;
  bottom: 78px; /* arriba del bottom-nav */
  z-index: 110;
  padding: 10px 12px;
}
.cookie-banner__inner{
  max-width: 1100px;
  margin: 0 auto;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,19,32,.92);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 10px 12px;
}
.cookie-banner__text{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.cookie-banner__text a{ color: var(--text); text-decoration: underline; }
@media(max-width:720px){
  .cookie-banner__inner{ flex-direction:column; align-items:stretch; }
  .cookie-banner{ bottom: 86px; }
}


/* --- v2.8: footer global (+18 + ©) en todas las vistas --- */
.global-footnote{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px 96px; /* espacio para el bottom-nav */
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  opacity: .95;
}

.card table thead, .card table tbody, .card table tr{
    width: max-content;
  }
  .card table th, .card table td{
    white-space: nowrap;
  }
  .card table td:first-child{
    white-space: normal;
    min-width: 180px;
  }
  .btn{ white-space: nowrap; }
}


/* --- v2.9: consolidación (sin solapamientos) --- */
.nav .links{ display:none !important; }  /* se navega con bottom-nav */
.brand{ margin: 0 auto; }
.brand img{ border-radius:999px !important; }

/* Cards de productos (productos.php) */
.card.product img{
  width:140px;
  height:230px;
  object-fit:contain;
  object-position:center;
  border-radius:16px;
}

/* En mobile, un poco más chico */
@media(max-width:720px){
  .product img{ width:96px; height:160px; }
  .card.product img{ width:110px; height:190px; }
}

/* Icono Instagram visible siempre */
.footer .pill svg,
.pill svg{
  display:inline-block !important;
  margin-right:6px;
  vertical-align:-3px;
}


/* --- v2.10: carrito en formato vertical (sin tablas, sin scroll lateral) --- */
.cart-type select{ width:100%; }
.cart-list{ display:flex; flex-direction:column; gap:14px; }
.cart-item{
  display:flex;
  gap:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(255,255,255,.03);
}
.cart-item__img{
  width: 96px;
  min-width: 96px;
  height: 140px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.cart-item__img img{
  width: 86px;
  height: 130px;
  object-fit: contain;
  object-position: center;
}
.cart-item__title{
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}
.cart-item__body{ flex:1; }
.cart-kv{ display:flex; flex-direction:column; gap:10px; }
.cart-kv__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.cart-kv__k{ color: var(--muted); font-size: 13px; }
.cart-kv__v{ text-align:right; }
.cart-kv__v input{ width: 120px; text-align:left; }
.cart-item__actions{ margin-top: 12px; display:flex; justify-content:flex-end; }

.cart-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top: 6px;
}
.cart-summary__right{ display:flex; align-items:center; gap:10px; }

@media(max-width:720px){
  .cart-item{ padding:12px; gap:12px; }
  .cart-item__img{ width: 84px; min-width: 84px; height: 130px; }
  .cart-item__img img{ width: 74px; height: 120px; }
  .cart-kv__v input{ width: 110px; }
  .cart-summary{ flex-direction:column; align-items:stretch; }
  .cart-summary__right{ justify-content:space-between; }
}


/* --- form ui polish: custom validation + autofill/select/number --- */
input, select, textarea{
  color-scheme: dark;
}

input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: rgba(43,101,255,.40);
  box-shadow: 0 0 0 3px rgba(43,101,255,.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"]{
  border-color: rgba(255,90,103,.42) !important;
  box-shadow: 0 0 0 3px rgba(255,90,103,.10);
}

.app-form-notice{
  display:none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill{
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(11,19,32,.98) inset !important;
  box-shadow: 0 0 0 1000px rgba(11,19,32,.98) inset !important;
  transition: background-color 99999s ease-in-out 0s;
  caret-color: var(--text);
}

select{
  background-color: rgba(255,255,255,.04);
  color: var(--text);
}

select option{
  background:#0b1320;
  color:#f4f7fb;
}

input[type="number"]{
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

@media(max-width:720px){
  .app-form-notice{
    font-size: 13px;
  }
}


/* --- productos buttons fix --- */
.products-account-card{
  align-items:center;
}

.products-account-card__actions{
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:10px;
  min-width:210px;
}

.products-account-card__actions .btn{
  width:100%;
  justify-content:center;
}

@media(max-width:720px){
  .products-account-card{
    align-items:stretch;
  }

  .products-account-card__actions{
    margin-left:0;
    min-width:0;
    width:100%;
  }
}
