/**
 * Auto Finance Calculator - v2 testt
 * Versión: 1.0.7
 */

/* === VARIABLES GLOBALES === */
:root {
    --color-primary: #333333; 
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #e0e0e0;
    --color-background: #fff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --font-primary: -apple-system, BlinkMacSystemFont, "Roboto", Roboto, sans-serif;
}

/* === CONTENEDOR PRINCIPAL === */


.g-recaptcha {
    clear: both;
    margin-top: 10px!important;
}

.afc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--font-primary);
}

/* === FORMULARIO BASE === */
.afc-form__wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.afc-form__container {
    padding: 30px;
}

.afc-title {
    margin: 0 0 10px;
    font-size: 36px;
    text-align:center;
    font-weight: 600;
    font-family:"Poppins"
    ;
    color: #0A0A0A;
}

.afc-description {
    margin: 0 0 30px;


    color: #4A5565;
text-align: center;
font-family: Poppins;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 18.631px;
}

.afc-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.afc-form-group {
    margin-bottom: 0px;
    margin-top: 10px;
}

.afc-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0px;
}

.afc-form-row .afc-form-group {
    flex: 1;
    margin-bottom: 0;
}

.afc-form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
    font-size: 14px;
}

/* === ESTILO PARA LABEL CON VALOR A LA DERECHA === */
.afc-label-with-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.afc-label-with-value .afc-form__label {
    margin-bottom: 0;
}

.afc-label-with-value .afc-value-display {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
}

/* === INPUTS Y SELECTS === */
.afc-select-modelo,
.afc-form-input,
.afc-form-select {
    width: 100%;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s ease;
      background-color: #f9fafb!important;
    border-radius: 10px!important;
        height: 40px!important;
}

.afc-select-modelo:focus,
.afc-form-input:focus,
.afc-form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.afc-select-modelo.error,
.afc-form-input.error,
.afc-form-select.error {
    border-color: #ff4444;
}

/* === SLIDERS (NEGROS) - VERSIÓN CORREGIDA === */
.afc-slider-container {
    margin: 0px 0;
    padding: 0px 0;
}

/* Contenedor del label con valor */
.afc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.afc-slider-header .afc-form__label {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    font-family:"Poppins";

}

.afc-slider-header .afc-slider-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    display: block !important; /* Forzamos mostrar el valor */
}

.afc-slider-value {
    display: none; /* Ocultamos el viejo que estaba abajo */
}

.afc-slider-wrapper {
    position: relative;
    padding: 5px 0;
}

.afc-slider {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

.afc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.afc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.afc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.afc-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.afc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 0px;
    gap: 5px;
}

.afc-slider-labels span {
    cursor: pointer;
    padding: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    background: #f5f5f5;
    border-radius: 20px;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    text-align: center;
    min-width: 45px;
    border: 1px solid transparent;
}

.afc-slider-labels span:hover {
    background: rgba(51, 51, 51, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.afc-slider-labels span.active {
    background: #fff;
    color: white;
    font-weight: 600;
    border-color: var(--color-primary);
}

/* === BOTÓN  (NEGRO) === */
.afc-form__button {
    display: inline-block;
       padding: 5px 30px;
    height: 40px;
    color: #fff !important;
    background: var(--color-primary);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none !important;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.afc-form__button:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.afc-form__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loader en botón */
.afc-form__button.loading {
    position: relative;
    color: transparent !important;
}

.afc-form__button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
         left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
           border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}










input.dokan-form-control, input[type="text"], input[type="number"], input[type="email"], input[type="search"], input[type="password"], input[type="tel"], input[type="url"] {
    height: var(--et_inputs-height, 2.642rem);
    line-height: 2rem;
    padding: 0 1.07em;
    -webkit-appearance: none;
    background-color: #f9fafb!important;
    border-radius: 5px!important;
}






/* === MENSAJES DEL FORMULARIO === */
.afc-form-message {
    display: none;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    text-align: center;
}

.afc-form-message.success {
    display: block;
    background: rgba(51, 51, 51, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.afc-form-message.error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
}

/* === TEXTOS LEGALES === */
.afc-small-legal-text {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.afc-legal-text {
    margin-top: 20px;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.dalton_legal{
 font-size:10px;   
 text-align: center;
 padding-left: 20px;
    padding-right: 22px;
    padding-bottom: 21px;
}


@media(max-width:470px){
    
    .dalton_mob{
        display:none;
    }
    .dalton-legol{
        padding-bottom: 61px;
    }
    
    .afc-style3 .afc-form__wrapper {
 padding: 0px; 
    box-shadow: none;
    border-radius: 0;
}
    .afc-watermark-text {
        
        margin-bottom: 00px;
        margin-top: 60px;
    }
    
    
        .afc-summary-figma {
        min-height: 500px;
        height: 450px;
        }
        
     .afc-style3 .afc-form__wrapper {
    padding: 10px;
     }
         
     .afc-summary-data {
     margin: 0px 2px 2px 0px!important;
     padding-bottom:0px;
     }
     
     .afc-style3 {
     height: auto!important;
     }
}











/* === ESTILO 1 (con resumen lateral) === */
.afc-style1 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.afc-style1 .afc-form__wrapper {
    flex: 2;
    min-width: 300px;
}

.afc-style1 .afc-summary {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
}

/* === ESTILO 2 (formulario completo) === */
.afc-style2 .afc-form__wrapper {
    width: 100%;
}

/* === ESTILO 3 (FIGMA) === */
.afc-style3 {
    height: 1170px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.afc-style3 .afc-form__wrapper {
    padding: 40px;
    box-shadow: none;
    border-radius: 0;
}

.afc-style3 .afc-form__container {
    padding: 0;
}

/* Columna derecha */
.afc-summary-figma {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f0f3f7;
    background-size: cover;
    background-position: center;
}

/* Marca de aguaa */
.afc-watermark-text {
    position: absolute;
     margin-top: 33% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 65px;
    font-weight: 500;
    font-family: "Poppins";
    color: rgba(180, 190, 200, 0.15);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 10px;
    width: 100%;
  
}

/* Contenedor del auto */
.afc-figma-car-container {
    position: relative;
    z-index: 2;
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 auto;
    max-height: 350px;
}

.afc-figma-car-image {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.15));
}

/* Tarjeta de datos */
.afc-summary-data {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0 40px 0;
/*    border: 1px solid rgba(255,255,255,0.8); */

    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Filas del resumen */
.afc-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
 /*   border-bottom: 1px solid #eee; */ 
 
}

.afc-summary__row:last-child {
    border-bottom: none;
}

.afc-summary__label {
    color: #4e53565;
    font-size: 19px;
    font-family:"Poppins";
    font-weight: 500;
}






.afc-summary__value {
     color: #4e53565;
    font-size: 19px;
    font-family:"Poppins";
    font-weight: 500;
}

#afc-precio-total,
#afc-enganche,
#afc-plazo,
#afc-pago-mensual {
   color: #4e53565;
    font-size: 19px;
    font-family:"Poppins";
    font-weight: 500;
}

/* Texto legal */
.afc-summary-figma .afc-legal-text {
   position: relative;
    z-index: 2;
    margin-top: 20px;
    font-size: 9px;
    color: #888;
    line-height: 1.4;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
        padding-bottom: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .afc-style3 {
        grid-template-columns: 1fr;
    }
    
    .afc-watermark-text {
        font-size: 12vw;
    }
    
    .afc-figma-car-image {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .afc-wrapper {
        flex-direction: column;
    }
    
    .afc-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .afc-style1 .afc-summary {
        width: 100%;
    }
    
    .afc-figma-car-image {
        max-height: 200px;
    }
    
    .afc-summary-data {
        padding: 20px;
    }
    
    .afc-slider-labels {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .afc-slider-labels span {
        margin: 2px;
    }
}

@media (max-width: 480px) {
    .afc-form__container {
        padding: 0px !important;
    }
    
    .afc-slider-labels span {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 40px;
    }
    
    .afc-figma-car-image {
        max-height: 150px;
    }
    
    .afc-summary__label,
    .afc-summary__value {
        font-size: 14px;
    }
}















.afc-summary-figma {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        #e4eaee 0%,
        #e4eaee 50%,
        #dbe2e7 50%,
        #dbe2e7 100%
    );
    background-size: cover;
    background-position: center;
}


/* Para una línea divisoria más nítida (sin suavizado) */
.afc-summary-figma.sharp-split {
    background: linear-gradient(
        to bottom,
        #f0f3f7 0%,
        #f0f3f7 49.9%,   /* Termina justo antes */
        #333333 50%,     /* Empieza justo después */
        #333333 100%
    );
}

/* Si quieres una línea divisoria visible */
.afc-summary-figma.with-divider {
    background: linear-gradient(
        to bottom,
        #f0f3f7 0%,
        #f0f3f7 49.5%,
        #333333 50.5%,
        #333333 100%
    );
    /* Opcional: añadir una línea decorativa */
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.1), inset 0 -1px 0 rgba(255,255,255,0.5);
}

/* Para que el contenido esté sobre el fondo */
.afc-watermark-text,
.afc-figma-car-container,
.afc-summary-data,
.afc-legal-text {
    position: relative;
    z-index: 2;
}

/* Opcional: si quieres que la marca de agua se adapte */
.afc-watermark-text {
    /* La marca de agua se verá en ambos colores */
    color: rgba(0,0,0,0.1);
    mix-blend-mode: multiply;
}

/* Responsive */
@media (max-width: 768px) {
    .afc-summary-figma {
        min-height: 700px;
    }
}