/* Variables de color */
:root {
    --primary: #e67e22;
    --dark: #2c3e50;
    --light: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--light);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

header {
    background: var(--dark);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 130px; /* Tamaño aumentado para que los detalles sean visibles */
    width: auto;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0 15px;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.hero {
    height: 60vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.slide.active { opacity: 1; }

.section-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2rem;
    color: var(--dark);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Filtros de Tienda */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--dark);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.stock-badge {
    background: #27ae60;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
    margin: 15px 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s;
}

.slider-btn:hover { background: var(--primary); }
.prev { left: 10px; }
.next { right: 10px; }

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active { background: var(--primary); }

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

/* Estilos para el formulario de Asesoría */
.asesoria-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 50px auto;
}

.asesoria-form .form-group {
    margin-bottom: 20px;
}

.asesoria-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark);
}

.asesoria-form input, .asesoria-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.card-body { padding: 20px; }

.btn-primary, .btn-buy {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

footer {
    background: #111;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.socials {
    margin-top: 20px;
}

.socials a {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        flex-direction: row; /* Alinea imagen y texto horizontalmente */
        font-size: 1.1rem;
        gap: 12px;
        justify-content: center;
    }

    .logo-img {
        height: 60px; /* Tamaño más discreto para móviles */
    }

    .nav-links {
        flex-wrap: wrap; /* Permite que los links se acomoden si no caben */
        justify-content: center;
        gap: 5px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    .hero-content p {
        font-size: 1rem;
    }
}
