/* =============================================
   BODA REBECA & JUAN — Estilos compartidos
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

/* === VARIABLES === */
:root {
  --sidebar-w: 240px;
  --nav-h: 68px;

  --color-bg:           #faf9f7;
  --color-gold:         #c4985a;
  --color-gold-light:   #d4b07a;
  --color-gold-dark:    #a37840;
  --color-sage:         #7a8f6e;
  --color-dark:         #2c1f14;
  --color-muted:        #8a7a6e;
  --color-border:       rgba(0,0,0,0.07);

  --color-sidebar:      #1a1410;
  --color-sidebar-hover:#2c2018;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-dark);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* === APP LAYOUT === */
.app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* === SIDEBAR (desktop) === */
.sidebar {
  width: var(--sidebar-w);
  background: var(--color-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  text-align: center;
  padding: 2.25rem 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logo-monogram {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--color-gold);
  line-height: 1;
  font-style: italic;
  letter-spacing: -1px;
}

.logo-amp {
  color: var(--color-gold-light);
  font-style: normal;
  margin: 0 2px;
}

.logo-date {
  display: block;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

.nav-list {
  list-style: none;
  padding: 1.25rem 0.75rem;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 1rem;
  color: rgba(255,255,255,0.45);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.3px;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 0.15rem;
}

.nav-link:hover {
  background: var(--color-sidebar-hover);
  color: rgba(255,255,255,0.85);
}

.nav-link.active {
  background: var(--color-sidebar-hover);
  color: var(--color-gold);
  font-weight: 400;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* === MAIN === */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  min-height: 100dvh;
}

/* === PAGE STRUCTURE (páginas interiores) === */
.page-header {
  padding: 3rem 3rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.15;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.page-content {
  padding: 2.5rem 3rem;
}

/* === COMING SOON placeholder === */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  text-align: center;
  gap: 1.25rem;
  color: var(--color-muted);
}

.coming-soon-icon {
  width: 56px;
  height: 56px;
  opacity: 0.25;
}

.coming-soon-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  opacity: 0.55;
}

/* === FAB + DRAWER (mobile only) === */

/* Overlay oscuro al abrir el drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 290;
  opacity: 0;
  transition: opacity 0.28s;
}
.nav-overlay.open { opacity: 1; }

/* Drawer panel */
.nav-drawer {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-sidebar);
  border-radius: 22px 22px 0 0;
  z-index: 295;
  padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 88vh;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateY(0); }

.nav-drawer-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin: 0.9rem auto 0;
}

.nav-drawer-header {
  text-align: center;
  padding: 1.1rem 0 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.1rem;
}

.nav-drawer-monogram {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--color-gold);
  font-style: italic;
  line-height: 1;
}

/* Grid de items 3 columnas */
.nav-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}

.nav-drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.4rem;
  border-radius: 14px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.65rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-drawer-item svg {
  width: 24px; height: 24px;
}

.nav-drawer-item.active {
  background: rgba(196,152,90,0.14);
  border-color: rgba(196,152,90,0.28);
  color: var(--color-gold);
}

.nav-drawer-item:active {
  background: rgba(255,255,255,0.09);
  color: #fff;
}

/* FAB button */
.nav-fab {
  display: none;
  position: fixed;
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0));
  right: 1.4rem;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-dark);
  border: 1px solid rgba(196,152,90,0.25);
  cursor: pointer;
  z-index: 300;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(0,0,0,0.4);
  transition: transform 0.2s, background 0.2s;
}

.nav-fab svg {
  width: 22px; height: 22px;
  stroke: var(--color-gold);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.nav-fab.open { background: #3d2a18; }
.nav-fab.open svg { transform: rotate(45deg); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar          { display: none; }
  .main             { margin-left: 0; }
  .page-header      { padding: 2rem 1.25rem 1.5rem; }
  .page-title       { font-size: 1.9rem; }
  .page-content     { padding: 1.5rem 1.25rem 6.5rem; }

  .nav-overlay      { display: block; pointer-events: none; }
  .nav-overlay.open { pointer-events: all; }
  .nav-drawer       { display: block; }
  .nav-fab          { display: flex; }
}
