/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
    color-scheme: light;
    --yellow:      #f4ca19;
    --yellow-dark: #d9b416;
    --black:       #000000;
    --white:       #ffffff;
    --gray-bg:     #f8f8f8;
    --gray-border: #e0e0e0;
    --gray-text:   #333333;
    --error-red:   #e53935;
    --header-h:    150px;
}

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

/* ─── HTML ───────────────────────────────────────────────── */
html {
    /* Prevent font scaling on orientation change (Safari/Android) */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ─── BODY ───────────────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Remove blue highlight on tap (Android/iOS) */
    -webkit-tap-highlight-color: transparent;
    /* Smoother font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── HEADER ─────────────────────────────────────────────── */
header {
    background: var(--yellow);
    color: var(--black);
    height: var(--header-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px var(--yellow);
    padding: 10px 15px;
}

.header-logo {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    height: 85px;
    cursor: pointer;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.header-logo:active {
    transform: translateX(-50%) scale(0.95);
}

.header-title {
    position: absolute;
    left: 15px;
    top: 35px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.5px;
    max-width: 100px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--black);
}

.nav-buttons {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
}

.nav-btn {
    background: var(--yellow);
    border: 1.5px solid var(--black);
    color: var(--black);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    flex: 1;
    max-width: 110px;
    text-align: center;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

/* ─── MAP ────────────────────────────────────────────────── */
#map {
    height: calc(80vh - 86px);
    margin-top: var(--header-h);
    width: 100%;
    z-index: 1;
    position: relative;
}

#map::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: rgba(222, 185, 20, 0.4);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    backdrop-filter: blur(8px) saturate(130%);
    z-index: 999;
    pointer-events: none;
}

/* ─── MARKER ─────────────────────────────────────────────── */
.custom-marker-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.marker-pin {
    width: 38px;
    height: 38px;
    border-radius: 50% 50% 50% 0;
    background: var(--yellow);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -19px 0 0 -19px;
    border: 3px solid var(--black);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 9px 0 0 9px;
    background: var(--black);
    position: absolute;
    border-radius: 50%;
}

/* ─── FAB ────────────────────────────────────────────────── */
.fab {
    position: fixed;
    bottom: 125px;
    right: 20px;
    background: var(--yellow);
    color: var(--black);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    font-size: 35px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
}

.fab svg {
    fill: var(--black);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
    background: var(--gray-text);
    color: #bbb;
    padding: 40px 20px;
    /* iPhone X+ home indicator clearance */
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    text-align: center;
    width: 100%;
}

.footer-logo {
    height: 100px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    max-width: 100%;
}

/* ─── MODALS ─────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    /* Smooth momentum scroll on iOS */
    -webkit-overflow-scrolling: touch;
    will-change: opacity;
    transform: translateZ(0);
}

.modal-content {
    background: #fffefe;
    margin: calc(2vh + 70px) auto;
    padding: 30px 25px;
    width: 95%;
    max-width: 400px;
    border-radius: 25px;
    position: relative;
}

.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px 4px 4px 12px;
    touch-action: manipulation;
}

/* ─── FORM ELEMENTS ──────────────────────────────────────── */
.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 8px;
}

select,
textarea,
input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 4px 0;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    /* 16px prevents iOS auto-zoom on focus — critical */
    font-size: 16px;
    font-family: inherit;
    background: #fafafa;
    color: var(--black);
    /* Remove platform-specific native styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    line-height: 1.4;
    /* Override browser autofill yellow background */
    -webkit-box-shadow: 0 0 0 1000px #fafafa inset;
    box-shadow: none;
}

/* Custom dropdown arrow (iOS removes the native one with appearance: none) */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fafafa;
    padding-right: 36px;
}

textarea {
    resize: none;
    min-height: 80px;
}

.error-message {
    display: none;
    color: var(--yellow);
    font-size: 12px;
    font-weight: bold;
    margin-top: 2px;
    text-align: left;
}

input.invalid,
textarea.invalid,
select.invalid {
    border: 2px solid var(--yellow) !important;
    outline: none;
}

.row {
    display: flex;
    gap: 10px;
}

.btn-send,
.btn-file {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 14px 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
}

.btn-send:active,
.btn-file:active {
    opacity: 0.8;
}

.btn-file {
    flex: 1;
    margin-top: 5px;
}

.file-area {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin: 8px 0;
    font-size: 12px;
    transition: all 0.3s ease;
}

/* ─── FILTER ─────────────────────────────────────────────── */
.filter-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 10px 5px;
}

.btn-filter-opt {
    width: 100%;
    padding: 18px 10px;
    background: var(--gray-bg);
    border: 1px solid var(--gray-border);
    border-radius: 25px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    color: #000000 !important;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.2;
}

.btn-filter-opt:active {
    opacity: 0.7;
}

.btn-filter-opt.btn-filter-opt2 {
    grid-column: span 2;
    padding: 12px;
    margin-top: 5px;
    font-weight: 900;
}

.active-filter {
    background: var(--yellow) !important;
    color: var(--black) !important;
    grid-column: span 2;
}

/* ─── BANNER ─────────────────────────────────────────────── */
.banner-intro {
    background-color: var(--yellow);
    text-align: center;
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.banner-content {
    max-width: 900px;
    width: 100%;
    padding: 60px 25px;
}

.banner-intro h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--black);
    line-height: 1.3;
}

.banner-intro p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 10px;
}

/* ─── COMPARTIR ──────────────────────────────────────────── */
.banner-compartir {
    width: 100%;
    max-width: 900px;
    padding: 0 10px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.compartir-titulo {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
    opacity: 0.6;
}

.compartir-botones {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    width: 100%;
    gap: 6px;
    justify-content: center;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.btn-social {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    border: none;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    cursor: pointer;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-social:active {
    opacity: 0.82;
    transform: scale(0.97);
}

.btn-social svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.btn-social span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-whatsapp,
.btn-facebook,
.btn-instagram { background: var(--black); }

/* ─── HAZARD ─────────────────────────────────────────────── */
.hazard-stripes {
    width: 100%;
    height: 45px;
    border-top: 3px solid var(--black);
    background: repeating-linear-gradient(
        -45deg,
        var(--black),
        var(--black) 25px,
        var(--yellow) 25px,
        var(--yellow) 50px
    );
}

/* ─── POPUP IMAGE ────────────────────────────────────────── */
.popup-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 5px;
    display: block;
    background: #f0f0f0;
}

/* ─── TOAST ──────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    /* Fallback for browsers without env() support */
    bottom: 36px;
    /* iPhone X+ home indicator clearance */
    bottom: calc(36px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 48px);
    max-width: 380px;
    background: var(--white);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.toast-container.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-accent {
    flex-shrink: 0;
    width: 5px;
    height: 36px;
    background: var(--yellow);
    border-radius: 3px;
}

.toast-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.toast-container.toast-error .toast-accent {
    background: var(--error-red);
}

/* ─── SELECTOR UBICACIÓN MANUAL ─────────────────────────── */
.ubicacion-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.chip-toggle {
    flex-shrink: 0;
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: #ddd;
    position: relative;
    transition: background 0.25s;
}

.chip-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    top: 3px;
    left: 3px;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.ubicacion-toggle-row.activo .chip-toggle {
    background: var(--yellow);
}

.ubicacion-toggle-row.activo .chip-toggle::after {
    transform: translateX(16px);
}

.chip-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-text);
}

.btn-abrir-mapa-picker {
    width: 100%;
    padding: 11px 12px;
    background: var(--gray-bg);
    border: 1.5px dashed var(--gray-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    color: var(--gray-text);
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mapa-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: var(--white);
    flex-direction: column;
}

.mapa-picker-header {
    background: var(--yellow);
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mapa-picker-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--black);
    touch-action: manipulation;
    font-family: inherit;
    line-height: 1;
    padding: 4px 8px;
    -webkit-appearance: none;
    appearance: none;
}

.mapa-picker-header span {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--black);
}

.mapa-picker-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

#mapaPickerMap {
    width: 100%;
    height: 100%;
}

.mapa-picker-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Desplaza para que la punta del rombo quede en el centro exacto del mapa */
    transform: translate(-19px, -46px);
    width: 38px;
    height: 38px;
    z-index: 1000;
    pointer-events: none;
}

.mapa-picker-footer {
    background: var(--white);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.mapa-picker-direccion {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.4;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-confirmar-ubicacion {
    width: 100%;
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

/* ─── GUÍA DE BIENVENIDA ────────────────────────────────── */
.guia-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: opacity;
    transform: translateZ(0);
}

.guia-overlay.activo {
    opacity: 1;
}

.guia-modal {
    background: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 370px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 32px 24px 24px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.guia-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--yellow);
    border-radius: 24px 24px 0 0;
}

.guia-cerrar {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    z-index: 1;
    font-family: inherit;
    touch-action: manipulation;
}

.guia-slides-wrapper {
    overflow: hidden;
    width: 100%;
}

.guia-slides {
    display: flex;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guia-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px 16px;
    min-height: 230px;
    justify-content: center;
}

.guia-icono {
    font-size: 52px;
    margin-bottom: 18px;
    line-height: 1;
    display: block;
}

.guia-titulo {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 14px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.guia-texto {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.65;
}

.guia-texto-cta {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1.2;
    margin: 10px 0 24px;
    text-transform: uppercase;
}

.guia-btn-empezar {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.guia-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 20px 0 18px;
}

.guia-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.guia-dot.activo {
    background: var(--yellow);
    width: 26px;
    border-radius: 4px;
}

.guia-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guia-btn-omitir {
    background: none;
    border: none;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    touch-action: manipulation;
}

.guia-btn-grupo {
    display: flex;
    gap: 10px;
}

.guia-btn-nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--yellow);
    background: var(--white);
    color: var(--black);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s, opacity 0.2s;
}

.guia-btn-nav:active {
    background: var(--yellow);
}

.guia-btn-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.guia-btn-sig {
    background: var(--yellow);
}

.guia-btn-sig:active {
    opacity: 0.75;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* Phones: hide header title to save space */
@media (max-width: 600px) {
    .header-title {
        display: none;
    }
}

/* Medium phones (480px — most mid-range Android) */
@media (max-width: 480px) {
    .modal-content {
        margin: calc(2vh + 60px) auto;
        padding: 25px 18px;
        width: 97%;
        border-radius: 20px;
    }

    .nav-btn {
        font-size: 10px;
        padding: 9px 12px;
    }
}

/* Small phones (380px — Moto G, Xiaomi Redmi, older Samsungs) */
@media (max-width: 380px) {
    :root {
        --header-h: 140px;
    }

    .header-logo {
        height: 72px;
    }

    .nav-btn {
        font-size: 9px;
        padding: 8px 10px;
        max-width: 95px;
    }

    .fab {
        width: 58px;
        height: 58px;
        font-size: 30px;
    }

    .btn-filter-opt {
        font-size: 10px;
        padding: 14px 8px;
    }

    .toast-container {
        width: calc(100% - 32px);
        padding: 14px 16px;
    }
}

/* Very small phones (320px — iPhone SE 1st gen, Galaxy S5) */
@media (max-width: 320px) {
    .nav-buttons {
        gap: 6px;
    }

    .nav-btn {
        font-size: 8px;
        padding: 7px 8px;
        max-width: 82px;
    }

    .filter-grid-container {
        gap: 10px;
    }

    .btn-filter-opt {
        font-size: 9px;
    }
}

/* Landscape mode on phones (viewport height <= 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --header-h: 60px;
    }

    header {
        height: 60px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
    }

    .header-logo {
        position: static;
        transform: none;
        height: 46px;
        top: auto;
        left: auto;
    }

    .header-logo:active {
        transform: scale(0.95);
    }

    .header-title {
        display: none;
    }

    .nav-buttons {
        position: static;
        width: auto;
        padding: 0;
        margin-left: 15px;
        bottom: auto;
    }

    #map {
        height: calc(100vh - 215px);
    }

    .modal-content {
        margin: 10px auto;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fab {
        bottom: 15px;
        bottom: calc(15px + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
    .modal-content {
        max-width: 460px;
    }

    .toast-container {
        max-width: 420px;
    }

    .banner-content {
        padding: 80px 40px;
    }
}


/* Seleccionamos la clase que le pusiste a las imágenes */
.img-guia {
    width: 92px;           /* Aumentado un 130% (de 40px a 92px) */
    height: 92px;          /* Mantenemos la proporción cuadrada */
    object-fit: contain;   /* Fundamental para que el logo y el mapa no se deformen */
    display: block;
    margin: 0 auto;        /* Centrado horizontal */
}

/* Contenedor ajustado al nuevo tamaño */
.guia-icono {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;         /* Aumentamos la altura para que el icono de 92px tenga aire */
    margin-bottom: 20px;   /* Un poco más de espacio antes del título */
}