:root {
    --primary: #cc0f35;
    --primary-hover: #e6123f;
    --primary-gradient: linear-gradient(135deg, #e6123f 0%, #990522 100%);
    --accent-glow: rgba(230, 18, 63, 0.4);
    --bg-body: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 32px -8px var(--accent-glow);
    --header-bg: rgba(18, 18, 18, 0.88);
    --pill-bg: #ffffff;
    --pill-border: rgba(204, 15, 53, 0.18);
}

/* Dark Mode Automático */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #090d16;
        --surface: #131b2e;
        --surface-glass: rgba(19, 27, 46, 0.85);
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.35);
        --pill-bg: #1e293b;
        --pill-border: rgba(230, 18, 63, 0.28);
    }
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* HEADER GLASSMORPHISM */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    position: relative;
}

.navbar-brand img {
    display: block;
    height: 44px;
    width: auto;
}

/* Menú Hamburguesa sin JS */
#nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-toggle-label .icon-close {
    display: none;
}

#nav-toggle:checked ~ .nav-toggle-label {
    background: var(--primary);
    border-color: var(--primary);
}

#nav-toggle:checked ~ .nav-toggle-label .icon-open {
    display: none;
}

#nav-toggle:checked ~ .nav-toggle-label .icon-close {
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 6px;
    list-style: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 50px;
}

.nav-menu li a:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* HERO SECTION */
.hero-section {
    padding: 45px 0 25px;
    text-align: center;
}

.live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.h1-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 12px;
}

.intro-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 18px;
}

/* WELCOME BADGE ESTILO COLOMBIA */
.welcome-badge {
    background: rgba(204, 15, 53, 0.06);
    border: 1px dashed rgba(204, 15, 53, 0.25);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 22px;
    display: inline-block;
}

/* FORMULARIO CÁPSULA */
.chat-form-container {
    max-width: 580px;
    margin: 0 auto 28px;
}

.chat-form-group {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 60px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-form-group:focus-within {
    border-color: var(--primary);
    box-shadow: 
        0 0 0 5px var(--accent-glow), 
        0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    min-width: 0;
    padding: 8px 0;
}

.chat-input::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
    font-weight: 500;
}

.btn-chat {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 14px 34px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px var(--accent-glow);
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.btn-chat:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.btn-chat:active {
    transform: scale(0.98);
}

/* PILLS / TAGS */
.keywords-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
    max-width: 820px;
    margin: 22px auto 10px;
    padding: 0 10px;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.pill-tag i {
    font-size: 0.95rem;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.pill-tag:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204, 15, 53, 0.18);
    color: var(--primary);
}

.pill-tag:hover i {
    transform: scale(1.2);
}

/* INFO & CATEGORÍAS */
.info-card {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.categories-cloud {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.categories-cloud h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.categories-grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.categories-grid-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-grid-links a i {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.categories-grid-links a:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.categories-grid-links a:hover i {
    color: #ffffff;
    transform: scale(1.15);
}

/* GRID DE TARJETAS DE SALAS */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    margin: 35px 0;
}

.thumbnail-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.thumbnail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.thumbnail-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.caption-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.caption-box h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.caption-box h2 a {
    color: var(--text-main);
}

.caption-box h2 a:hover {
    color: var(--primary);
}

.caption-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* FEATURES LIST */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-box {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feature-header i {
    font-size: 1.3rem;
    color: var(--primary);
}

.feature-header strong {
    font-size: 1.05rem;
    color: var(--text-main);
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-section {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 40px 0;
}

.faq-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* BREADCRUMBS ADAPTATIVOS SIN SCROLL */
.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    list-style: none;
    background: var(--surface);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    word-break: break-word;
    overflow: hidden;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li+li:before {
    content: "/";
    padding-right: 8px;
    color: var(--border-color);
}

.breadcrumb li.active {
    color: var(--primary);
    font-weight: 700;
}

/* Separación específica para el icono del breadcrumb */
.breadcrumb li i.breadcrumb-icon {
    margin-right: 6px;
}

/* FOOTER */
footer {
    background: var(--header-bg);
    color: #a0a0a0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 0;
    margin-top: 60px;
}

footer a {
    color: #cccccc;
}

footer a:hover {
    color: var(--primary);
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

/* MÓVIL OPTIMIZADO */
@media (max-width: 868px) {
    .nav-toggle-label {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.96);
        backdrop-filter: blur(16px);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        padding: 16px 20px;
        gap: 6px;
        box-shadow: 0 25px 40px rgba(0, 0, 0, 0.8);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: 
            opacity 0.2s ease, 
            transform 0.2s ease, 
            visibility 0.2s;
    }

    #nav-toggle:checked ~ .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li a {
        justify-content: flex-start;
        border-radius: var(--radius-sm);
        padding: 12px 16px;
        font-size: 1rem;
        color: #e2e8f0;
        background: rgba(255, 255, 255, 0.03);
    }

    .chat-form-container {
        padding: 0 5px;
    }

    .chat-form-group {
        padding: 4px 4px 4px 14px;
    }

    .input-addon {
        font-size: 1.1rem;
        margin-right: 8px;
    }

    .chat-input {
        font-size: 0.95rem;
    }

    .btn-chat {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 40px;
    }

    .keywords-pills {
        gap: 8px;
        margin-top: 18px;
    }

    .pill-tag {
        padding: 6px 14px;
        font-size: 0.76rem;
    }

    .pill-tag i {
        font-size: 0.85rem;
    }

    .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 12px;
    }

    .categories-grid-links {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .thumbnail-card img {
        height: 110px;
    }

    .caption-box {
        padding: 12px;
    }

    .caption-box h2 {
        font-size: 0.95rem;
    }

    .caption-box p {
        font-size: 0.8rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
    }

    .hidden-xs {
        display: none !important;
    }
}