/* Variables corporativas — RFSBADEBA */
:root {
    /* Paleta corporativa oficial RFSBADEBA */
    --rfs-yellow: #FFE600;
    --rfs-gold: #FFC253;
    --rfs-salmon: #FFAA9E;
    --rfs-lavender: #D2A3FF;
    --rfs-sky: #49B1FE;

    /* Tokens semánticos */
    --primary: #49B1FE;          /* acento principal (cielo) para rellenos/bordes */
    --primary-dark: #1f7ac0;     /* azul más profundo: hover y texto sobre blanco */
    --ink: #1a1a1a;              /* texto legible sobre fondos claros/brillantes */
    --secondary: #121212;
    --surface-dark: #121212;
    --text-on-dark: #f5f5f5;
    --text-muted-on-dark: #c8c8c8;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f4f4f4;
    --gradient: linear-gradient(135deg, #FFE600 0%, #FFC253 100%); /* botón principal: amarillo → dorado */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: var(--surface-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Navegación rifas: 3 enlaces + menú (métodos / privacidad) */
.navbar-rifas-nav {
    position: relative;
    flex-wrap: wrap;
    gap: 0.5rem 0;
}

.nav-toggle {
    display: none; /* visible solo en móvil (ver media query) */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #2a2a2a;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle:hover {
    background: #3a3a3a;
}

.nav-links-main {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
}

/* Desktop: el menú extra (métodos / privacidad) se muestra en línea, sin hamburguesa */
.nav-drawer {
    display: flex;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-left: 1.25rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.nav-drawer a {
    display: inline-block;
    padding: 0;
    color: var(--text-muted-on-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-drawer a:hover,
.nav-drawer a.active {
    background: transparent;
    color: #ffffff;
}

@media (max-width: 640px) {
    .nav-links-main {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 0.65rem 1rem;
        font-size: 0.88rem;
    }
    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    .navbar-rifas-nav .logo {
        order: 1;
    }
    /* Móvil: el menú extra vuelve a ser un desplegable accionado por la hamburguesa */
    .nav-drawer {
        display: none;
        position: absolute;
        top: calc(100% - 6px);
        right: 0;
        left: auto;
        min-width: 220px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        background: #1e1e1e;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
        border: 1px solid #333;
        padding: 8px 0;
        z-index: 1005;
    }
    .nav-drawer.is-open {
        display: block;
    }
    .nav-drawer a {
        display: block;
        padding: 12px 18px;
        color: var(--text-on-dark);
        font-weight: 600;
    }
    .nav-drawer a:hover,
    .nav-drawer a.active {
        background: #2a2a2a;
        color: #ffffff;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-on-dark);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted-on-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

/* Enlace logo en barra superior (compacto, nítido) */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    line-height: 0;
}
.logo-link.logo-link-with-text {
    line-height: 1.15;
    gap: clamp(8px, 2vw, 14px);
}
.logo-site-name {
    font-size: clamp(1.05rem, 2.6vw, 1.85rem);
    font-weight: 800;
    color: var(--text-on-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
@media (max-width: 380px) {
    .logo-site-name {
        font-size: 1rem;
        max-width: 38vw;
    }
}
.logo-img-nav {
    height: 38px;
    width: auto;
    max-width: min(150px, 40vw);
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
@media (max-width: 640px) {
    .logo-img-nav {
        height: 32px;
        max-width: 40vw;
    }
}

/* Franja principal: logo en tarjeta limpia, tamaño controlado (responsive, sin recorte) */
.logo-hero-strip {
    background: linear-gradient(180deg, #ffffff 0%, rgba(73, 177, 254, 0.07) 100%);
    padding: clamp(0.9rem, 2.2vw, 1.5rem) 1rem;
    text-align: center;
    border-bottom: 1px solid #eef0f2;
}
.logo-hero-strip-inner {
    max-width: 960px;
    margin: 0 auto;
}
.logo-hero-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.logo-hero-img {
    display: block;
    width: auto;
    height: clamp(60px, 9vw, 96px);
    max-width: min(78vw, 340px);
    object-fit: contain;
    object-position: center;
}
@media (max-width: 480px) {
    .logo-hero-card {
        padding: 10px 16px;
    }
    .logo-hero-img {
        height: clamp(52px, 16vw, 72px);
    }
}

/* Hero */
.hero-wrapper {
    background: var(--surface-dark);
    padding-bottom: 1.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    margin-bottom: 1.5rem;
}

.hero-diagonal {
    background: linear-gradient(135deg, #49B1FE 0%, #D2A3FF 100%);
    padding: clamp(2rem, 4vw, 3rem) 2rem clamp(4rem, 7vw, 6rem) 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1.2;
    text-align: left;
    color: var(--ink);
}

.hero-text h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1.1rem;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.15);
    letter-spacing: -1.5px;
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1.6rem;
    font-weight: 500;
    opacity: 0.95;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 120%;
    transform: rotate(8deg) scale(1.1) translateY(20px);
    filter: drop-shadow(15px 25px 20px rgba(0,0,0,0.4)); 
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: rotate(5deg) scale(1.15) translateY(0);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .hero-text {
        text-align: center;
    }
    .hero-image img {
        max-width: 90%;
        transform: rotate(4deg) scale(1);
    }
}

/* Promociones */
.promo-section {
    text-align: center;
    padding: 1rem 20px 3rem 20px;
}

.promo-section h2 {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.promo-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s;
}

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

.promo-card h3 {
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.promo-card p {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
}

.btn-promo {
    margin-top: 1.5rem;
    padding: 12px 25px;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Botón Principal */
.btn-primary {
    background: var(--gradient);
    color: var(--ink);
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 122, 192, 0.30);
    color: var(--ink);
}

/* Rifas Grid */
.rifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.rifa-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eaeaea;
}

.rifa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.rifa-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rifa-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rifa-content {
    padding: 1.5rem;
}

.rifa-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.rifa-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 1rem 0;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    background: var(--gradient);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.btn-comprar {
    background: var(--primary);
    color: var(--ink);
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
    font-size: 1rem;
}

.btn-comprar:hover {
    background: var(--primary-dark);
}

/* Badge ruleta premium en tarjeta de rifa */
.ruleta-badge {
    display: block;
    background: linear-gradient(135deg, var(--rfs-yellow) 0%, var(--rfs-gold) 100%);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 194, 83, 0.55);
    box-shadow: 0 3px 12px rgba(255, 230, 0, 0.28);
    max-width: 100%;
}
.ruleta-badge strong {
    font-weight: 800;
}
.ruleta-badge--agotada {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    color: #495057;
    border-color: #ced4da;
    box-shadow: none;
}

/* Avisos de ruleta en modal de apartado */
.ruleta-aviso-box {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    border: 1px solid transparent;
}
.ruleta-aviso-box--info {
    background: linear-gradient(135deg, rgba(73, 177, 254, 0.14) 0%, rgba(210, 163, 255, 0.18) 100%);
    color: var(--primary-dark);
    border-color: rgba(73, 177, 254, 0.35);
}
.ruleta-aviso-box--ok {
    background: linear-gradient(135deg, rgba(255, 230, 0, 0.28) 0%, rgba(255, 194, 83, 0.32) 100%);
    color: #1a5c2e;
    border-color: rgba(255, 198, 83, 0.55);
}
.ruleta-aviso-box--warn {
    background: linear-gradient(135deg, rgba(255, 170, 158, 0.3) 0%, rgba(255, 230, 0, 0.2) 100%);
    color: #7a4a00;
    border-color: rgba(255, 194, 83, 0.45);
}
.ruleta-aviso-box--muted {
    background: #f1f3f5;
    color: #6c757d;
    border-color: #dee2e6;
    font-weight: 600;
}
.btn-maquina-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #888;
    text-align: center;
    line-height: 1.3;
}

.btn-maquina {
    background: white;
    color: var(--ink);
    border: 2px solid var(--primary);
    padding: 10px;
    width: 100%;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

.btn-maquina:hover {
    background: var(--primary);
    color: var(--ink);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    width: 700px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    line-height: 1;
}

.close:hover {
    color: var(--primary);
}

.numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: var(--gray);
    border-radius: 15px;
}

.numero-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--dark);
}

.numero-item.selected {
    background: var(--gradient);
    color: var(--ink);
    border: none;
    box-shadow: 0 4px 10px rgba(31, 122, 192, 0.30);
}

.numero-item.vendido {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: transparent;
}

.resumen {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-label-inline {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.form-apartar-compact .form-group {
    margin-bottom: 0.95rem;
}

/* Chatbot Override */
#close-chatbot:hover {
    transform: scale(1.2);
}
.chatbot-mensaje::-webkit-scrollbar {
    width: 6px;
}
.chatbot-mensaje::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

/* Footer */
.footer {
    background: var(--surface-dark);
    color: var(--text-muted-on-dark);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #2a2a2a;
}

.site-footer-brand-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.site-footer-brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
}

.site-footer-brand-logo-rm {
    height: auto;
    max-height: 72px;
    width: auto;
    max-width: min(300px, 88vw);
    object-fit: contain;
}

.site-footer-brand-text {
    color: var(--text-on-dark);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

.site-footer-brand-text a {
    color: var(--text-on-dark);
    text-decoration: none;
}

.site-footer-brand-text a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.site-footer-brand-text a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

.site-footer-copy {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted-on-dark);
}

/* —— Grid virtual (apartado manual) —— */
.numeros-grid-virtual-host {
    max-height: 320px;
    overflow-y: auto;
    padding: 15px;
    background: var(--gray);
    border-radius: 15px;
    scroll-behavior: smooth;
}
.numeros-grid-virtual-track {
    position: relative;
    width: 100%;
}
.numeros-grid-virtual-viewport {
    box-sizing: border-box;
}

.numeros-grid-maquina-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: var(--gray);
    border-radius: 15px;
}

/* Números del modal: se ven COMPLETOS (incluye 8 dígitos), sin ellipsis ni scroll horizontal */
.numeros-grid,
.numeros-grid-maquina-resumen,
.numeros-grid-virtual-host {
    overflow-x: hidden;
    max-width: 100%;
}
.numeros-grid,
.numeros-grid-maquina-resumen {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
}
.numero-item {
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: clamp(0.72rem, 2.3vw, 0.95rem);
    padding: 0.55rem 0.3rem;
    line-height: 1.15;
}
@media (max-width: 480px) {
    .numeros-grid,
    .numeros-grid-maquina-resumen {
        grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
        gap: 8px;
        padding: 10px;
    }
}

/* —— Métodos de pago (modal) —— */
.metodos-pago-block {
    margin: 18px 0;
}
.metodos-pago-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}
.metodos-pago-nota {
    font-size: 0.82rem;
    color: #666;
    margin: 0 0 14px;
    line-height: 1.45;
}
.metodos-pago-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.metodo-pago-card {
    background: linear-gradient(160deg, #ffffff 0%, rgba(210, 163, 255, 0.14) 100%);
    border: 1px solid rgba(210, 163, 255, 0.45);
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: 0 8px 22px rgba(73, 177, 254, 0.10);
}
.metodo-pago-bank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.metodo-pago-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.metodo-pago-logo.a {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
}
.metodo-pago-logo.b {
    background: linear-gradient(135deg, #b71c1c, #e53935);
}
.metodo-pago-bank-name {
    font-size: 0.92rem;
    color: #1a1a1a;
}
.metodo-pago-sub {
    font-size: 0.76rem;
    color: #888;
    margin-top: 2px;
}
.metodo-pago-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    margin: 8px 0 3px;
}
.metodo-pago-value {
    font-weight: 700;
    color: #222;
    font-size: 0.92rem;
    word-break: break-word;
}
.metodo-pago-clabe {
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    letter-spacing: 0.04em;
}
.btn-copy-clabe {
    margin-top: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.82rem;
    background: var(--primary);
    color: var(--ink);
    transition: opacity 0.2s, transform 0.15s;
}
.btn-copy-clabe:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.bank-card-pago .metodo-pago-label:first-of-type {
    margin-top: 10px;
}

/* —— Chatbot rifas (misma UX / colores que web principal) —— */
.chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient);
    color: var(--ink) !important;
    border-radius: 50px;
    padding: 14px 22px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(31, 122, 192, 0.30);
    z-index: 1002;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    transition: transform 0.2s;
}
.chatbot-btn:hover {
    transform: scale(1.04);
}

.chatbot-modal {
    display: none;
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    overflow: hidden;
}

.chatbot-header {
    background: var(--gradient);
    color: var(--ink);
    padding: 15px 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-chatbot {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s;
}
#close-chatbot:hover {
    transform: scale(1.15);
}

.chatbot-body .form-group {
    margin-bottom: 0;
}

.chatbot-body .chatbot-send {
    width: auto !important;
    min-width: 46px;
}

.chatbot-mensaje {
    text-align: left;
    white-space: pre-wrap;
    color: var(--dark);
}
.chatbot-mensaje::-webkit-scrollbar {
    width: 6px;
}
.chatbot-mensaje::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}