:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Comfortaa', cursive;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--success-color) 100%);
}

/* Estilos base */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.3;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight {
    background-color: rgba(255, 255, 0, 0.3);
    padding: 0 2px;
    border-radius: 3px;
}

/* FAQ Container */
.faq-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section Premium */
.faq-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark-color) 0%, #16213e 100%);
    color: white;
    padding: 100px 60px;
    border-radius: 20px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 60px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    flex: 1;
    z-index: 3;
}

.hero-image {
    position: relative;
    flex: 1;
    z-index: 3;
}

.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge svg {
    margin-left: 8px;
    color: var(--accent-color);
}

.faq-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.search-box {
    display: flex;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: var(--transition);
}

.search-box:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.search-icon {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.search-box input {
    flex: 1;
    padding: 15px 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    padding: 0 25px;
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: #3a7bd5;
}

/* Categories Section Premium */
.faq-categories {
    margin: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(63, 55, 201, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--gradient);
    color: white;
}

.category-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* FAQ Questions Premium */
.faq-questions {
    margin: 80px 0;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item:hover {
    box-shadow: var(--box-shadow-hover);
}

.accordion-header {
    width: 100%;
    padding: 25px 30px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--gray-100);
}

.accordion-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(63, 55, 201, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.accordion-arrow {
    margin-left: auto;
    transition: var(--transition);
}

.accordion-item.active .accordion-header {
    background: var(--primary-color);
    color: white;
}

.accordion-item.active .accordion-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.accordion-item.active .accordion-arrow i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: white;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.content-wrapper {
    padding: 0 30px 30px;
}

.accordion-content p,
.accordion-content ol,
.accordion-content ul {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-color);
}

.accordion-content ol,
.accordion-content ul {
    padding-left: 20px;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.test-card {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.test-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(63, 55, 201, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.test-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.test-card ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.test-card li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
}

.test-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.disclaimer {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.price-table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.price-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--dark-color);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background: var(--gray-50);
}

.content-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
    margin-top: 20px;
}

.helpful-question {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feedback-buttons {
    display: flex;
    gap: 10px;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--gray-300);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-btn.yes-btn:hover {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.feedback-btn.no-btn:hover {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

.feedback-confirmation {
    font-size: 0.8rem;
    color: var(--success-color);
    margin-left: 10px;
}

/* Help Section Premium */
.help-section {
    margin: 80px 0;
}

.help-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    color: white;
    box-shadow: var(--box-shadow-hover);
    position: relative;
    overflow: hidden;
}

.help-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.help-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.help-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.help-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

.help-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.help-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.help-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.help-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.help-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.help-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Chatbot Flotante Premium */
.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-button {
    width: auto;
    height: 60px;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.5);
    transition: all 0.3s;
    position: relative;
    padding: 0 25px;
    overflow: hidden;
}

.chatbot-button:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.6);
}

.chatbot-button-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button-text {
    font-weight: 600;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--warning-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.chatbot-container {
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-header {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-info {
    display: flex;
    flex-direction: column;
}

.chatbot-info h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.status-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 3px;
}

.status-badge.online {
    background: var(--success-color);
}

.chatbot-actions {
    display: flex;
    gap: 10px;
}

.chatbot-action-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-chat:hover {
    background: var(--warning-color);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--gray-100);
}

.welcome-message {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.welcome-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.quick-title {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.quick-questions button {
    background: var(--gray-200);
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.quick-questions button:hover {
    background: var(--gray-300);
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--gray-200);
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 30px;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.input-actions {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.input-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-action-btn:hover {
    background: var(--gray-200);
    color: var(--primary-color);
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    margin-left: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Estilos para los mensajes del chat */
.chat-message {
    display: flex;
    margin-bottom: 15px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 1rem;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chat-bubble.user {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
    margin-left: auto;
}

.chat-bubble.bot {
    background: white;
    color: var(--text-color);
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-bubble.admin {
    background: var(--success-color);
    color: white;
    border-bottom-left-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .faq-hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 40px;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .search-box {
        margin: 0 auto;
    }

    .help-card {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .help-options {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .faq-hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .help-card {
        padding: 40px;
    }

    .help-card h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 30px;
    }

    .faq-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .help-card {
        padding: 30px;
    }

    .help-options {
        flex-direction: column;
    }

    .help-button {
        width: 100%;
        justify-content: center;
    }

    .chatbot-button .button-text {
        display: none;
    }

    .chatbot-button {
        width: 60px;
        height: 60px;
        padding: 0;
    }

    .chatbot-container {
        width: 380px;
        right: -10px;
    }
}

@media (max-width: 576px) {
    .faq-hero {
        padding: 50px 20px;
        margin: 20px 0;
    }

    .faq-hero h1 {
        font-size: 1.8rem;
    }

    .search-box {
        flex-direction: column;
        background: transparent;
        border: none;
        max-width: 100%;
    }

    .search-icon {
        display: none;
    }

    .search-box input {
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .search-button {
        border-radius: 30px;
        padding: 12px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .accordion-header {
        padding: 20px;
        gap: 15px;
    }

    .content-wrapper {
        padding: 0 20px 20px;
    }

    .test-grid {
        grid-template-columns: 1fr;
    }

    .help-card {
        padding: 30px 20px;
    }

    .help-card h3 {
        font-size: 1.5rem;
    }

    .help-card p {
        font-size: 1rem;
    }
}