/* ===========================================
   Consulta RUC - eVendeha
   Estilos para la página de consulta de RUC
   Diseño limpio sin hero
   =========================================== */

/* Sección principal de consulta */
.consulta-ruc-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 90px 5% 30px;
}

.consulta-container {
    max-width: 650px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.breadcrumb span {
    color: #64748b;
    margin: 0 0.4rem;
}

/* Card de consulta */
.consulta-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Header dentro del card */
.consulta-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.consulta-header i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.consulta-header h1 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.consulta-header h1 .highlight {
    color: #10b981;
}

.consulta-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Formulario */
.consulta-form {
    margin-bottom: 0.75rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s;
    font-family: var(--font-system);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.consulta-btn {
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: 10px;
}

.input-hint {
    color: #64748b;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.input-hint i {
    color: #3b82f6;
    font-size: 0.75rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.75rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 1.5rem;
    background: #fef2f2;
    border-radius: 10px;
    margin-top: 1rem;
}

.error-state i {
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.error-state p {
    color: #7f1d1d;
    margin-bottom: 1.5rem;
}

/* Not Found State (no es error, solo no se encontró) */
.not-found-state {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 1rem;
    border: 2px dashed #cbd5e1;
}

.not-found-state i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.not-found-state h3 {
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.not-found-state p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Resultados compactos */
.resultados {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid #e2e8f0;
}

.resultado-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.resultado-header i {
    font-size: 1.5rem;
    color: #10b981;
}

.resultado-header h3 {
    font-size: 1.1rem;
    color: #1e40af;
    margin: 0;
    flex: 1;
}

/* Badge de origen */
.origen-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.origen-sifen {
    background: #dbeafe;
    color: #1e40af;
}

.origen-local {
    background: #f0fdf4;
    color: #166534;
}

.resultado-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.resultado-item {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.resultado-item.full-width {
    grid-column: 1 / -1;
}

.resultado-item .label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.resultado-item .value {
    display: block;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

.resultado-item .value.estado-activo {
    color: #10b981;
}

.resultado-item .value.estado-suspendido {
    color: #ef4444;
}

.resultado-item .value.estado-cancelado {
    color: #6b7280;
}

.resultado-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Info Section */
.info-section {
    background: white;
    padding-top: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.info-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.info-card p {
    color: #64748b;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1e293b;
    list-style: none;
    transition: all 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: #f8fafc;
}

.faq-item summary span {
    flex: 1;
    padding-right: 1rem;
}

.faq-item summary i {
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: #64748b;
    line-height: 1.7;
}

.faq-content a {
    color: #2563eb;
    text-decoration: none;
}

.faq-content a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.cta-feature i {
    color: #f97316;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.15rem;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Nav Active */
.nav-active {
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .consulta-ruc-section {
        padding: 80px 4% 40px;
    }

    .consulta-card {
        padding: 1.5rem;
    }

    .consulta-header h1 {
        font-size: 1.3rem;
    }

    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .consulta-btn {
        width: 100%;
        justify-content: center;
    }

    .resultado-grid {
        grid-template-columns: 1fr;
    }

    .resultado-actions {
        flex-direction: column;
    }

    .resultado-actions button {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
    }

    .info-grid {
        gap: 1rem;
    }

    .info-card {
        padding: 1.25rem;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}
