/* ============================================
   JG MODA · Cuenta de clientas, álbum y encabezado (v1.0)
   Mismos colores y fuentes que el resto de la web.
   ============================================ */

/* Encabezado: Catálogo · Álbum · Mi cuenta (en todas las páginas) */
.hdr-extra { display: flex; align-items: center; gap: 14px; }
.hdr-extra .header-link { white-space: nowrap; }
.hdr-cuenta { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-size: 14px; padding: 6px 10px; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; }
.hdr-cuenta svg { width: 18px; height: 18px; }
.hdr-cuenta .hdr-ini, .hdr-cuenta img { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #6B2D4A; color: #fff; font-size: 12px; object-fit: cover; }
@media (max-width: 480px) {
  .hdr-extra { gap: 10px; }
  .hdr-cuenta span { display: none; }
  .hdr-cuenta { padding: 6px; }
}

/* Aviso fijo de vista previa (solo la dueña lo ve) */
.vista-previa { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9999; background: #2B1C24; color: #fff;
  font: 500 13px/1.3 Manrope, system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 24px); }
.vista-previa a { color: #F2C6C8; font-weight: 600; }

/* Páginas nuevas (MVC) */
.app-main { width: min(720px, 100% - 32px); margin: 24px auto 48px; display: flex; flex-direction: column; gap: 16px; font-family: Manrope, system-ui, sans-serif; }
.app-tarjeta { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 18px; padding: 24px; }
.app-tarjeta h1 { font: 500 34px/1.1 'Cormorant Garamond', serif; margin: 0 0 16px; }
.app-tarjeta h2 { font: 500 24px/1.2 'Cormorant Garamond', serif; margin: 0 0 12px; display: inline; }
.app-form form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.app-campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.app-campo span { color: #555; }
.app-campo em { color: #999; font-style: normal; }
.app-campo input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid rgba(0,0,0,.18); border-radius: 12px; background: #fff; }
.app-campo input:focus { outline: 2px solid #6B2D4A; outline-offset: 1px; }
.app-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #555; line-height: 1.45; }
.app-casilla input { margin-top: 3px; accent-color: #6B2D4A; }
.app-boton { display: inline-flex; justify-content: center; align-items: center; gap: 6px; font: 600 15px Manrope, sans-serif; color: #fff; background: #6B2D4A; border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; text-decoration: none; }
.app-boton--claro { background: #F4EDEF; color: #6B2D4A; padding: 9px 16px; font-size: 14px; }
.app-enlace { background: none; border: 0; color: #6B2D4A; font: 500 14px Manrope, sans-serif; text-decoration: underline; cursor: pointer; padding: 0; }
.app-alterno { text-align: center; font-size: 14px; color: #666; margin: 14px 0 0; }
.app-alterno a { color: #6B2D4A; font-weight: 600; }
.app-tenue { color: #777; font-size: 14.5px; margin: 6px 0 0; }
.app-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.app-aviso { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; background: #EEF6F1; color: #1E6B43; }
.app-aviso--error { background: #FDF1F0; color: #B42318; }
.app-perfil-cab { display: flex; gap: 18px; align-items: center; }
.app-avatar { width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; background: #6B2D4A; color: #fff; display: grid; place-items: center; font: 500 34px 'Cormorant Garamond', serif; }
.app-avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-perfil-cab h1 { margin: 0 0 2px; font-size: 30px; }
.app-perfil-cab p { margin: 0; color: #777; font-size: 14px; }
.app-perfil-acc { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
details.app-tarjeta summary { cursor: pointer; list-style: none; }
details.app-tarjeta summary::-webkit-details-marker { display: none; }
details.app-tarjeta[open] summary { margin-bottom: 8px; }
.app-salir { text-align: center; }
.app-error { text-align: center; }
.app-error p { color: #666; margin: 0 0 18px; }
.app-pie { text-align: center; padding: 28px 16px 40px; color: #888; font: 13px Manrope, sans-serif; }
.app-pie nav { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
.app-pie a { color: #6B2D4A; }

/* Álbum */
.app-main:has(.app-album) { width: min(1180px, 100% - 32px); }
.app-album-cab { text-align: center; }
.app-album-cab h1 { font: 500 42px/1.1 'Cormorant Garamond', serif; margin: 8px 0 6px; }
.app-album-cab p { color: #666; margin: 0; }
.app-album { columns: 3 280px; column-gap: 14px; }
.app-album-foto { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 16px; overflow: hidden; background: #f4f0f1; }
.app-album-foto img { display: block; width: 100%; height: auto; }
.app-album-foto figcaption { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; background: #fff; font-size: 14px; }
.app-album-foto figcaption a { color: #6B2D4A; font-weight: 600; white-space: nowrap; }
.app-album-foto.es-borrador { outline: 2px dashed #C9A227; }
.app-borrador { position: absolute; top: 10px; left: 10px; background: #C9A227; color: #fff; font: 600 12px Manrope, sans-serif; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 560px) {
  .app-tarjeta { padding: 18px; border-radius: 16px; }
  .app-fila { grid-template-columns: 1fr; }
  .app-album { columns: 2 150px; column-gap: 10px; }
  .app-album-foto { margin-bottom: 10px; }
  .app-album-foto figcaption { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; font-size: 13px; }
}
