/* ==========================================================
   NUNTIUS — ECONOMÍA
   Cotizaciones + Conversor
========================================================== */

.ce-economy-tools{
    display:grid;
    grid-template-columns:1fr 1fr;
    margin:0 0 30px;
    border:1px solid #ddd5c5;
    border-radius:12px;
    overflow:hidden;
    background:#faf8f3;
    box-shadow:0 8px 28px rgba(11,39,79,.05);
}

.ce-economy-quotes,
.ce-currency-converter{
    padding:24px 26px 26px;
}

.ce-economy-quotes{
    border-right:1px solid #ddd5c5;
}

.ce-economy-tool-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}

.ce-economy-kicker{
    display:block;
    margin-bottom:5px;
    color:#c7a55b;
    font-family:"Inter",Arial,sans-serif;
    font-size:9px;
    line-height:1.2;
    font-weight:800;
    letter-spacing:.15em;
    text-transform:uppercase;
}

.ce-economy-tool-heading h3{
    margin:0;
    color:#0b274f;
    font-family:"Merriweather",Georgia,serif;
    font-size:20px;
    line-height:1.25;
    font-weight:700;
}

.ce-economy-source{
    padding:5px 8px;
    border:1px solid #d6c49b;
    border-radius:4px;
    color:#80692f;
    font-family:"Inter",Arial,sans-serif;
    font-size:9px;
    font-weight:800;
    letter-spacing:.1em;
}


/* TABLA */

.ce-economy-table-head,
.ce-economy-table-row{
    display:grid;
    grid-template-columns:1.3fr .85fr .85fr;
    gap:10px;
    align-items:center;
}

.ce-economy-table-head{
    padding:0 0 8px;
    border-bottom:2px solid #c7a55b;
    color:#989187;
    font-family:"Inter",Arial,sans-serif;
    font-size:8px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.ce-economy-table-head span:not(:first-child){
    text-align:right;
}

.ce-economy-table-row{
    min-height:48px;
    padding:9px 0;
    border-bottom:1px solid #e5dfd2;
}

.ce-economy-currency strong,
.ce-economy-currency span{
    display:block;
}

.ce-economy-currency strong{
    color:#0b274f;
    font-family:"Inter",Arial,sans-serif;
    font-size:12px;
    font-weight:800;
}

.ce-economy-currency span{
    margin-top:2px;
    color:#969087;
    font-family:"Inter",Arial,sans-serif;
    font-size:9px;
}

.ce-economy-value{
    color:#162b49;
    font-family:"Inter",Arial,sans-serif;
    font-size:12px;
    font-weight:700;
    text-align:right;
}

.ce-economy-update{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding-top:11px;
    color:#999187;
    font-family:"Inter",Arial,sans-serif;
    font-size:8px;
    letter-spacing:.03em;
}


/* ==========================================================
   CONVERSOR
========================================================== */

.ce-converter-form label{
    display:block;
    margin-bottom:6px;
    color:#777168;
    font-family:"Inter",Arial,sans-serif;
    font-size:9px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.ce-converter-input-wrap{
    display:flex;
    align-items:center;
    height:48px;
    margin-bottom:17px;
    border:1px solid #d8d0c0;
    border-radius:7px;
    background:#fff;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.ce-converter-input-wrap:focus-within{
    border-color:#c7a55b;
    box-shadow:0 0 0 3px rgba(199,165,91,.12);
}

.ce-converter-input-wrap > span{
    padding-left:14px;
    color:#c7a55b;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:22px;
    font-weight:700;
}

.ce-converter-input-wrap input{
    width:100%;
    height:100%;
    padding:0 14px 0 8px;
    border:0;
    outline:0;
    background:transparent;
    color:#0b274f;
    font-family:"Inter",Arial,sans-serif;
    font-size:17px;
    font-weight:700;
}

.ce-converter-selects{
    display:grid;
    grid-template-columns:1fr 36px 1fr;
    gap:10px;
    align-items:end;
}

.ce-converter-selects select{
    width:100%;
    height:42px;
    padding:0 30px 0 10px;
    border:1px solid #d8d0c0;
    border-radius:6px;
    outline:0;
    background:#fff;
    color:#162b49;
    font-family:"Inter",Arial,sans-serif;
    font-size:11px;
    cursor:pointer;
}

.ce-converter-selects select:focus{
    border-color:#c7a55b;
}

.ce-converter-swap{
    width:36px;
    height:42px;
    border:1px solid #d6c49b;
    border-radius:6px;
    background:#f5f0e5;
    color:#0b274f;
    font-size:18px;
    cursor:pointer;
    transition:.2s ease;
}

.ce-converter-swap:hover{
    background:#0b274f;
    border-color:#0b274f;
    color:#fff;
}


/* RESULTADO */

.ce-converter-result{
    margin-top:20px;
    padding:18px 20px;
    border-left:3px solid #c7a55b;
    background:#0b274f;
    border-radius:4px 8px 8px 4px;
}

.ce-converter-result > span{
    display:block;
    color:#c7a55b;
    font-family:"Inter",Arial,sans-serif;
    font-size:8px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.ce-converter-result strong{
    display:block;
    margin:6px 0 5px;
    color:#fff;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:32px;
    line-height:1;
    font-weight:700;
}

.ce-converter-result small{
    color:#cbd3de;
    font-family:"Inter",Arial,sans-serif;
    font-size:9px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:900px){

    .ce-economy-tools{
        grid-template-columns:1fr;
    }

    .ce-economy-quotes{
        border-right:0;
        border-bottom:1px solid #ddd5c5;
    }
}

@media(max-width:520px){

    .ce-economy-quotes,
    .ce-currency-converter{
        padding:20px 18px;
    }

    .ce-converter-selects{
        grid-template-columns:1fr;
    }

    .ce-converter-swap{
        transform:rotate(90deg);
        justify-self:center;
    }

    .ce-economy-update{
        flex-direction:column;
        gap:4px;
    }
}
