:root {
    --bg-main: #0a0c10; 
    --bg-card: #12151c;
    --bg-card-hover: #1a1e27;
    --accent-orange: #FF5A00;
    --accent-orange-hover: #ff7326;
    --text-main: #f0f2f5;
    --text-muted: #8b949e;
    --border-color: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

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

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background-color: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-img {
    height: 38px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.logo-rf { color: var(--text-main); }
.logo-pc { color: var(--accent-orange); }
.logo-soluciones { 
    color: var(--text-main);
    font-weight: 900;
    font-size: 1.3rem;
    margin-left: 2px;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #111;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-full {
    width: 100%;
    margin-top: 1.5rem;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 20px 40px;
    background: radial-gradient(circle at top center, #1b212c 0%, var(--bg-main) 60%);
}

.hero-content {
    max-width: 850px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 90, 0, 0.1);
    color: var(--accent-orange);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 90, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.highlight {
    color: var(--accent-orange);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- GENERAL SECTIONS --- */
section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- CÓMO TRABAJAMOS --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    padding: 2.2rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-left-color: var(--accent-orange);
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.step-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--border-color);
    margin-bottom: 0.8rem;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

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

/* --- PACKS DE OPTIMIZACIÓN --- */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.card-header .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.features {
    list-style: none;
    flex-grow: 1;
}

.features li {
    margin-bottom: 1.1rem;
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.features li i {
    color: var(--accent-orange);
    margin-top: 4px;
}

.feature-highlight {
    background-color: rgba(255, 90, 0, 0.05);
    padding: 8px;
    border-radius: 6px;
    border-left: 2px solid var(--accent-orange);
}

.card-destacada {
    border: 1px solid var(--accent-orange);
    background: linear-gradient(180deg, rgba(255,90,0,0.05) 0%, var(--bg-card) 100%);
    box-shadow: 0 10px 40px rgba(255, 90, 0, 0.1);
}

.badge-recomendado {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--accent-orange);
    color: #111;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* --- DESARROLLO --- */
.desarrollo {
    background-color: #0d1117;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.dev-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.dev-text h2 {
    font-size: 2.1rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.dev-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

.dev-list {
    list-style: none;
    margin-bottom: 2.2rem;
}

.dev-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}
.dev-list i {
    color: var(--accent-orange);
    background: rgba(255, 90, 0, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.code-window {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    max-width: 100%;
}

.code-header {
    background-color: #0d1117;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }
.code-title {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: monospace;
}

.code-window pre {
    padding: 16px;
    color: #c9d1d9;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- FAQ --- */
.faq-section {
    background-color: var(--bg-main);
}

.faq-grid {
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    transition: background 0.3s;
}

.faq-card:hover {
    background: var(--bg-card-hover);
}

.faq-card summary {
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

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

.faq-card summary i {
    color: var(--text-muted);
    transition: transform 0.3s;
    font-size: 0.85rem;
    margin-left: 10px;
}

.faq-card[open] summary i {
    transform: rotate(180deg);
    color: var(--accent-orange);
}

.faq-content {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #050608;
    border-top: 1px solid var(--border-color);
}

.footer-cta {
    text-align: center;
    padding: 3.5rem 20px;
    background: radial-gradient(circle at bottom center, rgba(255, 90, 0, 0.05) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
}

.footer-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.footer-cta p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
}
.social-btn:hover {
    background-color: var(--accent-orange);
    color: #111;
    transform: translateY(-3px);
}
.social-btn.discord:hover {
    background-color: #5865F2;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 1.2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* --- CHATBOT --- */
.chatbot-wrapper {
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-toggle {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background-color: var(--accent-orange);
    color: #111;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: translateY(-4px);
}

.chatbot-window {
    width: 350px;
    height: 490px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    display: none; 
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    transform-origin: bottom right;
    animation: slideUp 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

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

.chat-header {
    background-color: var(--bg-card);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

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

.bot-info i {
    font-size: 1.3rem;
    color: var(--accent-orange);
}

.bot-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0px;
    font-family: monospace;
}

.status {
    font-size: 0.72rem;
    color: #27c93f;
}

.close-chat {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #0d1117;
}

.message-row {
    display: flex;
    width: 100%;
}
.user-row {
    justify-content: flex-end;
}

.bot-message, .user-message {
    max-width: 88%;
    padding: 10px 14px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.bot-message {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-radius: 2px 10px 10px 10px;
    border: 1px solid var(--border-color);
}

.user-message {
    background-color: var(--accent-orange);
    color: #111;
    font-weight: 500;
    border-radius: 10px 2px 10px 10px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.chat-opt-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-opt-btn:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.chat-input-area {
    padding: 12px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    outline: none;
    font-size: 0.88rem;
}
.chat-input-area input:focus {
    border-color: var(--accent-orange);
}

.send-btn {
    background-color: var(--accent-orange);
    color: #111;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ==========================================
   AJUSTES RESPONSIVOS (MOBILE OPTIMIZADO)
   ========================================== */
@media (max-width: 900px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card {
        width: 100%;
        max-width: 480px;
    }
    .dev-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    /* Navbar móvil compacta */
    .navbar {
        padding: 0.6rem 3.5%;
    }
    .logo-soluciones {
        display: none; /* Oculta "Soluciones" en teléfonos para ganar espacio */
    }
    .logo-img {
        height: 32px;
    }
    .logo-text {
        font-size: 1.15rem;
    }
    .nav-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
        border-radius: 6px;
    }
    .nav-links {
        display: none;
    }

    /* Hero section móvil */
    .hero {
        padding-top: 90px;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: -0.8px;
    }
    .hero-content p {
        font-size: 0.98rem;
        margin-bottom: 1.8rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.7rem;
    }
    .hero-buttons .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    /* Secciones generales */
    section {
        padding: 3.5rem 4%;
    }
    .section-header {
        margin-bottom: 2.2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header p {
        font-size: 0.92rem;
    }

    /* Tarjetas de precios en móvil */
    .pricing-card {
        padding: 1.8rem 1.2rem;
        border-radius: 12px;
    }
    .price {
        font-size: 2rem;
    }
    .features li {
        font-size: 0.88rem;
    }

    /* Código en móvil */
    .code-window pre {
        font-size: 0.78rem;
        padding: 12px;
    }

    /* FAQ acordeón */
    .faq-card {
        padding: 1rem;
    }
    .faq-card summary {
        font-size: 0.95rem;
    }

    /* Chatbot flotante en pantallas pequeñas */
    .chatbot-wrapper {
        bottom: 15px;
        right: 15px;
    }
    .chatbot-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        border-radius: 10px;
    }
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 440px;
        right: 0;
    }
}
