/* =====================================================================
   KompraPOS - hoja de estilos propia
   Usa la misma paleta que la página principal (style.css) para que la
   página se sienta parte del mismo sitio.
   ===================================================================== */

:root {
    --primary-color: #0056b3;
    --primary-dark: #00408a;
    --secondary-color: #f4f7f6;
    --text-color: #333333;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
    --border-color: #e0e0e0;
    --accent-red: #ff3333;
    --accent-yellow: #ffd166;
    --muted: #6b7280;
    --radius: 12px;
}

.dark-theme {
    --primary-color: #4da3ff;
    --primary-dark: #2b7fd4;
    --secondary-color: #1a1a1a;
    --text-color: #f4f4f4;
    --card-bg: #2d2d2d;
    --nav-bg: #222222;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.6);
    --border-color: #444444;
    --muted: #a8b0bb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
}

a {
    color: var(--primary-color);
}

code {
    background: rgba(0, 86, 179, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: Consolas, 'Courier New', monospace;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================== BANDA SUPERIOR ===================== */
.top-banner {
    background-color: var(--primary-color);
    color: #ffffff;
    overflow: hidden;
    padding: 8px 0;
    font-size: 0.88rem;
    white-space: nowrap;
    width: 100%;
}

.top-banner a {
    color: var(--accent-yellow);
    text-decoration: underline;
    font-weight: bold;
}

.marquee-track {
    display: inline-block;
    animation: marquee 22s linear infinite;
}

.marquee-track span {
    padding-right: 60px;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===================== NAVEGACIÓN ===================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background-color: var(--nav-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.theme-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background-color: var(--primary-color);
    color: var(--card-bg);
}

/* ===================== HERO ===================== */
.hero {
    text-align: center;
    padding: 90px 20px 80px;
    background-image: linear-gradient(rgba(0, 20, 45, 0.82), rgba(0, 20, 45, 0.86)), url('../banner-alt.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 28px;
    color: #e6edf6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: #c3d0e0;
}

/* ===================== BOTONES ===================== */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 14px 26px;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.94;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

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

/* ===================== BARRA DE CONFIANZA ===================== */
.trust-bar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    transition: background-color 0.3s ease;
}

.trust-bar ul {
    list-style: none;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    justify-content: center;
}

.trust-bar li {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ===================== SECCIONES ===================== */
.section {
    max-width: 1150px;
    margin: 0 auto;
    padding: 70px 20px;
    scroll-margin-top: 90px;
}

.section-alt {
    max-width: none;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.section-alt > * {
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 12px;
    text-align: center;
}

.section-sub {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    color: var(--muted);
    font-size: 1rem;
}

/* ===================== CARACTERÍSTICAS ===================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: inline-block;
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.94rem;
    color: var(--muted);
}

.extras {
    margin-top: 34px;
    background-color: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 24px 26px;
    box-shadow: var(--shadow);
}

.extras h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.extras-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 24px;
}

.extras-list li {
    font-size: 0.94rem;
    color: var(--text-color);
    padding-left: 20px;
    position: relative;
}

.extras-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===================== REQUISITOS ===================== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    background-color: var(--secondary-color);
}

.req-table thead th {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: left;
    padding: 14px 18px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.req-table tbody th,
.req-table tbody td {
    padding: 13px 18px;
    border-top: 1px solid var(--border-color);
    font-size: 0.94rem;
    text-align: left;
    vertical-align: top;
}

.req-table tbody th {
    width: 32%;
    font-weight: 600;
    color: var(--text-color);
}

.req-table tbody td {
    color: var(--muted);
}

.warn-inline {
    background-color: rgba(255, 51, 51, 0.08);
    border-left: 4px solid var(--accent-red);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.93rem;
    margin-bottom: 34px;
}

.optional-title {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

/* ===================== PRECIOS ===================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    max-width: 860px;
    margin: 0 auto;
    align-items: start;
}

.price-card {
    position: relative;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.price-card-featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.price-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 10px;
}

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

.price-detail {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 18px;
    min-height: 44px;
}

.price-features {
    list-style: none;
    margin-bottom: 22px;
}

.price-features li {
    font-size: 0.93rem;
    padding: 6px 0 6px 22px;
    position: relative;
    border-bottom: 1px dashed var(--border-color);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.price-note {
    max-width: 760px;
    margin: 34px auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ===================== KOMPRACODIGODEBARRA ===================== */
.kcb-box {
    max-width: 900px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.06), rgba(0, 86, 179, 0.02));
    border: 2px dashed var(--primary-color);
    border-radius: 16px;
    padding: 38px 34px;
}

.kcb-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.kcb-icon {
    font-size: 2rem;
    line-height: 1;
}

.kcb-head h2 {
    font-size: 1.7rem;
    text-align: left;
    margin: 0;
}

.kcb-badge {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: #4a3600;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 4px;
}

.kcb-box p {
    font-size: 0.98rem;
    margin-bottom: 12px;
}

.kcb-note {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.9rem !important;
    color: var(--muted);
    margin-bottom: 0 !important;
}

/* ===================== DESCARGA ===================== */
.download-box {
    max-width: 760px;
    margin: 0 auto 46px;
    background-color: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 32px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 22px;
    font-size: 0.86rem;
    color: var(--muted);
}

.dl-item strong {
    color: var(--text-color);
}

.btn-download {
    font-size: 1.1rem;
    padding: 16px 34px;
    width: 100%;
    max-width: 420px;
}

.download-small {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 14px;
}

.manual-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.manual-link:hover {
    border-bottom-color: var(--primary-color);
}

.steps {
    max-width: 760px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
}

.steps h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.steps ol {
    padding-left: 22px;
}

.steps li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.steps li:last-child {
    margin-bottom: 0;
}

/* ===================== FAQ ===================== */
.faq {
    max-width: 820px;
    margin: 0 auto;
}

.faq details {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.98rem;
    list-style: none;
    position: relative;
    padding-right: 46px;
}

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

.faq summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
}

.faq details[open] summary::after {
    content: '−';
}

.faq summary:hover {
    color: var(--primary-color);
}

.faq details p {
    padding: 0 20px 18px;
    font-size: 0.93rem;
    color: var(--muted);
}

/* ===================== CONTACTO ===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.contact-wa {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius);
    padding: 22px;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.contact-wa:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.wa-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.contact-form label:first-child {
    margin-top: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-form .btn {
    margin-top: 16px;
}

/* ===================== PIE ===================== */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--nav-bg);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.footer-links {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-links a {
    text-decoration: none;
    font-weight: 600;
}

/* ===================== WHATSAPP FLOTANTE ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        padding: 14px 18px;
        gap: 10px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        gap: 14px;
        font-size: 0.95rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 18px;
    }

    .section {
        padding: 50px 18px;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .kcb-box {
        padding: 28px 22px;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 1.65rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        padding: 13px 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .price-amount {
        font-size: 2rem;
    }

    .kcb-head h2 {
        font-size: 1.35rem;
    }
}
