/**
 * Estilos para la calculadora de criptomonedas
 */
 
/* Estilos de la calculadora */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.calculator-header {
    margin-bottom: 30px;
    text-align: center;
}

.calculator-header h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

.calculator-description {
    margin-top: 15px;
    line-height: 1.6;
}

.calculator-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Formulario de la calculadora */
.calculator-form {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Información de monedas */
.currency-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.currency-from, .currency-to {
    display: flex;
    align-items: center;
    flex: 1;
}

.currency-from img, .currency-to img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eaeaea;
}

.currency-from span, .currency-to span {
    font-weight: 500;
}

.currency-arrow {
    margin: 0 15px;
    color: #4a90e2;
}

.currency-arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Resultados */
.form-result {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.result-amount {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.result-amount .currency {
    margin-left: 5px;
    font-size: 20px;
    color: #666;
}

.result-amount .error {
    color: #e53935;
    font-size: 16px;
}

.result-amount .loading {
    color: #888;
    font-size: 16px;
}

.result-info {
    font-size: 14px;
    color: #666;
}

/* Tabla de conversión */
.calculator-table {
    flex: 1;
    min-width: 300px;
}

.calculator-table h3 {
    margin-bottom: 15px;
    text-align: center;
}

.calculator-table table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.calculator-table th, .calculator-table td {
    padding: 12px;
    border: 1px solid #eaeaea;
 
}

.calculator-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.calculator-table tr:nth-child(even) {
    background: #f9f9f9;
}

.calculator-table tr:hover {
    background: #f0f7ff;
}

/* FAQs */
.calculator-faq {
    margin-top: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calculator-faq h2 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    position: relative;
    padding-right: 30px;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.faq-item.active .faq-question:after {
    content: '−';
}

.faq-answer {
    display: none;
    padding: 10px;
    line-height: 1.6;
    color: #666;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-main {
        flex-direction: column;
    }
    
    .calculator-form, .calculator-table {
        min-width: 100%;
    }
    
    .calculator-header h1 {
        font-size: 1.8em;
    }
} 



.row{
    width:1200px;
    max-width:calc(100vw - 40px);
    margin:0 auto;
    position: relative;
}
.calculator-tabs{
    display: none;
}
.calculator-hero{
    position:relative;
    overflow:hidden;
    /* Fondo azul oscuro con glows radiales sutiles (azul Fluyez) */
    background:
        radial-gradient(55% 120% at 10% 0%, rgba(38,95,241,0.30) 0%, rgba(38,95,241,0) 55%),
        radial-gradient(55% 120% at 100% 100%, rgba(38,95,241,0.22) 0%, rgba(38,95,241,0) 55%),
        linear-gradient(135deg,#00114A 0%,#000D59 55%,#001A6E 100%);
    padding-top:80px;
    padding-bottom:80px;
    color:#fff;
}
.calculator-hero > .row{
    display: flex;
    gap:80px;
    align-items:center;
}
.calculator-hero__content{
    width:calc(65% - 40px);
    display: flex;
    gap:20px;
    align-items:center;
}
.calculator-hero__calculator{
    width:calc(35% - 40px);
    position: relative;
}
.calculator-hero__content figure{
    width:84px;
    height:84px;
    position: relative;
    overflow: hidden;
    filter: drop-shadow(0 10px 26px rgba(38,95,241,0.45));
}
.calculator-hero__content figure img{
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    width:100%;
    height:100%;
    object-fit:contain;
}
.calculator-hero__content :is(h1,h2){
    font-size:42px;
    color:#fff;
    font-weight:600;
    line-height:1.15;
    letter-spacing:-0.5px;
    margin-bottom:16px;
}
/* Subtítulo del hero */
.calculator-hero .hero-subtitle{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.calculator-hero .hero-subtitle p{
    color:rgba(255,255,255,0.82);
    font-size:16px;
    line-height:26px;
    max-width:560px;
    margin:0;
}
.calculator-content{
    padding-top:60px;
    padding-bottom:60px;
    padding-left:20px;
    padding-right:20px;
    display:flex;
    flex-direction:column;
    gap:60px;
}
.calculator-content > .row > h2{
    color:#000000;
    text-align: center;
    font-weight:600;
    font-size:32px;
    margin-bottom:30px;
}
.calculator-conversion section > h3{
    text-align: center;
}
.calculator-periods{
    display: flex;
    flex-direction:column;
    gap:30px;
}
.calculator-period > h3, .col-2 > section > h3{
    font-weight:600;
    font-size:24px;
    color:#1F2A37;
    margin-bottom:30px;
}
 /* estilos listas de conversiones criptos fiat pagina interna */
.calculator-currencies, .calculator-criptocurrencies{
    margin:0;
    padding:0;
    display: flex;
    flex-wrap:wrap;
    list-style:none;
    gap:10px;
}
/* Sección "Convierte X a otras Monedas" — al pie del hero.
   Anula el display:flex de '.calculator-hero > .row' para apilar título + grid */
.calculator-hero > .row.calculator-hero__currencies{
    display:block;
    margin-top:48px;
}
.calculator-hero__currencies > h2{
    color:#fff;
    font-weight:600;
    font-size:22px;
    margin-bottom:20px;
}
/* Grid de cards (auto-fit, sin huérfanas) */
.calculator-currencies{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
    gap:14px;
}
.calculator-currencies > li{
    width:auto;
}
/* Card glass sobre el fondo azul del hero */
.calculator-currencies > li > a{
    display: flex;
    align-items:center;
    gap:10px;
    border:1px solid rgba(255,255,255,0.16);
    border-radius:14px;
    padding:12px 14px;
    width:100%;
    height:100%;
    background:rgba(255,255,255,0.08);
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
    color:#fff;
    font-weight:600;
    transition:background .2s, border-color .2s, transform .2s;
}
.calculator-currencies > li > a:hover{
    background:rgba(255,255,255,0.14);
    border-color:rgba(255,255,255,0.35);
    transform:translateY(-2px);
}
.calculator-currencies > li > a > figure{
    width:34px;
    height:34px;
    flex-shrink:0;
    margin:0;
    border-radius:50%;
    overflow:hidden;
    position:relative;
    background:rgba(255,255,255,0.12);
}
.calculator-currencies > li > a > figure > img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}
.calculator-currency-info{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
    flex:1;
}
.calculator-currency-name{
    font-size:14px;
    font-weight:600;
    color:#fff;
    line-height:18px;
    text-transform:capitalize;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.calculator-currency-pair{
    font-size:11px;
    font-weight:500;
    color:rgba(255,255,255,0.65);
    line-height:15px;
    text-transform:uppercase;
}
.calculator-currency-arrow{
    flex-shrink:0;
    display:flex;
    color:rgba(255,255,255,0.8);
    transition:transform .2s;
}
.calculator-currency-arrow svg{
    width:16px;
    height:16px;
}
.calculator-currencies > li > a:hover .calculator-currency-arrow{
    transform:translateX(3px);
}
.calculator-criptocurrencies{
    gap:30px 40px;
}
.calculator-criptocurrencies > li{
    width:calc(100%/3 - 40px * 2/3);
}
.calculator-criptocurrencies > li > a{
    display: flex;
    align-items:center;
    gap:10px;
    border:1px solid #DEE2E8;
    border-radius:8px;
    padding:10px 14px;
    width:100%;
    color:#1F2A37;
    font-weight:600;
    transition:all .2s;
}
.calculator-criptocurrencies > li > a:hover{
    border-color:#265FF1;   
}
.calculator-criptocurrencies > li > a > figure{
    width:36px;
    height:36px;
    position: relative;
    overflow: hidden;
}
.calculator-criptocurrencies > li > a > figure > img{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width:100%;
    height:100%;
    object-fit:contain;
}
.calculator-criptocurrencies > li > a > div{
    display: flex;
    flex-direction:column;
}
.calculator-criptocurrencies > li > a > div > .equivalent{
    font-size:14px;
    color:#778496;
    font-weight:400;
}


/* estilos de conversiones criptos fiat pagina home */
.calculator-currencies-home{
    display: flex;
    flex-direction:column;
    gap:10px;
}

.calculator-currencies-home > li{
    width:calc(100%/5 - 10px * 4/5);
}
.calculator-currencies-home{
    gap:30px 40px;
}
.calculator-currencies-home > li{
    width:calc(100%/3 - 40px * 2/3);
}
.calculator-currency-title{
    width:100%;
    font-weight:600;
    font-size:24px;
    color:#1F2A37;
}
.calculator-currency-list > li > a{
    display: flex;
    align-items:center;
    gap:10px;
    border:1px solid #DEE2E8;
    border-radius:50px;
    padding:10px 20px;
    color:#1F2A37;
    font-weight:600;
    transition:all .2s;
}
.calculator-currency-list{
    display: flex;
    justify-content:center;
    gap:10px;

}
.calculator-currency-list > li > a:hover{
    border-color:#265FF1;   
}

.calculator-hero__form{
    background:#fff;
    padding:30px;
    border-radius:10px;
    display: flex;
    flex-direction:column;
    gap:24px;
    position: relative;
    box-shadow:0 24px 60px rgba(0,0,0,0.28);
}
.calculator-hero__form::before{
    content:'';
    display:flex;
    pointer-events:none;
    opacity:0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius:10px;
    background-color:rgba(255,255,255,.7);
    background-image:url('../images/loading.svg');
    background-repeat:no-repeat;
    background-size:50%;
    background-position:center;
    z-index:3;
    transition:all .2s;
}
.calculator-hero__form.loading::before{
    opacity:1;
    pointer-events:all;
}
.calculator-hero__form span{
    margin:0;
    font-weight:600;
    font-size:20px;
    color:#1F2A37;
    text-align: center;
    margin-bottom:10px;
}
.calculator-hero__form .form-row{
    position: relative;
    border:1px solid #abb5c2;
    border-radius:8px;
    min-height:52px;
    display:flex;
}
.calculator-hero__form .form-row label{
    position: absolute;
    top:0;
    left:10px;
    background-color:#fff;
    padding:0 6px;
    color:#4F5F74;
    user-select:none;
    transform:translateY(-50%);
    font-size:14px;
    z-index:2;
}
.calculator-hero__form .form-row input{
    border:0;
    outline:none !important;
    min-height:52px;
    background-color:#fff !important;
    border-radius:8px 0 0 8px;
    color:#1F2A37;
    padding-left:16px;
    width:70%;
}
.calculator-hero__form .form-row span{
    width:30%;
    color:#4F5F74;
    display: flex;
    align-items:center;
    gap:10px;
    user-select:none;
}
.calculator-hero__form .form-row span figure{
    width:24px;
    height:24px;
    border-radius:24px;
    overflow: hidden;
    position:relative;
}
.calculator-hero__form .form-row span figure img{
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    object-fit:cover;
    height:100%;
    width:100%;
}
.calculator-hero__form .button{
    background:#265FF1;
    border:0;
    color:#fff;
    font-weight:600;
    width:100%;
    border-radius:8px;
    height:48px;
    display:flex;
    justify-content:center;
    align-items:center;
}
.calculator-hero__form .form-row:focus-within{
    border-color:#265FF1;
}
.calculator-hero__form small{
    color:#4F5F74 !important;
    font-size:12px;
    text-align: center;
    margin-top:-10px;
}

.criptos-chart-labels{
    list-style:none;
    margin:0;
    padding:0;
    display: flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
}
.criptos-chart-labels li{
    font-weight:600;
    font-size:12px;
    border:1px solid #ABB5C2;
    color:#265FF1;
    padding:10px 14px;
    line-height:1em;
    border-radius:12px;
    transition:all .2s;
    cursor:pointer;
    user-select:none;
    text-transform: uppercase;
}
.criptos-chart-labels li.active{
    color:#fff;
    background-color:#265FF1;
}

.col-2{
    display: flex;
    gap:40px;
    flex-wrap:wrap;
}
.col-2 > *{
    width:calc(50% - 20px);
}

.graph-section{
    display: flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
}
.graph-title{
    font-weight:600;
    font-size:1.1em;
    color:#000;
    margin-bottom:20px;
}
.graph-section small{
    color:#778496;
    text-align: center;
    line-height:1.5em;
    margin-top:20px;
}

@media screen and (min-width:900px){
    .graph-section{
        width:80%;
        margin:0 auto;
    }
}

ul.calculator-table{
    list-style:none;
    padding:0;
    margin:0;
    display: flex;
    flex-direction:column;
    border:1px solid #DEE2E8;
    border-radius:8px;
}
ul.calculator-table > li{
    padding-top:8px;
    padding-bottom:8px;
    padding-left:20px;
    padding-right:20px;
    display: flex;
    justify-content:space-between;
    align-items:center;
}
ul.calculator-table > li:not(:last-of-type){
    border-bottom:1px solid #DEE2E8;
}
ul.calculator-table > li:first-child{
    background-color:#F4F7FA;
    color:#4F5F74;
    font-size:14px;
    border-radius:8px 8px 0 0;   
}
table.calculator-table{
    width:100%;
    border-collapse: collapse;
    border:1px solid #DEE2E8;
    border-radius:8px;
}
table.calculator-table > thead > tr > th{
    background-color:#F4F7FA;
    color:#4F5F74;
    font-size:14px;
    padding:6px 20px;
    text-align: left;
    border-right:0;
    border-left:0;
    border-bottom:0;
}
table.calculator-table > tbody > tr{
    border-bottom:1px solid #DEE2E8;
}
table.calculator-table > tbody > tr > td{
    padding:8px 20px;
    border:0;
}

/* FAQ */
.criptos-faqs{
    display: flex;
    flex-direction:column;
}
.criptos-faq{
    display: block;
    border-bottom:1px solid #DEE2E8;
}
.criptos-faq:last-of-type{
    border-bottom-color:transparent;
}
.criptos-faq__title{
    border-bottom:1px solid transparent;
    color:#1F2A37;
    font-size:16px;
    font-weight:600;
    padding:15px 0;
    padding-right:calc(15px + 1.1em);
    position: relative;
    margin:0 !important;
    cursor:pointer;
}
.criptos-faq__title::after{
    content:'';
    display: block;
    height:1.1em;
    width:1.1em;
    background-position:center;
    background-repeat:no-repeat;
    background-size:contain;
    background-image:url(../images/chevron-down.svg);
    position: absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
}
.criptos-faq.active .criptos-faq__title::after{
    transform:translateY(-50%) rotate(180deg);
}
.criptos-faq__content p:last-of-type{
    margin-bottom:0;
}
.criptos-faq__content{
    padding:20px 0;
    display: none;
}
.criptos-faq.active .criptos-faq__content{
    display: block;
}
@media screen and (max-width: 1100px){
    .calculator-currencies{
        gap:14px;
    }
    .calculator-currency-list{
        gap:20px;
        justify-content:center;
        flex-wrap:wrap;
    }
    .calculator-currency-list > li{
        width:calc(100%/3 - 20px * 2/3);
    }
    .calculator-criptocurrencies{
        gap:20px 30px;
    }
    .calculator-criptocurrencies > li{
        width:calc(100%/2 - 30px * 1/2);
    }
    .calculator-hero > .row{
        gap:40px;
        padding-left:20px;
        padding-right:20px;
    }
    .calculator-hero__content{
        width:calc(55% - 20px);
    }
    .calculator-hero__content figure{
        width:62px;
        height:62px;
    }
    .calculator-hero__content > div{
        width:calc(100% - 62px - 20px);
    }
    .calculator-hero__calculator{
        width:calc(45% - 20px);
    }
}
@media screen and (max-width: 950px){
    .calculator-hero__content{
        flex-direction:column;
    }
    .calculator-hero__content figure{
        width:32px;
        height:32px;
    }
    .calculator-hero__content > div{
        width:100%;
    }
    .calculator-hero__content{
        width:calc(50% - 20px);
    }
    .calculator-hero__calculator{
        width:calc(50% - 20px);
    }
}
@media screen and (max-width: 760px){
    .calculator-hero > .row{
        flex-wrap:wrap;
    }
    .calculator-hero__content :is(h1,h2){
        font-size:30px;
    }
    .calculator-hero > .row.calculator-hero__currencies{
        margin-top:32px;
    }
    .calculator-currency-list{
        display: flex;
        gap:14px;
        flex-wrap:wrap;
    }
    .calculator-hero__content, .calculator-hero__calculator{
        width:100%;
    }
    .calculator-hero__content{
        flex-direction:row;
    }
    .calculator-hero__content figure{
        width:62px;
        height:62px;
    }
    .calculator-hero__content > div{
        width:calc(100% - 62px - 20px);
    }
    .calculator-tabs{
        list-style:none;
        padding:0;
        margin:0;
        display: flex;
        justify-content:space-around;
        border:1px solid #abb5c2;
        min-height:52px;
        border-radius:8px;
    }
    .calculator-tabs > li{
        width:100%;
        display: flex;
        align-items:center;
        justify-content:center;
        font-weight:600;
        transition:all .2s;
        cursor:pointer;
    }
    .calculator-tabs > li:first-child{
        border-radius:8px 0 0 8px;
    }
    .calculator-tabs > li:last-of-type{
        border-radius:0 8px 8px 0;
    }
    .calculator-tabs > li.active{
        background-color:#f4f7fa;
    }
    .rnz-tab:not(.active){
        display:none;
    }
}
@media screen and (max-width: 676px){
    .calculator-currency-list > li{
        width:calc(100%/2 - 20px * 1/2);
    }
    .calculator-criptocurrencies{
        gap:14px;
    }
    .calculator-criptocurrencies > li{
        width:100%;
    }
    .calculator-currencies-home > li{
        width:calc(100%/2 - 20px * 1/2);
    }
    .calculator-currencies-homes{
        gap:14px;
    }

}
@media screen and (max-width: 600px){
    .col-2{
        flex-direction:column;
        gap:30px;
        margin-top:30px;
    }
    .col-2 > *{
        width:100%;
    }
    
}
@media screen and (max-width: 500px){
    .calculator-currencies{
        grid-template-columns:1fr;
        gap:12px;
    }
    .calculator-currency-list{
        gap:14px;
    }
    .calculator-currency-list > li{
        width:100%;
    }

    .calculator-hero__content{
        flex-direction:column;
        align-items:center;
    }
    .calculator-hero__content figure{
        width:42px;
        height:42px;
    }
    .calculator-hero__content > div{
        width:100%;
        text-align: center;
    }
}
@media screen and (max-width: 460px){
    table.calculator-table > tbody > tr::before{
        width:50%;
    }
}
@media screen and (max-width: 380px){
    table.calculator-table > tbody > tr::before{
        width:47%;
    }
}
@media (max-width:1200px){
    .row{
        max-width:calc(100vw - 60px);
    }
}

.chart-container{
    width:100%;
}
/* 
.loader::before{
    content:'';
    display:flex;
    pointer-events:none;
    opacity:0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius:10px;
    background-color:rgba(255,255,255,.7);
    background-image:url('../images/loading.svg');
    background-repeat:no-repeat;
    background-size:40%;
    background-position:center;
    z-index:3;
    transition:all .2s;
}
.loader.active::before{
    opacity:1;
    pointer-events:all;
} */

.graph-section.loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    background-image:url('../images/loading.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 100;
}

.graph-section.loader {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

