/* ==========================================================================
   Arkadium88 TaxiDriver — Tarifómetro + mapa de paradas
   Archivo ADITIVO: no modifica ni sustituye ninguna regla existente.
   Se carga después de arkadium-brand.css y arkadium-social.css.
   ========================================================================== */

/* --- Panel ---------------------------------------------------------------- */
.fare-panel {
    margin: 0 0 72px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(160deg, rgba(26, 32, 44, 0.72), rgba(13, 17, 25, 0.92));
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.fare-panel-head { padding: 34px 32px 0; text-align: center; }
.fare-panel-head .section-eyebrow { margin-bottom: 10px; }
.fare-panel-head .section-title { margin-bottom: 12px; }
.fare-sub {
    max-width: 680px; margin: 0 auto 26px;
    color: #a0aec0; font-size: 0.94rem; line-height: 1.7;
}

.fare-grid {
    display: grid; grid-template-columns: 0.82fr 1.18fr;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
@media (max-width: 820px) { .fare-grid { grid-template-columns: 1fr; } }

/* --- Formulario ----------------------------------------------------------- */
.fare-form {
    padding: 26px 26px 28px;
    display: flex; flex-direction: column; gap: 13px;
    max-height: min(78vh, 780px);
    overflow-y: auto;
    overflow-x: hidden;
}
.fare-field { display: flex; flex-direction: column; gap: 6px; }
.fare-field > span {
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8;
}
.fare-field input, .fare-field select {
    width: 100%; padding: 11px 13px; border-radius: 10px;
    border: 1px solid #334155; background: #0f1520; color: #e2e8f0;
    font: inherit; font-size: 0.88rem;
}
.fare-field input:focus, .fare-field select:focus {
    outline: none; border-color: rgba(0, 210, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}
.fare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fare-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .fare-row-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fare-row { grid-template-columns: 1fr; } }
.fare-leg-title {
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: #00d2ff; font-weight: 600; margin: 2px 0 0;
}
.fare-leg-title--dest { margin-top: 8px; color: #7dd3fc; }
.fare-tariff-hint {
    margin: -6px 0 4px; font-size: 0.68rem; line-height: 1.45; color: #94a3b8;
}
.fare-field input[readonly] { opacity: 0.92; cursor: default; }
.fare-city-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fare-checks { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 4px; }
.fare-checks label {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: #cbd5e0; cursor: pointer;
}
.fare-checks input { width: 16px; height: 16px; accent-color: #00d2ff; flex: 0 0 auto; }
.fare-form .cta-main {
    width: 100%; justify-content: center;
    padding: 14px 20px; font-size: 0.84rem; letter-spacing: 0.6px;
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.16);
}
.fare-legal { font-size: 0.7rem; color: #64748b; line-height: 1.5; }

/* --- Mapa ----------------------------------------------------------------- */
.fare-map-wrap {
    position: relative; display: flex; flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 0;
}
@media (max-width: 820px) {
    .fare-map-wrap { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.07); }
}
.fare-map-toolbar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 12, 18, 0.6);
    font-size: 0.73rem; color: #cbd5e0;
}
.fare-map-toolbar label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.fare-map-toolbar input { width: 14px; height: 14px; accent-color: #00d2ff; }
.fare-map-toolbar button {
    margin-left: auto; font: inherit; font-size: 0.71rem;
    padding: 5px 10px; border-radius: 7px;
    border: 1px solid #334155; background: #111827; color: #cbd5e0; cursor: pointer;
}
.fare-map-toolbar button:hover { border-color: rgba(0, 210, 255, 0.5); color: #00d2ff; }
#fareMap { height: 400px; width: 100%; background: #0a0e14; }
@media (max-width: 820px) { #fareMap { height: 330px; } }

.fare-map-foot {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 12, 18, 0.45);
}
.fare-reco { font-size: 0.79rem; color: #cbd5e0; line-height: 1.55; margin-bottom: 9px; }
.fare-reco strong { color: #00e676; }
.fare-reco .reco-warn { color: #f0a500; }
.fare-map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.65rem; color: #94a3b8; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: #00d2ff; }
.lg-free::before { background: #00e676; }
.lg-taxi::before { background: #f0a500; border-radius: 50%; }
.lg-you::before { background: #3b82f6; border-radius: 50%; }
.lg-origin::before { background: #ef4444; border-radius: 1px; width: 10px; height: 7px; }
.lg-dest::before { background: #22c55e; border-radius: 1px; width: 10px; height: 7px; }

/* Pines del mapa */
.pin-stand {
    display: flex; align-items: center; gap: 3px;
    background: #0f1520; border: 2px solid #00d2ff; border-radius: 6px;
    padding: 2px 5px;
    font-family: 'Orbitron', sans-serif; font-size: 8px; font-weight: 700;
    letter-spacing: 0.06em; color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}
.pin-stand.is-free { border-color: #00e676; }
.pin-stand.is-selected { border-color: #f0a500; box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.25); }
.pin-stand-count {
    background: #00e676; color: #062810; border-radius: 50%;
    min-width: 12px; height: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 8px; padding: 0 2px;
}
.pin-taxi {
    width: 13px; height: 13px; border-radius: 50%;
    background: #f0a500; border: 2px solid #0b0d13;
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.45), 0 0 10px rgba(240, 165, 0, 0.9);
}
.pin-you {
    width: 14px; height: 14px; border-radius: 50%;
    background: #3b82f6; border: 3px solid #fff;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25);
}
.pin-flag-wrap {
    background: transparent !important;
    border: none !important;
}
.pin-flag-svg {
    display: block;
    overflow: visible;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
}
.leaflet-container { background: #0a0e14; font-family: 'Inter', sans-serif; }
/* Tema oscuro para teselas de OpenStreetMap (sin API key) */
.leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.55);
}
.leaflet-control-attribution {
    background: rgba(11, 13, 19, 0.75) !important; color: #64748b !important;
    font-size: 9px !important;
}
.leaflet-control-attribution a { color: #7dd3fc !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #111827; color: #e2e8f0;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.leaflet-popup-content { margin: 12px 14px; font-size: 0.78rem; line-height: 1.5; }
.leaflet-popup-content b { font-family: 'Orbitron', sans-serif; font-size: 0.74rem; letter-spacing: 0.04em; }
.leaflet-popup-content a { color: #00d2ff; }
.leaflet-bar a { background: #111827; color: #cbd5e0; border-color: #334155; }
.leaflet-bar a:hover { background: #1a2434; color: #00d2ff; }

/* --- Resultado ------------------------------------------------------------ */
.fare-result-row {
    display: grid; grid-template-columns: 0.95fr 1.1fr 0.95fr;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(9, 12, 18, 0.55);
}
@media (max-width: 820px) { .fare-result-row { grid-template-columns: 1fr; } }
.fare-result-cell { padding: 20px 24px; min-width: 0; }
.fare-result-cell + .fare-result-cell { border-left: 1px solid rgba(255, 255, 255, 0.06); }
@media (max-width: 820px) {
    .fare-result-cell + .fare-result-cell { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.06); }
}
.fare-meter {
    text-align: center; padding: 16px 14px 14px; border-radius: 14px;
    border: 1px solid rgba(0, 210, 255, 0.22);
    background: rgba(0, 210, 255, 0.05);
}
.fare-meter-label {
    display: block; font-size: 0.64rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: #7dd3fc;
}
.fare-meter-digits {
    font-family: 'Orbitron', sans-serif; font-weight: 700;
    font-size: clamp(0.95rem, 2.2vw, 1.22rem); color: #f8fafc;
    margin: 8px 0 3px; letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums; white-space: nowrap;
    line-height: 1.2;
}
.fare-meter-digits small { font-size: 0.78rem; color: #f0a500; margin-left: 2px; }
.fare-meter-note { font-size: 0.7rem; color: #94a3b8; }

.fare-breakdown { list-style: none; margin: 0; padding: 0; }
.fare-breakdown li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 6px 0; font-size: 0.8rem; color: #cbd5e0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.fare-breakdown li span:last-child {
    color: #e2e8f0; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fare-breakdown li.fare-total {
    border-bottom: none; padding-top: 10px;
    font-weight: 700; font-size: 0.86rem; color: #fff;
}
.fare-breakdown li.fare-total span:last-child { color: #00e676; }
.fare-share-split {
    margin-top: 12px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(0, 230, 118, 0.22);
    background: rgba(0, 230, 118, 0.06);
}
.fare-share-split-title { margin: 0 0 4px; font-size: 0.72rem; color: #94a3b8; }
.fare-share-split-main { margin: 0; font-size: 0.9rem; color: #e2e8f0; }
.fare-share-split-main strong { color: #00e676; font-size: 1.05rem; }
.fare-share-split-saving { margin: 6px 0 0; font-size: 0.68rem; color: #7dd3fc; }
.fare-source { font-size: 0.68rem; color: #64748b; line-height: 1.5; margin-top: 10px; }
.fare-source a { color: #7dd3fc; text-decoration: none; }
.fare-source a:hover { text-decoration: underline; }
.fare-source .fare-badge {
    display: inline-block; margin-left: 6px; padding: 1px 7px;
    border-radius: 999px; font-size: 0.6rem; letter-spacing: 0.06em;
    border: 1px solid rgba(0, 210, 255, 0.35); color: #7dd3fc;
}
.fare-source .fare-badge.is-local {
    border-color: rgba(240, 165, 0, 0.45); color: #f0a500;
}

.fare-actions {
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
    justify-content: center; height: 100%;
}
.fare-actions .cta-main { padding: 13px 22px; font-size: 0.8rem; }
.fare-actions .cta-main,
.fare-actions .cta-share { width: 100%; max-width: 280px; justify-content: center; }

/* Botón "Compartir taxi" (segundo rectángulo, bajo Reservar) */
.cta-share {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    flex-wrap: wrap; padding: 11px 18px; border-radius: 12px;
    border: 1px solid rgba(0, 230, 118, 0.45);
    background: rgba(0, 230, 118, 0.07);
    color: #e2e8f0; text-decoration: none;
    font-family: 'Orbitron', sans-serif; font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cta-share:hover {
    background: rgba(0, 230, 118, 0.14);
    border-color: rgba(0, 230, 118, 0.75);
    transform: translateY(-1px);
}
.cta-share-icon { font-size: 0.95rem; color: #00e676; line-height: 1; }
.cta-share-note {
    flex-basis: 100%; text-align: center;
    font-family: 'Inter', sans-serif; font-size: 0.64rem; font-weight: 400;
    letter-spacing: 0; color: #94a3b8;
}
.fare-link {
    font-size: 0.76rem; color: #94a3b8; text-decoration: none;
    border-bottom: 1px solid #334155; padding-bottom: 1px;
}
.fare-link:hover { color: #00d2ff; border-color: #00d2ff; }
.fare-actions .fare-legal { margin-top: 2px; }

/* --- Teléfono de centralita compacto (bajo Email/Noticias) ---------------- */
.arktalkio-central--compact {
    flex: 0 0 auto; max-width: 132px; padding: 0;
    margin: 6px 0 0 auto; align-self: flex-end;
}
.arktalkio-central--compact .arktalkio-rotary-unit {
    width: 90px; margin-bottom: 2px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.arktalkio-central--compact .arktalkio-central-tel {
    font-size: 0.58rem; top: 78%; padding: 2px 5px;
}
.arktalkio-central--compact .arktalkio-central-label {
    font-size: 0.57rem; color: #94a3b8; letter-spacing: 0.04em;
}
@media (max-width: 900px) {
    .arktalkio-central--compact { align-self: center; margin: 6px auto 0; }
}

/* --- Wallet compacta (mismo bloque, más discreto y más abajo) ------------- */
.wallet-feature--compact {
    margin-bottom: 48px;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: none;
    background: rgba(15, 20, 28, 0.55);
}
.wallet-feature--compact .wallet-feature-inner {
    grid-template-columns: 1.5fr 0.7fr; align-items: center;
}
.wallet-feature--compact .wallet-feature-copy { padding: 24px 26px; }
.wallet-feature--compact .wallet-feature-copy h2 { font-size: 1rem; margin-bottom: 8px; }
.wallet-feature--compact .wallet-feature-copy h2 span { text-shadow: none; }
.wallet-feature--compact .wallet-feature-copy p {
    font-size: 0.82rem; line-height: 1.6; margin-bottom: 12px; color: #94a3b8;
}
.wallet-feature--compact .cta-secondary { padding: 9px 16px; font-size: 0.76rem; }
.wallet-feature--compact .wallet-video-wrap {
    min-height: 0; max-width: 260px; justify-self: end;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.wallet-feature--compact .wallet-video {
    height: 150px; width: 100%; object-fit: cover; object-position: center 30%;
}
@media (max-width: 900px) {
    .wallet-feature--compact .wallet-feature-inner { grid-template-columns: 1fr; }
    .wallet-feature--compact .wallet-video-wrap {
        max-width: none; justify-self: stretch;
        border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.07);
    }
}

/* --- Redes sociales discretas al pie ------------------------------------- */
/* En la landing las redes viven solo en el pie: el slot superior automático
   se oculta para dejar el teléfono de centralita solo, como en la vista
   previa aprobada. Reversible borrando esta única regla. */
.ark-social-mount-top { display: none !important; }
.ark-social-bar--footer {
    gap: 3px; padding: 0; border: none; background: none; box-shadow: none;
    opacity: 0.65; transition: opacity 0.2s;
}
.ark-social-bar--footer:hover,
.ark-social-bar--footer:focus-within { opacity: 1; }
.ark-social-bar--footer .ark-social-btn {
    width: 30px; height: 30px; min-width: 30px; min-height: 30px;
    border-color: transparent; background: transparent; color: #64748b;
    box-shadow: none;
}
.ark-social-bar--footer .ark-social-btn svg { width: 15px; height: 15px; }
.ark-social-bar--footer .ark-social-btn:hover,
.ark-social-bar--footer .ark-social-btn:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: transparent;
    color: #e2e8f0;
    transform: none;
}
.ark-social-bar--footer .ark-social-btn--share { color: #7dd3fc; }
