/* ============================================================
   brizen.css — Estilos globales Brizen Apartments
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brizen:        #7a4010;
  --brizen-dark:   #5e3009;
  --brizen-light:  #fdf8f4;
  --brizen-border: #f0e6da;
  --text:          #1a1a1a;
  --muted:         #666;
  --radius:        8px;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.14);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: var(--brizen);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brizen);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.logo-text span:last-child {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-currency { color: #fff; font-size: 0.85rem; font-weight: 500; }

.btn-login {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-login:hover { background: rgba(255,255,255,0.25); }

/* ── HERO (index) ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.45) 100%),
    url('https://images.unsplash.com/photo-1583422409516-2895a77efded?w=1600&q=80') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* ── SEARCH BOX ── */
.search-box {
  background: rgba(255,255,255,0.97);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
}

.search-tabs {
  display: flex;
  background: rgba(0,0,0,0.06);
}

.search-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  user-select: none;
  border: none;
  background: transparent;
  font-family: inherit;
}

.search-tab.active {
  background: #fff;
  color: var(--brizen);
  border-bottom: 3px solid var(--brizen);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.search-fields {
  display: flex;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.field {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s;
}

.field:focus-within { border-color: var(--brizen); }

.field-icon { font-size: 1.1rem; color: var(--brizen); flex-shrink: 0; }
.field-inner { flex: 1; }

.field-label {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field select,
.field input[type="text"],
.field input[type="date"] {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #333;
  width: 100%;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

.field input::placeholder { color: #aaa; }

.my-reserva-panel {
  padding: 1.25rem;
}

.my-reserva-panel p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.code-input-row {
  display: flex;
  gap: 0.75rem;
}

.code-input-row input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.code-input-row input:focus {
  outline: none;
  border-color: var(--brizen);
}

.btn-buscar {
  background: var(--brizen);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.btn-buscar:hover { background: var(--brizen-dark); }
.btn-buscar:active { transform: scale(0.98); }

/* ── FEATURES ── */
.features {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature-card {
  padding: 2rem 1.5rem;
  border-radius: 10px;
  background: var(--brizen-light);
  border: 1px solid var(--brizen-border);
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: 0 4px 20px rgba(122,64,16,0.12); }

.feature-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brizen);
  margin-bottom: 0.5rem;
}

.feature-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── FOOTER ── */
footer {
  background: var(--brizen);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
}

footer span { color: #fff; font-weight: 500; }

/* ── PAGE WRAPPER (páginas interiores) ── */
.page {
  min-height: 100vh;
  padding-top: 60px;
  background: #f5f0eb;
}

.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── STEP BAR ── */
.step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.step.active { color: var(--brizen); font-weight: 600; }
.step.done   { color: #27ae60; }

.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step.active .step-num { background: var(--brizen); }
.step.done .step-num   { background: #27ae60; }

.step-sep {
  width: 48px;
  height: 2px;
  background: #ddd;
  flex-shrink: 0;
}

/* ── SEARCH SUMMARY BAR ── */
.search-summary {
  background: var(--brizen);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.search-summary strong { font-weight: 700; }

.search-summary a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  font-size: 0.82rem;
  cursor: pointer;
}

/* ── RESULTS HEADER ── */
.results-header { margin-bottom: 1.25rem; }

.results-header h2 { font-size: 1.35rem; font-weight: 700; }

.results-header p { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }

/* ── APARTMENT CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.apt-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.apt-card:hover {
  box-shadow: 0 8px 30px rgba(122,64,16,0.15);
  transform: translateY(-3px);
}

.apt-card-img {
  height: 190px;
  background: linear-gradient(135deg, var(--brizen-light), var(--brizen-border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--brizen);
}

.apt-card-body { padding: 1.25rem; }

.apt-card-building {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brizen);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.apt-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.apt-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.apt-card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.amenity-tag {
  background: var(--brizen-light);
  border: 1px solid var(--brizen-border);
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
  color: var(--brizen);
}

.apt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--brizen-border);
  padding-top: 1rem;
}

.price-amount { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.price-per    { font-size: 0.73rem; color: var(--muted); }
.price-total  { font-size: 0.78rem; color: var(--brizen); font-weight: 600; margin-top: 0.15rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn:active  { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.btn-primary             { background: var(--brizen); color: #fff; }
.btn-primary:hover       { background: var(--brizen-dark); }

.btn-secondary           { background: transparent; color: var(--brizen); border: 2px solid var(--brizen); }
.btn-secondary:hover     { background: var(--brizen-light); }

.btn-full { width: 100%; }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ── FORM CARD ── */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brizen);
  box-shadow: 0 0 0 3px rgba(122,64,16,0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-group.full { grid-column: 1 / -1; }

.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }

/* ── BOOKING SUMMARY CARD ── */
.summary-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.summary-card-header {
  background: var(--brizen);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-card-body { padding: 1.25rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--brizen-border);
}

.summary-row:last-child { border-bottom: none; }

.summary-row .lbl { color: var(--muted); }
.summary-row .val { font-weight: 600; color: var(--text); text-align: right; }

.summary-row.total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--brizen);
  border-bottom: none;
}

.summary-row.total .lbl { font-weight: 700; color: var(--text); }
.summary-row.total .val { font-size: 1.25rem; color: var(--brizen); }

/* ── STATUS BADGES ── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-pending_payment { background: #fff3cd; color: #856404; }
.badge-confirmed       { background: #d4edda; color: #155724; }
.badge-cancelled       { background: #f8d7da; color: #721c24; }
.badge-completed       { background: #cce5ff; color: #004085; }

/* ── ALERTS ── */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── LOADING ── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--muted);
}

.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--brizen-border);
  border-top-color: var(--brizen);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-state p  { color: var(--muted); font-size: 0.9rem; }

/* ── PAYMENT OPTIONS ── */
.payment-options { display: flex; flex-direction: column; gap: 1rem; }

.payment-option {
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-option:hover  { border-color: var(--brizen); }
.payment-option.active { border-color: var(--brizen); background: var(--brizen-light); }

.payment-logo { font-size: 2rem; flex-shrink: 0; }

.payment-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.payment-info p  { font-size: 0.8rem; color: var(--muted); }

.payment-action { margin-top: 1.25rem; }

/* ── CONFIRMATION ── */
.confirm-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.confirm-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.confirm-icon { font-size: 4rem; margin-bottom: 0.75rem; }

.confirm-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.confirm-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

.confirm-code {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--brizen);
  background: var(--brizen-light);
  border: 2px dashed var(--brizen);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  margin: 0.5rem 0 1.25rem;
}

/* ── TWO COLUMN LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* ── RESERVATION DETAIL ── */
.reserva-detail {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.reserva-detail h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.detail-item label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.detail-item span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 600px) {
  .search-fields { flex-direction: column; }
  .btn-buscar    { width: 100%; justify-content: center; }
  nav            { padding: 0 1rem; }
  .page-inner    { padding: 1.25rem 1rem 3rem; }
}
