﻿:root {
    --primary-color: #0EA5E9;
    --success-color: #15803D;
    --error-color: #EF4444;
    --background-gradient: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    --card-background: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --hover-color: #F8FAFC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--text-primary);
    overflow: hidden;
    position: relative;
    background: #0A2647;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    overflow: hidden;
}
    
.node {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #4A9EFF;
    border-radius: 50%;
    box-shadow: 0 0 10px #4A9EFF;
    animation: moveNode 30s infinite ease-in-out;
}

    .node::before {
        content: '';
        position: absolute;
        width: 100px;
        height: 1px;
        background: linear-gradient(90deg, #4A9EFF 0%, transparent 100%);
        transform-origin: left;
        animation: rotateLine 10s infinite linear;
    }

    .node::after {
        content: '';
        position: absolute;
        width: 150px;
        height: 1px;
        background: linear-gradient(90deg, #4A9EFF 0%, transparent 100%);
        transform-origin: left;
        animation: rotateLine 15s infinite linear;
        animation-delay: -5s;
    }
    
@keyframes moveNode {
    0%, 100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(50vw, 25vh);
    }

    50% {
        transform: translate(25vw, 50vh);
    }

    75% {
        transform: translate(-25vw, 25vh);
    }
}

@keyframes rotateLine {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.container- {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.card- {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.card-header- {
    text-align: center;
    margin-bottom: 2.5rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.card-resultado {
    text-align: center;
}
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

    .input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    }

.button {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .button:hover {
        background-color: darken(var(--primary-color), 10%);
    }

    .button:active {
        transform: translateY(0);
    }

    .button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}
    .alert svg {
        margin-right: 0.5rem;
    }
    .alert.error {
        background-color: var(--error-color);
        color: white;
    }

.profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
     margin-bottom: 1rem;
}

.avatar-container {
    margin: 1rem auto;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.avatar {
    width: 100%;
    height: auto;
}

.status-badge {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.valid {
    background-color: green;
}

.invalid {
    background-color: red;
}

.status-badge.valid {
    background-color: transparent;
    border-color: #35d97e;
}

.status-badge.expired {
    background-color: transparent;
    border-color: #DC2626;
}

.status-badge svg {
    width: 20px;
    height: 20px;
}

.status-badge.valid svg {
    stroke: #35d97e;
}

.status-badge.expired svg {
    stroke: #DC2626;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px
}

.profile-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.status-pill {
    width: 100%; /* Hace que el status ocupe todo el ancho disponible */
    text-align: center; /* Centra el texto dentro del status */
    padding: 15px; /* Añadir algo de relleno para que sea más visible */
    border-radius: 50px; /* Redondea los bordes para darle un aspecto de píldora */
    font-weight: bold; /* Hacer el texto más visible */
    font-size: 1.2rem; /* Tamaño de fuente más grande */
}


    .status-pill.valid {
        background: #34d87d;
        color: white;
    }

    .status-pill.expired {
        background: #fb4d42;
        color: #fff;
    }

.info-list {
    display: grid;
    background: #F8FAFC;
    border-radius: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .info-item:hover {
        background: white;
        transform: translateX(4px);
    }

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    color: var(--primary-color);
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 400;
}

.info-value-cedula {
    font-weight: 400;
    text-align: center
}

.dates-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

    .dates-container .info-item {
        flex: 1;
    }

.company-info {
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.company-name {
    font-weight: 500;
}

.company-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.result-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .result-section.visible {
        display: block;
    }

@media (max-width: 640px) {
    .card {
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input {
        border-radius: 12px;
    }

    .button {
        /*width: 100%;
        justify-content: center;*/
        border-radius: 12px; /* Redondeado completo */
        margin-top: 0.5rem; /* Añade separación vertical */
        padding: 0.75rem 1rem; /* Menores dimensiones */
        font-size: 1rem;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 2px;
    }

    .avatar-container {
        width: 100%;
        max-width: 150px;
        height: auto;
    }

    .profile-info {
        margin-left: 0;
    }

    .dates-container {
        flex-direction: column;
    }

    .info-item {
        padding: 0.75rem;
    }

    .status-badge {
        right: -5px;
        bottom: -5px;
        width: 30px;
        height: 30px;
    }

        .status-badge svg {
            width: 16px;
            height: 16px;
        }

    .d-none {
        display: none !important;
    }
}
