/* ==========================================
   ProRed - Estilos Exclusivos - Página de Pagos
   ========================================== */

/* Hero Pagos - solo imagen de fondo (el resto lo maneja .hero-page) */
.hero-pagos {
    background-image: url('../img/portada/portada-portal.jpg');
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección de Descripción */
.pagos-descripcion {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.descripcion-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.descripcion-texto h2 {
    font-size: 3rem;
    color: #E58E21;
    margin-bottom: 20px;
    line-height: 1.3;
}

.descripcion-texto p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.descripcion-lista {
    list-style: none;
    margin-bottom: 25px;
}

.descripcion-lista li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: #555;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 91, 159, 0.1);
}

.descripcion-lista li:last-child {
    border-bottom: none;
}

.descripcion-lista i {
    color: #27AE60;
    font-size: 1.4rem;
    min-width: 24px;
}

.descripcion-cta {
    background-color: #f0f5fa;
    padding: 20px;
    border-left: 4px solid #E58E21;
    border-radius: 6px;
    color: #005B9F;
    font-weight: 500;
    margin-top: 30px !important;
}

.descripcion-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.img-persona {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 91, 159, 0.15));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-location {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes move-cursor-indicator {
    0% {
        transform: translate(40px, 40px);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    30% {
        transform: translate(0, 0);
        opacity: 1;
    }
    45% {
        transform: translate(0, 0) scale(0.8);
        opacity: 1;
    }
    60% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
}

/* Sección de Pasos */
.pagos-steps {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.pagos-steps h2 {
    color: #E58E21;
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 91, 159, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 91, 159, 0.15);
}

.step-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: center;
}

.step-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
}

.img-paso {
    max-width: 100%;
    max-height: 180px;
    display: block;
}

.step-contenido h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #005B9F;
}

.step-contenido p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.btn-whatsapp {
    background-color: #27AE60 !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-whatsapp:hover {
    background-color: #229954 !important;
}

/* Sección de Cuentas Bancarias */
.pagos-cuentas {
    padding: 80px 0;
}

.pagos-cuentas h2 {
    color: #E58E21;
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
}

.cuentas-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    align-items: start;
}

/* QR Panel */
.qr-panel {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 91, 159, 0.1);
    text-align: center;
    position: sticky;
    top: 120px;
}

.qr-panel h3 {
    color: #005B9F;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.qr-placeholder {
    background-color: #f0f5fa;
    border: 2px dashed #005B9F;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    width: 100%;
    box-sizing: border-box;
}

.qr-image {
    max-width: 100%;
    max-height: 380px;
    border-radius: 10px;
}

.qr-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.4;
}

/* Botón Descargar QR */
.btn-download-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-secundario);
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 15px;
    width: 100%;
    transition: var(--transicion);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 142, 33, 0.2);
}

.btn-download-qr:hover {
    background-color: var(--color-hover-secundario);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 142, 33, 0.3);
}

.btn-download-qr i {
    font-size: 1.1rem;
}

/* Cuentas Grid */
.cuentas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cuenta-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 91, 159, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #005B9F;
    position: relative;
    overflow: hidden;
}

.cuenta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to left, var(--banco-color, #005B9F));
}

.cuenta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 91, 159, 0.15);
}

.cuenta-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cuenta-card h3 i {
    font-size: 1.5rem;
}

/* Estilos por Banco */
.cuenta-card.banco-nacion {
    --banco-color: #DC143C;
    border-left-color: #DC143C;
}

.cuenta-card.banco-nacion h3 {
    color: #DC143C;
}

.cuenta-card.banco-nacion .cuenta-info-valor {
    border-left-color: #DC143C;
    background-color: #fff5f5;
}

.cuenta-card.banco-nacion .btn-copy {
    background-color: #DC143C;
}

.cuenta-card.banco-nacion .btn-copy:hover {
    background-color: #b01030;
}

/* BCP - Azul */
.cuenta-card.banco-bcp {
    --banco-color: #1F4A7F;
    border-left-color: #1F4A7F;
}

.cuenta-card.banco-bcp h3 {
    color: #1F4A7F;
}

.cuenta-card.banco-bcp .cuenta-info-valor {
    border-left-color: #1F4A7F;
    background-color: #f0f4f9;
}

.cuenta-card.banco-bcp .btn-copy {
    background-color: #1F4A7F;
}

.cuenta-card.banco-bcp .btn-copy:hover {
    background-color: #163656;
}

/* Yape - Morado */
.cuenta-card.yape {
    --banco-color: #8B1A8B;
    border-left-color: #8B1A8B;
}

.cuenta-card.yape h3 {
    color: #8B1A8B;
}

.cuenta-card.yape .cuenta-info-valor {
    border-left-color: #8B1A8B;
    background-color: #faf5fa;
}

.cuenta-card.yape .btn-copy {
    background-color: #8B1A8B;
}

.cuenta-card.yape .btn-copy:hover {
    background-color: #6d1570;
}

/* Plin - Cian/Turquesa */
.cuenta-card.plin {
    --banco-color: #17A2B8;
    border-left-color: #17A2B8;
}

.cuenta-card.plin h3 {
    color: #17A2B8;
}

.cuenta-card.plin .cuenta-info-valor {
    border-left-color: #17A2B8;
    background-color: #f0f8fa;
}

.cuenta-card.plin .btn-copy {
    background-color: #17A2B8;
}

.cuenta-card.plin .btn-copy:hover {
    background-color: #138496;
}

.cuenta-info {
    margin-bottom: 12px;
}

.cuenta-info-label {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 500;
}

.cuenta-info-valor-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cuenta-info-valor {
    color: #333;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    padding: 8px;
    background-color: #f0f5fa;
    border-radius: 6px;
    border-left: 3px solid #E58E21;
    flex: 1;
}

/* Botón Copiar */
.btn-copy {
    background-color: #005B9F;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
}

.btn-copy:hover {
    background-color: #004A7F;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 91, 159, 0.3);
}

.btn-copy i {
    font-size: 0.9rem;
}

/* QR Section */
.pagos-qr {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.pagos-qr h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.qr-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.qr-item h4 {
    margin-top: 15px;
    color: #005B9F;
}

.qr-item img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 91, 159, 0.1);
}

/* Grid responsivo */
@media (max-width: 1200px) {
    .cuentas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .descripcion-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cuentas-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .qr-panel {
        position: static;
    }

    .cuentas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pagos-descripcion {
        padding: 60px 0;
    }

    .descripcion-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .descripcion-texto h2 {
        font-size: 2rem;
    }

    .descripcion-texto p {
        font-size: 1rem;
    }

    .img-persona {
        max-height: 300px;
    }

    .pagos-steps,
    .pagos-cuentas {
        padding: 60px 0;
    }

    .step-card {
        padding: 30px;
    }

    .step-layout {
        grid-template-columns: 150px 1fr;
        gap: 20px;
    }

    .step-imagen {
        min-height: 150px;
    }

    .img-paso {
        max-height: 140px;
    }

    .step-contenido h3 {
        font-size: 1.3rem;
    }

    .cuenta-card {
        padding: 20px;
    }

    .cuenta-card h3 {
        font-size: 1.1rem;
    }

    .cuentas-layout {
        grid-template-columns: 1fr;
    }

    .cuentas-grid {
        grid-template-columns: 1fr;
    }

    .qr-panel {
        padding: 25px;
    }

    .qr-placeholder {
        min-height: 360px;
        padding: 20px;
    }

    .btn-copy {
        padding: 5px 8px;
        min-width: 32px;
        height: 32px;
    }

    .btn-copy i {
        font-size: 0.8rem;
    }
    .pagos-cuentas h2 {
    font-size: 2rem;
    
    }
    .pagos-steps h2 {
    font-size: 2rem;
    }
    .qr-panel h3 {
    font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .descripcion-texto h2 {
        font-size: 1.8rem;
    }
    .pagos-cuentas h2 {
    font-size: 1.8rem;
    }
    .pagos-steps h2 {
    font-size: 1.8rem;
    }
    .qr-panel h3 {
    font-size: 1.5rem;
    }

    .descripcion-layout {
        gap: 20px;
    }

    .img-persona {
        max-height: 250px;
    }

    .step-card {
        padding: 20px;
    }

    .step-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .step-imagen {
        min-height: 180px;
        padding: 15px;
    }

    .img-paso {
        max-height: 160px;
    }

    .step-contenido h3 {
        font-size: 1.2rem;
    }

    .cuentas-grid {
        grid-template-columns: 1fr;
    }

    .cuenta-card {
        padding: 18px;
    }

    .cuenta-card h3 {
        font-size: 1.1rem;
    }

    .qr-panel {
        padding: 20px;
    }

    .qr-placeholder {
        min-height: auto;
        padding: 15px;
    }

    .qr-image {
        max-height: 280px;
        width: 100%;
        object-fit: contain;
    }
}

/* Ayuda Section de login.css */
.ayuda-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.ayuda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ayuda-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 91, 159, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.ayuda-card:hover {
    transform: translateY(-5px);
}

.ayuda-icon {
    font-size: 3rem;
    color: #E58E21;
    margin-bottom: 20px;
}

.ayuda-title {
    font-size: 1.3rem;
    color: #005B9F;
    margin-bottom: 15px;
}

/* Animaciones */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pago Presencial */
.pago-presencial {
    padding: 80px 0;
    background-color: #ffffff;
}

.presencial-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-presencial {
    background-color: #E2E8F0;
    color: #475569;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.presencial-info h2 {
    font-size: 2.5rem;
    color: #E58E21;
    margin-bottom: 20px;
    line-height: 1.2;
}

.presencial-info p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: #005B9F;
    background: #f0f5fa;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.info-item h4 {
    color: #005B9F;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 91, 159, 0.15);
    border: 4px solid white;
}

.map-container iframe {
    display: block;
}

/* Responsive Pago Presencial */
@media (max-width: 992px) {
    .presencial-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .presencial-info {
        text-align: center;
    }
    
    .info-item {
        text-align: left;
    }
    
    .presencial-info h2 {
        font-size: 2rem;
    }
}

/* Puntos de Pago Autorizados */
.puntos-pago {
    padding-bottom: 80px;
    background-color: white;
}

.otros-puntos-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 2rem;
}

.text-primary {
    color: #005B9F;
}

.badge-distrito {
    display: inline-block;
    padding: 4px 12px;
    background: #E58E21;
    color: white;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.puntos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.punto-card {
    background: #005B9F;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 91, 159, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.punto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 91, 159, 0.35);
}

.punto-info {
    padding: 30px 35px 30px 100px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.punto-info > i.fas:not(.fa-map-marked-alt) {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6rem;
    color: white;
    opacity: 0.15;
    pointer-events: none;
}

.punto-text {
    flex-grow: 1;
}

.punto-text h3 {
    font-size: 1.4rem;
    color: white;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
}

.punto-detalles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.punto-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9) !important;
}

.punto-item i {
    margin-top: 3px;
    font-size: 0.9rem;
    color: var(--color-secundario);
    width: 20px;
    text-align: center;
    opacity: 1 !important;
}

.btn-location {
    width: 55px;
    height: 55px;
    background: white;
    color: #005B9F;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    animation: pulse-location 2s infinite;
}

.btn-location i {
    font-size: 1.4rem;
}

.btn-location:hover {
    background: #E58E21;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(229, 142, 33, 0.4);
}

.tooltip-text {
    position: absolute;
    bottom: 120%;
    right: 0;
    background: #1a202c;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 18px;
    border-width: 6px;
    border-style: solid;
    border-color: #1a202c transparent transparent transparent;
}

.btn-location:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    bottom: 130%;
}

.cursor-indicator {
    position: absolute;
    right: 48px;
    bottom: 35px;
    color: #E58E21;
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    animation: move-cursor-indicator 3s infinite;
}

@media (max-width: 992px) {
    .puntos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .punto-info {
        padding: 30px 25px 30px 80px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .punto-info > i.fas:not(.fa-map-marked-alt) {
        font-size: 4rem;
        left: -5px;
    }
    
    .btn-location {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .punto-info {
        padding: 25px 15px 25px 70px;
    }
    
    .punto-text h3 {
        font-size: 1.2rem;
    }
    
    .punto-item {
        font-size: 0.85rem;
    }
}
