/* estado-tramite.html — Cuidados en Red */

/* Estilos específicos solo para estado-tramite.html */

.hero-estado {
    background: linear-gradient(135deg, rgba(26,82,118,0.95), rgba(13,59,94,0.95));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-estado h1 {
    font-size: 2.625rem;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-estado .lead {
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.search-container {
    background-color: white;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #767676;
    border-radius: 8px;
    font-size: 1.125rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #444;
    font-size: 1rem;
}

.btn-search {
    background: linear-gradient(135deg, var(--color-primary), #0D3B5E);
    color: white;
    padding: 18px 48px;
    font-size: 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,82,118,0.3);
}

.result-container {
    display: none;
    margin-top: 48px;
    background-color: white;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #E0E0E0;
}

.status-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), #0D3B5E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
    flex-shrink: 0;
}

.status-info h2 {
    margin: 0 0 8px 0;
    color: var(--color-primary);
    font-size: 1.75rem;
}

.status-info p {
    margin: 0;
    color: #444;
    font-size: 1rem;
}

.timeline {
    position: relative;
    padding-left: 60px;
    margin: 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, #E0E0E0 100%);
}

.timeline-step {
    position: relative;
    margin-bottom: 32px;
}

.step-marker {
    position: absolute;
    left: -49px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    z-index: 1;
}

.step-marker.completed {
    background: linear-gradient(135deg, var(--color-secondary), #1B5E20);
}

.step-marker.current {
    background: linear-gradient(135deg, var(--color-accent-text), #6B2600);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,81,0,0.7); }
    50% { box-shadow: 0 0 0 15px rgba(230,81,0,0); }
}

.step-marker.pending {
    background: linear-gradient(135deg, #90A4AE, #757575);
}

.step-content {
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #E0E0E0;
}

.step-content.current {
    background-color: var(--color-warm);
    border-left-color: var(--color-accent);
}

.step-content h3 {
    margin: 0 0 8px 0;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.step-content p {
    margin: 0 0 12px 0;
    color: #444;
    line-height: 1.6;
}

.date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #505050;
    font-size: 1rem;
    font-weight: 600;
}

.next-steps {
    background-color: #E3F2FD;
    border-left: 4px solid var(--color-primary);
    padding: 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.next-steps h3 {
    margin: 0 0 16px 0;
    color: var(--color-primary);
    font-size: 1.375rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.next-steps ul {
    margin: 0;
    padding-left: 24px;
    line-height: 1.8;
}

.next-steps li {
    color: #333;
    margin-bottom: 8px;
}

.contact-box {
    background: linear-gradient(135deg, rgba(27,94,32,0.1), rgba(27,94,32,0.1));
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 32px;
}

.contact-box h3 {
    color: var(--color-secondary-text);
    font-size: 1.25rem;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.states-guide {
    background-color: #F5F5F5;
    border-radius: 12px;
    padding: 48px;
    margin-top: 48px;
}

.state-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--color-secondary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.state-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.state-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-secondary), #1B5E20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.friction-alert {
    background-color: #FFF3E0;
    border-left: 4px solid var(--color-accent);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 12px 0;
}

.friction-alert p {
    margin: 0;
    color: var(--color-accent-text);
    font-size: 1rem;
    line-height: 1.6;
}

.friction-alert strong {
    color: #8F3200;
}

@media (max-width: 767px) {
    .search-container {
        padding: 32px 24px;
    }

    .result-container {
        padding: 32px 24px;
    }

    .timeline {
        padding-left: 50px;
    }

    .step-marker {
        left: -44px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .states-guide {
        padding: 32px 20px;
    }

    .state-item {
        flex-direction: column;
        gap: 16px;
    }

    .user-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.lookup-card {
    margin-top: 48px;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-left: 6px solid var(--color-secondary);
}

.lookup-card h2 {
    color: var(--color-primary);
    font-size: 1.75rem;
}

.lookup-empty {
    border-left-color: var(--color-accent);
}

.lookup-state {
    font-size: 1.25rem;
    color: #14461A;
}

.lookup-note {
    background: #FFF3E0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #444;
}

@media (max-width: 767px) {
    .lookup-card {
        padding: 24px;
    }
}

/* Verificación de identidad */
.verificacion {
    border: 2px solid #D6DCD8;
    border-radius: 8px;
    padding: 16px 20px 4px;
    margin: 0 0 24px;
}

.verificacion legend {
    font-weight: 700;
    padding: 0 6px;
    color: #333;
}

.verificacion-o {
    text-align: center;
    color: #505050;
    font-weight: 600;
    margin: 0 0 8px;
}

.lookup-intentos {
    font-weight: 600;
    color: #7A1010;
}
