/*=====================================
  RESET
======================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter',sans-serif;

    background:#F4F7FB;

    color:#1F2937;

    line-height:1.6;

}

/*=====================================
  CONTAINER
======================================*/

.container{

    width:92%;

    max-width:1250px;

    margin:auto;

}

/*=====================================
  HEADER
======================================*/

header{

    background:#ffffff;

    box-shadow:0 2px 18px rgba(0,0,0,.05);

    position:sticky;

    top:0;

    z-index:999;

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 0;

}

.logo{

    display:flex;

    align-items:center;

    gap:18px;

}

.logo h1{

    font-size:28px;

    color:#0F4C81;

    font-weight:800;

}

.logo p{

    color:#6B7280;

    font-size:14px;

}

.logo div:first-child{

    font-size:45px;

}

/*====================================
HERO
====================================*/

.hero{

    margin:35px 0;

}

.hero-card{

    background:#ffffff;

    border-radius:24px;

    padding:35px;

    box-shadow:0 15px 40px rgba(0,0,0,.06);

    border:1px solid #E8EDF5;

}

.country-top{

    display:flex;

    align-items:center;

    gap:20px;

}

.flag{

    font-size:70px;

}

.location{

    color:#2E86DE;

    font-size:14px;

    text-transform:uppercase;

    font-weight:700;

    letter-spacing:1px;

}

#country{

    margin-top:5px;

    color:#0F4C81;

    font-size:34px;

}

.price-area{

    margin-top:40px;

}

.label{

    color:#888;

    font-size:16px;

}

.price{

    font-size:64px;

    font-weight:800;

    color:#0F4C81;

    margin:15px 0;

}

.currency{

    font-size:18px;

    color:#6B7280;

}

.hero-bottom{

    margin-top:35px;

    border-top:1px solid #ECECEC;

    padding-top:25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.variation{

    font-size:26px;

    font-weight:700;

}

/*=====================================
 BUSCADOR
======================================*/

.search-section{

    margin-bottom:50px;

}

#search{

    width:100%;

    padding:20px;

    border:none;

    border-radius:14px;

    font-size:18px;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

    outline:none;

}

#search:focus{

    border:2px solid #2E86DE;

}

/*=====================================
 TITULOS
======================================*/

section h2{

    margin-bottom:30px;

    font-size:34px;

    color:#0F4C81;

}

/*=====================================
 GRID
======================================*/

.grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

}

/*=====================================
 TARJETA
======================================*/

/*=========================
TARJETAS
=========================*/

.grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:20px;

    margin-top:25px;

}

.country-card{

    background:#ffffff;

    border-radius:18px;

    padding:22px;

    border:1px solid #E8EDF5;

    transition:.3s;

}

.country-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 35px rgba(0,0,0,.08);

}

.card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.country-left{

    display:flex;

    align-items:center;

    gap:15px;

}

.country-flag{

    font-size:34px;

}

.country-name{

    font-size:19px;

    font-weight:700;

    color:#0F4C81;

}

.country-currency{

    color:#7B8794;

    margin-top:3px;

    font-size:14px;

}

.country-value{

    margin-top:25px;

    font-size:34px;

    color:#18A558;

    font-weight:800;

}

.country-footer{

    margin-top:10px;

    color:#888;

    font-size:14px;

}

.featured{

    border:2px solid #2563EB;

    background:#F8FBFF;

}

.badge{

    position:absolute;

    top:18px;

    right:18px;

    background:#2E86DE;

    color:#fff;

    font-size:11px;

    padding:5px 10px;

    border-radius:25px;

    font-weight:700;

}

/*=====================================
 INFORMACION
======================================*/

.info{

    margin-top:80px;

    margin-bottom:80px;

}

.content{

    background:#ffffff;

    padding:40px;

    border-radius:20px;

    margin-bottom:35px;

    box-shadow:0 8px 20px rgba(0,0,0,.05);

}

.content h2{

    margin-bottom:20px;

}

.content p{

    color:#555;

    font-size:17px;

}

/*=====================================
 FOOTER
======================================*/

footer{

    background:#0F4C81;

    color:#fff;

    padding:45px 20px;

    text-align:center;

}

footer p{

    margin:10px 0;

    opacity:.9;

}

/*=====================================
 ANIMACIONES
======================================*/

.hero-card{

    animation:fade .8s;

}

.country-card{

    animation:fadeUp .7s;

}

@keyframes fade{

    from{

        opacity:0;

        transform:scale(.95);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*=====================================
 RESPONSIVE
======================================*/

@media(max-width:900px){

.hero-card{

padding:40px 25px;

}

.hero-card h2{

font-size:30px;

}

.price{

font-size:50px;

}

.flag{

font-size:65px;

}

.logo h1{

font-size:24px;

}

section h2{

font-size:28px;

}

}

@media(max-width:600px){

.price{

font-size:40px;

}

.hero-card h2{

font-size:25px;

}

#currency{

font-size:18px;

}

.country-name{

font-size:20px;

}

.country-price{

font-size:28px;

}

.logo{

gap:10px;

}

.logo h1{

font-size:20px;

}

.logo div:first-child{

font-size:35px;

}

}

/*=========================
 HERO NUEVO
=========================*/

.hero-header{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:25px;

    margin-bottom:40px;

}

.hero-title{

    text-align:left;

}

.country-label{

    color:#2E86DE;

    font-weight:600;

    font-size:15px;

    text-transform:uppercase;

    letter-spacing:1px;

}

.hero-price{

    margin-top:20px;

}

.usd-label{

    display:block;

    font-size:22px;

    color:#777;

    margin-bottom:10px;

}

.hero-footer{

    margin-top:45px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-top:1px solid #ECECEC;

    padding-top:25px;

}

.status{

    display:flex;

    align-items:center;

    gap:10px;

    color:#18A558;

    font-weight:600;

}

.dot{

    width:12px;

    height:12px;

    border-radius:50%;

    background:#18A558;

    animation:pulse 2s infinite;

}

@keyframes pulse{

0%{

transform:scale(1);

opacity:1;

}

50%{

transform:scale(1.5);

opacity:.5;

}

100%{

transform:scale(1);

opacity:1;

}

}

/*=========================
 TARJETA DESTACADA
=========================*/

.country-card{

    position:relative;

}

.featured{

    border:3px solid #2E86DE;

    transform:scale(1.03);

    background:#F8FBFF;

}

.featured:hover{

    transform:scale(1.05);

}

.badge{

    position:absolute;

    top:15px;

    right:15px;

    background:#2E86DE;

    color:#fff;

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;

    font-weight:700;

    letter-spacing:.5px;

}

/*=====================================
  INFORMACIÓN DEL MERCADO
======================================*/

.market-info{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin-top:30px;

    margin-bottom:30px;

}

.market-box{

    background:#ffffff;

    border-radius:18px;

    padding:25px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.market-box:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.market-box span{

    display:block;

    color:#6B7280;

    font-size:15px;

    margin-bottom:10px;

}

.market-box h3{

    font-size:32px;

    color:#0F4C81;

    font-weight:800;

}

/*=====================================
  GRÁFICO
======================================*/

.chart-card{

    background:#ffffff;

    border-radius:20px;

    padding:30px;

    margin-top:25px;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.chart-card h3{

    margin-bottom:20px;

    color:#0F4C81;

    font-size:22px;

}

.chart-card canvas{

    width:100% !important;

    height:320px !important;

}

/*=====================================
  RESPONSIVE
======================================*/

@media(max-width:768px){

.market-info{

grid-template-columns:1fr;

}

.chart-card canvas{

height:250px !important;

}

}

.section-description{

    color:#667085;

    margin-top:-15px;

    margin-bottom:30px;

    font-size:17px;

}

/*====================================
SELECTOR DE PAÍS
====================================*/

.country-selector{

    margin:25px 0;

}

.country-selector label{

    display:block;

    margin-bottom:10px;

    font-size:15px;

    font-weight:600;

    color:#0F4C81;

}

.country-selector select{

    background:#ffffff;

    border:1px solid #D9E2EC;

    border-radius:14px;

    padding:15px;

    font-size:16px;

}

.country-selector select:hover{

    border-color:#2E86DE;

}

.country-selector select:focus{

    border-color:#2E86DE;

    box-shadow:0 0 0 4px rgba(46,134,222,.15);

}

/*=====================================
TICKER
=====================================*/

.ticker{

    background:#0F4C81;

    overflow:hidden;

    height:55px;

    display:flex;

    align-items:center;

    color:#fff;

    margin-bottom:30px;

}

.ticker-track{

    display:flex;

    align-items:center;

    white-space:nowrap;

    animation:ticker 45s linear infinite;

}

.ticker-item{

    margin-right:55px;

    font-size:16px;

    font-weight:600;

}

.ticker-item span{

    color:#8EF0B7;

    margin-left:8px;

}

@keyframes ticker{

    from{

        transform:translateX(100%);

    }

    to{

        transform:translateX(-100%);

    }

}

body{

    margin:0;

    font-family:'Segoe UI',sans-serif;

    background:#F4F7FC;

    color:#1F2937;

}

.container{

    width:92%;

    max-width:1200px;

    margin:auto;

}

header{

    background:#ffffff;

    padding:18px 0;

    border-bottom:1px solid #E8EDF5;

    position:sticky;

    top:0;

    z-index:1000;

    backdrop-filter:blur(10px);

}

.logo{

    font-size:28px;

    font-weight:800;

    color:#0F4C81;

}

.logo span{

    color:#18A558;

}


button,
select{

    transition:.3s;

}

button:hover,
select:hover{

    transform:translateY(-2px);

}

.hero-card,
.country-card,
.market-box,
.chart-card{

    animation:fade .5s ease;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*====================================
ADSENSE
====================================*/

.adsense-horizontal{

    width:100%;

    max-width:1200px;

    margin:30px auto;

    min-height:90px;

    background:#F8F9FB;

    border:1px dashed #C9D3E0;

    border-radius:15px;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#8A94A6;

    font-size:15px;

}

.adsense-responsive{

    width:100%;

    max-width:1200px;

    min-height:280px;

    margin:40px auto;

    background:#F8F9FB;

    border:1px dashed #C9D3E0;

    border-radius:15px;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#8A94A6;

    font-size:15px;

}

@media(max-width:768px){

.adsense-horizontal{

min-height:100px;

}

.adsense-responsive{

min-height:300px;

}

}

/*=====================================
PÁGINAS LEGALES
=====================================*/

.legal-page{

    max-width:900px;

    margin:60px auto;

    background:#ffffff;

    padding:50px;

    border-radius:20px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.legal-page h1{

    color:#0F4C81;

    margin-bottom:25px;

}

.legal-page h2{

    margin-top:35px;

    color:#0F4C81;

}

.legal-page p{

    line-height:1.9;

    color:#555;

    text-align:justify;

}

/*=====================================
FOOTER
=====================================*/

footer{

    background:#0F4C81;

    color:#fff;

    margin-top:70px;

    padding:50px 0 25px;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:40px;

}

.footer-grid h3,
.footer-grid h4{

    margin-bottom:20px;

}

.footer-grid p{

    color:#DCE6F2;

    line-height:1.8;

}

.footer-grid ul{

    list-style:none;

    padding:0;

}

.footer-grid li{

    margin-bottom:12px;

}

.footer-grid a{

    color:#DCE6F2;

    text-decoration:none;

}

.footer-grid a:hover{

    color:#FFFFFF;

}

footer hr{

    margin:35px 0 20px;

    border:none;

    border-top:1px solid rgba(255,255,255,.15);

}

.copyright{

    text-align:center;

    color:#C7D4E4;

}

@media(max-width:768px){

.footer-grid{

grid-template-columns:1fr;

}

}