:root {
    --bg-color: #F6F4EF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --accent-color: #00D1A0;
    --neutral-color: #E9E7E2;
    --dark-bg: #121212;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.bg-neutral {
    background-color: var(--neutral-color);
}

.bg-dark {
    background-color: var(--dark-bg);
}

.text-white {
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(246, 244, 239, 0.4));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    top: 10px;
    width: 95%;
    padding: 0.6rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 244, 239, 0.8));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-login {
    background: transparent;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.sub-headline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    gap: 2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.6;
}

.badge-item i {
    color: var(--accent-color);
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img,
.image-wrapper video {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.08)) saturate(1.05);
    transition: var(--transition);
    mask-image: radial-gradient(circle at center, black 45%, rgba(0, 0, 0, 0.8) 65%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 45%, rgba(0, 0, 0, 0.8) 65%, transparent 95%);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 110%;
    height: 40%;
    background: linear-gradient(to top, var(--bg-color) 20%, transparent 100%);
    pointer-events: none;
}

.image-wrapper:hover img,
.image-wrapper:hover video {
    transform: translateY(-10px) scale(1.02);
}

/* Features */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card.card-image {
    padding: 0;
    overflow: hidden;
    display: flex;
    background: #000;
}

.feature-card.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0rem; /* Reduced because there is no text below now */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px; /* Increased height for the image-only card */
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Story Section */
.grid-2-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.rounded-img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.story-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-list i {
    color: var(--accent-color);
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.step {
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    opacity: 0.1;
    display: block;
    margin-bottom: -1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.step p {
    color: var(--text-secondary);
}

/* Specs */
.specs-grid-extended {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 4rem;
}

.spec-group h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-group ul {
    list-style: none;
}

.spec-group li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.spec-group li span {
    opacity: 0.6;
}

.spec-img img {
    width: 100%;
    border-radius: 16px;
    filter: brightness(0.9);
}

/* Buy Section */
.buy-card {
    background: var(--white);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.buy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.buy-image img {
    width: 100%;
    border-radius: 20px;
}

.buy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.includes {
    list-style: none;
    margin-bottom: 2.5rem;
}

.includes li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.shipping {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.shipping i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

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

.link-group h4 {
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.8rem;
}

.link-group a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.link-group a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.5;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--neutral-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.close-btn:hover {
    opacity: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: var(--bg-color);
    border-radius: 12px;
}

.item-details h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.item-details p {
    color: var(--accent-color);
    font-weight: 700;
}

.remove-item {
    margin-left: auto;
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--neutral-color);
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.empty-msg {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.5;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    display: none;
}

.modal.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.form-group input,
.form-select {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--neutral-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 209, 160, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.toggle-auth {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.toggle-auth a {
    color: var(--accent-color);
    font-weight: 600;
}

.user-info-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.order-summary {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.order-item-list {
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.order-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.order-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {

    .hero-grid,
    .grid-2-equal,
    .buy-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-cta,
    .hero-badges {
        justify-content: center;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid-extended {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

/* Store Page Layout - Grid Only */
.store-layout {
    padding-top: 20px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.store-product-card {
    background: white;
    border: 1px solid #eef2f5;
    border-radius: 20px;
    /* Sauvisar ángulos redondos */
    padding: 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Efecto flotante al pasar el mouse por toda la tarjeta */
.store-product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Queda flotante */
    transform: translateY(-10px);
}

.store-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fcfcfc;
}

.store-product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    /* Transición suave para el zoom */
}

/* El mouse pasa por la tarjeta -> la imagen se acerca */
.store-product-card:hover img {
    transform: scale(1.12);
    /* Se acerca la imagen */
}

.store-product-card h4 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 8px;
    font-weight: 600;
    flex-grow: 1;
}

.store-product-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.store-card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.store-product-card .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
}

/* Toasts Notification System */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #1e1e1e;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(130%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
}

.toast-error::before {
    content: '\f06a';
    color: #ef4444;
}

.toast.show {
    transform: translateX(0);
}