/* ============================================
   TRANSFERENCIA VEHICULOS — PROJECTCARS STYLE
   Pure black cinematic + glassmorphism blur
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  /* Core palette — projectcars inspired */
  --black: #000000;
  --white: #ffffff;
  --accent: #73acf9;
  --accent-dark: #3766a5;
  --accent-glow: #73acf94d;
  --accent-glow-strong: #73acf980;
  --red: #ee2629;
  --dark-grey: #303435;

  /* Transparent layers */
  --glass-bg: #00000080;
  --glass-light: #0000001a;
  --glass-strong: #000000e6;
  --glass-dark: #0009;
  --white-10: #ffffff1a;
  --white-20: #fff3;
  --white-50: #ffffff80;
  --white-60: #ffffff99;

  /* Status */
  --success: #00c853;
  --success-bg: rgba(0, 200, 83, 0.15);
  --error: #ee2629;
  --error-bg: rgba(238, 38, 41, 0.15);
  --warning: #f5a623;
  --warning-bg: rgba(245, 166, 35, 0.15);
  --info: #73acf9;
  --info-bg: rgba(115, 172, 249, 0.15);

  /* Typography */
  --font: 'Source Sans 3', 'Source Sans Pro', sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Z layers */
  --z-canvas: 0;
  --z-content: 10;
  --z-nav: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-loading: 9999;
}

/* Responsive font scaling (projectcars pattern) */
html { font-size: 16px; }
@media (max-width: 1920px) { html { font-size: calc(8.4px + 7.6 * ((100vw - 992px) / 928)); } }
@media (max-width: 992px) { html { font-size: calc(12px + 4 * ((100vw - 768px) / 224)); } }
@media (max-width: 768px) { html { font-size: calc(10px + 6 * ((100vw - 320px) / 448)); } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background-color: var(--black);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--white); }

/* ========== NAVIGATION (pill bar with blur) ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.glass-nav { background: transparent; border-bottom: none; }

.nav-brand {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background-color: var(--glass-bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2px;
  height: 3rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-brand .brand-icon {
  background-color: var(--white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: calc(3rem - 4px);
  color: var(--black);
  font-size: 1.1rem;
}

.nav-brand span {
  padding: 0 0.8rem 0 0.4rem;
  color: var(--white);
}

.nav-links {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background-color: var(--glass-bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  height: 3rem;
  padding: 2px;
  gap: 2px;
}

.nav-link {
  color: var(--white);
  background: transparent;
  border-radius: var(--r-sm);
  padding: 0.5rem 0.85rem;
  font-size: 1.25rem;
  font-weight: 300;
  height: 100%;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.nav-link:hover {
  background: var(--white-20);
  color: var(--white);
  box-shadow: 0 5px 15px -4px #0003;
}

.nav-link.active {
  background: var(--white);
  color: var(--black);
  font-weight: 400;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  backdrop-filter: blur(30px);
  background: var(--glass-bg);
  border: none;
  border-radius: var(--r-md);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  backdrop-filter: blur(30px);
  background: var(--glass-bg);
  border-radius: var(--r-lg);
  padding: 4px;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.dropdown-menu.open { display: block; }

.dropdown-menu a, .dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: none;
  background: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 300;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all 0.3s;
  text-align: left;
  font-family: var(--font);
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
  background: var(--white);
  color: var(--black);
}

/* ========== BUTTONS (projectcars style) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  backdrop-filter: blur(30px);
  background-color: var(--accent-dark);
  color: var(--white);
  font-size: 1.25rem;
  height: 3rem;
  padding: 0 1.5rem;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--black);
  font-size: 1.25rem;
  height: 3rem;
  padding: 0 1.5rem;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--accent);
  color: var(--white);
}

.btn-ghost {
  backdrop-filter: blur(30px);
  background-color: var(--glass-bg);
  color: var(--white);
  font-size: 1.25rem;
  height: 3rem;
  padding: 0 1.5rem;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--white);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-size: 1rem;
  height: 3rem;
  padding: 0 1.5rem;
}

.btn-outline:hover:not(:disabled) {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 10px 3px var(--accent-glow);
}

.btn-lg { height: 3.25rem; padding: 0 2rem; font-size: 1.25rem; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.875rem; }

.btn-icon {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: var(--r-md);
}

/* ========== APP CONTAINER ========== */
.app-container {
  position: relative;
  z-index: 5;
  min-height: 100vh;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white-50);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(30px);
  background: var(--glass-light);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  transition: all 0.3s;
  outline: none;
}

.form-input::placeholder { color: var(--white-50); }

.form-input:focus {
  border-color: #DC2626;
  box-shadow: 0 0 10px 3px rgba(220,38,38,0.25);
  background: rgba(255,255,255,0.06);
}

.form-input.error {
  border-color: #DC2626;
  box-shadow: 0 0 10px 3px rgba(220,38,38,0.3);
}

/* Rentas ghost button */
.renta-ghost-btn {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.renta-ghost-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.form-error { color: var(--error); font-size: 0.8rem; margin-top: 4px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff80' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option {
  background: #1a1a1a;
  color: #ffffff;
  padding: 0.5rem;
}

/* ========== SECTION LAYOUT ========== */
.section {
  max-width: 65rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.15rem;
  font-weight: 400;
  text-transform: capitalize;
}

.section-header p {
  color: var(--white-50);
  font-size: 1rem;
  font-weight: 300;
  margin-top: 0.625rem;
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: var(--z-content);
  margin-top: 2rem;
}

.glass-footer {
  backdrop-filter: blur(30px);
  background-color: var(--glass-bg);
  border-top: none;
}

.footer-content {
  max-width: 65rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.footer-brand h3 { font-size: 1.25rem; font-weight: 600; margin-top: 0.5rem; }
.footer-brand i { color: var(--accent); font-size: 1.5rem; }
.footer-brand p { color: var(--white-50); margin-top: 0.5rem; font-size: 0.875rem; font-weight: 300; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col a {
  display: block;
  color: var(--white-50);
  font-size: 0.875rem;
  font-weight: 300;
  padding: 0.25rem 0;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--white-10);
  text-align: center;
  padding: 1.5rem 2rem;
  color: var(--white-50);
  font-size: 0.75rem;
  font-weight: 300;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .guest-only { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    padding: 4px;
    gap: 2px;
  }

  .footer-content { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ========== UTILITY ========== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--white-50); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Page transitions */
.page-enter { animation: pageEnter 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
