/* ═══════════════════════════════════════════════════════
   shared.css  —  Trivial Travel
   Variables globales, reset, y componentes compartidos
   ═══════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* ── VARIABLES ── */
  :root {
    /* Colores principales */
    --blue:      #2d7dd2;
    --blue-l:    #3a8fe0;
    --blue-d:    #1a6ab8;
    --blue-bg:   rgba(45, 125, 210, 0.10);
    --blue-t:    rgba(45, 125, 210, 0.08);
    --green:     #18c25a;
    --green-d:   #12a84c;
  
    /* Paleta de UI */
    --text:      #e8eaf6;
    --muted:     #8892b0;
    --border:    #1e2d50;
    --bg:        #0a0e1a;
    --card-bg:   #0d1535;
  
    /* Podio */
    --gold:      #f5c842;
    --silver:    #b0bec5;
    --bronze:    #cd7f32;
  
    /* Tipografía */
    --font-base: 'Barlow', sans-serif;
    --font-cond: 'Barlow Condensed', sans-serif;
  }
  
  /* ── BASE ── */
  html, body {
    height: 100%;
    font-family: var(--font-base);
    background: var(--bg);
    color: var(--text);
  }
  
  /* ══════════════════════════════════════════════════════
     COMPONENTES COMPARTIDOS
     Usados en 2+ páginas — definidos una sola vez aquí
  ══════════════════════════════════════════════════════ */
  
  /* ── BOTÓN VOLVER (posición fija) ── */
  .btn-back {
    position: fixed;
    top: 28px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    padding: 10px 18px;
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    z-index: 10;
  }
  .btn-back:hover       { border-color: var(--blue); color: var(--blue); }
  .btn-back svg         { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  
  /* ── LABEL DE MARCA ── */
  .brand {
    font-family: var(--font-cond);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
    display: block;
  }
  
  /* ── BOTONES GENÉRICOS ── */
  .btn {
    padding: 14px;
    border: none;
    border-radius: 3px;
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .btn-primary             { background: var(--blue); color: #fff; }
  .btn-primary:hover       { background: var(--blue-l); }
  .btn-primary:active      { transform: scale(0.99); }
  .btn-secondary           { background: transparent; color: var(--muted); border: 1.5px solid var(--border); font-size: 14px; letter-spacing: 1px; }
  .btn-secondary:hover     { border-color: var(--blue); color: var(--blue); }
  .btn-ghost               { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.12); font-size: 13px; }
  .btn-ghost:hover         { border-color: rgba(255,255,255,0.3); color: #fff; }
  .btn-full                { width: 100%; }
  .btn svg                 { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  
  /* ── SPINNER DE CARGA ── */
  .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
  }
  .btn.loading .btn-label { display: none; }
  .btn.loading .spinner   { display: block; }
  
  /* ── MENSAJES DE ESTADO ── */
  .msg {
    display: none;
    padding: 11px 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border-left: 3px solid;
  }
  .msg.error   { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
  .msg.success { background: #f0fdf4; color: #14532d; border-color: var(--green); }
  .msg.show    { display: block; }
  
  /* ── CAMPOS DE FORMULARIO ── */
  .field { margin-bottom: 18px; }
  .field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-base);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
    resize: vertical;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    border-color: var(--blue);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(45,125,210,0.08);
  }
  .field input::placeholder,
  .field textarea::placeholder { color: #9dbdad; }
  .field select { cursor: pointer; }
  
  /* ── TABS ── */
  .tabs { display: flex; border-bottom: 1px solid var(--border); }
  .tab {
    flex: 1;
    padding: 14px 0;
    border: none;
    background: transparent;
    font-family: var(--font-base);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: color .15s;
    position: relative;
  }
  .tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform .2s;
  }
  .tab.active        { color: var(--text); }
  .tab.active::after { transform: scaleX(1); }
  
  /* ── ANIMACIÓN DE PUNTOS ── */
  .dots span {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 3px;
    animation: bounce .9s infinite;
  }
  .dots span:nth-child(2) { animation-delay: .15s; }
  .dots span:nth-child(3) { animation-delay: .3s; }
  
  /* ── PANTALLA DE CARGA ── */
  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
  }
  
  /* ── KEYFRAMES GLOBALES ── */
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeOut {
    to { opacity: 0; }
  }
  @keyframes bounce {
    0%,100% { transform: translateY(0); background: rgba(255,255,255,0.2); }
    50%      { transform: translateY(-5px); background: var(--blue); }
  }
  @keyframes screenIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
  }