/* =========================
   VARIABLES DE COLOR
========================= */

:root{
    --bg:#f8fafc;
    --text:#0f172a;
    --primary:#0ea5e9;
    --secondary:#22c55e;
    --accent:#6366f1;
    --card:#ffffff;
    --shadow:0 10px 30px rgba(0,0,0,0.08);
}

body.dark{
    --bg:#0f172a;
    --text:#f1f5f9;
    --card:#1e293b;
    --shadow:0 10px 30px rgba(0,0,0,0.5);
}

/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins', sans-serif;
    background:var(--bg);
    color:var(--text);
    transition:all 0.3s ease;
    line-height:1.7;
}

h1,h2,h3{
    font-weight:700;
}

h2{
    font-size:2.2rem;
    margin-bottom:25px;
    position:relative;
}

h2::after{
    content:"";
    width:60px;
    height:4px;
    background:var(--primary);
    position:absolute;
    bottom:-10px;
    left:0;
    border-radius:5px;
}

/* =========================
   HERO SECTION
========================= */

.hero{
    height:90vh;
    background:url('https://images.unsplash.com/photo-1509395176047-4a66953fd231') center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
}

.hero::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background:linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.6));
}

.hero-content{
    position:relative;
    z-index:2;
    color:#fff;
    max-width:800px;
    padding:20px;
}

.hero h1{
    font-size:3.5rem;
    margin-bottom:20px;
}

.hero p{
    font-size:1.2rem;
    opacity:0.9;
}

/* =========================
   NAVBAR
========================= */

nav{
    background:var(--card);
    padding:18px;
    display:flex;
    justify-content:center;
    gap:30px;
    box-shadow:var(--shadow);
    position:sticky;
    top:0;
    z-index:1000;
}

nav a{
    text-decoration:none;
    color:var(--text);
    font-weight:500;
    position:relative;
    transition:0.3s;
}

nav a::after{
    content:"";
    position:absolute;
    width:0;
    height:2px;
    background:var(--primary);
    bottom:-5px;
    left:0;
    transition:0.3s;
}

nav a:hover::after{
    width:100%;
}

/* =========================
   CONTAINER
========================= */

.container{
    max-width:1200px;
    margin:80px auto;
    padding:0 20px;
}

/* =========================
   CARDS
========================= */

.card{
    background:var(--card);
    padding:35px;
    border-radius:20px;
    box-shadow:var(--shadow);
    margin-bottom:35px;
    transition:0.4s;
}

.card:hover{
    transform:translateY(-8px);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:35px;
}

/* =========================
   IMAGES
========================= */

.section-image{
    width:100%;
    border-radius:20px;
    margin:30px 0;
    box-shadow:var(--shadow);
}

/* =========================
   STATS
========================= */

.stats{
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:white;
    padding:80px 20px;
    text-align:center;
}

.stat-box{
    font-size:2.5rem;
    font-weight:700;
    margin-bottom:10px;
}

/* =========================
   ADS
========================= */

.ads{
    margin:60px 0;
    padding:30px;
    border-radius:15px;
    background:var(--card);
    box-shadow:var(--shadow);
    text-align:center;
}

/* =========================
   FOOTER
========================= */

footer{
    background:var(--card);
    padding:50px 20px;
    text-align:center;
    margin-top:80px;
    box-shadow:var(--shadow);
}

.footer-links{
    margin-top:20px;
}

.footer-links a{
    margin:0 15px;
    text-decoration:none;
    color:var(--text);
    font-size:0.9rem;
    transition:0.3s;
}

.footer-links a:hover{
    color:var(--primary);
}

/* =========================
   DARK MODE BUTTON
========================= */

.toggle-btn{
    position:fixed;
    top:20px;
    right:20px;
    background:var(--primary);
    border:none;
    padding:10px 18px;
    border-radius:30px;
    color:white;
    cursor:pointer;
    box-shadow:var(--shadow);
    transition:0.3s;
}

.toggle-btn:hover{
    background:var(--secondary);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

.hero h1{
    font-size:2.3rem;
}

h2{
    font-size:1.8rem;
}

.container{
    margin:50px auto;
}

}
