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

html {
    background-color: #dbdbd9; /* color del body */
    height: 100%;
    overflow-x: hidden; /* bloquea scroll horizontal si algo se desborda */
}

body {
    margin: 66px; /*margen*/
    min-height: calc(100vh - 32px); /* 16px arriba + 16px abajo */
    background-image: url('../img/index.jpg'); /*foto del fondo*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif; /*tipografia de la web*/
    border-radius: 180px;  /* bordes redondeados */
    overflow: hidden;
} 

/* -------------- NAVBAR y relacionados----------*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(3px);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem; /* ajusta este valor para mover el ícono respecto al logo */
}

.navbar-right {
    display: flex;
    align-items: center;
}

/* enlaces del navbar */ 
.nav-links {
    display: flex;
    list-style: none;
    gap: 5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #3a903d;
}

/* ícono menú hamburguesa */
.toggle-menu {
    font-size: 2.2rem;
    color: #333;
    cursor: pointer;
}

/* logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* iconos */
.nav-icons {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 1.5rem;
    color: #333;
}

/* ----------------- BOTÓN MI CUENTA -------------- */
.btn-sesion {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    background-color: transparent;
    padding: 6px 16px;
    border: 1px solid #666;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.btn-sesion:hover { /*efecto boton mi cuenta*/
    background-color: #f0f0f0;
    color: #000;
}

/*------------------ BOTÓN VER PRODUCTOS -------------------*/ 

.btn-verproductos {
    background-color: #C57A48; /* tono cálido tierra */
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color .3s ease, transform .2s ease;
    position: absolute;
    top: 80%; /*posición hacia arriba*/
    left: 50%; /*posición hacia la izquierda*/
    transform: translateY(-50%);
    opacity: 0;
    animation: fadeSlide 1.6s ease-out forwards;
}

/* boton hver suave (efecto) */
.btn-verproductos:hover {
    background-color: #B96C3A;
    transform: translateY(-2px);
}
@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%); /* empieza un poquito más arriba */
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%); /* vuelve al centro */
    }
}

/*----------------------- TEXTO --------------------*/

.hero h1 {
    font-size: 6rem;
    font-weight: 700;
    color: #000000;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 900px;
    line-height: 1.1;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    opacity: 0;
    animation: fadeSlide 1.6s ease-out forwards;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%); /* empieza un poquito más arriba */
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%); /* vuelve al centro */
    }
}

/*------------- RESPONSIVIDAD*------------------/
/* ===================== */
/*    RESPONSIVE 1024px  */
/* ===================== */
@media (max-width: 1024px) {

    .nav-links {
        gap: 2rem;
    }

    .hero h1 {
        font-size: 4.5rem;
        max-width: 700px;
    }

    .btn-verproductos {
        top: 78%;
    }
}

/* ===================== */
/*    TABLET 768px       */
/* ===================== */
@media (max-width: 768px) {

    body {
        margin: 30px;
        border-radius: 60px;
    }

    .navbar {
        top: 40px;
        width: 95%;
    }

    .nav-links {
        display: none; /* Se ocultan menú normal */
    }

    #mobile-toggle {
        display: block; /* hamburguesa visible */
        font-size: 2.4rem;
    }

    .hero h1 {
        font-size: 3.5rem;
        top: 50%;
    }

    .btn-verproductos {
        font-size: 1rem;
        top: 78%;
        padding: 10px 22px;
    }
}

/* ===================== */
/*    MOBILE 480px       */
/* ===================== */
@media (max-width: 480px) {

    body {
        margin: 16px;
        border-radius: 40px;
    }

    .navbar {
        padding: 0 1rem;
    }

    .nav-icons {
        gap: 1rem;
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.4rem;
        max-width: 90%;
        line-height: 1.2;
        top: 48%;
    }

    .btn-verproductos {
        top: 76%;
        font-size: .9rem;
        padding: 8px 18px;
    }
}

/* ===================== */
/* SMALL MOBILE 360px    */
/* ===================== */
@media (max-width: 360px) {

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

    .btn-verproductos {
        font-size: .85rem;
        padding: 8px 16px;
    }
}
