.header-pagos {
    background: #ffd53f;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-pagos-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-box {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-pagos {
    height: 40px;
    width: auto;
}

.header-title {
    font-size: 24px;
    font-weight: 500;
    color: #1E293B;
    margin: 0;
}

.nav-pagos {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.nav-pagos-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1E293B;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-pagos-link:hover {
    color: #7C3AED;
}

.nav-pagos-link i {
    font-size: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #1E293B;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    color: #7C3AED;
}

.mobile-menu-pagos {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 24px;
}

.mobile-menu-pagos.active {
    right: 0;
}

.close-menu-pagos {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #1E293B;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.close-menu-pagos:hover {
    color: #7C3AED;
}

.mobile-nav-pagos {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-pagos-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1E293B;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-pagos-link:hover {
    background: #F1F5F9;
    color: #7C3AED;
}

.mobile-nav-pagos-link i {
    font-size: 20px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-icon {
    position: relative;
    color: #1E293B;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: #7C3AED;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #7C3AED;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-user {
    background: #7C3AED;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-user:hover {
    background: #6D28D9;
    transform: translateY(-1px);
}

.pagos-main {
    background: #E5E7EB;
    min-height: calc(100vh - 200px);
    padding: 60px 0 80px;
}

.search-section-new {
    max-width: 900px;
    margin: 0 auto 60px;
}

.search-title-new {
    font-size: 22px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 24px;
}

.search-wrapper-custom {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-dropdown.active {
    display: block;
}

.search-results {
    padding: 8px 0;
}

.search-result-item {
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #F8F7FF;
}

.search-result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F7FF;
    border-radius: 8px;
}

.search-result-icon img {
    width: 20px;
    height: 20px;
}

.search-result-name {
    font-size: 15px;
    color: #1F2937;
    font-weight: 500;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: #9CA3AF;
    font-size: 15px;
}

.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 12px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 12px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.search-input-new {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 16px;
    color: #6B7280;
    outline: none;
}

.search-input-new::placeholder {
    color: #9CA3AF;
}

.search-btn {
    background: transparent;
    border: none;
    padding: 18px 24px;
    cursor: pointer;
    color: #7C3AED;
    font-size: 20px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #6D28D9;
}

.empresas-section {
    max-width: 900px;
    margin: 0 auto;
}

.empresas-title-new {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 32px;
}

.empresas-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.empresa-card-new {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.empresa-card-new:hover {
    border-color: #7C3AED;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
    transform: translateY(-4px);
}

.empresa-icon {
    font-size: 48px;
    color: #7C3AED;
}

.empresa-icon-svg {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.empresa-name {
    font-size: 18px;
    font-weight: 600;
    color: #7C3AED;
    text-align: center;
}

.no-encontras {
    text-align: center;
    font-size: 16px;
    color: #1F2937;
    margin-top: 32px;
}

.buscar-link {
    color: #3B82F6;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.buscar-link:hover {
    color: #2563EB;
}

.action-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.action-card {
    background: white;
    padding: 24px 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #1E293B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    border-color: #7C3AED;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.action-icon.purple {
    background: #7C3AED;
    color: white;
}

.action-text {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.action-arrow {
    color: #94A3B8;
    font-size: 20px;
}

.search-compact {
    max-width: 900px;
    margin: 0 auto 40px;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    margin-bottom: 32px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 18px;
}

.search-input-compact {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input-compact:focus {
    outline: none;
    border-color: #FFBE01;
}

.empresas-title {
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 20px;
}

.empresas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.empresa-card {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #E2E8F0;
    min-height: 100px;
}

.empresa-card:hover {
    border-color: #FFBE01;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.empresa-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.favoritos-section {
    max-width: 900px;
    margin: 0 auto;
}

.favoritos-text {
    text-align: center;
    font-size: 16px;
    color: #64748B;
    margin-bottom: 20px;
}

.favorito-card {
    background: white;
    padding: 24px 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #1E293B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.favorito-card:hover {
    border-color: #7C3AED;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.footer-pagos {
    background: white;
    padding: 24px 0;
    border-top: 1px solid #E2E8F0;
}

.footer-pagos-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
}

.footer-links-pagos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links-pagos a {
    color: #3B82F6;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-links-pagos a:hover {
    color: #2563EB;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .header-pagos-content {
        flex-wrap: nowrap;
    }

    .nav-pagos {
        gap: 20px;
    }

    .nav-pagos-link {
        font-size: 15px;
    }

    .empresas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .empresas-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 18px;
    }

    .logo-pagos {
        height: 35px;
    }

    .logo-box {
        padding: 6px 10px;
    }

    .nav-pagos {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .nav-pagos-link {
        font-size: 14px;
    }

    .btn-user {
        padding: 8px 16px;
        font-size: 14px;
    }

    .action-cards {
        padding: 0 16px;
    }

    .search-compact {
        margin: 0 16px 32px;
        padding: 24px 16px;
    }

    .empresas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .empresa-card {
        padding: 16px;
        min-height: 80px;
    }

    .empresa-logo {
        width: 50px;
        height: 50px;
    }

    .favoritos-section {
        padding: 0 16px;
    }

    .footer-pagos-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-pagos {
        flex-direction: column;
        gap: 12px;
    }

    .pagos-main {
        padding: 40px 0 60px;
    }

    .search-section-new {
        padding: 0 16px;
        margin-bottom: 40px;
    }

    .search-title-new {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .search-input-new {
        padding: 16px 20px;
        font-size: 15px;
    }

    .search-btn {
        padding: 16px 20px;
    }

    .search-dropdown {
        max-height: 300px;
    }

    .search-result-item {
        padding: 12px 20px;
    }

    .search-result-icon {
        width: 28px;
        height: 28px;
    }

    .search-result-icon img {
        width: 18px;
        height: 18px;
    }

    .search-result-name {
        font-size: 14px;
    }

    .empresas-section {
        padding: 0 16px;
    }

    .empresas-title-new {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .empresas-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .empresa-card-new {
        padding: 24px 16px;
    }

    .empresa-icon {
        font-size: 40px;
    }

    .empresa-icon-svg {
        width: 44px;
        height: 44px;
    }

    .empresa-name {
        font-size: 16px;
    }

    .no-encontras {
        font-size: 15px;
        margin-top: 24px;
    }
}

.search-section {
    padding: 80px 0 120px;
    background: var(--bg-light);
    min-height: 60vh;
}

.search-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.search-form {
    max-width: 600px;
    margin: 0 auto 80px;
}

.search-group {
    margin-bottom: 16px;
}

.search-label {
    display: block;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-medium);
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    appearance: none;
    cursor: pointer;
}

.search-input:focus {
    outline: none;
    border-color: #FFBE01;
}

.popular-companies {
    max-width: 1100px;
    margin: 0 auto;
}

.popular-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.popular-grid-second {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.popular-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--border-color);
    min-height: 140px;
}

.popular-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #FFBE01;
}

.popular-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .popular-grid-second {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 60px 0 80px;
    }

    .search-title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .popular-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .popular-grid-second {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .popular-card {
        padding: 24px 16px;
        min-height: 120px;
    }

    .popular-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .search-title {
        font-size: 28px;
    }

    .search-input {
        padding: 14px 16px;
        font-size: 15px;
    }
}

.factura-section {
    max-width: 840px;
    margin: 0 auto;
    padding: 60px 24px;
}

.empresa-seleccionada {
    text-align: center;
    margin-bottom: 48px;
}

.empresa-label {
    font-size: 20px;
    color: #1F2937;
    margin-bottom: 8px;
    font-weight: 400;
}

.empresa-nombre {
    font-weight: 700;
    color: #1F2937;
}

.empresa-servicio {
    font-size: 16px;
    color: #4B5563;
    margin: 0;
    margin-top: 4px;
}

.instruccion-texto {
    font-size: 17px;
    color: #1F2937;
    margin-bottom: 40px;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    align-items: stretch;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #7C3AED;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.input-field {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 16px;
    color: #1F2937;
    background: white;
}

.input-field:focus {
    outline: none;
}

.input-field::placeholder {
    color: #9CA3AF;
}

.btn-buscar {
    background: transparent;
    color: #7C3AED;
    border: none;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-buscar:hover {
    color: #6D28D9;
}

.monto-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid #E5E7EB;
}

.input-group-monto {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.input-group-monto:focus-within {
    border-color: #7C3AED;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.monto-currency {
    position: absolute;
    left: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    pointer-events: none;
    z-index: 1;
}

.input-field-monto {
    width: 100%;
    padding: 18px 16px 18px 36px;
    border: none;
    font-size: 16px;
    color: #1F2937;
    background: transparent;
    font-weight: 500;
}

.input-field-monto:focus {
    outline: none;
}

.input-field-monto::placeholder {
    color: #9CA3AF;
}

@media (min-width: 768px) {
    .monto-currency {
        left: 24px;
        font-size: 18px;
    }

    .input-field-monto {
        padding: 18px 24px 18px 46px;
        font-size: 18px;
    }
}

.btn-continuar {
    width: 100%;
    background: #7C3AED;
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continuar:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

@media (max-width: 768px) {
    .factura-section {
        padding: 40px 16px;
    }

    .empresa-label {
        font-size: 18px;
    }

    .empresa-servicio {
        font-size: 15px;
    }

    .instruccion-texto {
        font-size: 16px;
    }

    .input-group {
        margin-bottom: 24px;
    }

    .input-field {
        padding: 16px 20px;
        font-size: 15px;
    }

    .btn-buscar {
        padding: 16px 20px;
        font-size: 15px;
    }

    .monto-section {
        margin-top: 32px;
        padding-top: 32px;
    }

    .btn-continuar {
        padding: 16px 24px;
        font-size: 16px;
    }
}

.loading-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px;
    margin: 24px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner-small {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top: 3px solid #7C3AED;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text-small {
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
