:root {
    --primary: #0284c7; /* Azul Lago de Pátzcuaro */
    --primary-dark: #0369a1;
    --secondary: #ea580c; /* Naranja Monarca */
    --accent: #451a03; /* Tierra Profunda (Base Logo) */
    --bg-light: #fffcf9; /* Crema suave artesanal */
    --text-dark: #1e1b1a;
    --text-light: #57534e;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Barra de Navegación */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px -3px rgba(234, 88, 12, 0.4);
}

.btn-primary:hover {
    background-color: #c2410c; /* Un tono más oscuro del naranja */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.5);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px -3px rgba(2, 132, 199, 0.3);
}

.btn-white {
    background-color: var(--white);
    color: var(--secondary);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    background-color: var(--bg-light);
    color: var(--secondary);
    transform: translateY(-2px);
}


.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Sección Hero */
.hero {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.08), transparent),
                radial-gradient(circle at bottom left, rgba(234, 88, 12, 0.05), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(234, 88, 12, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -10px;
}

.avatars img:first-child {
    margin-left: 0;
}

.social-proof span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.hero-image {
    position: relative;
}

.main-mockup {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: #ddd; /* placeholder */
    aspect-ratio: 4/5;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    top: 20%;
    left: -2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Muestra de Demos */
.demos-section {
    padding: 8rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.earth-text {
    color: var(--secondary);
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.demo-card {
    background: var(--bg-light);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.demo-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.demo-card:hover .card-image img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 64, 175, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.demo-card:hover .overlay {
    opacity: 1;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
}

.card-tags span {
    background: rgba(0,0,0,0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sección de Oferta */
.offer-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.offer-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 2.5rem;
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.price-badge {
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.recommendation-badge {
    background: rgba(234, 88, 12, 0.25);
    border: 1px solid var(--secondary);
    color: var(--white);
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(234, 88, 12, 0);
    }
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 1.5rem 0;
}

.currency {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 1rem;
}

.amount {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
}

.period {
    font-size: 1.25rem;
    margin-top: 4rem;
    margin-left: 0.5rem;
    opacity: 0.8;
}

.offer-features {
    list-style: none;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.offer-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.offer-features i {
    color: var(--accent);
}

/* Pie de Página */
.footer {
    padding: 6rem 0 2rem;
    background: var(--accent);
    color: #d6d3d1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Páginas de Demo Específicas */
.demo-hero {
    padding: 4rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
}

.demo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.demo-hero .container {
    position: relative;
    z-index: 1;
}

.demo-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.services-grid, .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.service-item, .menu-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.service-item i, .menu-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.price-tag {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 1rem 0;
}

/* Temas Específicos para Demos */
.theme-barber { --primary: #27272a; --secondary: #a16207; }
.theme-restaurant { --primary: #991b1b; --secondary: #b45309; }
.theme-hotel { --primary: #065f46; --secondary: #1e40af; }

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 4rem 0;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* Sección Cómo Funciona */
.how-it-works {
    padding: 8rem 0;
    background-color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
}

.step-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--secondary);
    color: var(--white);
}

.benefit-item {
    margin-bottom: 2rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--secondary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
    z-index: 1500;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #c2410c;
}

.whatsapp-float i {
    font-size: 2rem;
}

/* Cuestionario por Pasos */
.questionnaire h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--secondary);
    width: 33%;
    transition: var(--transition);
}

.form-step, .lead-step {
    display: none;
}

.form-step.active, .lead-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-card {
    border: 2px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-card:hover {
    border-color: var(--primary);
    background: rgba(2, 132, 199, 0.05);
}

.option-card input:checked + span {
    color: var(--primary);
    font-weight: 700;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input.invalid, .input-group select.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
    animation: shake 0.4s ease-in-out;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.form-actions button {
    flex: 1;
}

/* Diseño Responsivo Móvil */
@media (max-width: 968px) {
    h1 { font-size: 3rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-image { order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}

@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .logo-img { height: 48px; }
    .nav-links .nav-link { display: none; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-lg { width: 100%; }
    .offer-box { padding: 2rem; }
    .amount { font-size: 4rem; }
}

/* ==========================================
   Chatbot Rafa - Estilos Premium
   ========================================== */



/* Contenedor del Chatbot */
#rafa-chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2100;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 640px) {
    #rafa-chatbot-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Botón Disparador (Burbuja Flotante) */
#rafa-chatbot-trigger {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--secondary);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    transition: var(--transition);
    padding: 0;
}

#rafa-chatbot-trigger img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#rafa-chatbot-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.4);
}

/* Globo de Notificación */
.rafa-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: pulseNotif 2s infinite;
}

@keyframes pulseNotif {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Ventana del Chatbot */
#rafa-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background-color: var(--white);
    border-radius: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: openChat 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

@keyframes openChat {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 640px) {
    #rafa-chatbot-window {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 9999;
    }
}

/* Cabecera del Chat */
.rafa-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.rafa-chat-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rafa-avatar-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
}

.rafa-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
}

.rafa-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid var(--white);
}

.rafa-chat-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.rafa-chat-info span {
    font-size: 0.75rem;
    opacity: 0.85;
}

#rafa-chatbot-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
    line-height: 1;
}

#rafa-chatbot-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Historial de Mensajes */
#rafa-chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

/* Estilos de Burbujas de Mensaje */
.rafa-message {
    max-width: 80%;
    padding: 0.9rem 1.1rem;
    border-radius: 1.25rem;
    font-size: 0.925rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.rafa-message.bot {
    align-self: flex-start;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top-left-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.rafa-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--secondary), #c2410c);
    color: var(--white);
    border-top-right-radius: 0.25rem;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.15);
}

/* Botón de enlace dentro del chat */
.rafa-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    background-color: var(--primary);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.rafa-chat-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Indicador de Escritura */
#rafa-typing-indicator {
    align-self: flex-start;
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    border-top-left-radius: 0.25rem;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    width: 60px;
    justify-content: center;
}

.rafa-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 50%;
    animation: rafaBounce 1.4s infinite ease-in-out both;
}

.rafa-dot:nth-child(1) { animation-delay: -0.32s; }
.rafa-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes rafaBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Respuestas Rápidas (Chips) */
#rafa-chatbot-quick-replies {
    padding: 0.75rem 1.25rem;
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.rafa-quick-chip {
    background-color: var(--white);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 99px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.rafa-quick-chip:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.15);
}

/* Formulario de Entrada de Texto */
#rafa-chatbot-input-form {
    display: flex;
    padding: 1rem 1.25rem;
    background-color: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    gap: 0.75rem;
    align-items: center;
}

#rafa-chatbot-input {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 99px;
    padding: 0.8rem 1.2rem;
    font-size: 0.925rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

#rafa-chatbot-input:focus {
    border-color: var(--primary);
}

#rafa-chatbot-send-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

#rafa-chatbot-send-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

#rafa-chatbot-send-btn i {
    width: 18px;
    height: 18px;
}
