/* =========================================
   PRESUPUESTO MINIMAL (Vector Style)
   /static/css/presu.css
   ========================================= */

:root {
  --primary: #D3A129;
  /* Gold/Bronze */
  --accent: #2F4858;
  /* Dark Blue/Navy */
  --bg: #FFFFFF;
  --text: #333333;
  --muted: #888888;
  --input-bg: #F9F9F9;
  --border: #EEEEEE;
  --radius: 8px;
  /* Softer radius */
}

* {
  box-sizing: border-box;
}

/* Reset basics */
html,
body {
  height: 100%;
  scroll-padding-top: 100px;
  margin: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 5% 40px;
  /* Agregado 100px arriba para el header sticky */
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

/* Clean, bold sans-serif header */
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
}

/* Layout */
.grid2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Form Styles */
.card {
  background: var(--bg);
  /* No border/shadow card look, just clean form on white */
  padding: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 70px;
}

.grid>div {
  grid-column: span 6;
  margin-bottom: 25px;
}

.full {
  grid-column: 1 / -1;
}

@supports (selector(:has(*))) {

  .grid>.full:has(#origen),
  .grid>.full:has(#destino) {
    grid-column: span 6;
  }
}

/* Inputs */
label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  /* Aumentado de 10 a 12 */
  font-size: 0.85rem;
  color: #c68e17;
  /* Gold label text */
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: 'Montserrat', sans-serif;
}

input,
select {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 2px solid #F0F0F0;
  /* Thicker light border */
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  border-radius: var(--radius);
}

input::placeholder {
  color: #bbb;
}

input:focus,
select:focus {
  border-color: var(--primary);
  background: #fff;
}

/* Custom Checkbox */
.actions-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.actions-row .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Buttons (Pill shaped Navy) */
.btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 18px 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border-radius: 50px;
  /* Pill shape */
  font-family: 'Montserrat', sans-serif;
}

.btn:hover {
  background: #1a2b36;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(47, 72, 88, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  border: 2px solid var(--border);
  padding: 16px 36px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 50px;
  /* Pill shape */
  font-family: 'Montserrat', sans-serif;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: #fdfdfd;
}

.row {
  display: flex;
  align-items: center;
}

/* Helpers */
.help {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.help.error {
  color: #e74c3c;
  font-weight: 600;
}

.invalid {
  border-color: #e74c3c !important;
}

/* Result Box */
.result {
  display: none;
  margin-top: 40px;
  padding: 40px;
  background: #fffcf5;
  /* Subtle warm bg */
  border: 2px solid var(--primary);
  border-radius: 16px;
}

.result h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 800;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 20px;
  color: #555;
  margin-right: 8px;
  margin-bottom: 8px;
}

.total {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 24px 0;
  font-family: 'Montserrat', sans-serif;
}

/* Calendario UI */
.day-btn,
.slot-btn {
  padding: 14px;
  background: #fff;
  border: 2px solid #eee;
  color: #555;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-align: center;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
}

.day-btn:hover,
.slot-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.day-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f9f9f9;
  border-color: #eee;
  color: #ccc;
}

.day-btn.active,
.slot-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(47, 72, 88, 0.2);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

/* Sidebar Info */
.grid2>section:nth-child(2) h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.grid2>section:nth-child(2) ul {
  list-style: none;
  padding: 0;
}

.grid2>section:nth-child(2) li {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #555;
  padding-left: 0;
  position: relative;
  display: flex;
  gap: 12px;
}

/* Icon bullet replacement */
.grid2>section:nth-child(2) li::before {
  content: '';
  display: block;
  min-width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(47, 72, 88, 0.8);
  /* Navy overlay */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal.open {
  display: flex;
  animation: fadeIn 0.3s;
}

.modal-box {
  width: min(500px, 90vw);
  background: #fff;
  border-radius: 24px;
  padding: 50px;
  text-align: left;
  /* Cambiado a Izquierda para mejor lectura de condiciones */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
}

.conds {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.conds li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.conds li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .grid2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid {
    gap: 30px;
    /* Reducir el gap de 70px a 30px en tablets */
  }

  .grid>div,
  .grid>.full:has(#origen),
  .grid>.full:has(#destino) {
    grid-column: span 12;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 10px;
  }

  .container {
    padding: 120px 10px 20px;
    margin: 0 auto;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .grid {
    gap: 15px;
    /* Aún más compacto para ganar espacio */
  }

  .card {
    padding: 15px;
    /* Menos padding lateral para que los inputs sean más anchos */
    background: #fafafa;
    border-radius: 12px;
    width: 100%;
  }

  input,
  select {
    font-size: 16px;
    /* Evita zoom automático en iPhone */
    height: 52px;
    padding: 0 15px;
  }

  .actions-row {
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
    text-align: center;
    padding-top: 25px;
  }

  .actions-row .left {
    justify-content: center;
    width: 100%;
  }

  .actions-row .btn {
    width: 100%;
    padding: 20px;
  }

  .modal-box div[style*="display:flex"] {
    flex-direction: column;
    gap: 15px !important;
  }

  .modal-box .btn,
  .modal-box .btn-ghost {
    width: 100%;
    padding: 18px;
  }

  .modal-box {
    padding: 30px 20px;
  }

  .result {
    padding: 24px 15px;
    margin-top: 30px;
  }

  .result .row {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .result .row .btn,
  .result .row .btn-ghost {
    width: 100%;
    padding: 18px;
  }
}

/* =========================================================
   FOOTER (Unified Vector Minimal Style)
========================================================= */
footer {
  background: var(--bg);
  border: none;
  padding: 80px 20px;
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid #f0f0f0;
}

.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 30px;
  font-weight: 800;
  text-transform: uppercase;
}

.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social a {
  width: 50px;
  height: 50px;
  border: none;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: .2s;
  text-decoration: none;
}

.social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-info {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================
   GOOGLE MAPS AUTOCOMPLETE PREMIUM STYLING
   ========================================= */
.pac-container {
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  font-family: 'Inter', sans-serif !important;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 10000 !important;
}

.pac-item {
  padding: 14px 20px;
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.pac-item:hover {
  background-color: #f9f9f9;
}

.pac-item:first-child {
  border-top: none;
}

.pac-icon {
  margin-right: 12px;
  margin-top: 0;
  background-size: 16px;
}

.pac-item-query {
  font-size: 15px;
  color: #2F4858;
  font-weight: 600;
  padding-right: 5px;
}

.pac-matched {
  color: #D3A129;
}

.pac-item span:last-child {
  color: #888;
  font-size: 13px;
}