:root{
  --guinda:#6a1b2d;
  --dorado:#b38e2e;
  --gris:#f6f7f9;
  --texto:#1f2937;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--texto);
  background: #ffffff;
}

.topbar{
  background:var(--guinda);
  height:64px;
}
.subbar{
  background:var(--dorado);
  height:18px;
}

.header{
  position:relative;
  padding:18px 24px 8px 24px;
  display:flex;
  align-items:center;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.brand .logo{
  width:54px;
  height:54px;
  border-radius:999px;
  background:#fff;
  border:3px solid #111;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.brand .logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.brand .site{
  font-weight:700;
  font-size:20px;
}
.brand .site small{
  font-weight:500;
  opacity:.8;
  margin-left:6px;
}

.watermark{
  position:absolute;
  inset:0;
  pointer-events:none;
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  padding:24px 24px;
  opacity:.14;
  filter:grayscale(100%);
}
.watermark .wm{
  text-align:right;
  line-height:1;
}
.watermark .wm .mx{
  font-size:84px;
  font-weight:800;
  letter-spacing:1px;
}
.watermark .wm .gob{
  font-size:36px;
  font-weight:600;
  opacity:.9;
}

.container{
  padding: 8px 24px 42px 24px;
  max-width:1100px;
  margin:0 auto;
}

.card{
  background:#fff;
  border-radius:18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.06);
  padding:22px;
}

.center{
  min-height: calc(100vh - 64px - 18px - 90px);
  display:flex;
  align-items:center;
  justify-content:center;
}

.title{
  font-size:28px;
  font-weight:800;
  margin:0 0 6px 0;
}

.subtitle{
  margin:0 0 14px 0;
  opacity:.8;
}

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

.searchRow input{
  flex:1;
  height:52px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.15);
  padding:0 16px;
  font-size:18px;
  outline:none;
}
.searchRow input:focus{
  border-color: rgba(179,142,46,.8);
  box-shadow: 0 0 0 4px rgba(179,142,46,.18);
}

.searchRow button{
  height:52px;
  border-radius:14px;
  border:none;
  padding:0 18px;
  font-size:18px;
  cursor:pointer;
  color:#fff;
  background: #1f6f3b;
}
.searchRow button:hover{
  filter:brightness(.96);
}

.hrule{
  height:1px;
  background:rgba(0,0,0,.08);
  margin:18px 0;
}

.sectionTitle{
  font-size:34px;
  font-weight:300;
  margin:0 0 18px 0;
}
.sectionTitle span{
  border-bottom:3px solid var(--dorado);
  padding-bottom:4px;
}

.detailGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:26px 56px;
}
.label{
  font-weight:800;
  margin-bottom:6px;
}
.value{
  min-height:24px;
  padding:6px 0;
  color:#374151;
}

.actions{
  margin-top:18px;
  display:flex;
  gap:10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:12px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.12);
  color:#111;
  background:#fff;
}
.btnPrimary{
  background:var(--guinda);
  border-color:transparent;
  color:#fff;
}
.notice{
  border-radius:14px;
  background:#fff8e1;
  border:1px solid #ffe08a;
  padding:12px 14px;
  margin-bottom:14px;
}
.error{
  border-radius:14px;
  background:#fdecec;
  border:1px solid #f8b4b4;
  padding:12px 14px;
  margin-bottom:14px;
}

@media (max-width: 820px){
  .detailGrid{grid-template-columns:1fr; gap:16px}
  .watermark{display:none}
  .brand{min-width:auto}
}

/* === FIX LOGO AGUILA === */
.logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.footer .logo img {
  height: 42px;
  max-width: 160px;
}


/* ===== OVERRIDE LOGO ÁGUILA (NO CIRCULAR) ===== */
.brand .logo,
.footer .logo,
.header .logo,
.topbar .logo {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
}

.brand .logo img,
.footer .logo img,
.header .logo img,
.topbar .logo img {
  height: 46px !important;      /* tamaño “mediano” */
  width: auto !important;
  max-width: 180px !important;  /* evita que sobresalga */
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block !important;
}

/* evita recorte por barras */
.topbar,
.subbar,
.header {
  overflow: visible !important;
}
/* FIX logo: que no se lave en Detalle */
.header .logo img{
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.header .logo{
  opacity: 1 !important;
  filter: none !important;
}

/* =========================
   HEADER REAL (barra vino)
   ========================= */
.topbar{
  background:#6a1b1b !important;
  height:72px !important;
  display:flex !important;
  align-items:center !important;
}

.topbar .header-inner{
  width:min(1100px, 94vw);
  margin:0 auto;
  display:flex;
  align-items:center;
}

.topbar .brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.topbar .logo img{
  height:46px !important;
  width:auto !important;
  max-width:180px !important;
  object-fit:contain !important;
  display:block !important;
}

.topbar .site{
  color:#fff !important;
  font-weight:700;
  font-size:28px;
  letter-spacing:.2px;
}

.topbar .site small{
  color:rgba(255,255,255,.85) !important;
  font-weight:500;
  margin-left:10px;
  font-size:22px;
}
/* ===== HEADER FIJO EN BARRA VINO (NO MUEVE EL LAYOUT) ===== */

/* barra vino */
.topbar{
  background:#6b1523 !important;
  height:64px !important;
}

/* el header ya NO debe ocupar espacio */
.header{
  margin:0 !important;
  padding:0 !important;
  height:0 !important;
  min-height:0 !important;
  overflow:visible !important;
}

/* SOLO el logo + texto se coloca arriba, SIN empujar nada */
.header .brand{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height:64px !important;
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  padding: 0 18px !important;
  z-index: 9999 !important;
  pointer-events: none !important; /* no estorba clics */
}

/* pero el logo sí puede recibir clic (opcional) */
.header .brand .logo,
.header .brand .site{
  pointer-events: auto !important;
}

/* texto blanco */
.header .site,
.header .site small{
  color:#fff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.25) !important;
}

/* logo limpio (sin borde ni “lavado”) */
.header .logo img{
  height:46px !important;
  width:auto !important;
  max-width:180px !important;
  object-fit:contain !important;
  opacity:1 !important;
  filter:none !important;
  mix-blend-mode:normal !important;
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}
.header .logo{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}

/* para que el contenido no quede tapado por la barra */
.container,
.container.center,
.recipient,
.recipiente{
  padding-top: 76px !important;
}
