:root{
    --azul:#2563eb;
    --azul-hover:#1d4ed8;
    --gris:#f5f7fa;
    --texto:#1f2937;
    --verde:#16a34a;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:var(--gris);
    color:var(--texto);
    line-height:1.5;
}

/* =========================
   HEADER
========================= */

header{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar{
    max-width:1200px;
    margin:auto;
    padding:15px 20px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    text-decoration:none;
    color:var(--azul);
    font-size:2rem;
    font-weight:bold;
}

.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    text-decoration:none;
    color:var(--texto);
    font-weight:500;
}

.nav-links a:hover{
    color:var(--azul);
}

.menu-toggle{
    display:none;
}

/* =========================
   HERO
========================= */

.hero{
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:white;
    text-align:center;
    padding:80px 20px;
}

.hero h1{
    font-size:3.5rem;
    margin-bottom:20px;
}

.hero p{
    max-width:800px;
    margin:auto;
    font-size:1.3rem;
}

/* =========================
   CONTENIDO GENERAL
========================= */

.container{
    max-width:1200px;
    margin:auto;
    padding:50px 20px;
}

.section-title{
    text-align:center;
    font-size:2rem;
    margin-bottom:35px;
}

/* =========================
   CATEGORIAS
========================= */

.categorias{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:60px;
}

.categoria{
    background:white;
    padding:30px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    transition:.2s;
}

.categoria:hover{
    transform:translateY(-4px);
}

.categoria h2{
    font-size:2.5rem;
    margin-bottom:10px;
}

.categoria h3 a{
    text-decoration:none;
    color:var(--texto);
}

.categoria h3 a:hover{
    color:var(--azul);
}

/* =========================
   CALCULADORAS
========================= */

.calculadoras{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

.card{
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
    transition:.2s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    margin-bottom:15px;
}

.card p{
    margin-bottom:20px;
}

.proximamente{
    opacity:.75;
}

/* =========================
   BOTONES
========================= */

.btn{
    display:inline-block;
    background:var(--azul);
    color:white;
    text-decoration:none;
    padding:12px 20px;
    border-radius:8px;
    transition:.2s;
}

.btn:hover{
    background:var(--azul-hover);
}

/* =========================
   BLOG
========================= */

.blog{
    margin-top:70px;
}

.articulos{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;
}

.articulo{
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.articulo h3{
    margin-bottom:10px;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#111827;
    color:white;
    margin-top:70px;
    padding:50px 20px;
}

.footer-content{
    max-width:1200px;
    margin:auto;
    text-align:center;
}

.footer-content h3{
    margin-bottom:15px;
}

.footer-links{
    margin:25px 0;
}

.footer-links a{
    color:white;
    text-decoration:none;
    margin:0 12px;
}

.footer-links a:hover{
    text-decoration:underline;
}

.copyright{
    opacity:.7;
}

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

@media(max-width:768px){

    .hero h1{
        font-size:2.2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .section-title{
        font-size:1.6rem;
    }

    .nav-links{
        display:none;
    }

    .menu-toggle{
        display:block;
        border:none;
        background:none;
        font-size:1.6rem;
        cursor:pointer;
    }

    .logo{
        font-size:1.5rem;
    }

}