/* Paleta de colores Morado Neón */
:root {
    --bg-purple-neon: #8a2be2;
    --bg-purple-dark: #5c00a3;
    --bg-card: #ffffff;
    --text-dark: #111111;
    --text-muted: #555555;
    --whatsapp-color: #25d366;
    --instagram-color: #e1306c;
    --accent-light: #cb80ff;
    --gold: #ffd166;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-purple-neon);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilitario: oculto visualmente pero accesible para lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

/* Encabezado */
.header {
    background-color: rgba(15, 5, 29, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--bg-purple-neon);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 36px;
    width: 36px;
    object-fit: cover;
    border-radius: 8px;
}

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

/* Enlaces de Navegación */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Buscador */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

#buscador-productos {
    width: 160px;
    padding: 8px 35px 8px 15px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: width 0.3s ease, background-color 0.3s ease;
}

#buscador-productos::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#buscador-productos:focus {
    width: 200px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
}

#buscador-productos:focus::placeholder {
    color: #999;
}

.nav-search .search-icon {
    position: absolute;
    right: 12px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    font-size: 0.85rem;
}

#buscador-productos:focus + .search-icon {
    color: #999;
}

.producto-oculto {
    display: none !important;
}

/* Acciones del encabezado: redes + carrito en una sola fila */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.btn-header-social {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-instagram {
    background-color: var(--instagram-color);
}

.btn-instagram:hover {
    background-color: #b32554;
    transform: translateY(-2px);
}

.btn-whatsapp-header {
    background-color: var(--whatsapp-color);
}

.btn-whatsapp-header:hover {
    background-color: #1eb956;
    transform: translateY(-2px);
}

/* Botón del Carrito */
.cart-icon-container {
    background-color: #ff9900;
    color: #111111;
    padding: 10px 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    user-select: none;
}

.cart-icon-container:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

#cart-count {
    background: #d32f2f;
    color: #ffffff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
}

/* Botón Hamburguesa (móvil) */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* Sección Hero */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 5, 29, 0.5) 0%, rgba(138, 43, 226, 0) 100%);
    padding: 8rem 1rem 3rem 1rem;
}

.badge {
    display: inline-block;
    background-color: #ffffff;
    color: var(--bg-purple-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    background-color: #ffffff;
    color: var(--bg-purple-dark);
    font-weight: 800;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--text-dark);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Grilla de Productos */
.products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.card-modal-trigger {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.product-image {
    height: 210px;
    min-height: 210px;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

/* Producto sin stock (sincronizado con el POS) */
.product-card.sin-stock {
    opacity: 0.75;
}

.product-card.sin-stock:hover {
    transform: none;
}

.agotado-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    min-height: 2.6em;
    margin: 0 0 0.4rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info p, .short-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bg-purple-dark);
    margin-top: auto;
    margin-bottom: 0.8rem;
    text-align: left;
}

.btn-card {
    display: block;
    text-align: center;
    padding: 0.7rem;
    background-color: var(--bg-purple-neon);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.var-hint {
    color: var(--bg-purple-dark);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    min-height: 0;
}

.var-selector {
    background: #f7f4fc;
    border: 1px solid #e3d9f5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.var-selector h4 {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--bg-purple-dark);
    margin: 0 0 8px 0;
}

.var-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.var-opt {
    border: 2px solid #d9cdf0;
    background: #ffffff;
    color: var(--text-dark);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.var-opt:hover:not(:disabled) {
    border-color: var(--bg-purple-neon);
}

.var-opt.seleccionado {
    background: var(--bg-purple-neon);
    border-color: var(--bg-purple-neon);
    color: #ffffff;
}

.var-opt:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

.var-stock {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 8px 0 0 0;
}

.var-stock strong {
    color: var(--bg-purple-dark);
}

.var-colors {
    margin-top: 10px;
}

.color-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-opt {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #d9cdf0;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0;
    transition: var(--transition);
    font-family: inherit;
}

.color-opt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-opt:hover:not(:disabled) {
    border-color: var(--bg-purple-neon);
    transform: scale(1.08);
}

.color-opt.seleccionado {
    border-color: var(--bg-purple-neon);
    box-shadow: 0 0 0 2px var(--bg-purple-neon);
}

.color-opt:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-card:hover {
    background-color: var(--bg-purple-dark);
}

/* Backdrop común para modales */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9990;
}

.modal-backdrop.active {
    display: block;
}

/* Contenedor de modales de política y producto */
.modal-policy {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-policy.active {
    display: flex;
}

/* Modales de Políticas */
.modal-policy-content {
    background-color: #ffffff;
    color: var(--text-dark);
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    max-height: 85vh;
    overflow-y: auto;
    margin: auto;
}

.modal-policy-content h2 {
    font-size: 1.4rem;
    color: var(--bg-purple-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-policy-content h3 {
    font-size: 1.05rem;
    color: var(--bg-purple-dark);
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.modal-policy-content h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-top: 0.8rem;
}

.modal-policy-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.modal-policy-content strong {
    color: var(--bg-purple-dark);
}

/* Botón de cerrar (reset de estilos de <button>) */
.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #999999;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 50%;
}

.close-modal:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.06);
}

/* Modal de Producto */
.modal-product-container {
    background-color: #1e1b26;
    color: #ffffff;
    width: 100%;
    max-width: 950px;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 90vh;
}

/* Galería del Modal */
.gallery-selector {
    display: none !important;
}

.modal-product-media {
    flex: 1;
    background-color: #14121a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.main-image-view {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.img-display {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: none;
}

.modal-product-media input.gallery-selector:nth-of-type(1):checked ~ .main-image-view .img-1,
.modal-product-media input.gallery-selector:nth-of-type(2):checked ~ .main-image-view .img-2,
.modal-product-media input.gallery-selector:nth-of-type(3):checked ~ .main-image-view .img-3 {
    display: block !important;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.thumb-item {
    width: 55px;
    height: 55px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    background-color: #000;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover {
    opacity: 0.9;
}

.modal-product-media input.gallery-selector:nth-of-type(1):checked ~ .gallery-thumbnails label[for*="1"],
.modal-product-media input.gallery-selector:nth-of-type(2):checked ~ .gallery-thumbnails label[for*="2"],
.modal-product-media input.gallery-selector:nth-of-type(3):checked ~ .gallery-thumbnails label[for*="3"] {
    border-color: var(--accent-light);
    opacity: 1;
}

/* Detalles del Producto en el Modal */
.modal-product-details {
    flex: 1;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.modal-product-details h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.modal-price {
    font-size: 1.3rem;
    color: var(--accent-light);
    font-weight: 800;
    margin-bottom: 15px;
}

.modal-description h4 {
    font-size: 0.8rem;
    color: #a1a1aa;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.modal-description p {
    font-size: 0.92rem;
    color: #d4d4d8;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.modal-actions .btn-card {
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-add-cart {
    background-color: #ff9900;
    color: #111111;
    font-weight: 800;
}

.btn-add-cart:hover {
    background-color: #e68a00;
    color: #111111;
}

.btn-mp-link {
    background-color: #009ee3;
}

.btn-mp-link:hover {
    background-color: #0089c4;
}

.btn-wa-link {
    background-color: var(--whatsapp-color);
}

.btn-wa-link:hover {
    background-color: #1eb956;
}

.modal-btn-buy {
    width: 100%;
    text-align: center;
}

/* Sección Nosotros */
.about {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.about-container > p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--bg-purple-neon);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

/* Sección Contacto */
.contact {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem 1.5rem;
    text-align: center;
}

.contact-container > p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background-color: var(--bg-card);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item i {
    font-size: 2.2rem;
    color: var(--bg-purple-neon);
    margin-bottom: 0.8rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--bg-purple-dark);
    text-decoration: none;
    font-weight: 700;
    word-break: break-all;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Botón Flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Pie de Página */
.footer {
    background-color: rgba(15, 5, 29, 0.95);
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 2px solid var(--bg-purple-neon);
}

.slogan {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.quick-links a {
    color: #dddddd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.quick-links a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.separator {
    color: #666666;
}

.copyright {
    color: #aaaaaa;
    font-size: 0.85rem;
}

/* Modal del Carrito Lateral */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: flex-end;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: rgba(15, 5, 29, 0.98);
    color: #ffffff;
    width: 100%;
    max-width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    border-left: 2px solid var(--bg-purple-neon);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-purple-dark);
    padding: 18px 20px;
    border-bottom: 2px solid var(--gold);
}

.cart-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
    background: none;
    border: none;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    padding: 0 4px;
}

.close-cart:hover {
    color: var(--gold);
    transform: scale(1.15);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.03);
}

/* Filas simplificadas del carrito */
.cart-item-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    margin-right: 10px;
}

.cart-item-price-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-price {
    font-weight: bold;
    color: var(--gold);
}

.qty-btn {
    background: rgba(255, 209, 102, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--gold);
    color: #111;
}

.cart-item-qty {
    color: #ffffff;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.3rem;
    cursor: pointer;
    font-weight: bold;
    padding: 0 5px;
    line-height: 1;
    transition: var(--transition);
}

.btn-remove-item:hover {
    color: #ff0000;
    transform: scale(1.15);
}

.cart-empty {
    color: #aaaaaa;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.cart-footer {
    border-top: 2px solid var(--gold);
    background-color: var(--bg-purple-dark);
    padding: 18px 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.cart-total strong {
    color: var(--gold);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-actions .btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-size: 0.9rem;
    padding: 0.8rem;
    border-radius: 10px;
}

button.cart-actions .btn-card,
.cart-actions button.btn-card {
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    color: #ffffff;
}

button.btn-card:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ====== Checkout (finalizar compra) ====== */
.checkout-content {
    max-width: 560px;
}

.checkout-steps {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.checkout-steps li {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f1eef7;
    border-radius: 20px;
    padding: 6px 4px;
}

.checkout-steps li.active {
    color: #fff;
    background: var(--bg-purple-neon);
}

.checkout-resumen {
    background: #f7f4fc;
    border: 1px solid #e3d9f5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    max-height: 180px;
    overflow-y: auto;
}

.checkout-linea {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-dark);
    padding: 4px 0;
    border-bottom: 1px dashed #ddd3f0;
}

.checkout-linea:last-child {
    border-bottom: none;
}

.checkout-linea .co-cant {
    color: var(--bg-purple-dark);
    font-weight: 800;
}

.checkout-linea .co-sub {
    font-weight: 700;
    white-space: nowrap;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.checkout-total strong {
    color: var(--bg-purple-dark);
    font-size: 1.3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field.form-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-field input {
    padding: 10px 12px;
    border: 1.5px solid #d9cdf0;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-field input:focus {
    border-color: var(--bg-purple-neon);
}

.form-field input.input-error {
    border-color: #d32f2f;
    background: #fff5f5;
}

.btn-checkout-pay {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-seguro {
    text-align: center;
    font-size: 0.8rem !important;
    margin-top: 10px;
}

.confirm-check {
    text-align: center;
    font-size: 3rem;
    color: #25d366;
    margin-bottom: 0.5rem;
}

.confirm-check + h2 {
    text-align: center;
}

.confirm-ayuda {
    text-align: center;
}

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

.btn-mp {
    background-color: #3483fa;
}

.btn-mp:hover {
    background-color: #2a6fd1;
}

.btn-wa {
    background-color: var(--whatsapp-color);
}

.btn-wa:hover {
    background-color: #1eb956;
}

/* Adaptación Móvil */
@media (max-width: 850px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(15, 5, 29, 0.98);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 2px solid var(--bg-purple-neon);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .btn-header-social span.btn-text-desktop {
        display: none;
    }

    .btn-header-social {
        padding: 0.45rem 0.6rem;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .modal-product-container {
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-product-details {
        padding: 20px;
    }

    .main-image-view {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .cart-icon-container {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .modal-policy-content {
        padding: 1.5rem;
    }
}