
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#000;
    color:#fff;
}

header{
    background:#111;
    padding:20px;
    text-align:center;
    border-bottom:3px solid red;
}

header h1{
    color:red;
}

nav{
    margin-top:15px;
}

nav a{
    color:#fff;
    margin:0 10px;
    text-decoration:none;
    font-weight:bold;
}

nav a:hover{
    color:red;
}

section{
    padding:40px;
    max-width:1200px;
    margin:auto;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
}

.card{
    border:1px solid red;
    padding:15px;
    text-align:center;
    background:#111;
}

.card img{
    width:100%;
    height:180px;
    object-fit:contain;
    background:#000;
}

form{
    max-width:600px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:12px;
}

input, textarea, select{
    padding:12px;
    border:none;
    outline:none;
    font-size:16px;
}

textarea{
    resize:vertical;
}

button{
    padding:14px;
    background:red;
    color:white;
    border:none;
    cursor:pointer;
    font-weight:bold;
    font-size:16px;
}

button:hover{
    background:#b30000;
}

footer{
    background:#111;
    text-align:center;
    padding:15px;
    border-top:3px solid red;
    margin-top:40px;
    font-size:14px;
}

.header-logo{
    background:#000;
    border-bottom:3px solid red;
    padding:30px 20px;
    text-align:center;
}

.logo-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.logo{
    width:120px;
    height:auto;
    max-width:100%;
}

.logo-container h1{
    color:white;
    font-size:28px;
    letter-spacing:1px;
}

.carousel{
    width:100%;
    max-width:1200px;
    height:280px;
    margin:auto;
    overflow:hidden;
    border-bottom:3px solid red;
    background:#000;
}

.carousel-track{
    display:flex;
    height:100%;
    animation: slide 18s infinite ease-in-out;
}

.carousel-track img{
    width:100%;
    height:100%;
    object-fit:cover; 
    flex-shrink:0;
}

@keyframes slide{
    0%, 16%   { transform:translateX(0); }
    20%, 36%  { transform:translateX(-100%); }
    40%, 56%  { transform:translateX(-200%); }
    60%, 76%  { transform:translateX(-300%); }
    80%, 96%  { transform:translateX(-400%); }
    100%      { transform:translateX(-500%); }
}

@media (max-width:768px){

    header{
        padding:15px 10px;
    }

    nav{
        display:flex;
        flex-direction:column;
        gap:10px;
    }

    nav a{
        display:block;
        padding:12px;
        background:#111;
        border:1px solid red;
        border-radius:6px;
    }

    section{
        padding:20px;
    }

    .grid{
        grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    }

    .card img{
        height:140px;
    }

    .logo{
        width:90px;
    }

    .logo-container h1{
        font-size:22px;
        text-align:center;
    }

    .carousel{
        height:200px;
    }
}

.search-box{
    max-width:400px;
    margin:20px auto;
}

.search-box input{
    width:100%;
    padding:12px;
    font-size:16px;
    border-radius:6px;
    border:2px solid red;
    outline:none;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle{
    display:none;
    font-size:28px;
    color:white;
    cursor:pointer;
}

/* ===== SOLO INDEX ===== */
@media (max-width:768px){

    /* solo si existe home-header */
    .home-header nav{
        display:none;
        flex-direction:column;
        background:#111;
        margin-top:15px;
    }

    .home-header nav.active{
        display:flex;
    }

    .home-header .menu-toggle{
        display:block;
        margin-top:10px;
    }

    .home-header nav a{
        padding:15px;
        border-top:1px solid red;
        text-align:center;
    }
}
