/* =========================
RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI', sans-serif;
    background:#fafafa;
}

/* ==========================
VARIABLES
========================== */

:root{
    --primary:#6C2BD9;
    --secondary:#00B4D8;
    --accent:#F72585;
    --dark:#1F1B2D;
    --light:#FFFFFF;
    --gray:#F5F7FA;
}

/* =========================
HEADER
========================= */

header{
    position:sticky;
    top:0;
    z-index:999;
    background:white;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

/* =========================
   AVISOS
========================= */

.avisos{
    background:#111827;
    color:white;
    text-align:center;
    padding:8px;
    font-size:.9rem;
}

/* =========================
   CONTENEDOR PRINCIPAL
========================= */

.grupo{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:15px 5%;
}

/* =========================
   LOGO
========================= */

.logo img{
    width:70px;
    height:auto;
}

/* =========================
   BUSCADOR
========================= */

.busqueda{
    flex:1;
    max-width:500px;
}

.busqueda input{
    width:100%;
    padding:12px 15px;
    border:1px solid #ddd;
    border-radius:30px;
    outline:none;
}

.busqueda input:focus{
    border-color:#ff6b00;
}

/* =========================
   NAVBAR
========================= */

.nav-links{
    display:flex;
    align-items:center;
    gap:30px;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:#333;
    font-weight:600;
    transition:.3s;
}

.nav-links a:hover{
    color:#ff6b00;
}

/* =========================
   DROPDOWN
========================= */

.dropdown{
    position:relative;
}

.submenu{
    position:absolute;
    top:100%;
    left:0;

    min-width:220px;

    background:white;

    list-style:none;

    border-radius:10px;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

    display:none;
}

.submenu li a{
    display:block;
    padding:12px 18px;
}

.submenu li a:hover{
    background:#f5f5f5;
}

/* Mostrar mediante JS */
.submenu.active{
    display:block;
}

/* =========================
   HAMBURGUESA
========================= */

.hamburguesa{
    display:none;
    background:none;
    border:none;
    font-size:2rem;
    cursor:pointer;
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){

    .grupo{
        flex-wrap:wrap;
    }

    .busqueda{
        order:3;
        width:100%;
        max-width:100%;
    }
}

/* =========================
   MOVIL
========================= */

@media(max-width:768px){

    .hamburguesa{
        display:block;
    }

    .navbar{
        width:100%;
        display:none;
    }

    .navbar.active{
        display:block;
    }

    .nav-links{
        flex-direction:column;
        gap:0;
        margin-top:20px;
    }

    .nav-links li{
        width:100%;
    }

    .nav-links a{
        display:block;
        padding:15px;
        border-bottom:1px solid #eee;
    }

    .submenu{
        position:static;
        box-shadow:none;
        background:#f7f7f7;
        border-radius:0;
    }
}

/* ==========================
HERO
========================== */

.hero{
    min-height: calc(100vh - 100px);
    padding:50px 8%;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:50px;

    background:
    linear-gradient(
        135deg,
        #6C2BD9,
        #8A2BE2,
        #00B4D8
    );

    color:white;
}

.hero h1{
    font-size:4rem;
    line-height:1.1;
    margin-bottom:20px;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:15px;
}

.btn{
    padding:15px 28px;
    border-radius:50px;
    font-weight:600;
}

.btn-primary{
    background:white;
    color:var(--primary);
}

.btn-outline{
    border:2px solid white;
    color:white;
}

.hero-image{
    display:flex;
    justify-content:center;
}

.hero-card{
    background:white;
    color:var(--dark);
    border-radius:25px;
    padding:30px;
    width:100%;
    max-width:450px;
    text-align:center;
}

.hero-card img{
    width:100%;
    max-width:300px;
}


/* ==========================
FOOTER
========================== */

footer{
    background:#1A1527;
    color:white;
    padding:60px 8%;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.footer-title{
    margin-bottom:15px;
}

/* ==========================
WHATSAPP
========================== */

.whatsapp{
    position:fixed;
    bottom:30px;
    right:30px;

    width:65px;
    height:65px;

    border-radius:50%;
    background:#25D366;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:2rem;
    color:white;

    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* ==========================
   HERO RESPONSIVE - TABLET
========================== */
@media (max-width: 992px) {

    .hero{
        min-height: auto;
        padding: 70px 6%;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content{
        order: 1;
    }

    .hero-image{
        order: 2;
    }

    .hero h1{
        font-size: 3rem;
    }

    .hero p{
        font-size: 1.1rem;
        max-width: 700px;
        margin: 0 auto 30px;
    }

    .hero-buttons{
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-card{
        max-width: 400px;
        margin: auto;
    }
}

/* ==========================
   HERO RESPONSIVE - MÓVIL
========================== */
@media (max-width: 768px) {

    .hero{
        padding: 50px 5%;
        gap: 30px;
    }

    .hero h1{
        font-size: 2.3rem;
        line-height: 1.2;
    }

    .hero p{
        font-size: 1rem;
    }

    .hero-buttons{
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn{
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .hero-card{
        padding: 20px;
        max-width: 320px;
    }

    .hero-card img{
        max-width: 220px;
    }
}

/* ==========================
   HERO RESPONSIVE - CELULARES PEQUEÑOS
========================== */
@media (max-width: 480px) {

    .hero{
        padding: 40px 20px;
    }

    .hero h1{
        font-size: 1.9rem;
    }

    .hero p{
        font-size: 0.95rem;
    }

    .hero-card{
        max-width: 280px;
    }

    .hero-card img{
        max-width: 180px;
    }
}