:root {
    --tajy-dark: #080d16;
    --tajy-dark-2: #101827;
    --tajy-card: #ffffff;
    --tajy-primary: #0d6efd;
    --tajy-primary-hover: #0b5ed7;
    --tajy-accent: #31c7ff;
    --tajy-text: #172033;
    --tajy-muted: #6c757d;
    --tajy-border: #e7ebf1;
}

html,
body {
    min-height: 100%;
}

body {
    background:
        radial-gradient(
            circle at top right,
            rgba(13, 110, 253, .09),
            transparent 30%
        ),
        #f5f7fa;

    color: var(--tajy-text);
}


/* =========================================================
   HEADER
   ========================================================= */

.tajy-header {
    background:
        linear-gradient(
            135deg,
            var(--tajy-dark) 0%,
            var(--tajy-dark-2) 65%,
            #102a43 100%
        );

    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tajy-navbar {
    min-height: 78px;
}

.tajy-logo {
    height: 48px;
    width: auto;
}

.tajy-header-link {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-size: .9rem;
}

.tajy-header-link:hover {
    color: #fff;
}


/* =========================================================
   HERO
   ========================================================= */

.tajy-hero {
    background:
        linear-gradient(
            135deg,
            var(--tajy-dark),
            #101d32
        );

    color: #fff;

    padding: 46px 0 100px;

    position: relative;
    overflow: hidden;
}

.tajy-hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(13, 110, 253, .16);

    filter: blur(80px);

    right: -120px;
    top: -180px;
}

.tajy-hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(49, 199, 255, .08);

    filter: blur(70px);

    left: -100px;
    bottom: -150px;
}

.tajy-hero .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.search-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.search-description {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    max-width: 530px;
}

.search-card {
    background: rgba(255, 255, 255, .08);

    border:
        1px solid
        rgba(255, 255, 255, .12);

    backdrop-filter: blur(12px);

    border-radius: 20px;

    padding: 24px;

    box-shadow:
        0 25px 50px
        rgba(0, 0, 0, .15);
}

.search-input-group {
    background: #fff;
    border-radius: 14px;
    padding: 6px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, .15);
}

.search-input {
    border: none !important;
    box-shadow: none !important;
    min-height: 54px;
    font-size: 1rem;

    border-radius: 10px !important;
}

.search-input-icon {
    display: flex;
    align-items: center;

    padding-left: 14px;

    color: #8a94a6;
    font-size: 1.25rem;
}

.search-button {
    min-width: 120px;
    border-radius: 10px !important;
    font-weight: 600;
}

.search-helper {
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
}


/* =========================================================
   VIDEO
   ========================================================= */

.video-card {
    position: relative;

    border-radius: 22px;

    overflow: hidden;

    background: #000;

    box-shadow:
        0 30px 70px
        rgba(0, 0, 0, .3);

    border:
        1px solid
        rgba(255, 255, 255, .12);
}

.video-card video {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    background: #000;
}

.video-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 50px 20px 18px;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, .78)
        );

    pointer-events: none;
}

.video-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.video-description {
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
}

.sound-button {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, .25);

    background: rgba(0, 0, 0, .55);

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(10px);

    z-index: 10;
}


/* =========================================================
   RESULTADOS
   ========================================================= */

.results-wrapper {
    margin-top: -58px;
    position: relative;
    z-index: 5;
}

.results-card {
    background: #fff;
    color: var(--tajy-text);

    border: 1px solid var(--tajy-border);

    border-radius: 20px;

    box-shadow:
        0 20px 50px
        rgba(26, 39, 64, .08);

    overflow: hidden;
}

.results-header {
    padding: 20px 24px;

    border-bottom:
        1px solid
        var(--tajy-border);

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.results-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--tajy-text);
}

.results-table {
    margin: 0;
}

.results-table thead th {
    background: #f8fafc;

    color: #667085;

    font-size: .78rem;

    text-transform: uppercase;

    letter-spacing: .04em;

    font-weight: 600;

    padding: 14px 20px;

    border-bottom:
        1px solid
        var(--tajy-border);
}

.results-table tbody td {
    padding: 17px 20px;

    vertical-align: middle;

    border-bottom:
        1px solid
        #f0f2f5;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.results-table tbody tr:hover {
    background: #fafcff;
}

.document-value {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    color: var(--tajy-primary);

    font-weight: 600;
}

.razon-social {
    font-weight: 500;
}


/* =========================================================
   COPY BUTTON
   ========================================================= */

.copy-button {
    border: none;

    background: #f0f4f9;

    color: #667085;

    width: 34px;
    height: 34px;

    border-radius: 9px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    transition: .15s ease;
}

.copy-button:hover {
    background: var(--tajy-primary);
    color: #fff;
}

.copy-button.copied {
    background: #198754;
    color: #fff;
}


/* =========================================================
   MOBILE RESULT CARDS
   ========================================================= */

.mobile-result-card {
    border-bottom:
        1px solid
        var(--tajy-border);

    padding: 18px;
}

.mobile-result-card:last-child {
    border-bottom: none;
}

.mobile-label {
    font-size: .72rem;

    text-transform: uppercase;

    letter-spacing: .05em;

    color: #98a2b3;

    margin-bottom: 4px;
}

.mobile-value {
    font-size: .95rem;
    color: var(--tajy-text);
}

.mobile-result-card .razon-social {
    color: var(--tajy-text);
}

.mobile-result-card .document-value {
    color: var(--tajy-primary);
}


/* =========================================================
   LOADING
   ========================================================= */

.search-loading {
    color: rgba(255, 255, 255, .8);
}

.empty-results {
    padding: 50px 20px;
    text-align: center;
}

.empty-results-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #f0f4f9;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8a94a6;

    font-size: 1.5rem;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    border: none;

    color: #485468;

    margin: 0 2px;

    border-radius: 8px !important;
}

.pagination .active .page-link {
    background: var(--tajy-primary);
    color: #fff;
}


/* =========================================================
   FOOTER
   ========================================================= */

.tajy-footer {
    color: #8a94a6;
    font-size: .85rem;

    background: #f5f7fa;

    position: relative;
    z-index: 1;

    margin-top: auto;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at top right,
            rgba(13, 110, 253, .09),
            transparent 30%
        ),
        #f5f7fa;

    color: var(--tajy-text);
}

.tajy-footer {
    margin-top: auto;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .tajy-hero {
        padding-top: 30px;
        padding-bottom: 85px;
    }

    .video-card {
        margin-top: 10px;
    }

    .results-wrapper {
        margin-top: -45px;
    }
}


@media (max-width: 575.98px) {

    .tajy-logo {
        height: 39px;
    }

    .tajy-navbar {
        min-height: 66px;
    }

    .tajy-hero {
        padding-top: 22px;
    }

    .search-title {
        font-size: 2rem;
    }

    .search-card {
        padding: 15px;
        border-radius: 16px;
    }

    .search-input-group {
        display: block;
        padding: 5px;
    }

    .search-input-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        min-height: 52px;

        padding-left: 14px !important;
    }

    .search-button {
        width: 100%;

        margin-top: 5px;

        min-height: 48px;

        border-radius: 9px !important;
    }

    .video-card {
        border-radius: 16px;
    }

    .video-overlay {
        display: none;
    }

    .results-card {
        border-radius: 16px;
    }

    .results-header {
        padding: 17px 18px;
    }
}
