/* =========================================================
   ViveLaCity – Hoja de estilos consolidada (v2025-04)
   ========================================================= */
:root {
  --mobile-width: 97%;
  --mobile-info-max: 420px;
  --clr-primary: #182085;
  --clr-accent: #ffcb05;
  --clr-accent-light: #ffd633;
  --clr-accent-gold: #ffd700;
  --clr-accent-gold-dark: #ffc400;
  --clr-bg: #ebebeb;
  --clr-border: #ccc;
}

/* -------------------------------------------------- */
/* Base */
/* -------------------------------------------------- */

body.preload {
  visibility: hidden;
}

body {
  font: 90% "Trebuchet MS", Arial, sans-serif;
  margin: 0;
  background: var(--clr-bg);
  color: #333;
}

.container {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
  background: var(--clr-bg);
}

/* -------------------------------------------------- */
/* Enlace Superior */
/* -------------------------------------------------- */

.city-guide-link {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 8px 12px;
  background: #f2f2f2;
  border-bottom: 1px solid var(--clr-border);
}

.city-guide-link a {
  font-size: 80%;
  color: var(--clr-primary);
  display: inline-flex;
  gap: 6px;
  text-decoration: none;
  transition: color .2s;
}

.city-guide-link a:hover {
  color: #000066;
  text-decoration: underline;
}

/* -------------------------------------------------- */
/* Header */
/* -------------------------------------------------- */

.header-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  padding: 8px;
}

.header-slogan::before {
  content: "|";
  padding-right: 8px;
}

/* -------------------------------------------------- */
/* Banners */
/* -------------------------------------------------- */

.contenedor-banner {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.banner-inferior {
  margin: 0 auto;
  width: auto;
  max-width: 700px;
  aspect-ratio: 96 / 10;
  background: url("/img/banner-desktop.jpg") center/contain no-repeat;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
}

/* -------------------------------------------------- */
/* Componentes generales */
/* -------------------------------------------------- */

.flex-wrap-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  max-width: 100%;
}

/* -------------------------------------------------- */
/* Menú y formularios */
/* -------------------------------------------------- */

.menu-row {
  display: grid;
  grid-template-columns: 160px auto;
  column-gap: 30px;
  padding: 0 12px;
  margin-bottom: 12px;
  align-items: center;
}

.menu-row select {
  width: 250px;
  max-width: 100%;
  padding: .4em .6em;
  font-size: 90%;
}

.menu-row h4 {
  margin: 0;
  white-space: nowrap;
  text-align: left;
}

.weather-input-row {
  display: grid;
  grid-template-columns: max-content 220px max-content;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin: 15px auto;
}

.weather-input-row label {
  text-align: left;
}

.weather-input-row .input-autocomplete-container {
  width: 220px;
}

/* -------------------------------------------------- */
/* Instrucciones */
/* -------------------------------------------------- */

.instrucciones {
  width: 60%;
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.move-option {
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  text-align: left;
  overflow: hidden;
}

.move-option:nth-of-type(even) {
  background-color: rgba(24,32,133,.05);
}

.move-option:last-child {
  margin-bottom: 0;
}

#tabMove .instrucciones h3 {
  margin-bottom: 25px;
  text-align: center;
}

.move-option h4 {
  font-size: 1.1em;
  color: var(--clr-primary);
  margin-top: 0;
  margin-bottom: 8px;
}

.move-option p {
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* -------------------------------------------------- */
/* Botones */
/* -------------------------------------------------- */

.btn {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .3s, box-shadow .3s, transform .2s;
  box-shadow: 2px 2px 6px rgba(0,0,0,.2);
  user-select: none;
  touch-action: manipulation;
}

.btn-yellow {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

.btn-yellow:hover {
  background: var(--clr-accent-light);
}

.btn-gold {
  background: var(--clr-accent-gold);
  color: var(--clr-primary);
}

.btn-gold:hover {
  background: var(--clr-accent-gold-dark);
}

button:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 6px rgba(0,0,0,.3);
}

/* -------------------------------------------------- */
/* Contenedores y tabs */
/* -------------------------------------------------- */

.tab-container-main {
  width: 60%;
  max-width: 700px;
  margin: 4px auto;
}

.tab-container {
  width: 60%;
  max-width: 700px;
  margin: 10px auto;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  overflow: hidden;
}

.tab-titles {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 10px;
  border-bottom: 1px solid #ddd;
  scrollbar-width: none;
}

.tab-titles::-webkit-scrollbar {
  display: none;
}

.tab-button {
  all: unset;
  flex: none;
  padding: 8px 10px;
  font-size: 14px;
  background: #cbd5e1;
  color: var(--clr-primary);
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  white-space: nowrap;
}

.tab-button.active {
  background: var(--clr-accent);
  font-weight: bold;
}

.tab-button:not(.active):hover {
  background: #b0c4de;
}

.tab-content {
  padding: 12px;
  text-align: left;
  position: relative;
}

/* -------------------------------------------------- */
/* Info boxes */
/* -------------------------------------------------- */

#currency-result-container,
.weather-box {
  margin: 15px auto 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  max-width: 600px;
  width: fit-content;
  min-width: 400px;
}

.weather-box h3,
#currency-result-container h3 {
  font-size: 18px;
  color: var(--clr-primary);
}

/* -------------------------------------------------- */
/* Campos de texto */
/* -------------------------------------------------- */

#transcription,
#translation,
#ocrResult {
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0 8px;
  min-height: 50px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

#translation {
  font-size: 180%;
  margin-bottom: 12px;
}

#currency-result {
  font-size: 1.1em;
  color: var(--clr-primary);
  font-weight: bold;
  padding: 0 10px;
  word-break: break-word;
}

/* -------------------------------------------------- */
/* Media Queries (Desktop) */
/* -------------------------------------------------- */

@media (min-width: 769px) {
  #city-input,
  #amount {
    max-width: 200px;
    width: 200px;
  }

  #tabMove .instrucciones {
    padding: 10px 0;
  }

  #tabMove .move-option {
    padding: 15px 20px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
  }
}

/* -------------------------------------------------- */
/* Autocomplete */
/* -------------------------------------------------- */

.input-autocomplete-container {
  position: relative;
  width: 220px;
}

#city-input,
#amount {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

#autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  border-radius: 0 0 8px 8px;
  display: none;
}

#autocomplete-results div {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

#autocomplete-results div:hover {
  background: #f0f0f0;
}

/* -------------------------------------------------- */
/* Animaciones */
/* -------------------------------------------------- */

.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blinkAnimation {
  0%, 100% {
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-light) 100%);
  }
  50% {
    background: #cc6666;
  }
}

.blinking {
  animation: blinkAnimation .5s infinite;
}

/* -------------------------------------------------- */
/* Media Queries (Mobile) */
/* -------------------------------------------------- */

@media (max-width: 768px) {

  .header-container {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
  }

  .header-slogan {
    font-size: 14px;
    padding: 4px;
  }

  .header-slogan::before {
    content: "";
  }

  .city-guide-link {
    width: 90%;
    max-width: none;
    margin: 0 auto;
  }

  .banner-inferior {
    width: 90%;
    aspect-ratio: 7 / 1;
    background-image: url(/img/banner-mobile.jpg);
    border: 0;
    border-radius: 6px;
  }

  .tab-container-main,
  .tab-container,
  .instrucciones,
  #transcription,
  #translation,
  #ocrResult {
    width: var(--mobile-width);
    max-width: none;
  }

  .weather-box,
  #currency-result-container {
    width: var(--mobile-width);
    max-width: var(--mobile-info-max);
    min-width: 0;
    box-sizing: border-box;
  }

  .menu-row {
    grid-template-columns: 1fr;
  }

  .menu-row select {
    max-width: 250px;
  }

  .currency-input-container,
  .weather-input-container {
    flex-direction: column;
    gap: 8px;
  }

  .weather-input-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 15px auto;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .weather-input-row label {
    text-align: center;
    width: 100%;
  }

  .input-autocomplete-container,
  .weather-input-row input[type=text] {
    width: 100%;
    max-width: 100%;
    margin: auto;
    box-sizing: border-box;
  }

  .move-option {
    padding: 15px 20px;
  }

  #tabMove .instrucciones {
    padding: 10px 15px;
    box-sizing: border-box;
  }

  #tabMove .move-option {
    margin-bottom: 15px;
  }

  h1 { font-size: 1.5em; }
  h2 { font-size: 1.3em; }
  h3 { font-size: 1.1em; }
  h4 { font-size: .9em; }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .logo {
    width: 50vw;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* -------------------------------------------------- */
/* Input number fixes */
/* -------------------------------------------------- */

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[type=number]::-ms-clear,
input[type=number]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

/* =========================================================
   Estilos para la Landing Page de Gate2City (/taxi)
   ========================================================= */

/* --- Contenedor Principal y Layout --- */
#g2c-taxi-container {
    background-color: #f7f7f7;
    padding: 20px;
    max-width: 1100px;
    margin: 20px auto;
    box-sizing: border-box;
}
.g2c-layout {
    display: flex;
    gap: 30px;
}
.g2c-form-column {
    flex: 2;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.g2c-summary-column {
    flex: 1;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- Estilos de Formulario Específicos para G2C --- */
.g2c-form-group { margin-bottom: 20px; }
.g2c-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1em;
    color: #333;
    text-align: left;
}
.g2c-input, .g2c-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.g2c-input:focus, .g2c-select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 5px rgba(24, 32, 133, 0.2);
}
.g2c-submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background-color: #00a88a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.g2c-submit-button:hover { background-color: #008f75; }
.g2c-submit-button:disabled { background-color: #ccc; cursor: not-allowed; }

/* --- INICIO DE NUEVOS ESTILOS: Integración visual para intl-tel-input (v2 - con indicativo separado) --- */
.iti {
    width: 100%;
}

/* 
 * Con el modo 'separateDialCode', el padding del input debe ser mayor
 * para dejar espacio a la bandera Y al código de país.
 * Incrementamos de 58px a ~95px para un espaciado adecuado.
 */
.iti--separate-dial-code .iti__tel-input {
    padding-left: 95px !important;
}

/*
 * Usamos flexbox para alinear perfectamente la bandera y el indicativo
 * que ahora están juntos en el mismo contenedor.
 */
.iti--separate-dial-code .iti__flag-container {
    display: flex;
    align-items: center;
}

/*
 * Estilos para el nuevo elemento que contiene el indicativo (+57, +1, etc.)
 */
.iti__selected-dial-code {
    padding: 0 6px; /* Añade un poco de aire alrededor del texto */
    color: #555;   /* Un color gris sutil para que no compita con el número */
}

.iti--allow-dropdown .iti__flag-container,
.iti--allow-dropdown .iti__tel-input {
    height: 47px;
    box-sizing: border-box;
}

.iti--container {
    z-index: 10;
}

.iti.iti--allow-dropdown.iti--show-flags.iti--focused {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 5px rgba(24, 32, 133, 0.2);
    border-radius: 6px;
}
/* --- FIN DE NUEVOS ESTILOS --- */

/* --- INICIO DE NUEVOS ESTILOS: Columna de Resumen --- */
.g2c-summary-column h3 {
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}
.summary-details {
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.summary-details p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #555;
}
.summary-details p strong {
    color: #333;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 15px;
}
.summary-total .price {
    font-size: 1.5em;
    color: #00a88a; /* Mismo verde que el botón de pago */
}
.summary-total-pending {
    text-align: center;
    color: #777;
    margin-top: 20px;
    font-style: italic;
}
/* --- FIN DE NUEVOS ESTILOS --- */

/* --- INICIO DE NUEVOS ESTILOS: Desglose de Precios --- */
.summary-breakdown {
    padding: 10px 0;
    margin-bottom: 15px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95em;
    color: #555;
}

#g2c-quote-result {
    padding-bottom: 15px;
}

.quote-breakdown-main {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.quote-total-main {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--clr-primary);
    margin-top: 10px;
}

.quote-usd-approx {
    font-size: 0.9em;
    color: #777;
    margin: 5px 0 0 0;
}
/* --- FIN DE NUEVOS ESTILOS --- */

/* =========================================================
   Estilos para el Panel de Administración
   ========================================================= */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 0.9em; /* Aplicamos el tamaño de fuente menor como base */
}

.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 8px; /* Usamos el padding menor como base */
    text-align: left;
    white-space: normal; /* Permitimos el ajuste de línea como base (mobile-first) */
}

.admin-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.admin-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.admin-table tbody tr:hover {
    background-color: #f1f1f1;
}

.admin-table .actions-cell {
    display: flex;
    gap: 10px;
}

.admin-table .btn-edit,
.admin-table .btn-delete {
    padding: 5px 10px;
    font-size: 12px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-table .btn-edit {
    background-color: #3498db; /* Azul */
}

.admin-table .btn-delete {
    background-color: #e74c3c; /* Rojo */
}

.admin-fieldset {
    border: 1px solid #ddd; /* Borde sutil */
    border-radius: 6px;      /* Bordes redondeados */
    padding: 15px;           /* Espacio interior */
    margin-bottom: 20px;     /* Separación entre grupos */
}

.admin-fieldset legend {
    font-weight: bold;    /* Título en negrita */
    color: #182085;       /* Color corporativo */
    padding: 0 10px;      /* Espaciado para que el título no toque el borde */
}

/* Mejoras para pantallas más grandes */
@media (min-width: 769px) {
    .admin-table {
        font-size: 1em; /* Restauramos el tamaño de fuente */
    }
    .admin-table th, .admin-table td {
        padding: 12px; /* Aumentamos el padding */
        white-space: nowrap; /* Evitamos el ajuste de línea en escritorio */
    }
}

/* --- Adaptabilidad (Responsive Design) --- */
@media (max-width: 768px) {
    #g2c-taxi-container {
        padding: 10px;
    }
    .g2c-layout {
        flex-direction: column;
    }
    .g2c-form-column, .g2c-summary-column {
        flex: 1;
    }
}

/* =========================================================
   COMPONENTE GLOBAL: NOTIFICACIONES (TOASTS)
   ========================================================= */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* ----- TOAST BASE ----- */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;

    background-color: #111827;
    color: #ffffff;

    padding: 14px 18px;
    border-radius: 12px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    font-size: 1em;
    font-weight: 500;
    min-width: 280px;

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ----- ANIMACIÓN AL MOSTRAR ----- */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ----- VARIANTES ----- */
.toast.success {
    background-color: #16a34a; /* Verde éxito */
}

.toast.error {
    background-color: #dc2626; /* Rojo error */
}

.toast.info {
    background-color: #2563eb; /* Azul informativo */
}

/* ----- ÍCONO OPCIONAL ----- */
.toast i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
  #toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: auto;
  }
}

/* =========================================================
   MENSAJES DE ERROR GLOBALES (FORMULARIOS)
   ========================================================= */

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 6px;
    font-weight: 500;
}

/* =========================================================
   NUEVO: Estilos para Contadores de Pasajeros/Maletas
   ========================================================= */

.g2c-counters-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.g2c-counter {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea la etiqueta a la izquierda */
}

.g2c-counter .g2c-label {
    margin-bottom: 8px; /* Mantiene la consistencia con otros labels */
}

.g2c-counter-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden; /* Asegura que los bordes redondeados se apliquen a los botones internos */
}

.g2c-counter-btn {
    background-color: #f0f0f0;
    border: none;
    color: var(--clr-primary);
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 15px;
    line-height: 1; /* Para un centrado vertical más preciso */
    transition: background-color 0.2s;
}

.g2c-counter-btn:hover {
    background-color: #e0e0e0;
}

.g2c-counter-btn:active {
    background-color: #d0d0d0;
}

.g2c-counter-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    padding: 0 10px;
    min-width: 25px; /* Asegura un ancho mínimo para el número */
    text-align: center;
}

.g2c-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}
.g2c-logo {
    height: 54px;
    width: auto;
}
.g2c-header-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9em;
}
.g2c-step-indicator {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    background-color: #ebebeb;
    position: relative;
}
.g2c-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #909090;
    position: relative;
    flex-grow: 1;
}
.g2c-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}
.g2c-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s ease;
}
.g2c-step-label {
    margin-top: 8px;
    font-size: 0.8em;
    font-weight: bold;
}
.g2c-step.active .g2c-step-number {
    border-color: #00a88a;
    background-color: #00a88a;
    color: white;
}
.g2c-step.active {
    color: #333;
}
.g2c-step.completed .g2c-step-number {
    border-color: #00a88a;
    background-color: #00a88a;
    color: white;
}
.g2c-step.completed::before {
    background-color: #00a88a;
}
.g2c-step:last-child::before {
    display: none;
}

.vehicle-capacity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Una columna para el label y dos para los inputs */
    gap: 15px;
    align-items: center;
}
.vehicle-type-label {
    font-weight: bold;
    grid-column: 1 / -1; /* El label del tipo de vehículo ocupa todas las columnas */
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.vehicle-capacity-grid .vehicle-type-label:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* =========================================================
   NUEVO: Estilos para Secciones Colapsables del Admin Panel
   ========================================================= */

.admin-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden; /* Clave para que el borde redondeado contenga el contenido */
}

.section-toggle {
    background-color: #f2f2f2;
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #ddd;
}

.admin-section:last-of-type .section-toggle {
    border-bottom: none; /* Evita doble borde en la última sección cuando está cerrada */
}

.section-toggle:hover {
    background-color: #e8e8e8;
}

/* El ícono de la flecha */
.section-toggle::after {
    content: '▶';
    font-size: 0.8em;
    color: #555;
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* Cuando la sección está activa (abierta), la flecha rota */
.section-toggle.active::after {
    transform: rotate(90deg);
}

.section-content {
    padding: 20px;
    display: none; /* Por defecto, todas las secciones están ocultas */
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.service-provider {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.provider-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.provider-logo {
  max-width: 120px;
  height: auto;
  opacity: 0.8;
}

/* =========================================================
   NUEVO: Estilos para Roundtrip ADD RETURN
   ========================================================= */

.g2c-add-return-button {
    background-color: #ffffff;
    border: 2px solid #00a88a;
    color: #00a88a;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.g2c-add-return-button:hover {
    background-color: #00a88a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 168, 138, 0.2);
}

.g2c-add-return-button:active {
    transform: translateY(0);
}

/* Cuando el roundtrip está activo, cambiar el estilo */
.g2c-add-return-button.active {
    background-color: #ff6b6b !important;
    border-color: #ff6b6b !important;
    color: #ffffff !important;
}

.g2c-add-return-button.active:hover {
    background-color: #ff5252;
    border-color: #ff5252;
}

#g2c-return-details {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}