@import url('../color-palette.css');

/* contenedor general de pagina */
.financing-page-wrapper {
    width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.financing-page-wrapper .financing-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* seccion superior del encabezado */
.financing-page-wrapper .financing-top-section {
    background-color: var(--primary-color-200);
    padding: 50px 0 60px 0;
}

.financing-page-wrapper .financing-header {
    margin-bottom: 40px;
}

/* título principal */
.financing-page-wrapper .main-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color-700);
    margin-bottom: 8px;
}

.financing-page-wrapper .sub-title {
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--primary-color-700);
    margin-bottom: 16px;
}

.financing-page-wrapper .header-desc {
    max-width: 720px;
    margin: 0 auto;
    color: var(--secondary-color-600);
    font-size: 1rem;
    line-height: 1.5;
}

/* tarjetas de proveedores */
.financing-page-wrapper .financing-cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

/* estilos de tarjeta proveedora */
.financing-page-wrapper .financing-card {
    background: var(--secondary-color-100);
    border-radius: 16px;
    padding: 30px 24px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* estado activo de tarjeta */
.financing-page-wrapper .financing-card.active {
    border-color: var(--primary-color-700);
}

/* efecto hover en tarjetas */
.financing-page-wrapper .financing-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color-500);
    box-shadow: 0 10px 25px rgba(199, 24, 113, 0.15);
}

.financing-page-wrapper .financing-card:hover .provider-logo {
    transform: scale(1.05);
}

/* contenedor logos de marcas */
.financing-page-wrapper .card-logo-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.financing-page-wrapper .provider-logo {
    max-height: 100%;
    max-width: 180px;
    object-fit: contain;
}

.financing-page-wrapper .card-text {
    font-size: 0.88rem;
    color: var(--secondary-color-600);
    line-height: 1.5;
    margin: 0;
}

.financing-page-wrapper .financing-details-section {
    background-color: var(--secondary-color-200);
    padding: 60px 0;
}

/* texto información sobre financieras */
.financing-page-wrapper .details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 45px;
    align-items: center;
    margin-bottom: 70px;
}

/* imagen de opciones financieras */
.financing-page-wrapper .details-media-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.financing-page-wrapper .image-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
}

.financing-page-wrapper .details-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: block;
}

/* boton flotante sobre imagen */
.financing-page-wrapper .btn-pink-pill.floating-btn {
    position: absolute;
    bottom: -15px;
    right: -10px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.6);
}

/* icono flotante parte superior izquierda*/
.financing-page-wrapper .floating-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 55px;
    height: 55px;
    background-color: var(--primary-color-500);
    border: 4px solid var(--secondary-color-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color-100);
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* boton principal estilo pildora */
.financing-page-wrapper .btn-pink-pill {
    background-color: var(--primary-color-500);
    color: var(--secondary-color-100) !important;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    box-shadow: 0 4px 12px rgba(250, 255, 255, 0.5);
    border: none !important;
    outline: none;
}

.financing-page-wrapper .btn-pink-pill:hover {
    background-color: var(--primary-color-600);
}

.financing-page-wrapper .btn-pink-pill.sm-btn {
    padding: 8px 24px;
    font-size: 0.9rem;
}

/* titulos de financiera seleccionada */
.financing-page-wrapper .details-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color-700);
    margin-bottom: 12px;
}

.financing-page-wrapper .details-description {
    color: var(--secondary-color-600);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* lista pildoras de beneficios */
.financing-page-wrapper .features-pill-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.financing-page-wrapper .feature-pill-card {
    background: var(--secondary-color-100);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* icono de beneficios */
.financing-page-wrapper .pill-icon-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background-color: var(--primary-color-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color-100);
    font-size: 1.1rem;
}

.financing-page-wrapper .pill-content h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color-800);
}

.financing-page-wrapper .pill-content p {
    margin: 2px 0 0 0;
    font-size: 0.82rem;
    color: var(--secondary-color-600);
}

/* seccion de contacto */
.financing-page-wrapper .contact-section-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

/* columna de dudas contacto */
.financing-page-wrapper .contact-ask-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.financing-page-wrapper .contact-ask-col h3 {
    font-size: 1.5rem;
    font-weight: 650;
    color: var(--primary-color-700);
    margin-bottom: 6px;
}

.financing-page-wrapper .contact-ask-col p {
    font-size: 0.9rem;
    color: var(--secondary-color-600);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* fondo oscuro modal emergente */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* contenedor caja de modal */
.custom-modal-container {
    background: var(--secondary-color-100);
    border-radius: 24px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.custom-modal-container.sm-container {
    max-width: 440px;
}

/* boton cerrar */
.custom-modal-header {
    background-color: var(--primary-color-700);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    /* aqui */
    color: var(--secondary-color-100);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

/* cuerpo del modal emergente */
.custom-modal-body {
    padding: 25px 30px 35px 30px;
    text-align: center;
}

.modal-icon-badge {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: var(--primary-color-700);
    font-size: 1.4rem;
}

.modal-icon-badge.check-badge {
    /* aqui */
    background-color: var(--primary-color-100);
}

.modal-icon-badge.check-badge i {
    background-color: var(--primary-color-700);
    /* aqui */
    color: var(--secondary-color-100);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* modal emergente */
.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color-700);
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color-800);
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.82rem;
    color: var(--secondary-color-600);
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* formulario del modal */
.modal-form {
    text-align: left;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
}

.modal-form .form-group.full-width {
    margin-bottom: 20px;
}

.modal-form label {
    font-size: 0.78rem;
    color: var(--secondary-color-600);
    margin-bottom: 4px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color-700);
    font-size: 0.85rem;
}

.input-with-icon input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--secondary-color-300);
    border-radius: 10px;
    font-size: 0.85rem;
    outline: none;
    transition: border 0.2s ease;
}

.input-with-icon input:focus,
.modal-form textarea:focus {
    border-color: var(--primary-color-700);
}

.modal-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--secondary-color-300);
    border-radius: 12px;
    font-size: 0.85rem;
    outline: none;
    resize: none;
}

/* botones de accion modal */
.modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-actions.full-btn .btn-submit {
    width: 100%;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 0 15px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
    box-sizing: border-box;
    margin: 0;
}

.btn-cancel {
    background-color: var(--secondary-color-400);
    color: var(--secondary-color-100);
}

.btn-submit {
    background-color: var(--primary-color-700);
    color: var(--secondary-color-100);
}

/* control de scroll automatico  */
.financing-details-section {
    scroll-margin-top: 150px; 
}

/* responsividad en pantallas celulares */
@media (max-width: 576px) {
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* responsividad en tablets */
@media (max-width: 992px) {
    .financing-page-wrapper .financing-cards-grid,
    .financing-page-wrapper .details-grid,
    .financing-page-wrapper .contact-section-grid {
        grid-template-columns: 1fr;
    }
    
    .financing-page-wrapper .feature-pill-card {
        border-radius: 16px;
    }
}