/* * simulador-base.css - Versión "Ultra Compacta"
 * Objetivo: Reducir altura total para evitar scroll en móviles.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

:root {
    --c-white: #ffffff;
    --c-input-glass: rgba(0, 100, 170, 0.45); 
    --c-navy-text: #0a2558;
    --c-red-gradient: linear-gradient(90deg, #e62143 0%, #c70d47 100%);
}

html, body {
    background: transparent !important;
    font-family: 'Poppins', sans-serif;
    margin: 0; padding: 0;
}

#dream-style-simulator {
    width: 100%;
    max-width: 950px;
    margin: 10px auto; /* Margen externo reducido */
    background: linear-gradient(135deg, rgba(0, 134, 204, 0.85) 0%, rgba(0, 198, 255, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px; /* Radio un poco menor */
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0, 134, 204, 0.2);
    position: relative;
    color: var(--c-white);
    
    /* COMPACTACIÓN 1: Menos padding interno */
    padding: 25px 20px; 
    box-sizing: border-box;
    overflow: hidden; 
}

/* === SLIDER === */
.da-track {
    display: flex;
    width: 200%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.da-slide {
    width: 50%;
    flex-shrink: 0;
    padding: 5px; /* Menos padding lateral */
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s;
}

/* === ESTILOS VISUALES COMPACTOS === */
.da-super-title { 
    /* COMPACTACIÓN 2: Título más pequeño */
    font-size: 2.2rem; 
    font-weight: 800; 
    text-align: center; 
    margin: 0 0 5px 0; /* Sin margen superior */
    color: white;
    text-shadow: 0 3px 10px rgba(0,0,0,0.15);
    line-height: 1.1;
}

.da-subtitle {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px; /* Reducido de 30px */
    opacity: 0.9;
}

.wow-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Reducido de 20px */
    margin-bottom: 20px; /* Reducido de 30px */
}

/* CAJAS DE INPUT MÁS DELGADAS */
.wow-input-box {
    background: var(--c-input-glass);
    border-radius: 15px;
    
    /* COMPACTACIÓN 3: Padding y altura reducidos */
    padding: 15px 10px; 
    min-height: 110px; /* Reducido de 140px */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.box-header {
    display: flex; align-items: center; gap: 6px; margin-bottom: 2px; justify-content: center;
}
.box-header i { font-size: 0.8rem; opacity: 0.9; }

.f-label { 
    font-size: 0.65rem; /* Letra más pequeña */
    font-weight: 800; 
    text-transform: uppercase; 
    margin: 0; 
    color: white; 
}

.f-input, .f-select {
    width: 100%; background: transparent !important; border: none; color: white !important;
    font-size: 1.15rem !important; /* Reducido de 1.3rem */
    font-weight: 700; 
    padding: 2px 0; 
    outline: none; 
    text-align: center;
}
.f-input::placeholder { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.f-select { text-align-last: center; appearance: none; cursor: pointer; }
.f-select option { background: #004164; color: white; }

.input-wrapper-wow { display: flex; justify-content: center; align-items: center; width: 100%; }
.currency-symbol { color: #a3d92e; font-weight: 800; font-size: 1.15rem; margin-right: 3px; }

/* RANGOS */
.range-text {
    font-size: 0.55rem; /* Texto mini */
    color: rgba(255,255,255,0.9);
    margin-top: 3px;
    font-weight: 500;
    text-align: center;
    background: rgba(0,0,0,0.15);
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1.2;
}

/* TASA Y BOTÓN (Sección Inferior) */
.rate-pill {
    background: white; 
    border-radius: 40px; 
    
    /* COMPACTACIÓN 4: Píldora más delgada */
    padding: 8px 30px; 
    margin-bottom: 15px; /* Reducido de 25px */
    
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.rate-label { color: #85b21f; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }
input.rate-value {
    border: none; background: transparent !important; font-size: 1rem !important;
    font-weight: 900 !important; color: #0a2558 !important; -webkit-text-fill-color: #0a2558 !important;
    width: 100px; text-align: center; outline: none;
}

.btn-wow-action {
    background: var(--c-red-gradient); color: white; border: none; 
    
    /* COMPACTACIÓN 5: Botón más delgado */
    padding: 14px 50px; 
    font-size: 1rem; 
    
    font-weight: 800; border-radius: 50px; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 25px rgba(230, 33, 67, 0.3);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s ease;
    width: 100%; /* Botón ancho en móvil por defecto, luego se ajusta */
    max-width: 350px;
}
.btn-wow-action:hover { transform: translateY(-2px); }

/* BOTÓN VOLVER */
.btn-back-slide {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: white;
    padding: 6px 15px; border-radius: 15px; cursor: pointer; font-size: 0.75rem;
    margin-bottom: 15px; display: inline-flex; align-items: center; gap: 5px; transition: 0.3s;
    text-decoration: none; font-weight: 600;
}
.btn-back-slide:hover { background: rgba(255,255,255,0.25); border-color: white; }

/* FOOTER COMPACTO */
.sim-footer {
    margin-top: 15px; /* Reducido */
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.6rem; color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.15); padding-top: 10px;
}
.palamon-credit { color: white; text-decoration: none; font-weight: 700; margin-left: 3px;}
.admin-lock { opacity: 0.5; color: white; font-size: 0.8rem; }

/* === RESPONSIVE REAL === */
@media (max-width: 768px) {
    #dream-style-simulator { 
        padding: 20px 15px; /* Aún menos padding en móvil */
        margin: 5px auto;
        border-radius: 15px;
    }

    .da-super-title { font-size: 1.6rem; } /* Título más pequeño */
    .da-subtitle { font-size: 0.8rem; margin-bottom: 15px; }

    .wow-form-grid { 
        grid-template-columns: 1fr; /* Una columna */
        gap: 10px; /* Pegaditos */
        margin-bottom: 15px;
    }

    .wow-input-box {
        /* Altura mínima en móvil para que no ocupen tanto */
        min-height: 85px; 
        flex-direction: row; /* Poner icono y input lado a lado en móvil ahorra altura */
        justify-content: space-between;
        padding: 10px 15px;
        align-items: center;
        gap: 10px;
        text-align: left;
    }
    
    /* Reajuste interno de las cajas en móvil para ahorrar espacio vertical */
    .wow-input-box .box-header { margin-bottom: 0; flex-direction: column; align-items: flex-start; width: 40%; }
    .wow-input-box .f-input, .wow-input-box .f-select, .wow-input-box .input-wrapper-wow { 
        width: 60%; text-align: right; justify-content: flex-end;
    }
    .f-select { text-align-last: right; }
    
    .range-text { 
        display: none; /* Ocultar rangos en móvil si molestan, o ponerlos absolute */
    }

    .rate-pill { width: 100%; justify-content: center; padding: 10px; margin-bottom: 10px; }
    .btn-wow-action { width: 100%; max-width: none; padding: 15px 0; }
    
    .da-track { flex-direction: row; }
}