:root {
    --primary: #7c4dff;
    --secondary: #00bcd4;
    --bg: #f5f7fb;
    --dark: #222;
    --light: #ffffff;
    --accent: #ffe082;
}

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

html {
    scroll-behavior: smooth; /* desplazamiento suave */
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.whatsapp-float::before {
    content: "💬";
    font-size: 1rem;
}

.whatsapp-float:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        padding: 0.5rem 0.9rem;
        font-size: 0.82rem;
    }
}


/* HEADER (ya no sticky para que no tape el cuerpo) */
header {
    position: relative;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, #7c4dff, #00bcd4);
    padding: 1.2rem 0 3.8rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 3rem; /* separa logo y menú */
    flex-wrap: nowrap;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
}

.logo img {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    animation: logoGlow 5s ease-in-out infinite;
    transition: transform 0.25s ease;
}

.logo:hover img {
    transform: scale(1.06) rotate(-1.5deg);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
}

/* ANIMACIÓN DEL LOGO */
@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255,255,255,0);
    }
    50% {
        box-shadow: 0 0 14px rgba(255,255,255,0.8);
    }
}

/* NAV */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
}



/* BOTONES DEL MENÚ (ajustados más pequeños) */
nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.12);
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: background 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
    transform: translateY(0);
}

/* por si quedaba algún ::before de plantillas viejas */
header nav a::before {
    content: none !important;
}

nav a:hover {
    color: var(--accent);
    background: rgba(0,0,0,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Línea animada debajo */
nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 14%;
    height: 2px;
    width: 0;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 72%;
}

/* HAMBURGER MENU - estructura */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;           /* solo en mobile */
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.18);
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger span::before {
    position: absolute;
    top: -5px;
}

.hamburger span::after {
    position: absolute;
    top: 5px;
}

/* MENÚ RESPONSIVO – WRAP en pantallas medianas */
@media (max-width: 1050px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* MENÚ HAMBURGUESA – para móviles */
@media (max-width: 800px) {
    .navbar {
        position: relative;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    nav {
        flex: 0 0 auto; /* nav pequeño, el menú será flotante */
    }

    nav ul {
        position: absolute;
        top: 110%;      /* justo debajo del header */
        right: 0;
        background: rgba(13,15,20,0.98);
        padding: 0.9rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        border-radius: 1rem;
        box-shadow: 0 16px 30px rgba(0,0,0,0.35);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        min-width: 200px;
    }

    nav a {
        width: 100%;
        text-align: left;
        border-radius: 0.7rem;
    }

    /* animación del ícono cuando está abierto */
    #menu-toggle:checked + label.hamburger {
        background: rgba(0,0,0,0.35);
        box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    }

    #menu-toggle:checked + label.hamburger span {
        transform: rotate(45deg);
    }

    #menu-toggle:checked + label.hamburger span::before {
        transform: rotate(90deg);
        top: 0;
    }

    #menu-toggle:checked + label.hamburger span::after {
        opacity: 0;
    }

    /* mostrar el menú */
    #menu-toggle:checked ~ nav ul {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* HERO HOME */
.hero-home {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 2rem;
    margin-top: 0.3rem;
}

.hero-text h1 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    max-width: 550px;
    margin-bottom: 1rem;
}

/* BADGES */
.badge {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.4);
}

/* CONTENEDOR DE BADGES EN HOME */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1565c0;
}

/* BOTÓN PRINCIPAL – gradiente animado */
.btn-primary {
    display: inline-block;
    color: #1b1b1b;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    background-image: linear-gradient(120deg, #ffe082, #ffb74d, #ff80ab, #ffe082);
    background-size: 220% 220%;
    animation: gradientMove 6s ease infinite;
    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.32);
}

/* ANIMACIÓN GRADIENTE */
@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* HERO IMAGEN */
.hero-image {
    background: rgba(255,255,255,0.15);
    padding: 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    animation: floatHero 8s ease-in-out infinite;
}

/* SLIDER */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    min-height: 260px;
}

.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroFade 25s infinite;
    transition: transform 0.4s ease;
}

.hero-slider img:hover {
    transform: scale(1.03);
}

/* DELAYS (5 imágenes) */
.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 5s; }
.hero-slider img:nth-child(3) { animation-delay: 10s; }
.hero-slider img:nth-child(4) { animation-delay: 15s; }
.hero-slider img:nth-child(5) { animation-delay: 20s; }

/* ANIMACIONES HERO */
@keyframes heroFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes floatHero {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* HERO INTERIOR (otras páginas) */
.hero-inner {
    text-align: center;
    padding: 1rem 0 0.8rem;
}

.hero-inner h1 {
    font-size: 1.9rem;
    font-weight: 700;
}

.hero-inner p {
    font-size: 0.95rem;
    color: #e8e8e8;
}

/* SECCIONES CON FADE-UP */
.section {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.7s ease forwards;
}

/* pequeños delays por orden */
.section:nth-of-type(1) { animation-delay: 0.05s; }
.section:nth-of-type(2) { animation-delay: 0.15s; }
.section:nth-of-type(3) { animation-delay: 0.25s; }
.section:nth-of-type(4) { animation-delay: 0.35s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.3rem;
}

/* GRID */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .hero-home { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* CARD */
.card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f3f4f6;
    padding: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.card-tag {
    color: #777;
    font-size: 0.85rem;
}

.price {
    color: #2e7d32;
    font-weight: 700;
    margin-top: 0.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.7rem;
    color: #555;
    font-size: 0.85rem;
}

/* CATEGORY */
.category {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

/* enlace pequeño dentro de cards (Ver colección) */
.link-sm {
    font-size: 0.85rem;
    text-decoration: none;
    color: #1565c0;
    font-weight: 600;
}

.link-sm:hover {
    text-decoration: underline;
}

/* BLOQUES DE TEXTO (nosotros / políticas) */
.text-block {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

.text-block h2 {
    font-size: 1.2rem;
    margin: 0.8rem 0 0.25rem;
}

.text-block p {
    margin-bottom: 0.6rem;
}

/* CONTACTO */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* BARRA DE FILTROS DE PRODUCTOS */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
    background: #e3f2fd;
    color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15,23,42,0.12);
}

.filter-btn.active {
    background: linear-gradient(135deg, #7c4dff, #00bcd4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(15,23,42,0.25);
}


.form-card {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.7rem;
    border: 1px solid #cbd5e1;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

/* ENLACE WHATSAPP EN CARDS */
.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
}

.wa-link::before {
    content: "💬";
}

.wa-link:hover {
    text-decoration: underline;
}


/* FOOTER */
footer {
    background: #0d0f14;
    padding: 1.8rem 0 1rem;
    color: #ccc;
    margin-top: 3rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    margin-top: 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}

footer a {
    color: #b7b7b7;
}

footer a:hover {
    color: #fff;
}
