@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --gold: #B8924A;
  --gold-hover: #9A7A3A;
  --dark: #1a1a1a;
  --cream: #F5F0E8;
  --text: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  background: #fff;
  color: var(--text);
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  background: #fff;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0d9cc;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links a.admin-link {
  color: var(--gold);
  font-weight: 700;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
}

/* ══════════════════════════════
   BOTONES
══════════════════════════════ */
.btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--gold-hover); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  margin-left: 10px;
}

.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

/* ══════════════════════════════
   SECCIONES
══════════════════════════════ */
section { padding: 80px 40px; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--dark);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 50px;
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.about-text p {
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

/* ══════════════════════════════
   MENÚ PDF
══════════════════════════════ */
.menu-page { background: var(--cream); min-height: 80vh; }

.menu-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.menu-pdf-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-top: 30px;
}

.menu-pdf-wrapper iframe {
  width: 100%;
  height: 750px;
  border: none;
  border-radius: 8px;
}

.menu-no-pdf { padding: 60px 20px; color: #888; }
.menu-no-pdf i { font-size: 3rem; display: block; margin-bottom: 15px; }

/* ══════════════════════════════
   RESERVAS
══════════════════════════════ */
.reservation-form {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { height: 120px; resize: vertical; }
.form-submit { text-align: center; margin-top: 20px; }

/* ══════════════════════════════
   GALERÍA
══════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  background: var(--cream);
  aspect-ratio: 4/3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
  overflow: hidden;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-item { margin-bottom: 15px; font-size: 1rem; line-height: 1.6; }
.contact-item strong { color: var(--gold); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  line-height: 2;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ══════════════════════════════
   ADMIN PANEL
══════════════════════════════ */
.admin-panel {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.admin-panel h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--dark);
}

.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.admin-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
}

table { width: 100%; border-collapse: collapse; }

table th {
  background: var(--dark);
  color: #fff;
  padding: 12px 15px;
  text-align: left;
  font-size: 0.9rem;
}

table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

table tr:hover td { background: #fafafa; }

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-pending   { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d1e7dd; color: #0f5132; }
.badge-cancelled { background: #f8d7da; color: #842029; }

/* ══════════════════════════════
   LOGIN
══════════════════════════════ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}

.login-box {
  background: #fff;
  padding: 50px 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.login-box p { color: #888; margin-bottom: 30px; }
.login-box .form-group { margin-bottom: 20px; text-align: left; }

.alert {
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-success { background: #d1e7dd; color: #0f5132; }
.alert-error   { background: #f8d7da; color: #842029; }
.alert-info    { background: #cff4fc; color: #055160; }

/* ══════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 9999;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero h1 { font-size: 2.2rem; }

  .about-grid,
  .contact-grid,
  .form-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }

  section { padding: 60px 20px; }

  .reservation-form { padding: 30px 20px; }
}
