* { box-sizing: border-box; }
:root {
  --brand: #FF4B6E;      /* rosa salmón Kriothon */
  --brand-dark: #E8385C;
  --brand-light: #FFE3E9;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #2c2c2c;
  margin: 0;
}
a { color: inherit; }

.brand-logo {
  display: flex; align-items: center; gap: 10px;
}
.brand-logo .brand-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.brand-logo .brand-text { line-height: 1.1; text-align: left; }
.brand-logo .brand-text strong { display: block; font-size: 1.05rem; letter-spacing: .5px; }
.brand-logo .brand-text span { display: block; font-size: .65rem; opacity: .6; letter-spacing: 1px; text-transform: uppercase; }

.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(160deg, #fff 60%, var(--brand-light) 100%); }
.admin-card { background: #fff; padding: 32px; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.08); width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--brand); }
.admin-card .brand-logo { justify-content: center; margin-bottom: 4px; }
.admin-card h1 { text-align: center; font-size: 1.3rem; margin-bottom: 8px; }
.admin-card label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.admin-card input { padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd; font-size: 1rem; }
.admin-error { background: #fde2e2; color: #a12727; padding: 8px 12px; border-radius: 8px; font-size: .85rem; }

.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-bottom: 3px solid var(--brand);
  position: sticky; top: 0; z-index: 10; flex-wrap: wrap; gap: 10px;
}
.admin-header h1 { font-size: 1.2rem; }
.admin-main { max-width: 960px; margin: 0 auto; padding: 24px; }

.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: none; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn-small { padding: 6px 12px; font-size: .8rem; background: var(--brand-light); color: var(--brand-dark); }
.btn-danger { background: #2c2c2c; color: #fff; }
.btn-large { width: 100%; padding: 16px; font-size: 1.05rem; margin-top: 10px; }

.empty-state { text-align: center; padding: 60px 20px; opacity: .6; }

.password-flash {
  background: var(--brand-light); border: 1px solid var(--brand);
  color: var(--brand-dark); padding: 16px 20px; border-radius: 12px;
  margin-bottom: 20px; font-size: .9rem; line-height: 1.6;
}
.password-flash code { background: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.host-link-label { font-size: .7rem; text-transform: uppercase; opacity: .6; margin-bottom: 4px; display: block; }

.invite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.invite-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.invite-card-thumb { height: 130px; background: #ddd; background-size: cover; background-position: center; position: relative; }
.invite-tag { position: absolute; bottom: 8px; left: 8px; background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: .75rem; }
.invite-card-body { padding: 14px; }
.invite-date { opacity: .7; font-size: .85rem; margin: 4px 0; }
.invite-confirmados { font-size: .85rem; margin-bottom: 10px; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.invite-link input { width: 100%; padding: 6px 8px; font-size: .75rem; border-radius: 6px; border: 1px solid #ddd; background: #fafafa; }

.editor-form fieldset { background: #fff; border: none; border-radius: 14px; padding: 20px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.editor-form legend { font-weight: 700; padding: 0 6px; }
.editor-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.editor-form input[type=text], .editor-form input[type=date], .editor-form input[type=datetime-local],
.editor-form input[type=number], .editor-form select, .editor-form textarea, .editor-form input[type=file] {
  font-family: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd; font-size: .95rem;
}
.checkbox-inline { flex-direction: row !important; align-items: center; gap: 8px !important; }
.hint { font-size: .8rem; opacity: .65; margin-top: -6px; margin-bottom: 12px; }

.template-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.template-option { flex-direction: row !important; align-items: center; gap: 6px !important; background: var(--brand-light); padding: 8px 14px; border-radius: 30px; cursor: pointer; font-weight: 600; color: var(--brand-dark); }
.template-option input { accent-color: var(--brand); }

.color-row { display: flex; gap: 16px; flex-wrap: wrap; }
.color-row label { flex: 1; min-width: 100px; }
.color-row input[type=color] { height: 42px; padding: 2px; }

.itinerary-row {
  display: grid; grid-template-columns: 70px 56px 1.2fr 1.6fr 1fr 32px;
  gap: 8px; align-items: center; margin-bottom: 10px;
}
.itinerary-row input, .itinerary-row select {
  font-family: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #ddd; font-size: .85rem;
}
.btn-remove-row {
  background: #f3d4d4; color: #a12727; border: none; border-radius: 8px;
  width: 32px; height: 34px; cursor: pointer; font-size: .9rem;
}
@media (max-width: 700px) {
  .itinerary-row { grid-template-columns: 1fr 1fr; grid-template-areas: "time icon" "title title" "desc desc" "loc loc" "remove remove"; }
  .itin-time { grid-area: time; } .itin-icon { grid-area: icon; } .itin-title { grid-area: title; }
  .itin-desc { grid-area: desc; } .itin-loc { grid-area: loc; } .btn-remove-row { grid-area: remove; width: 100%; }
}

.custom-row {
  background: #f9f8f6; border-radius: 12px; padding: 14px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.custom-row input[type=text], .custom-row textarea {
  font-family: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #ddd; font-size: .9rem; width: 100%;
}
.custom-photo-label { font-size: .8rem; font-weight: 600; }
.custom-row .btn-remove-row { width: auto; align-self: flex-start; padding: 0 12px; font-size: .8rem; }

.preview-thumb { max-width: 220px; border-radius: 10px; margin: 8px 0; display: block; }
.gallery-preview { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.preview-thumb-sm { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }

.totals-row { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.total-card { background: #fff; padding: 18px 24px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); text-align: center; flex: 1; min-width: 140px; }
.total-card strong { display: block; font-size: 1.6rem; }
.total-card span { font-size: .8rem; opacity: .7; }

.rsvp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.rsvp-table th, .rsvp-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee; font-size: .88rem; }
.rsvp-table th { background: var(--brand-light); color: var(--brand-dark); }
.total-card strong { color: var(--brand-dark); }

.dream-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.dream-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.dream-preview {
  padding: 26px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  min-height: 150px; justify-content: center;
}
.dream-eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 4px; }
.dream-title { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.dream-subtitle { font-size: .85rem; font-weight: 600; margin-top: 2px; }
.dream-swatches { display: flex; gap: 6px; margin-top: 12px; }
.dream-swatches i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.dream-body { padding: 16px; text-align: center; }
.dream-body h3 { font-size: 1rem; margin-bottom: 4px; }
.dream-body .hint { margin: 0 0 12px; }

@media (max-width: 600px) {
  .admin-header { flex-direction: column; align-items: flex-start; }
}
