:root {
    --primary: #1565C0;
    --secondary: #00BFA5;
    --primary-dark: #0D47A1;
    --secondary-dark: #00897B;
    --primary-light: #42a5f5;
    --secondary-light: #64ffda;
    --text-main: #263238;
    --text-muted: #546E7A;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--glass);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.logo i {
    font-size: 28px;
}

.logo img, .logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links li a i {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
    z-index: 1001;
    transition: var(--transition);
    border-radius: 50%;
}

.mobile-menu-toggle:active {
    transform: scale(0.85);
    background-color: rgba(21, 101, 192, 0.05);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0fff9 100%);
    overflow: hidden;
    scroll-margin-top: 50px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 24px;
    color: #1a237e;
}

.hero-title span {
    color: var(--secondary);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* App Mockup Illustration (3D Smart Phone like in presentacion.html) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup-3d {
    position: relative;
    width: 290px;
    aspect-ratio: 9 / 20; /* Matches screenshots perfectly */
    border-radius: 28px;
    box-shadow: var(--shadow-lg), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    background: #000;
    border: 4px solid #1e293b; /* Sleek, uniform thin bezel */
    padding: 0;
    overflow: hidden;
}

.phone-mockup-3d:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: var(--shadow-lg), 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

.phone-screen-container {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.phone-notch-bar {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #090d16;
    border-radius: 50%;
    z-index: 100;
    opacity: 0.85;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.phone-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    overflow: hidden;
}

.phone-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.phone-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Shows the full image completely, matching aspect-ratio exactly */
    display: block;
    pointer-events: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(21, 101, 192, 0.1);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 191, 165, 0.1);
    bottom: -50px;
    left: -50px;
}

/* Sections */
.section {
    padding: 100px 0;
    scroll-margin-top: 50px;
}

.bg-light { background-color: var(--bg-light); }

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Pillars Cards */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
}

.card-icon.blue { background-color: rgba(21, 101, 192, 0.1); color: var(--primary); }
.card-icon.teal { background-color: rgba(0, 191, 165, 0.1); color: var(--secondary); }

.pillar-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.card-label {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.category-item:hover {
    background-color: var(--primary);
    color: white;
}

.category-item i {
    font-size: 32px;
    color: var(--secondary);
}

.category-item:hover i {
    color: white;
}

.category-item span {
    font-weight: 700;
    font-size: 15px;
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #1a237e;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
}

.footer h4 {
    margin-bottom: 24px;
    font-size: 18px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.footer ul a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 12px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

.footer-bottom i {
    color: #f44336;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   RESPONSIVE: Hamburger Menu (screens ≤ 991px)
   ============================================ */
@media (max-width: 991px) {
    .navbar .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        color: var(--primary);
        font-size: 24px;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        right: 0;
        left: auto;
        width: 100%;
        max-width: 320px; /* Limits width on tablets to look professional */
        background-color: #ffffff;
        border-bottom: 1px solid #eeeeee;
        border-left: 1px solid #eeeeee;
        box-shadow: -5px 10px 20px rgba(0,0,0,0.05);
        padding: 0;
        margin: 0;
        z-index: 9999;
    }
    
    /* On small phones, let it be 100% width */
    @media (max-width: 500px) {
        .nav-links {
            max-width: 100%;
            border-left: none;
        }
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        border-top: 1px solid #f5f5f5;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 16px 24px;
        color: #333333;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none;
    }

    .nav-links li a:active {
        background-color: #f0f8ff;
        color: var(--primary);
    }

    .nav-links li a i {
        font-size: 18px;
        color: var(--primary);
        width: 24px;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE: Layout adjustments (≤ 991px)
   ============================================ */
@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text { order: 1; }
    .hero-visual { order: 2; }
    .hero-title { font-size: 40px; }
    .hero-btns { justify-content: center; }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

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

    .phone-mockup-3d {
        transform: none !important;
        width: 240px;
        border-radius: 24px;
        box-shadow: var(--shadow-lg), 0 15px 30px rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 140px 0 60px;
    }
}

/* Live Map Section */
.map-container-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 40px;
}

#map {
    height: 500px;
    width: 100%;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    pointer-events: none;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.yellow { background-color: #fb8c00; }
.dot.green { background-color: #43a047; }
.dot.red { background-color: #e53935; }
.dot.blue { background-color: #1e88e5; }

/* Custom Marker Style */
.leaflet-div-icon {
    background: transparent;
    border: none;
}

.custom-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    border: 2px solid white;
}

.marker-pin {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid black; /* Se pisa con JS */
}

/* Custom Popup Style */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 2px;
    box-shadow: var(--shadow);
}

.leaflet-popup-content {
    margin: 12px;
}

.map-popup h4 {
    font-size: 16px;
    font-weight: 800;
}

/* ==========================================
   Interactive User Guide & Phone Mockup
   ========================================== */
.instructivo {
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.guide-tab-btn {
    padding: 14px 24px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background-color: var(--white);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.guide-tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.15);
}

.guide-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    background-color: #F8F9FA;
    padding: 40px;
    border-radius: 32px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

/* Timeline Column (Left) */
.guide-timeline {
    display: flex;
    flex-direction: column;
}

.steps-container {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.steps-container.active-steps {
    display: flex;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.step-item::before {
    content: '';
    position: absolute;
    left: 42px;
    top: 68px;
    width: 2px;
    height: calc(100% - 24px);
    background-color: #e2e8f0;
    z-index: 1;
}

.step-item:last-child::before {
    display: none;
}

.step-item:hover {
    transform: translateX(5px);
    border-color: rgba(21, 101, 192, 0.15);
}

.step-item.active {
    border-color: rgba(21, 101, 192, 0.2);
    box-shadow: 0 12px 24px rgba(21, 101, 192, 0.06);
    background-color: var(--white);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-item.active .step-num {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 6px rgba(21, 101, 192, 0.15);
}

.step-info h4 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 6px;
    font-weight: 700;
}

.step-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Phone Preview (Right) — 3D mockup */
.guide-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* Size the 3D phone smaller inside the guide section */
.guide-preview .phone-mockup-3d {
    width: 250px;
    transform: rotateY(-8deg) rotateX(3deg);
}

.guide-preview .phone-mockup-3d:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* screen-estado uses photo slides — no CSS header inside → full height */
#screen-estado {
    height: 100% !important;
}

/* guide-css-view has the phone header INSIDE → full height, let internal layout handle it */
.phone-screen-view.guide-css-view {
    height: 100% !important;
    overflow: hidden;
}

/* step content inside guide-css-view must subtract the internal header */
.guide-css-view .screen-step-content {
    height: calc(100% - 115px);
    flex-grow: 0;
}

.phone-mockup-wrapper {
    width: 280px;
    height: 560px;
    background-color: #0f172a;
    border-radius: 44px;
    border: 12px solid #1e293b;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15), 0 0 0 2px rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 18px;
    background-color: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 999;
}

.phone-screen {
    flex-grow: 1;
    background-color: #f1f5f9;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-header-vidanimal {
    height: 115px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 18px 12px 0 12px;
    display: flex;
    flex-direction: column;
    color: white;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.phone-header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phone-header-logo-container {
    padding: 3px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phone-header-logo {
    height: 16px;
    width: auto;
    object-fit: contain;
}

.phone-header-title-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: 8px;
}

.phone-header-title-box h4 {
    font-size: 12px;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    font-family: var(--font-outfit);
}

.phone-header-title-box span {
    font-size: 6.5px;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 1px;
}

.phone-header-icons {
    display: flex;
    gap: 6px;
}

.phone-header-icon-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 9px;
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-header-row2 {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.phone-header-btn {
    flex: 1;
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 5px;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.phone-header-btn.active {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

.phone-header-row3 {
    display: flex;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.phone-header-tab {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.phone-header-tab.active {
    color: white;
    border-bottom-color: white;
}

/* View Container inside phone */
.phone-screen-view {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    height: calc(100% - 115px);
}

.phone-screen-view.active-view {
    display: flex;
}

.screen-step-content {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    position: relative;
}

.screen-step-content.active {
    display: flex;
}

/* Mock Map Background (Minimalist Styled Vector Map Replica with Multiple Blocks) */
.mock-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e2e8f0; /* Soft land base */
    background-image: 
        /* Blue river corner at bottom right */
        radial-gradient(circle at 100% 100%, rgba(147, 197, 253, 0.75) 0%, rgba(147, 197, 253, 0.75) 38%, transparent 39%),
        /* Green park bubble at top left */
        radial-gradient(circle at 15% 15%, rgba(167, 243, 208, 0.75) 0%, rgba(167, 243, 208, 0.75) 24%, transparent 25%),
        /* Horizontal streets grid */
        repeating-linear-gradient(0deg, transparent, transparent 34px, #ffffff 34px, #ffffff 40px),
        /* Vertical streets grid */
        repeating-linear-gradient(90deg, transparent, transparent 34px, #ffffff 34px, #ffffff 40px);
    background-size: 100% 100%;
    z-index: 1;
}

.mock-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 1.5px solid white;
    z-index: 5;
}

.mock-marker i {
    transform: rotate(45deg);
    font-size: 9px;
}

.mock-marker.pulsing-marker {
    animation: pulseMarker 1.5s infinite;
}

@keyframes pulseMarker {
    0% { box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 191, 165, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 191, 165, 0); }
}

.center-marker {
    top: 40%;
    left: 45%;
    background: var(--secondary);
}

/* My State Overlay Button */
.mock-top-bar-overlay {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    padding: 0 12px;
    z-index: 10;
}

.mock-btn-my-state {
    background-color: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-size: 11px;
}

.mock-btn-my-state i {
    color: var(--primary);
    font-size: 16px;
}

.mock-btn-my-state strong {
    display: block;
    color: var(--text-main);
}

.mock-btn-my-state span {
    font-size: 8px;
    color: var(--text-muted);
}

.pulsing-highlight {
    animation: highlightPulse 2s infinite;
}

@keyframes highlightPulse {
    0% { outline: 0px solid rgba(21, 101, 192, 0.4); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    50% { outline: 3px solid rgba(21, 101, 192, 0.5); box-shadow: 0 4px 20px rgba(21, 101, 192, 0.2); }
    100% { outline: 0px solid rgba(21, 101, 192, 0.4); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
}

.step-pointer {
    position: absolute;
    bottom: 20%;
    right: 20%;
    font-size: 24px;
    color: var(--primary);
    animation: pointPulse 1.5s infinite;
    z-index: 100;
}

@keyframes pointPulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-5px, -5px); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Forms inside phone */
.mock-form-container {
    background-color: white;
    flex-grow: 1;
    z-index: 10;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-form-container h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.mock-input-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-input-field label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
}

.mock-select-box {
    border: 1px solid #cbd5e1;
    padding: 8px;
    font-size: 11px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    color: var(--text-main);
    font-weight: 600;
}

.mock-image-uploader {
    border: 1.5px dashed #cbd5e1;
    background-color: #f8fafc;
    border-radius: 8px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    gap: 4px;
}

.mock-image-uploader i {
    font-size: 16px;
    color: var(--primary);
}

.mock-textarea {
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    padding: 8px;
    font-size: 9px;
    border-radius: 6px;
    height: 60px;
    overflow: hidden;
    color: var(--text-main);
    line-height: 1.3;
}

.mock-bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 15px;
    z-index: 10;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-bottom-sheet p {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

.mock-btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
}

/* Category Filters Overlay */
.mock-filter-overlay {
    background-color: white;
    padding: 15px;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-filter-overlay h3 {
    font-size: 14px;
    color: var(--text-main);
}

.mock-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mock-filter-chip {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.mock-filter-chip.active {
    background-color: rgba(21, 101, 192, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.mock-filter-chip.active i {
    color: var(--primary);
}

.mock-toast-msg {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 8px;
    font-weight: 600;
    z-index: 10;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.mock-detail-dialog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 15px;
    z-index: 10;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header .badge {
    padding: 2px 6px;
    font-size: 8px;
    border-radius: 4px;
}

.mock-detail-dialog h4 {
    font-size: 12px;
    margin: 4px 0 2px;
    color: var(--text-main);
}

.dialog-desc {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.3;
}

.mock-btn-contact {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Chat views inside phone */
.mock-chat-list {
    background-color: white;
    height: 100%;
    z-index: 10;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-chat-list h3 {
    font-size: 15px;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.chat-thread {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
}

.chat-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-details strong {
    font-size: 11px;
    color: var(--text-main);
}

.chat-details span {
    font-size: 8px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-badge {
    position: absolute;
    right: 5px;
    background-color: #ef4444;
    color: white;
    font-size: 8px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-chat-room {
    background-color: #f8fafc;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.chat-room-header {
    height: 40px;
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
    font-size: 10px;
}

.chat-room-header strong {
    font-size: 11px;
}

.chat-room-header i {
    color: var(--text-muted);
}

.chat-messages {
    flex-grow: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.msg-bubble {
    padding: 8px;
    border-radius: 12px;
    font-size: 9px;
    line-height: 1.3;
    max-width: 80%;
}

.msg-bubble.received {
    background-color: white;
    border-top-left-radius: 2px;
    align-self: flex-start;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.msg-bubble.sent {
    background-color: var(--primary);
    color: white;
    border-top-right-radius: 2px;
    align-self: flex-end;
}

.pulsing-bubble {
    animation: bubbleHighlight 2s infinite;
}

@keyframes bubbleHighlight {
    0% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.1); }
    50% { box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.15); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.1); }
}

.chat-input-bar {
    height: 38px;
    background-color: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-muted);
}

.chat-input-bar i {
    color: var(--primary);
    font-size: 12px;
}

.mock-review-form {
    background-color: white;
    height: 100%;
    z-index: 10;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-review-form h3 {
    font-size: 14px;
    color: var(--text-main);
}

.mock-review-form p {
    font-size: 9px;
    color: var(--text-muted);
    margin: 0;
}

.mock-stars {
    display: flex;
    gap: 6px;
    font-size: 14px;
    justify-content: center;
    margin: 5px 0;
}

/* Mock Feed List styles (Publicaciones solapa) */
.mock-feed-container {
    background-color: #f1f5f9;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
    z-index: 10;
}

.mock-feed-card {
    background-color: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.mock-feed-card h4 {
    font-size: 11px;
    color: var(--text-main);
    margin: 4px 0 2px;
    font-weight: 800;
}

.mock-feed-card p {
    font-size: 8px;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
}

.mock-feed-card.active-card {
    border: 1.5px solid var(--primary);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.12);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
}

.card-top .badge {
    padding: 2px 6px;
    font-size: 7px;
    border-radius: 4px;
}

.card-top .dist {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 8px;
}

.card-actions-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    border-top: 1px solid #f1f5f9;
    padding-top: 6px;
}

.btn-card-action {
    flex: 1;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-card-action.primary {
    background-color: var(--primary);
    color: white;
}

/* Mock Dropdown Menu inside phone (Menú de perfil) */
.mock-dropdown-menu {
    position: absolute;
    top: 55px;
    right: 12px;
    width: 150px;
    background-color: white;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    z-index: 200;
}

.dropdown-item {
    padding: 6px 10px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-item i {
    color: var(--primary);
    font-size: 10px;
    width: 12px;
}

.dropdown-item.active-item {
    background-color: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.15);
    color: var(--primary);
}

.dropdown-item.active-item i {
    color: var(--primary);
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #ef4444;
    display: inline-block;
    margin-left: auto;
}

/* Mock Novedades Container (Official news Marcos sends) */
.mock-novedades-container {
    background-color: #f1f5f9;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
    z-index: 10;
}

.mock-novedades-container h3 {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 6px;
    margin: 0 0 2px 0;
}

.news-item {
    background-color: white;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.news-item h4 {
    font-size: 10px;
    color: var(--text-main);
    margin: 0;
    font-weight: 700;
}

.news-item p {
    font-size: 8px;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
}

.news-date {
    font-size: 7px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Guide Styles */
@media (max-width: 992px) {
    .guide-content-wrapper {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 24px;
    }
    
    .guide-preview {
        margin-top: 30px;
        order: 1;
    }
    
    .guide-timeline {
        order: 2;
    }
}

/* Custom Leaflet Marker with Image */
.custom-marker.has-image {
    width: 40px;
    height: 40px;
    background: white;
    border-width: 3px;
    border-style: solid;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.custom-marker.has-image .marker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.custom-marker.has-image .marker-fallback-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.custom-marker.has-image .marker-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    z-index: 10;
}

/* Custom Cluster Pie Marker */
.custom-cluster-marker {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 3px solid white;
    position: relative;
    box-sizing: border-box;
}

.cluster-inner {
    width: 33px;
    height: 33px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #455a64;
    font-size: 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
}

.cluster-popup {
    font-family: 'Inter', sans-serif;
}
.cluster-popup h4 {
    font-size: 14px;
    font-weight: 800;
}


