/* ============================================================
   DATA CLEANING & ORGANIZATION
   style2.css
   ============================================================ */

* {
    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;
    overflow-x: hidden; /* ← evita scroll horizontal global */
}

/* ── 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;
}

/* ── BOTONES ── */
.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-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;
}

/* ── 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; }

/* ── PAGE ── */
.data-rescue-page {
    background:
        linear-gradient(rgba(5,7,11,0.88), rgba(5,7,11,0.94)),
        url("images/cleaning-bg.jpg");
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
}

/* ── CONTAINER ── */
.service-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── HERO ── */
.service-hero {
    padding: 110px 20px 80px;
    background:
        linear-gradient(rgba(5,7,11,0.82), rgba(5,7,11,0.92)),
        url("images/cleaning-bg.jpg");
    background-size: cover;
    background-position: center;
}

.service-hero h1 {
    font-size: 58px;
    line-height: 1.05;
    margin-bottom: 22px;
    word-break: break-word;
}

.service-subtitle {
    max-width: 760px;
    color: #D3E1EF;
    font-size: 22px;
    margin-bottom: 22px;
}

.service-description {
    max-width: 820px;
    color: #A8B7C7;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 34px;
}

/* ── DEMO SECTION ── */
.data-demo-section {
    padding: 35px 20px 80px;
    background:
        radial-gradient(circle at top left, rgba(18,39,28,0.1), transparent 35%),
        radial-gradient(circle at bottom right, rgba(18,39,28,0.1), transparent 35%),
        linear-gradient(to bottom, #05070B, #04060A);
}

.data-demo-section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 12px;
}

.section-text {
    text-align: center;
    color: #A8B7C7;
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

.data-demo {
    margin-top: 30px;
    background: #0B111B;
    border: 1px solid rgba(37,194,255,0.18);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 0 35px rgba(0,140,255,0.08);
}

.demo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(37,194,255,0.12);
    flex-wrap: wrap; /* ← evita desborde en pantallas chicas */
}

.file-label { color: #7E93A8; }

.demo-switch {
    display: flex;
    border: 1px solid rgba(37,194,255,0.18);
    border-radius: 10px;
    overflow: hidden;
}

.demo-tab {
    background: transparent;
    color: #8FB3CC;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

.demo-tab.active { background: #25A7E0; color: white; }
.demo-tab:focus-visible { outline: 2px solid #25C2FF; outline-offset: 2px; }

.demo-stats {
    display: flex;
    gap: 18px;
    font-size: 14px;
    flex-wrap: wrap;
}

.demo-stats b {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.red-dot    { background: #FF5C5C; }
.purple-dot { background: #B68CFF; }
.blue-dot   { background: #7FA6C7; }

/* ── TABLA ── */
.table-wrapper { overflow-x: auto; } /* ← scroll interno solo en la tabla */

table { width: 100%; border-collapse: collapse; min-width: 480px; }

th {
    text-align: left;
    color: #7FA6C7;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(37,194,255,0.12);
}

td {
    padding: 14px 22px;
    border-bottom: 1px solid rgba(37,194,255,0.08);
    color: #EAF2FF;
}

.error-row  { background: rgba(255,92,92,0.08); }
.warning-row { background: rgba(182,140,255,0.08); }

td em { color: #7FA6C7; }
td s  { color: #FF5C5C; }

.tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.tag.ok, .tag.clean { background: rgba(0,220,160,0.14); color: #00DCA0; }
.tag.duplicate      { background: rgba(182,140,255,0.14); color: #B68CFF; }
.tag.error          { background: rgba(255,92,92,0.14); color: #FF5C5C; }
.tag.review         { background: rgba(255,190,70,0.14); color: #FFBE46; }

.demo-note {
    color: #7FA6C7;
    padding: 18px 24px;
    font-size: 14px;
}

.hidden { display: none; }

/* ── PROCESO ── */
.dt-process {
    position: relative;
    overflow: hidden;
    padding: 90px 5%;
    background: #080e14;
}

.dt-process .service-container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
}

.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-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;
    color: #F5FAFF;
    margin-bottom: 16px;
}

.dt-subtitle {
    color: #8FA8BF;
    font-size: 18px;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 50px;
}

.dt-steps {
    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: 40px 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; }

/* ══════════════════════════════
   RESPONSIVE — TABLET 800px
══════════════════════════════ */
@media (max-width: 800px) {
    .service-hero h1 { font-size: 42px; }

    .demo-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-stats { flex-wrap: wrap; }

    .dt-steps { grid-template-columns: 1fr 1fr; }

    .dt-step:nth-child(2) { border-right: none; }
}

/* ══════════════════════════════
   RESPONSIVE — MÓVIL 600px
══════════════════════════════ */
@media (max-width: 600px) {

    /* NAV */
    .navbar { padding: 10px 14px; }
    .nav-logo { height: 30px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 13px; padding: 6px 2px; }

    /* HERO */
    .service-hero {
        padding: 80px 16px 60px;
    }

    .service-hero h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .service-subtitle { font-size: 16px; }
    .service-description { font-size: 14px; }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* DEMO */
    .data-demo-section {
        padding: 30px 16px 60px;
    }

    .data-demo-section h2 { font-size: 26px; }
    .section-text { font-size: 14px; }

    .demo-top { padding: 14px 16px; gap: 12px; }

    /* Tabla — padding reducido para que quepan más columnas */
    th { padding: 10px 10px; font-size: 12px; }
    td { padding: 10px 10px; font-size: 13px; }

    .demo-note { padding: 14px 16px; font-size: 13px; }

    /* PROCESO */
    .dt-process { padding: 60px 16px; }
    .dt-title { font-size: 24px; }
    .dt-subtitle { font-size: 15px; }

    .dt-steps { grid-template-columns: 1fr; }

    .dt-step {
        border-right: none;
        border-bottom: 1px solid rgba(37,194,255,0.12);
        padding: 24px 20px;
    }

    .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; }

    .dt-btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* 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 { gap: 8px; }
    .nav-links a { font-size: 12px; }
    .service-hero h1 { font-size: 24px; }
    .dt-cta-box { padding: 22px 14px; }
}