/* Spain Tourism · Premium · Rojo & Amarillo España */

:root {
  --bg: #0c0a09;
  --bg-card: #1a1412;
  --bg-input: #2a1f1a;
  --bg-elevated: #221a16;
  --text: #faf7f2;
  --text-muted: #b8a99a;
  --spain-red: #C60B1E;
  --spain-red-dark: #9B0918;
  --spain-yellow: #F1BF00;
  --spain-yellow-dark: #D4A800;
  --accent: var(--spain-yellow);
  --accent-dark: var(--spain-yellow-dark);
  --danger: #ef4444;
  --success: #4ade80;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(0,0,0,.45);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(198,11,30,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(241,191,0,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0c0a09 0%, #120e0c 50%, #0c0a09 100%);
}

[hidden] { display: none !important; }

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(12, 10, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(241,191,0,0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.logo-img {
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(198,11,30,0.5);
}
.logo-text {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #fff 20%, var(--spain-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid rgba(241,191,0,0.12);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s, border-color .15s;
}
.btn-icon:hover { background: var(--bg-input); border-color: rgba(241,191,0,0.3); }
.btn-icon:active { transform: scale(0.96); }
.btn-icon-sm {
  background: transparent; border: none;
  color: var(--text-muted); font-size: 18px;
  cursor: pointer; padding: 8px;
  border-radius: 8px;
}
.btn-icon-sm:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-back {
  background: none; border: none;
  color: var(--spain-yellow); font-size: 22px;
  cursor: pointer; padding: 4px 8px 4px 0;
  line-height: 1;
}
.btn-install {
  background: linear-gradient(135deg, var(--spain-red), var(--spain-red-dark));
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(198,11,30,0.4);
}

/* Side menu */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 80;
  backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.side-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--bg-card);
  z-index: 90;
  padding: 20px 16px;
  padding-top: max(20px, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.55);
  animation: slideIn .28s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid rgba(241,191,0,0.15);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(241,191,0,0.15);
}
.side-menu-header strong { font-size: 17px; }
.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  transition: background .15s;
}
.menu-link:hover { background: var(--bg-input); }
.menu-footer {
  margin-top: auto;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
.menu-badge {
  background: linear-gradient(135deg, var(--spain-red), #e11d2e);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: auto;
  letter-spacing: 0.3px;
}

/* Vistas */
.vista {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(70px + var(--safe-bottom));
  animation: vistaIn .28s ease;
}
@keyframes vistaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.intro { margin-bottom: 20px; }
.intro h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 40%, var(--spain-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

.pro-banner {
  background: linear-gradient(135deg, rgba(198,11,30,0.28), rgba(241,191,0,0.12));
  border: 1px solid rgba(241,191,0,0.28);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(198,11,30,0.12);
}
.pro-banner .icon { font-size: 26px; flex-shrink: 0; }
.pro-banner strong { display: block; font-size: 14px; margin-bottom: 2px; color: var(--spain-yellow); }
.pro-banner span { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state.small { padding: 32px 16px; }
.empty-icon { font-size: 52px; margin-bottom: 12px; filter: grayscale(0.2); }
.empty-state p { margin-bottom: 20px; font-size: 15px; }

.btn-primary {
  background: linear-gradient(135deg, var(--spain-yellow), var(--spain-yellow-dark));
  color: #1a0f0a;
  border: none; padding: 14px 22px;
  border-radius: 14px; font-weight: 800;
  font-size: 15px; cursor: pointer; width: 100%;
  box-shadow: 0 4px 18px rgba(241,191,0,0.35);
  transition: transform .12s, box-shadow .12s;
  letter-spacing: -0.2px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(241,191,0,0.45); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: var(--bg-input); color: var(--text);
  border: 1px solid rgba(241,191,0,0.15);
  padding: 12px 18px;
  border-radius: 12px; font-weight: 600;
  font-size: 14px; cursor: pointer; width: 100%; margin-top: 8px;
}
.btn-danger {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(239,68,68,0.5);
  padding: 12px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; width: 100%; margin-top: 12px;
}
.btn-danger:hover { background: rgba(239,68,68,0.12); }
.btn-sm { padding: 10px 16px; font-size: 13px; width: auto; }
.btn-spain {
  background: linear-gradient(135deg, var(--spain-red), var(--spain-red-dark));
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 14px rgba(198,11,30,0.4);
}

/* Viajes */
.lista-viajes { display: flex; flex-direction: column; gap: 12px; }
.viaje-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid rgba(241,191,0,0.1);
  transition: border-color .15s, transform .12s, box-shadow .15s;
  position: relative;
}
.viaje-card:hover {
  border-color: rgba(241,191,0,0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.viaje-card h3 { font-size: 1.05rem; margin-bottom: 4px; font-weight: 700; }
.viaje-fechas { display: block; font-size: 12px; color: var(--text-muted); }
.viaje-count { font-size: 12px; color: var(--spain-yellow); font-weight: 600; }
.viaje-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-delete-viaje {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--danger);
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.btn-delete-viaje:hover { background: rgba(239,68,68,0.25); }

/* Detalle */
.detalle-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.detalle-titulo { flex: 1; min-width: 0; }
.detalle-titulo h2 { font-size: 1.2rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.acciones-viaje { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.btn-accion {
  flex: 1; min-width: 70px;
  background: var(--bg-card); border: 1px solid rgba(241,191,0,0.12);
  color: var(--text); padding: 11px 8px;
  border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-accion:hover { background: var(--bg-input); border-color: rgba(241,191,0,0.3); }
.btn-accion.danger {
  border-color: rgba(239,68,68,0.3);
  color: var(--danger);
}
.btn-accion.danger:hover { background: rgba(239,68,68,0.12); }

.filtros-tipo {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.filtros-tipo::-webkit-scrollbar { display: none; }
.filtro {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid rgba(241,191,0,0.1);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.filtro.active {
  background: linear-gradient(135deg, var(--spain-yellow), var(--spain-yellow-dark));
  color: #1a0f0a;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(241,191,0,0.3);
}

/* Lugares */
.lista-lugares { display: flex; flex-direction: column; gap: 12px; }
.lugar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid rgba(241,191,0,0.08);
  cursor: pointer;
  transition: border-color .15s, transform .12s;
}
.lugar-card:hover { border-color: rgba(241,191,0,0.28); transform: translateY(-1px); }
.lugar-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.lugar-tipo { font-size: 12px; color: var(--spain-yellow); font-weight: 700; text-transform: capitalize; }
.lugar-nombre { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.lugar-meta { font-size: 13px; color: var(--text-muted); }
.lugar-precio { color: var(--spain-yellow); font-weight: 700; font-size: 13px; }
.lugar-room {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(241,191,0,0.15);
  color: var(--spain-yellow);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  margin-top: 8px;
  border: 1px solid rgba(241,191,0,0.2);
}
.lugar-actions { display: flex; gap: 8px; margin-top: 12px; }
.lugar-actions button {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid rgba(241,191,0,0.1);
  color: var(--text);
  padding: 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.lugar-actions button:hover { background: #3a2c24; }
.lugar-actions button.btn-del {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  color: var(--danger);
  flex: 0 0 auto;
  width: 42px;
}
.lugar-actions button.btn-del:hover { background: rgba(239,68,68,0.22); }

/* Form */
.form-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.form-header h2 { font-size: 1.15rem; font-weight: 800; }
.form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 14px 0 6px;
}
.form input[type="text"],
.form input[type="number"],
.form input[type="date"],
.form input[type="time"],
.form input[type="tel"],
.form textarea,
.form select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(241,191,0,0.12);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--spain-yellow);
  box-shadow: 0 0 0 3px rgba(241,191,0,0.15);
}
.form textarea { resize: vertical; min-height: 70px; }
.form-row { display: flex; gap: 12px; }
.form-row > div { flex: 1; }
.tipo-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.tipo-btn {
  background: var(--bg-input);
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.tipo-btn.active {
  background: rgba(241,191,0,0.18);
  color: var(--spain-yellow);
  border-color: rgba(241,191,0,0.45);
}
.form-actions { margin-top: 24px; }
.fotos-zone { margin-top: 4px; }
.preview-fotos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.preview-fotos img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(241,191,0,0.2);
}
.alojamiento-extra {
  background: linear-gradient(135deg, rgba(198,11,30,0.12), rgba(241,191,0,0.08));
  border: 1px solid rgba(241,191,0,0.25);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
}
.alojamiento-extra h4 {
  font-size: 13px;
  color: var(--spain-yellow);
  margin-bottom: 10px;
  font-weight: 700;
}
.geo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--bg-input);
  border: 1px dashed rgba(241,191,0,0.4);
  color: var(--spain-yellow);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s;
}
.geo-btn:hover { background: rgba(241,191,0,0.1); }

/* Utilidades */
.util-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.util-card {
  background: var(--bg-card);
  border: 1px solid rgba(241,191,0,0.1);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .12s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.util-card:hover {
  border-color: rgba(241,191,0,0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.util-card .u-icon { font-size: 28px; margin-bottom: 8px; }
.util-card .u-title { font-size: 13px; font-weight: 700; }
.util-card .u-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.util-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(241,191,0,0.08);
}
.util-section h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--spain-yellow);
}
.util-list { display: flex; flex-direction: column; gap: 6px; }
.util-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-input);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background .15s;
  border: 1px solid transparent;
}
.util-item:hover { background: #3a2c24; border-color: rgba(241,191,0,0.15); }
.frases { display: flex; flex-direction: column; gap: 6px; }
.frase {
  background: var(--bg-input);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.frase strong { color: var(--spain-yellow); }
.info-practica {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.info-practica li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(241,191,0,0.08);
}
.info-practica li:last-child { border-bottom: none; }
.packing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.packing label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
  color: var(--text);
  font-weight: 500;
}
.packing input { width: 18px; height: 18px; accent-color: var(--spain-yellow); }

/* Mi alojamiento widget */
.mi-alojamiento {
  background: linear-gradient(135deg, rgba(198,11,30,0.3), rgba(241,191,0,0.12));
  border: 1px solid rgba(241,191,0,0.35);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(198,11,30,0.15);
}
.mi-alojamiento h3 { color: var(--spain-yellow); margin-bottom: 8px; font-size: 14px; }
.mi-alojamiento .room-big {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.mi-alojamiento .meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.mi-alojamiento .actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.mi-alojamiento .actions button,
.mi-alojamiento .actions a {
  flex: 1;
  text-align: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(241,191,0,0.2);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.mi-alojamiento .actions button:hover,
.mi-alojamiento .actions a:hover { background: rgba(0,0,0,0.5); }

/* Quick tools */
.quick-tool {
  background: var(--bg-input);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(241,191,0,0.1);
}
.quick-tool label { margin-top: 0; }
.tip-calc {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.tip-calc input { flex: 1; }
.tip-result {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--spain-yellow);
  text-align: center;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(5px);
}
.modal {
  background: var(--bg-card);
  border-radius: 20px 20px 16px 16px;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(241,191,0,0.15);
  animation: modalUp .28s ease;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}
@keyframes modalUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 800; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-elevated);
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
  z-index: 110;
  border-top: 1px solid rgba(241,191,0,0.15);
  max-width: 480px;
  margin: 0 auto;
}
.cookie-banner p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button { flex: 1; }

/* Empresas */
.lista-webs { list-style: none; }
.lista-webs li { margin-bottom: 8px; font-size: 14px; }
.lista-webs a { color: var(--spain-yellow); }
.ejemplos-perfiles { display: flex; flex-direction: column; gap: 10px; }
.ejemplo-card {
  background: var(--bg-input);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(241,191,0,0.08);
}
.ejemplo-tipo { font-size: 12px; color: var(--spain-yellow); font-weight: 600; margin-bottom: 4px; }
.ejemplo-card h4 { font-size: 15px; margin-bottom: 4px; }
.ejemplo-desc { font-size: 13px; color: var(--text-muted); }
.ejemplo-meta { font-size: 12px; color: var(--spain-yellow); margin-top: 6px; font-weight: 600; }

/* Privacidad */
.privacidad-content {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.privacidad-content h3 {
  color: var(--spain-yellow);
  margin: 18px 0 8px;
  font-size: 15px;
}
.privacidad-content a { color: var(--spain-yellow); }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2a1f1a, #1a1412);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border: 1px solid rgba(241,191,0,0.25);
  animation: toastIn .25s ease;
  max-width: 90%;
  text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Confirm dialog style helper */
.confirm-danger {
  color: var(--danger);
  font-weight: 700;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(241,191,0,0.25); border-radius: 4px; }

/* IA Explorer */
.ia-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ia-prompt-btn {
  width: 100%;
  text-align: left;
  background: var(--bg-input);
  border: 1px solid rgba(241,191,0,0.15);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  line-height: 1.35;
}
.ia-prompt-btn:hover {
  border-color: rgba(241,191,0,0.4);
  background: #3a2c24;
}
.ia-prompt-btn.active {
  border-color: var(--spain-yellow);
  background: rgba(241,191,0,0.15);
  color: var(--spain-yellow);
  box-shadow: 0 0 0 2px rgba(241,191,0,0.2);
}
.ia-lugar-chip {
  margin-top: 0 !important;
  width: auto !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
}
.ia-lugar-chip.active-chip {
  background: rgba(241,191,0,0.2);
  border-color: var(--spain-yellow);
  color: var(--spain-yellow);
}

/* Inputs outside .form (IA section) */
.util-section input[type="text"],
.util-section input[type="number"],
.util-section textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(241,191,0,0.12);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
}
.util-section input:focus,
.util-section textarea:focus {
  border-color: var(--spain-yellow);
  box-shadow: 0 0 0 3px rgba(241,191,0,0.15);
}
.util-section label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 6px;
}

/* Vuelo extra form */
.vuelo-extra {
  background: linear-gradient(135deg, rgba(198,11,30,0.14), rgba(56,189,248,0.06));
  border: 1px solid rgba(241,191,0,0.28);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
}
.vuelo-extra h4 {
  font-size: 13px;
  color: var(--spain-yellow);
  margin-bottom: 10px;
  font-weight: 700;
}

/* Check-in banner in trip detail */
.checkin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(198,11,30,0.35), rgba(241,191,0,0.15));
  border: 1px solid rgba(241,191,0,0.4);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(198,11,30,0.2);
}
.checkin-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.checkin-left strong {
  font-size: 14px;
  color: var(--spain-yellow);
}
.checkin-left span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkin-actions { flex-shrink: 0; }

.lugar-flight {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip-flight {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(241,191,0,0.12);
  color: var(--spain-yellow);
  border: 1px solid rgba(241,191,0,0.25);
}
.chip-flight.urgent {
  background: rgba(198,11,30,0.25);
  color: #fecaca;
  border-color: rgba(239,68,68,0.4);
}


/* ===== Diario de visitas ===== */
.diario-home { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.diario-home .btn-secondary { margin-top:0; }
.diario-intro { font-size:13px; color:var(--text-muted); margin-bottom:14px; line-height:1.5; }
.diario-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:14px; }
.diario-stats div { background:var(--bg-card); border:1px solid rgba(241,191,0,0.12); border-radius:12px; padding:10px 6px; text-align:center; }
.diario-stats strong { display:block; font-size:15px; color:var(--spain-yellow); }
.diario-stats span { font-size:11px; color:var(--text-muted); }
@media (max-width:420px){ .diario-stats { grid-template-columns:repeat(2,1fr); } }
.diario-search { width:100%; background:var(--bg-input); color:var(--text); border:1px solid rgba(241,191,0,0.15); border-radius:12px; padding:12px 14px; font-size:14px; margin-bottom:10px; }
.diario-lista { display:flex; flex-direction:column; gap:12px; }
.diario-nada { text-align:center; color:var(--text-muted); padding:24px 0; font-size:14px; }
.visita-card { background:var(--bg-card); border:1px solid rgba(241,191,0,0.1); border-radius:var(--radius); padding:14px; }
.visita-fotos { display:flex; gap:6px; margin-bottom:10px; position:relative; }
.visita-fotos img { flex:1; min-width:0; height:96px; object-fit:cover; border-radius:10px; cursor:pointer; }
.visita-mas { position:absolute; right:8px; bottom:8px; background:rgba(0,0,0,0.7); color:#fff; font-size:12px; font-weight:700; padding:3px 8px; border-radius:99px; }
.visita-head { display:flex; justify-content:space-between; gap:8px; font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.visita-tipo { color:var(--spain-yellow); font-weight:700; }
.visita-card h3 { font-size:16px; margin:0 0 6px; }
.visita-desc { font-size:14px; color:var(--text-muted); line-height:1.5; white-space:pre-wrap; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.visita-meta { display:flex; flex-wrap:wrap; gap:6px 12px; font-size:13px; margin-bottom:8px; }
.visita-links { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.visita-links a, .chip-link { background:var(--bg-input); border:1px solid rgba(241,191,0,0.18); color:var(--text); border-radius:99px; padding:5px 10px; font-size:12px; text-decoration:none; }
.visita-actions { display:flex; flex-wrap:wrap; gap:6px; }
.visita-actions .btn-sm, .visita-actions a.btn-sm { margin-top:0; width:auto; padding:8px 12px; text-decoration:none; display:inline-block; }
.diario-tools { display:flex; gap:8px; margin-top:20px; }
.diario-tools .btn-sm { margin-top:0; flex:1; text-align:center; }
.diario-import { cursor:pointer; display:inline-block; }
.ubi-info { font-size:12px; color:var(--text-muted); margin:8px 0; line-height:1.5; }
.ubi-info a { color:var(--spain-yellow); }
.link-btn { background:none; border:none; color:var(--spain-yellow); text-decoration:underline; cursor:pointer; font-size:12px; padding:0; }
.enlace-row { display:flex; gap:8px; align-items:center; }
.enlace-row input { flex:1; }
.enlace-row .btn-sm { margin-top:0; }
.chips-links { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.chip-link { display:inline-flex; align-items:center; gap:6px; }
.chip-link a { color:var(--text); text-decoration:none; }
.chip-link button { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:12px; }
.foto-botones { display:flex; gap:8px; flex-wrap:wrap; }
.foto-botones .btn-sm { margin-top:0; width:auto; }
.preview-visita { display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:8px; margin-top:10px; }
.prev-foto { position:relative; }
.prev-foto img { width:100%; height:88px; object-fit:cover; border-radius:10px; display:block; }
.prev-foto button { position:absolute; top:4px; right:4px; width:24px; height:24px; border-radius:50%; border:none; background:rgba(0,0,0,0.7); color:#fff; cursor:pointer; font-size:12px; }
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,0.92); z-index:1000; display:flex; align-items:center; justify-content:center; padding:16px; }
.lightbox img { max-width:100%; max-height:100%; border-radius:12px; }
.lightbox button { position:absolute; top:max(16px, env(safe-area-inset-top)); right:16px; background:rgba(255,255,255,0.15); color:#fff; border:none; border-radius:50%; width:40px; height:40px; font-size:18px; cursor:pointer; }

/* ---------- Idiomas ---------- */
.btn-lang {
  background: var(--bg-card);
  border: 1px solid rgba(241,191,0,0.25);
  color: var(--text);
  height: 42px; padding: 0 10px;
  border-radius: 12px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.btn-lang:hover { background: var(--bg-input); border-color: rgba(241,191,0,0.45); }
.lang-modal { max-width: 360px; }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input); color: var(--text);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left;
}
.lang-opt.active { border-color: var(--spain-yellow); background: rgba(241,191,0,0.12); }
.lang-flag { font-size: 22px; line-height: 1; }

/* ---------- Frases bilingües ---------- */
.frases-intro { font-size: 12px; color: var(--text-muted); margin: -4px 0 10px; line-height: 1.4; }
.frases-cat {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-muted); margin: 10px 0 2px;
}
.frases-cat:first-child { margin-top: 0; }
.frase-bi { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.frase-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.frase-txt strong { font-size: 15px; }
.frase-txt span { font-size: 13px; color: var(--text-muted); }
.frase-btns { display: flex; gap: 4px; flex-shrink: 0; }
.frase-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid rgba(241,191,0,0.15);
  color: var(--text); font-size: 16px; cursor: pointer;
}
.frase-btn:active { transform: scale(0.95); }
.frase-grande {
  position: fixed; inset: 0; z-index: 200;
  background: #fff; color: #111;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center; gap: 18px;
  animation: fadeIn .15s ease;
}
.frase-grande .fg-es { font-size: clamp(32px, 9vw, 56px); font-weight: 800; line-height: 1.15; color: #9B0918; }
.frase-grande .fg-tr { font-size: 18px; color: #555; }
.frase-grande .fg-say {
  margin-top: 8px; width: 64px; height: 64px; border-radius: 50%;
  border: none; background: #F1BF00; font-size: 28px; cursor: pointer;
}
.frase-grande .fg-hint { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); font-size: 13px; color: #888; }
