* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background: #05070B;
    color: #EAF2FF;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* ── NAVBAR ── */
.navbar {
    width: 100%;
    padding: 8px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 7, 11, 0.92);
    border-bottom: 1px solid rgba(0, 183, 255, 0.14);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-logo {
    height: 43px;
    width: auto;
    filter: brightness(2.4) saturate(1.25);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    color: #DDEBFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 6px;
    transition: color 0.25s ease;
    white-space: nowrap;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #00A8FF, #006BFF);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(0, 157, 255, 0.28);
    transition: 0.25s;
}

.dt-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1DA1FF, #007BFF);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0,123,255,0.35);
    transition: all 0.25s ease;
}

.dt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(0,123,255,0.5);
}

/* ── PAGE ── */
.dt-page {
    background: #05070B;
    color: #EAF2FF;
}

/* ── HERO ── */
.dt-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 20px 95px;
    background:
        linear-gradient(rgba(5,7,11,0.60), rgba(5,7,11,0.75)),
        url("images/transcription-bg.jpg");
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.dt-hero-inner {
    max-width: 860px;
    margin-left: 20%;
    position: relative;
    z-index: 2;
}

.dt-hero h1 {
    font-size: 60px;
    line-height: 1.05;
    letter-spacing: -1.4px;
    margin-bottom: 24px;
    color: #F5FAFF;
}

.dt-hero h1 span { color: #25A7E0; }

.dt-hero p {
    max-width: 720px;
    color: #D3E1EF;
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 34px;
}

.dt-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dt-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(127,219,255,0.25);
    background: rgba(37,194,255,0.08);
    color: #7FDBFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
}

.dt-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #25C2FF;
}

/* ── SECTIONS ── */
.dt-section { padding: 90px 5%; }

.alt { background: #05070B; }

#demo .dt-label,
#demo .dt-title,
#demo .dt-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    margin-bottom: 50px;
}

.dt-label {
    color: #7FA6C7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.dt-title {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 16px;
    color: #F5FAFF;
}

.dt-subtitle {
    color: #8FA8BF;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 50px;
}

/* ── DEMO GRID ── */
.dt-demo-grid {
    display: grid;
    grid-template-columns: 1fr 46px 1fr;
    gap: 18px;
    align-items: start;
}

.dt-panel {
    background: rgba(11,17,27,0.88);
    border: 1px solid rgba(37,194,255,0.16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 35px rgba(0,140,255,0.08);
}

.dt-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(37,194,255,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #EAF2FF;
    font-weight: 700;
    font-size: 14px;
}

.dt-count, .dt-ready {
    font-size: 12px;
    color: #7FDBFF;
    border: 1px solid rgba(37,194,255,0.22);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
}

.dt-invoices-list {
    padding: 14px;
    max-height: 620px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dt-invoices-list::-webkit-scrollbar { width: 6px; }
.dt-invoices-list::-webkit-scrollbar-thumb {
    background: rgba(37,194,255,0.25);
    border-radius: 999px;
}

/* ── RECEIPTS / PDFS ── */
.dt-receipt {
    background: #F8F7F2;
    color: #111827;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
    position: relative;
    border: 1px solid #ddd;
}

.dt-doc-tag {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #777;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

.dt-receipt h4 { text-align: center; font-size: 13px; margin-bottom: 4px; }
.dt-receipt small { display: block; text-align: center; color: #4B5563; margin-bottom: 8px; }

.dt-line, .dt-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.dt-sep { border-top: 1px dashed #B8B8B8; margin: 8px 0; }

.dt-total { font-weight: 700; font-size: 13px; margin-top: 6px; }

.dt-pdf {
    background: #FFFFFF;
    color: #111827;
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    font-size: 12px;
}

.dt-pdf-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.dt-pdf strong { display: block; font-size: 13px; }
.dt-pdf small { color: #4B5563; }

.dt-pdf table { width: 100%; border-collapse: collapse; margin-top: 8px; }

.dt-pdf th, .dt-pdf td {
    border: 1px solid #E5E7EB;
    padding: 5px 7px;
    text-align: left;
    font-size: 11px;
    color: #111827;
}

.dt-pdf th { background: #F3F4F6; color: #374151; }
.dt-pdf-total { text-align: right; font-weight: 700; margin-top: 8px; }

/* ── ARROW ── */
.dt-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #25C2FF;
    background: rgba(37,194,255,0.08);
    border: 1px solid rgba(37,194,255,0.24);
    margin-top: 80px;
    font-size: 22px;
}

/* ── TABLE ── */
.dt-tabs {
    display: flex;
    gap: 22px;
    padding: 12px 18px 0;
    border-bottom: 1px solid rgba(37,194,255,0.12);
    background: rgba(8,14,20,0.65);
}

.dt-tab { font-size: 13px; color: #526B82; padding-bottom: 10px; }
.dt-tab.active { color: #00DCA0; border-bottom: 2px solid #00DCA0; }

.dt-table-wrap { overflow-x: auto; }

.dt-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 13px;
}

.dt-table th {
    background: #14783A;
    color: #FFFFFF;
    padding: 11px 12px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
}

.dt-table td {
    padding: 10px 12px;
    border: 1px solid rgba(37,194,255,0.10);
    color: #EAF2FF;
    background: rgba(11,17,27,0.88);
    white-space: nowrap;
}

.dt-table tr:nth-child(even) td { background: rgba(9,23,35,0.9); }
.dt-ok { color: #00DCA0 !important; font-weight: 700; }

.dt-total-row td {
    background: rgba(0,220,160,0.10) !important;
    color: #00DCA0;
    font-weight: 700;
}

.dt-table-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: #7FA6C7;
    font-size: 13px;
    border-top: 1px solid rgba(37,194,255,0.12);
}

.dt-table-footer strong { color: #25C2FF; }

/* ── PROCESS ── */
.dt-process {
    background: #080e14;
    position: relative;
    overflow: hidden;
}

.dt-process::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,194,255,0.08) 0%, transparent 50%, rgba(37,194,255,0.03) 100%);
    pointer-events: none;
}

.dt-process::after {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,194,255,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.dt-steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(37,194,255,0.14);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(11,17,27,0.55);
}

.dt-step {
    padding: 28px;
    border-right: 1px solid rgba(37,194,255,0.12);
}

.dt-step:last-child { border-right: none; }

.dt-step span {
    color: #25C2FF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dt-step h3 { margin: 16px 0 10px; color: #FFFFFF; font-size: 18px; }
.dt-step p { color: #8FA8BF; line-height: 1.7; font-size: 15px; }

/* ── CTA ── */
.dt-cta {
    padding: 95px 5%;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(37,194,255,0.08), transparent 35%),
        #05070B;
}

.dt-cta-box {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(11,17,27,0.88);
    border: 1px solid rgba(37,194,255,0.16);
    border-radius: 18px;
    padding: 42px;
}

.dt-cta-box h2 { font-size: 30px; margin-bottom: 16px; }
.dt-cta-box p { color: #8FA8BF; line-height: 1.7; margin-bottom: 24px; }

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid rgba(37,194,255,0.12);
    padding: 26px 40px;
    background: #05070B;
}

.footer-simple {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-mini-logo { height: 24px; width: auto; opacity: 0.9; }

.footer-simple p,
.footer-simple span { color: #7E93A8; font-size: 14px; margin: 0; }

/* ══════════════════════════════
   RESPONSIVE — TABLET 1100px
══════════════════════════════ */
@media (max-width: 1100px) {
    .dt-demo-grid { grid-template-columns: 1fr; }
    .dt-arrow { margin: 0 auto; transform: rotate(90deg); }
    .dt-steps { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════
   RESPONSIVE — MÓVIL 700px
══════════════════════════════ */
@media (max-width: 700px) {

    /* NAV */
    .navbar { padding: 10px 14px; }
    .nav-logo { height: 30px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 13px; padding: 6px 2px; }

    /* HERO — el fix más importante */
    .dt-hero {
        padding: 80px 16px 60px;
    }

    .dt-hero-inner {
        margin-left: 0;       /* ← elimina el margin-left: 20% que cortaba el título */
        max-width: 100%;
        text-align: left;
    }

    .dt-hero h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
        line-height: 1.15;
        word-break: break-word;  /* ← evita que se corte */
    }

    .dt-hero p {
        font-size: 15px;
        line-height: 1.55;
    }

    .dt-btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* SECTIONS */
    .dt-section { padding: 60px 16px; }

    .dt-title { font-size: 24px; }
    .dt-subtitle { font-size: 15px; }

    /* STEPS */
    .dt-steps { grid-template-columns: 1fr; }

    .dt-step {
        border-right: none;
        border-bottom: 1px solid rgba(37,194,255,0.12);
    }

    .dt-step:last-child { border-bottom: none; }

    .dt-step h3 { font-size: 16px; }
    .dt-step p { font-size: 14px; }

    /* CTA */
    .dt-cta { padding: 60px 16px; }
    .dt-cta-box { padding: 28px 20px; }
    .dt-cta-box h2 { font-size: 22px; }

    /* FOOTER */
    .site-footer { padding: 24px 16px; }

    .footer-simple {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer-mini-logo { height: 22px; }
    .footer-simple p, .footer-simple span { font-size: 13px; }
}

/* ══════════════════════════════
   RESPONSIVE — MÓVIL 380px
══════════════════════════════ */
@media (max-width: 380px) {
    .nav-links a { font-size: 12px; }
    .nav-links { gap: 8px; }
    .dt-hero h1 { font-size: 26px; }
    .dt-cta-box { padding: 22px 14px; }
}