:root {
    --wine: #3D0C11;
    --wine-light: #5a1520;
    --cream: #F5EDD6;
    --cream-dark: #EAD9B5;
    --gold: #C9A84C;
    --gold-light: #E2C97E;
    --charcoal: #1A1A1A;
    --terra: #8B4513;
    --white: #FAFAF7;
    --shadow: rgba(61,12,17,0.15);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
  }

  /* ── ADMIN BAR ── */
  #admin-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: var(--wine);
    color: var(--gold);
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 20px;
    font-size: 13px;
    transform: translateY(-100%);
    transition: transform .3s;
  }
  #admin-bar.visible { transform: translateY(0); }
  #admin-bar button {
    background: var(--gold); color: var(--wine);
    border: none; padding: 5px 14px; border-radius: 4px;
    font-weight: 700; cursor: pointer; font-size: 12px;
    margin-left: 8px;
  }
  #admin-bar button:hover { background: var(--gold-light); }
  .admin-bar-actions { display: flex; align-items: center; gap: 6px; }
  #admin-login-hint { font-size: 11px; opacity: .7; }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(61,12,17,0.97);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    transition: top .3s;
  }
  body.admin-active nav { top: 38px; }
  .nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px; color: var(--gold); letter-spacing: 2px;
    text-decoration: none;
  }
  .nav-links { display: flex; gap: 28px; list-style: none; }
  .nav-links a {
    color: var(--cream); text-decoration: none; font-size: 13px;
    letter-spacing: 1.5px; text-transform: uppercase; font-weight: 300;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--gold); }
  .hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  }
  .hamburger span { width: 24px; height: 2px; background: var(--cream); display: block; transition: .3s; }
  .mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--wine); z-index: 999; padding: 20px;
    flex-direction: column; gap: 16px;
  }
  .mobile-menu.open { display: flex; }
  body.admin-active .mobile-menu { top: 102px; }
  .mobile-menu a { color: var(--cream); text-decoration: none; font-size: 16px; padding: 8px 0; border-bottom: 1px solid rgba(201,168,76,.2); }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--wine) 0%, #1a0508 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 60px;
    position: relative; overflow: hidden;
  }
  #hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .5;
  }
  .hero-eyebrow {
    font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px; font-weight: 700;
  }
  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 10vw, 96px);
    color: var(--cream); line-height: 1.05; margin-bottom: 16px;
    text-shadow: 0 4px 32px rgba(0,0,0,.4);
  }
  .hero-title em { color: var(--gold); font-style: italic; }
  .hero-subtitle {
    font-size: clamp(14px, 2.5vw, 18px); color: rgba(245,237,214,.7);
    font-weight: 300; letter-spacing: 2px; margin-bottom: 48px;
  }
  .hero-divider {
    width: 80px; height: 1px; background: var(--gold); margin: 0 auto 48px;
    position: relative;
  }
  .hero-divider::before, .hero-divider::after {
    content: '◆'; position: absolute; top: 50%; transform: translateY(-50%);
    color: var(--gold); font-size: 8px;
  }
  .hero-divider::before { left: -12px; }
  .hero-divider::after { right: -12px; }
  .hero-cta {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  }
  .btn-primary {
    background: var(--gold); color: var(--wine);
    padding: 14px 36px; border: none; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; font-size: 12px;
    text-decoration: none; cursor: pointer;
    transition: background .2s, transform .1s;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
  .btn-outline {
    background: transparent; color: var(--cream);
    padding: 14px 36px; border: 1px solid rgba(245,237,214,.4);
    font-weight: 300; letter-spacing: 2px; text-transform: uppercase; font-size: 12px;
    text-decoration: none; cursor: pointer;
    transition: border-color .2s, color .2s;
    display: inline-block;
  }
  .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

  /* ── SECTION ── */
  section { padding: 80px 24px; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-label {
    font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px; font-weight: 700;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px); color: var(--wine);
    margin-bottom: 20px; line-height: 1.2;
  }
  .section-divider {
    width: 48px; height: 2px; background: var(--gold); margin-bottom: 40px;
  }

  /* ── SUGGESTIONS BANNER ── */
  #sugerencias {
    background: var(--wine); color: var(--cream); padding: 60px 24px;
  }
  .sugerencias-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; margin-top: 32px;
  }
  .sugerencia-card {
    background: rgba(255,255,255,.07); border: 1px solid rgba(201,168,76,.25);
    padding: 20px; text-align: center; transition: border-color .2s;
    position: relative;
  }
  .sugerencia-card:hover { border-color: var(--gold); }
  .sugerencia-img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    margin-bottom: 12px; display: block;
  }
  .sugerencia-img-placeholder {
    width: 100%; aspect-ratio: 4/3;
    background: rgba(201,168,76,.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; font-size: 28px; color: var(--gold);
  }
  .sugerencia-name {
    font-family: 'Playfair Display', serif; font-size: 15px; color: var(--gold);
    margin-bottom: 4px;
  }
  .sugerencia-desc { font-size: 12px; opacity: .7; }
  .sugerencia-price { font-size: 14px; font-weight: 700; margin-top: 8px; color: var(--gold-light); }
  .admin-overlay {
    display: none; position: absolute; top: 8px; right: 8px; gap: 6px;
  }
  body.admin-active .admin-overlay { display: flex; }
  .admin-icon-btn {
    background: var(--gold); border: none; cursor: pointer;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--wine); font-weight: 700;
    transition: transform .15s;
  }
  .admin-icon-btn:hover { transform: scale(1.15); }
  .add-card-btn {
    border: 2px dashed rgba(201,168,76,.4); background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; min-height: 160px; color: var(--gold);
    font-size: 24px; transition: border-color .2s;
  }
  .add-card-btn:hover { border-color: var(--gold); }

  /* ── MENU DEL DIA ── */
  #menu-dia { background: var(--cream-dark); }
  .menu-dia-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0; border: 1px solid rgba(61,12,17,.15);
  }
  .menu-dia-col {
    padding: 32px; border-right: 1px solid rgba(61,12,17,.12);
  }
  .menu-dia-col:last-child { border-right: none; }
  .menu-dia-col-title {
    font-family: 'Playfair Display', serif;
    font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--wine); border-bottom: 1px solid var(--gold);
    padding-bottom: 10px; margin-bottom: 20px;
  }
  .menu-dia-items { list-style: none; }
  .menu-dia-items li {
    padding: 8px 0; border-bottom: 1px dashed rgba(61,12,17,.1);
    font-size: 14px; position: relative; display: flex;
    justify-content: space-between; align-items: center; gap: 8px;
  }
  .menu-dia-price {
    background: var(--wine); color: var(--gold);
    font-size: 13px; font-weight: 700; padding: 4px 12px;
    white-space: nowrap; margin-top: 16px; display: inline-block;
  }
  .admin-del-btn {
    display: none; background: #c0392b; color: white; border: none;
    cursor: pointer; width: 20px; height: 20px; border-radius: 50%;
    font-size: 11px; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  body.admin-active .admin-del-btn { display: flex; }
  .add-item-row {
    display: none; margin-top: 10px;
  }
  body.admin-active .add-item-row { display: flex; gap: 6px; }
  .add-item-row input {
    flex: 1; padding: 6px 10px; border: 1px solid var(--wine);
    background: var(--cream); font-size: 13px; color: var(--charcoal);
  }
  .add-item-row button {
    background: var(--wine); color: var(--gold); border: none;
    padding: 6px 12px; cursor: pointer; font-size: 13px;
  }

  /* ── CARTA / MENU TABS ── */
  #carta { background: var(--cream); }
  .menu-tabs {
    display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 40px;
    border-bottom: 2px solid var(--wine);
  }
  .menu-tab {
    padding: 12px 24px; background: none; border: none;
    font-family: 'Lato', sans-serif; font-size: 13px;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; color: var(--charcoal); transition: .2s;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
  }
  .menu-tab.active { color: var(--wine); border-bottom-color: var(--wine); font-weight: 700; }
  .menu-panel { display: none; }
  .menu-panel.active { display: block; }
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .menu-item {
    background: var(--white); border: 1px solid rgba(61,12,17,.1);
    overflow: hidden; position: relative; transition: box-shadow .2s;
  }
  .menu-item:hover { box-shadow: 0 6px 24px var(--shadow); }
  .menu-item-img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  }
  .menu-item-img-placeholder {
    width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: rgba(61,12,17,.15);
  }
  .menu-item-body { padding: 16px 18px; }
  .menu-item-name {
    font-family: 'Playfair Display', serif; font-size: 16px;
    color: var(--wine); margin-bottom: 6px;
  }
  .menu-item-desc { font-size: 12px; color: #666; margin-bottom: 12px; line-height: 1.5; }
  .menu-item-footer {
    display: flex; justify-content: space-between; align-items: center;
  }
  .menu-item-price { font-weight: 700; color: var(--gold); font-size: 15px; }
  .price-tapa { font-size: 11px; color: #999; margin-top: 2px; }
  .item-admin-actions {
    display: none; gap: 6px;
  }
  body.admin-active .item-admin-actions { display: flex; }
  .item-admin-actions button {
    background: none; border: 1px solid #ccc; padding: 4px 8px;
    font-size: 11px; cursor: pointer; border-radius: 3px;
  }
  .item-admin-actions .edit-btn { color: var(--wine); border-color: var(--wine); }
  .item-admin-actions .del-btn { color: #c0392b; border-color: #c0392b; }
  .item-admin-actions .img-btn { color: var(--gold); border-color: var(--gold); }
  .item-hidden-badge {
    position: absolute; top: 8px; left: 8px;
    background: rgba(0,0,0,.7); color: #fff; font-size: 10px;
    padding: 2px 7px; border-radius: 3px; display: none;
  }
  .menu-item.hidden-item { opacity: .4; }
  body.admin-active .hidden-item .item-hidden-badge { display: block; }
  .add-menu-item-btn {
    margin-top: 24px; background: none;
    border: 2px dashed rgba(61,12,17,.25);
    padding: 16px; width: 100%; cursor: pointer;
    color: var(--wine); font-size: 13px; letter-spacing: 1px;
    display: none; transition: border-color .2s;
  }
  body.admin-active .add-menu-item-btn { display: block; }
  .add-menu-item-btn:hover { border-color: var(--wine); }

  /* ── GALERÍA ── */
  #galeria { background: var(--wine); padding: 80px 24px; }
  #galeria .section-title { color: var(--cream); }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px; margin-top: 32px;
  }
  .gallery-slot {
    aspect-ratio: 1; overflow: hidden; position: relative;
    background: rgba(255,255,255,.07); cursor: pointer;
  }
  .gallery-slot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
  .gallery-slot:hover img { transform: scale(1.05); }
  .gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; color: rgba(201,168,76,.4); font-size: 32px;
  }
  .gallery-placeholder span { font-size: 12px; letter-spacing: 2px; }
  .gallery-add-btn {
    aspect-ratio: 1; border: 2px dashed rgba(201,168,76,.3);
    background: none; display: none; align-items: center; justify-content: center;
    cursor: pointer; color: var(--gold); font-size: 28px;
    transition: border-color .2s;
  }
  body.admin-active .gallery-add-btn { display: flex; }
  .gallery-add-btn:hover { border-color: var(--gold); }
  .gallery-slot .slot-delete {
    display: none; position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,.7); color: #fff; border: none; cursor: pointer;
    width: 28px; height: 28px; border-radius: 50%; font-size: 14px;
    align-items: center; justify-content: center;
  }
  body.admin-active .gallery-slot .slot-delete { display: flex; }

  /* ── SOBRE NOSOTROS ── */
  #sobre { background: var(--cream-dark); }
  .sobre-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  }
  .sobre-img-wrap {
    aspect-ratio: 4/5; overflow: hidden; position: relative;
    border: 4px solid var(--gold);
  }
  .sobre-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .sobre-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--cream), var(--cream-dark));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; color: var(--wine); opacity: .4; font-size: 48px;
  }
  .sobre-text p {
    font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 16px;
  }
  .sobre-datos {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px;
  }
  .dato { border-left: 2px solid var(--gold); padding-left: 16px; }
  .dato-num {
    font-family: 'Playfair Display', serif; font-size: 36px; color: var(--wine);
    line-height: 1;
  }
  .dato-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-top: 4px; }

  /* ── RESERVAS ── */
  #reservas { background: var(--wine); text-align: center; }
  #reservas .section-title { color: var(--cream); }
  #reservas .section-label { margin: 0 auto 12px; }
  #reservas .section-divider { margin: 0 auto 40px; }
  .reserva-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(201,168,76,.25);
    max-width: 560px; margin: 0 auto; padding: 48px 40px;
  }
  .reserva-icon { font-size: 52px; margin-bottom: 20px; }
  .reserva-tel {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 44px); color: var(--gold);
    letter-spacing: 2px; margin: 20px 0; display: block;
    text-decoration: none; transition: color .2s;
  }
  .reserva-tel:hover { color: var(--gold-light); }
  .reserva-info { font-size: 14px; color: rgba(245,237,214,.65); line-height: 1.8; }
  .reserva-horario {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin: 28px 0; text-align: left;
  }
  .horario-item { padding: 12px; border: 1px solid rgba(201,168,76,.2); }
  .horario-day { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
  .horario-time { font-size: 14px; color: var(--cream); }

  /* ── MAPA ── */
  #mapa { background: var(--charcoal); padding: 0; }
  #mapa iframe { width: 100%; height: 420px; border: none; display: block; filter: grayscale(20%); }
  .mapa-header { background: var(--charcoal); padding: 40px 24px 24px; }
  .mapa-header .section-title { color: var(--cream); }
  .mapa-header .section-label { display: block; }

  /* ── FOOTER ── */
  footer {
    background: var(--wine); color: rgba(245,237,214,.6);
    padding: 48px 24px 24px; text-align: center;
  }
  .footer-logo {
    font-family: 'Playfair Display', serif; font-size: 28px; color: var(--gold);
    letter-spacing: 3px; display: block; margin-bottom: 8px;
  }
  .footer-tagline { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 32px; }
  .footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
  .footer-links a { color: rgba(245,237,214,.6); text-decoration: none; font-size: 12px; letter-spacing: 1px; transition: color .2s; }
  .footer-links a:hover { color: var(--gold); }
  .footer-copy { font-size: 11px; border-top: 1px solid rgba(201,168,76,.15); padding-top: 20px; margin-top: 20px; }

  /* ── MODALS ── */
  .modal-backdrop {
    display: none; position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,.7); align-items: center; justify-content: center;
    padding: 20px;
  }
  .modal-backdrop.open { display: flex; }
  .modal {
    background: var(--white); max-width: 480px; width: 100%;
    padding: 36px; position: relative; max-height: 90vh; overflow-y: auto;
  }
  .modal h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--wine); margin-bottom: 20px; }
  .modal label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #666; margin-bottom: 6px; margin-top: 16px; }
  .modal input, .modal textarea, .modal select {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd;
    font-size: 14px; font-family: 'Lato', sans-serif; color: var(--charcoal);
    background: var(--cream);
  }
  .modal textarea { resize: vertical; min-height: 80px; }
  .modal-actions { display: flex; gap: 10px; margin-top: 24px; }
  .modal-actions button {
    flex: 1; padding: 12px; border: none; font-size: 13px;
    letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-weight: 700;
  }
  .btn-save { background: var(--wine); color: var(--gold); }
  .btn-cancel { background: #eee; color: #666; }
  .modal-close {
    position: absolute; top: 14px; right: 14px;
    background: none; border: none; font-size: 20px; cursor: pointer; color: #999;
  }

  /* ── ADMIN LOGIN ── */
  #admin-login-modal .modal { max-width: 360px; }
  .login-logo {
    font-family: 'Playfair Display', serif; font-size: 22px; color: var(--wine);
    text-align: center; margin-bottom: 24px; display: block;
  }

  /* ── TOAST ── */
  #toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: var(--charcoal); color: var(--cream); padding: 12px 28px;
    font-size: 13px; z-index: 99999; border-left: 3px solid var(--gold);
    transition: transform .3s; white-space: nowrap;
  }
  #toast.show { transform: translateX(-50%) translateY(0); }

  /* ── IMAGE UPLOAD HIDDEN ── */
  #img-upload-input { display: none; }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    section { padding: 60px 20px; }
    .sobre-grid { grid-template-columns: 1fr; gap: 32px; }
    .sobre-img-wrap { aspect-ratio: 3/2; }
    .sobre-datos { grid-template-columns: 1fr 1fr; }
    .reserva-horario { grid-template-columns: 1fr; }
    .menu-tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0; }
    .menu-tab { white-space: nowrap; font-size: 11px; padding: 12px 16px; }
    .menu-dia-grid { display: block; }
    .menu-dia-col { border-right: none; border-bottom: 1px solid rgba(61,12,17,.1); }
    .reserva-card { padding: 32px 24px; }
  }
  @media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 240px; text-align: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .sobre-datos { grid-template-columns: 1fr; }
  }