@import url("https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap");

:root {
    --bg-main: #0b1120;
    --primary: #15d7ab;
    --secondary: #0d7fc7;
    --primary-gradient: linear-gradient(135deg, #1c8f7e, #0d7fc7);
    --text-main: #ffffff;
    --text-soft: #cbd5f5;
    --card-bg: #0b2a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Onest", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1c8f7e 0%, #0d7fc7 50%, #0b1120 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animación de gradiente dinámico */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Elemento decorativo principal */
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(21, 215, 171, 0.2) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* Elemento decorativo secundario */
.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(13, 127, 199, 0.15) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

/* Animación flotante */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: slideInUp 1s ease-out;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
    background: linear-gradient(135deg, #ffffff 0%, #15d7ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: #e0f2f1;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Botón mejorado */
.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    padding: 16px 40px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(21, 215, 171, 0.25);
    transition: all 0.3s ease;
}

.hero .btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}

.hero .btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(21, 215, 171, 0.4);
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    to {
        transform: translateY(var(--distance, 100vh)) translateX(var(--x-movement, 0));
        opacity: 0;
    }
}

@keyframes particleGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(21, 215, 171, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(21, 215, 171, 0.8);
    }
}

/* Animaciones de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero::before {
        width: 400px;
        height: 400px;
        top: -30%;
        right: -15%;
    }

    .hero::after {
        width: 300px;
        height: 300px;
        bottom: -20%;
        left: -10%;
    }

    .hero .btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero::before {
        width: 250px;
        height: 250px;
    }

    .hero::after {
        width: 200px;
        height: 200px;
    }
}

/* Featured Section */
.featured {
    padding: 80px 20px;
    background: var(--bg-main);
}

.featured h2,
.categories h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(21, 215, 171, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.product-card:hover {
    border-color: rgba(21, 215, 171, 0.4);
    /* transform: translateY(-10px); */
    box-shadow: 0 20px 40px rgba(21, 215, 171, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: rgba(21, 215, 171, 0.05);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--bg-main);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.description {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 15px;
    min-height: 32px;
}

.price-section {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-soft);
    font-size: 14px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Categories Section */
.categories {
    padding: 80px 20px;
    background: rgba(21, 215, 171, 0.02);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid rgba(21, 215, 171, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(21, 215, 171, 0.1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--text-soft);
    font-size: 14px;
}

/* CTA Section */
.cta {
    background: var(--primary-gradient);
    padding: 80px 20px;
    text-align: center;
    margin: 60px 0 0 0;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: t var(--text-main);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(21, 215, 171, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(21, 215, 171, 0.15), rgba(13, 127, 199, 0.25));
    color: #ffffff;
    border: 1px solid rgba(21, 215, 171, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(21, 215, 171, 0.3), rgba(13, 127, 199, 0.4));
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(21, 215, 171, 0.25);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .featured h2,
    .categories h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilities */

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}
