@import url('https://fonts.googleapis.com/css2?family=Paytone+One&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --primary-purple: #6028FF;
    --accent-yellow: #FFBF1A;
    --success-green: #25D366;
    --bg-light: #F8F9FA;
    --text-dark: #1D1E20;
    --text-white: #FFFFFF;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1,
h2,
h3,
.logo-text {
    font-family: 'Paytone One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--primary-purple);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--primary-purple);
    position: relative;
    font-family: 'Paytone One', sans-serif;
}

.logo-icon::after {
    content: '⚡';
    position: absolute;
    right: -5px;
    top: -5px;
    font-size: 1.2rem;
}

.logo-text {
    color: var(--text-white);
    font-size: 1.5rem;
}

.logo-text span {
    color: var(--accent-yellow);
}

/* Buttons */
.btn {
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-whatsapp {
    background-color: var(--success-green);
    color: white;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background-color: #20BA5A;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: white;
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: var(--primary-purple);
}

.btn-large {
    padding: 1.25rem 3.5rem;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
#hero {
    background-color: var(--accent-yellow);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    z-index: 2;
}

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

#hero h1 span {
    color: var(--primary-purple);
}

#hero p {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Features */
#beneficios {
    padding: 8rem 0;
    background: var(--bg-light);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-purple);
}

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

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(96, 40, 255, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Offer Section */
#oferta {
    padding: 5rem 0;
    background: var(--primary-purple);
}

.oferta-box {
    background: white;
    padding: 4rem;
    border-radius: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.oferta-box h2 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.oferta-box h2 span {
    color: var(--accent-yellow);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
}

.timer-item span {
    font-family: 'Paytone One', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-purple);
    display: block;
}

.timer-item small {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
    font-weight: 700;
}

/* FAQ */
#faq {
    padding: 8rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
}

summary {
    padding: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    color: var(--primary-purple);
    display: flex;
    justify-content: space-between;
}

summary::after {
    content: '⚡';
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    margin-left: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    #hero h1 {
        font-size: 3rem;
    }
}

/* Chat Widget Styles */
#chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-purple);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(96, 40, 255, 0.4);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chat-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

#chat-trigger .icon {
    font-size: 1.8rem;
}

.badge-notify {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4d4d;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-purple);
}

#chat-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 60px);
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-widget.chat-closed {
    opacity: 0;
    transform: scale(0.5) translateY(100px);
    pointer-events: none;
}

#chat-header {
    background: var(--primary-purple);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

#close-chat:hover {
    opacity: 1;
}

#chat-body {
    padding: 1.5rem;
    flex-grow: 1;
    max-height: 400px;
    overflow-y: auto;
    background: #fdfdfd;
}

.message-bubble {
    padding: 1rem;
    border-radius: 18px;
    margin-bottom: 1rem;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: slideIn 0.3s ease-out;
}

.system {
    background: #f0f2f5;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.user {
    background: var(--primary-purple);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

#chat-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: white;
}

#quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chat-btn-small {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--primary-purple);
    background: transparent;
    color: var(--primary-purple);
    cursor: pointer;
    font-weight: 600;
}

.chat-btn-small:hover {
    background: var(--primary-purple);
    color: white;
}

#chat-input-area {
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #eee;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: 0.2s;
}

#chat-input:focus {
    border-color: var(--primary-purple);
}

#send-chat {
    background: var(--primary-purple);
    color: white;
    border: none;
    width: 45px;
    border-radius: 12px;
    cursor: pointer;
}

#lead-form-container {
    padding: 1rem;
    background: #fdfdfd;
    border-top: 1px solid #eee;
}

#lead-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#lead-form input {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'DM Sans', sans-serif;
}

.hidden {
    display: none !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #chat-widget {
        width: 100%;
        bottom: 0;
        right: 0;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
    }
}