@font-face {
    font-family: 'Alta Caption';
    src: url('assets/fonts/Alta_caption.otf') format('opentype');
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
}

:root {
    --bg: #0b0b0d;
    --stroke: rgba(255, 255, 255, .12);
    --txt: #e9ecf2;
    --muted: #a7aec0;
    --accent: #ff8b2b;
    --success: #50e3a4;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 7rem;
}

/* ESTILOS PARA EL CUERPO DE LA PÁGINA */
.switch-container {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #26262c;
    transition: .4s;
    border-radius: 9999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #1c1c22;
}

input:checked+.slider:before {
    background-color: var(--success);
    transform: translateX(20px);
}

.tabs-list {
    display: inline-flex;
    height: 44px;
    align-items: center;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    padding: 4px;
}

.tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 9999px;
    padding: 0 1.25rem;
    height: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}

.tab-trigger:hover {
    color: var(--txt);
}

.tab-trigger.active {
    background-color: var(--accent);
    color: #111;
    box-shadow: 0 8px 22px rgba(255, 139, 43, .35);
}

.tab-content.hidden {
    display: none;
}

.plan-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--stroke);
    border-radius: 1.5rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .26);
    border-color: rgba(255, 255, 255, .2);
    background-color: rgba(255, 255, 255, .04);
}

.btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: #111;
    font-weight: 800;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(255, 139, 43, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 139, 43, .45);
}

.btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--txt);
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--stroke);
    transition: background-color .2s ease, border-color .2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tabs-container {
    position: relative;
    width: 100%;
}

@media (min-width: 640px) {
    .tabs-container {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 639px) {

    .tabs-container::before,
    .tabs-container::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 10;
        width: 40px;
        pointer-events: none;
    }

    .tabs-container::before {
        left: -1px;
        background: linear-gradient(to right, var(--bg) 20%, transparent);
    }

    .tabs-container::after {
        right: -1px;
        background: linear-gradient(to left, var(--bg) 20%, transparent);
    }

    .tabs-list {
        justify-content: flex-start;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ===== INICIO: ESTILOS PARA EL NUEVO MEGA MENÚ DE PLANES ===== */
.item-card,
.item-card-bundle,
.item-card-popular {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease-in-out;
}

.item-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.item-card-bundle {
    background-color: rgba(255, 139, 43, 0.1);
    border: 1px solid rgba(255, 159, 77, 0.3);
}

.item-card-bundle:hover {
    background-color: rgba(255, 139, 43, 0.2);
}

.item-card-popular {
    position: relative;
    border: 1px solid rgba(255, 159, 77, 0.5);
}

.item-card-popular:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.popular-tag {
    position: absolute;
    top: -0.625rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--accent);
    color: black;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.item-icon,
.item-icon-bundle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.item-icon-bundle {
    background-color: rgba(255, 159, 77, 0.2);
}

.item-text {
    flex-grow: 1;
}

.item-text h5 {
    font-weight: 600;
    color: white;
}

.item-text p {
    font-size: 0.875rem;
    color: #a7aec0;
}

.item-price {
    text-align: right;
}

.item-price .price {
    font-weight: 700;
    color: white;
}

.price-bundle {
    font-weight: 700;
    color: #ff8b2b;
}

.badge-pro {
    font-size: 0.75rem;
    font-weight: 700;
    color: #60a5fa;
}

.badge-adv {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fb923c;
}

.cta-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--accent);
    color: black;
    font-weight: 700;
    padding: 0.75rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out;
}

.cta-button:hover {
    background-color: #fb923c;
}

/* ===== FIN: ESTILOS PARA EL NUEVO MEGA MENÚ ===== */
/* Mejoras selector agente */
.agent {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px
}

.agent button {
    background: #181b22;
    color: #e5e7eb;
    border: 2px solid #23262e;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.18s;
    outline: none;
    box-shadow: none;
}

.agent button.active {
    border: 2px solid #ff8a00;
    color: #fff;
    background: #181b22;
    box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.08);
}

.agent button:not(.active):hover {
    border: 2px solid #31343a;
    color: #fff;
}

/* Estilo para los chips de sugerencias */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: #181b22;
    color: #d1d5db;
    border: 1.5px solid #23262e;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.18s;
    margin-bottom: 8px;
}

.chip:hover {
    border-color: #ff8a00;
    color: #fff;
    background: #23262e;
}

/* Scrollbar personalizado para el chat */
.log::-webkit-scrollbar {
    width: 8px;
    background: #181b22;
    border-radius: 8px;
}

.log::-webkit-scrollbar-thumb {
    background: #23262e;
    border-radius: 8px;
    transition: background 0.2s;
}

.log::-webkit-scrollbar-thumb:hover {
    background: #ff8a00;
}

.log {
    scrollbar-width: thin;
    scrollbar-color: #23262e #181b22;
}