/* 
  BotAgencia - Premium Design System
  Color Palette: Dark Mode with WhatsApp Green Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;
    --accent: #22C55E;
    --accent-glow: rgba(34, 197, 94, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --glass: rgba(24, 24, 27, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --premium-gradient: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Background Enhancement */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 40%),
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    z-index: -2;
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0.3;
    animation: moveBlob 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; background: rgba(34, 197, 94, 0.2); animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 300px; height: 300px; animation-delay: -10s; }

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 200px) scale(1.2); }
    66% { transform: translate(-100px, 50px) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 30px var(--accent-glow); }
    100% { box-shadow: 0 0 5px var(--accent-glow); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Base Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--premium-gradient);
    color: #000;
    box-shadow: 0 10px 20px -10px var(--accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px var(--accent);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.logo-container img {
    height: 48px;
    transition: transform 0.3s ease;
}

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

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-visual img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5), 0 0 40px rgba(34, 197, 94, 0.1);
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

/* SOCIAL PROOF */
.social-proof {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
}

/* PROBLEM/SOLUTION */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 24px;
}

/* HOW IT WORKS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    background: var(--bg-tertiary);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    margin-bottom: 24px;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    height: 400px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 24px;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-front, .service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.service-front {
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
}

.service-img {
    height: 55%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-tertiary), transparent);
}

.service-info {
    padding: 24px;
    flex: 1;
}

.service-back {
    background: var(--bg-secondary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.service-back p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.plan-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.plan-badge.starter {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.plan-badge.pro {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
}

.pro-card {
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(34, 197, 94, 0.05) 100%);
    box-shadow: 0 15px 45px rgba(34, 197, 94, 0.12), inset 0 0 20px rgba(34, 197, 94, 0.05);
    border-radius: 24px; /* Explicitly rounded corners */
}

.pro-card .service-front, .pro-card .service-back {
    border-color: transparent;
}

/* TESTIMONIALS */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--glass);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.stars {
    color: #FBBF24;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.user-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

/* CONTACT */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-5px);
}

/* FOOTER */
footer {
    padding: 80px 0 40px;
    background: var(--bg-main);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 24px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover, .social-links a:hover {
    color: var(--accent) !important;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 60px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* FAQ SECTION */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.faq-item summary {
    padding: 24px 30px;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f0fe';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: all 0.3s ease;
    color: var(--accent);
    font-size: 1.2rem;
}

.faq-item[open] summary::after {
    content: '\f068';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px 30px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    animation: fadeIn 0.5s ease-out;
}

/* PRICING TOGGLE */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--text-primary);
}

.discount-badge {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Base Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: .4s;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #000;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* PRICING SECTION */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 80px;
}

.pricing-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, rgba(34, 197, 94, 0.05) 100%);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.07) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: black;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.price {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.price .setup {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.price-container {
    display: flex;
    align-items: baseline;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    transition: all 0.3s ease;
}

.price .period {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

.pricing-features li i {
    color: var(--accent);
    margin-top: 4px;
    font-size: 0.9rem;
}

.feature-highlight {
    color: var(--text-primary) !important;
    font-weight: 700;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
}

.support-info {
    max-width: 900px;
    margin: 100px auto 60px;
    background: rgba(34, 197, 94, 0.03);
    padding: 40px;
    border-radius: 30px;
    border: 1px dashed var(--glass-border);
}

.support-grid {
    display: flex;
    justify-content: center;
}

.support-item {
    display: flex;
    gap: 30px;
    align-items: center;
}

.support-item i {
    font-size: 2.5rem;
    color: var(--accent);
}

.support-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.support-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.no-tech-note {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.note-box {
    padding: 30px 40px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    overflow: hidden;
}

.note-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.note-box i {
    color: #FBBF24;
    margin-right: 12px;
}

.note-box strong {
    color: var(--text-primary);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .container { padding: 0 40px; }
    .hero-grid, .split-section { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 40px; }
    .hero-visual { max-width: 600px; margin: 40px auto 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid, .services-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .faq-item summary { padding: 20px; font-size: 1rem; }
    .faq-answer { padding: 0 20px 20px; }
}
