/* ===== VARIABLES Y RESET ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #6366f1, #0ea5e9, #10b981);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.25);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand {
    color: var(--dark);
    -webkit-text-fill-color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 0.4rem;
    }
}

/* Header-specific notification and username adjustments */
.nav-actions .notification-container {
    position: relative; /* override global fixed toast style when inside header */
    top: auto;
    right: auto;
    z-index: 10;
    max-width: 260px;
}

.notification-btn {
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .notification-btn span:not(.notification-badge) { display: none; }
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
}

.username-display {
    display: none; /* shown via JS when user is logged in */
    white-space: nowrap;
}

/* Dropdown: oculto por defecto, solo visible con clase active */
.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 50;
}

.notification-dropdown.active {
    display: block;
}

.notification-dropdown .notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.notification-list {
    max-height: 280px;
    overflow-y: auto;
}

/* ===== BOTONES CON EFECTOS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Botón de prueba Firebase */
.firebase-test-btn {
    border-color: var(--success);
    color: var(--success);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.firebase-test-btn:hover {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.firebase-test-btn.testing {
    animation: pulse 1s infinite;
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Efectos de animación */
.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
    }
}

.bounce-effect {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(14, 165, 233, 0.05) 50%, rgba(16, 185, 129, 0.05) 100%);
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.circle-4 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(0px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
        opacity: 0.4;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-weight: 500;
    animation: fadeInUp 1s ease 0.2s both;
}

.feature-item i {
    color: var(--primary);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* Efecto Glitch */
.glitch-effect {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-effect::before {
    color: #ff0000;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-effect::after {
    color: #00ffff;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
    }

    20% {
        clip-path: polygon(0 15%, 100% 15%, 100% 18%, 0 18%);
    }

    40% {
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    }

    60% {
        clip-path: polygon(0 25%, 100% 25%, 100% 28%, 0 28%);
    }

    80% {
        clip-path: polygon(0 40%, 100% 40%, 100% 43%, 0 43%);
    }

    100% {
        clip-path: polygon(0 5%, 100% 5%, 100% 8%, 0 8%);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: polygon(0 85%, 100% 85%, 100% 88%, 0 88%);
    }

    20% {
        clip-path: polygon(0 70%, 100% 70%, 100% 73%, 0 73%);
    }

    40% {
        clip-path: polygon(0 90%, 100% 90%, 100% 93%, 0 93%);
    }

    60% {
        clip-path: polygon(0 60%, 100% 60%, 100% 63%, 0 63%);
    }

    80% {
        clip-path: polygon(0 45%, 100% 45%, 100% 48%, 0 48%);
    }

    100% {
        clip-path: polygon(0 80%, 100% 80%, 100% 83%, 0 83%);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 2s ease 0.6s both;
}

/* ===== EDIFICIOS ANIMADOS HERO ===== */
.hero-buildings {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.9;
}

.building {
    animation: sway 4s ease-in-out infinite;
    transform-origin: center bottom;
}

.building-1 {
    animation-delay: 0s;
}

.building-2 {
    animation-delay: 0.5s;
}

.building-3 {
    animation-delay: 1s;
}

@keyframes sway {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    25% {
        transform: translateY(-8px) scaleY(1.01);
    }
    50% {
        transform: translateY(0) scaleY(1);
    }
    75% {
        transform: translateY(-5px) scaleY(1.005);
    }
}

/* Lights parpadeantes en edificios */
@keyframes windowGlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.building rect[fill="#00ffff"],
.building rect[fill="#ffd000"],
.building rect[fill="#ff006e"] {
    animation: windowGlow 3s ease-in-out infinite;
}

.building-1 rect[fill="#00ffff"] {
    animation-delay: calc(0.3s * var(--index));
}

/* ===== SECCIONES ===== */
.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.slide-in {
    animation: slideIn 0.8s ease both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CATEGORÍAS ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.category-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== PRODUCTOS ===== */
.filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary);
    background: white;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.5s ease both;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: bounce 1s ease infinite;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.price-original {
    color: var(--gray);
    text-decoration: line-through;
}

.discount {
    background: var(--danger);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-add-cart {
    flex: 1;
    padding: 0.6rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-add-cart:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

.btn-details {
    padding: 0.6rem 1rem;
    background: var(--light);
    border: 2px solid var(--gray);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-details:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== CARRITO BADGE ===== */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    animation: pulse 1.5s infinite;
}

/* ===== MODALES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: var(--shadow-hover);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    .suggestion-btn:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    /* End of styles.css — corrupted trailing bytes removed */
}

.close-modal:hover {
    color: var(--danger);
    transform: scale(1.2);
}

/* ===== NOTIFICACIONES ===== */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid;
}

.notification.success {
    border-left-color: var(--success);
    background: #f0fdf4;
}

.notification.error {
    border-left-color: var(--danger);
    background: #fef2f2;
}

.notification.warning {
    border-left-color: var(--warning);
    background: #fffbeb;
}

.notification.info {
    border-left-color: var(--secondary);
    background: #f0f9ff;
}

.notification-icon {
    font-size: 1.25rem;
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error .notification-icon {
    color: var(--danger);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

.notification.info .notification-icon {
    color: var(--secondary);
}

.notification-message {
    flex: 1;
    color: var(--dark);
    font-weight: 500;
}

.notification-close {
    cursor: pointer;
    color: var(--gray);
    font-size: 1.2rem;
    transition: var(--transition);
}

.notification-close:hover {
    color: var(--dark);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.notification.removing {
    animation: slideOutRight 0.4s ease;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-summary {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px dashed #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Checkout Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
}

.form-section h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.shipping-option input {
    display: none;
}

.option-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: var(--transition);
    background: white;
}

.shipping-option input:checked+.option-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.option-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.option-card .price {
    font-weight: 700;
    color: var(--success);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option input {
    display: none;
}

.payment-option input:checked+* {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-option i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 1.5rem;
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 800;
    border-top: 2px solid var(--primary);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Auth Modal */
.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px 2px 0 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form.hidden {
    display: none;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILIDADES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Animación de carga */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}


/* ===== ESTRELLAS DE CALIFICACIÓN ===== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.5rem 0;
}

.rating-value {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
    margin-left: 0.3rem;
}

.rating-count {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ===== MEJORAS DE PRODUCT CARD ===== */
.product-card {
    /* ... estilos existentes ... */
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0;
}

.feature-tag {
    background: var(--light);
    color: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.product-stock {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
    margin-top: 0.5rem;
}

.product-stock.low {
    color: var(--warning);
}

.product-stock.out {
    color: var(--danger);
}

/* ===== BADGES MEJORADOS ===== */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ===== BOTONES DE ACCIÓN MEJORADOS ===== */
.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-wishlist {
    width: 44px;
    height: 44px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.btn-add-cart {
    /* ... estilos existentes ... */
}

.btn-add-cart:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none !important;
}


.field-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    animation: fadeIn 0.2s ease;
}

.field-error i {
    margin-top: 2px;
}

.form-input.error {
    border-color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.05);
}

.form-input.success {
    border-color: var(--success) !important;
    background: rgba(16, 185, 129, 0.05);
}

/* ===== MODAL DE DETALLES DEL PRODUCTO ===== */
.product-modal .modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    overflow: hidden;
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

.stars i {
    margin-right: 2px;
}

.rating-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 1.3rem;
    color: var(--gray);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.product-description h3,
.product-features h3,
.product-specifications h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-description h3 i,
.product-features h3 i,
.product-specifications h3 i {
    color: var(--primary);
}

.product-description p {
    color: #475569;
    line-height: 1.7;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #475569;
}

.product-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--light);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.spec-label {
    font-weight: 600;
    color: var(--dark);
}

.spec-value {
    color: var(--primary);
    font-weight: 700;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
}

#productQuantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    background: white;
}

#productQuantity:focus {
    outline: none;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

#viewInNewTab {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

#viewInNewTab:hover {
    background: var(--primary);
    color: white;
}

/* ===== RESPONSIVE PARA MODAL DE PRODUCTO ===== */
@media (max-width: 768px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        order: 1;
    }

    .product-info {
        order: 2;
    }

    .main-image {
        height: 300px;
    }

    .product-header h2 {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-selector {
        justify-content: center;
    }
}

/* ===== MODAL DE PERFIL DE USUARIO ===== */
.profile-modal .modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow);
}

.profile-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
}

.profile-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    color: var(--gray);
}

.profile-tab.active {
    color: var(--primary);
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px 2px 0 0;
}

.profile-tab:hover:not(.active) {
    color: var(--dark);
}

.profile-tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Orders Tab */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading-orders {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.loading-orders i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.order-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.order-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-id {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.order-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.order-status.processing {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.order-status.shipped {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.order-status.delivered {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.order-status.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-item-image {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.order-item-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.order-total {
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-option:hover {
    background: rgba(99, 102, 241, 0.02);
    border-color: var(--primary);
}

.checkbox-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox-option span {
    color: var(--dark);
    font-weight: 500;
}

/* Addresses */
.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.address-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.address-type {
    font-weight: 700;
    color: var(--primary);
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

.address-actions button {
    padding: 0.25rem 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.address-actions .edit-btn {
    color: var(--primary);
}

.address-actions .edit-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.address-actions .delete-btn {
    color: var(--danger);
}

.address-actions .delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.address-content p {
    margin: 0.25rem 0;
    color: var(--gray);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* ===== RESPONSIVE PARA MODAL DE PERFIL ===== */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-tabs {
        flex-direction: column;
    }

    .profile-tab {
        text-align: center;
    }

    .order-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .order-item-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-total {
        text-align: left;
    }
}

/* ===== CHATBOT IA ===== */
.chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot.active .chatbot-window {
    display: flex;
}

.chatbot-header {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chatbot-status.online::before {
    content: '●';
    color: #10b981;
    margin-right: 0.25rem;
}

.chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 80%;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message.bot-message {
    align-self: flex-start;
}

.message.bot-message .message-avatar {
    background: var(--gradient);
    color: white;
}

.message.bot-message .message-content {
    background: #f1f5f9;
    color: var(--dark);
    border-radius: 18px 18px 18px 4px;
    padding: 0.75rem 1rem;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.user-message .message-content {
    background: var(--primary);
    color: white;
    border-radius: 18px 18px 4px 18px;
    padding: 0.75rem 1rem;
}

/* Tarjeta de Producto en Chat */
.chat-product-card {
    background: #f8fafc;
    border-radius: 12px;
    margin: 8px;
    padding: 10px;
    display: flex;
    gap: 12px;
    border: 1px solid #e2e8f0;
    animation: fadeInUp 0.3s ease;
}
.chat-product-card:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.chat-product-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
}
.chat-product-details h5 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark);
}
.chat-product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    display: block;
}
.chat-product-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}
.btn-chat-add, .btn-chat-view {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-chat-add { background: var(--primary); color: white; font-weight: bold; }
.btn-chat-view { background: white; border: 1px solid var(--primary); color: var(--primary); font-weight: 500; }
.btn-chat-add:hover { transform: scale(1.05); background: var(--primary-dark); }
.btn-chat-view:hover { background: var(--light); }

.message-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.25rem;
    display: block;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#chatbotInput {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

#chatbotInput:focus {
    border-color: var(--primary);
}

#chatbotSend {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chatbotSend:hover {
    transform: scale(1.1);
}

.chatbot-typing {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* ===== RESPONSIVE CHATBOT ===== */
@media (max-width: 768px) {
    .chatbot {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 120px);
        bottom: 80px;
        right: -10px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ===== SUGERENCIAS RÁPIDAS ===== */
.quick-replies {
    margin: 1rem 0;
}

.suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    color: var(--dark);
}

.suggestion-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}/�*� �=�=�=�=�=� �N�O�T�I�F�I�C�A�C�I�O�N�E�S� �=�=�=�=�=� �*�/�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�c�o�n�t�a�i�n�e�r� �{�
� � � � �p�o�s�i�t�i�o�n�:� �r�e�l�a�t�i�v�e�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�b�t�n� �{�
� � � � �p�o�s�i�t�i�o�n�:� �r�e�l�a�t�i�v�e�;�
� � � � �m�a�r�g�i�n�-�r�i�g�h�t�:� �0�.�5�r�e�m�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�b�a�d�g�e� �{�
� � � � �p�o�s�i�t�i�o�n�:� �a�b�s�o�l�u�t�e�;�
� � � � �t�o�p�:� �-�8�p�x�;�
� � � � �r�i�g�h�t�:� �-�8�p�x�;�
� � � � �b�a�c�k�g�r�o�u�n�d�:� �#�e�f�4�4�4�4�;�
� � � � �c�o�l�o�r�:� �w�h�i�t�e�;�
� � � � �b�o�r�d�e�r�-�r�a�d�i�u�s�:� �5�0�%�;�
� � � � �w�i�d�t�h�:� �1�8�p�x�;�
� � � � �h�e�i�g�h�t�:� �1�8�p�x�;�
� � � � �f�o�n�t�-�s�i�z�e�:� �0�.�7�r�e�m�;�
� � � � �f�o�n�t�-�w�e�i�g�h�t�:� �b�o�l�d�;�
� � � � �d�i�s�p�l�a�y�:� �f�l�e�x�;�
� � � � �a�l�i�g�n�-�i�t�e�m�s�:� �c�e�n�t�e�r�;�
� � � � �j�u�s�t�i�f�y�-�c�o�n�t�e�n�t�:� �c�e�n�t�e�r�;�
� � � � �b�o�r�d�e�r�:� �2�p�x� �s�o�l�i�d� �v�a�r�(�-�-�w�h�i�t�e�)�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�d�r�o�p�d�o�w�n� �{�
� � � � �p�o�s�i�t�i�o�n�:� �a�b�s�o�l�u�t�e�;�
� � � � �t�o�p�:� �1�0�0�%�;�
� � � � �r�i�g�h�t�:� �0�;�
� � � � �w�i�d�t�h�:� �3�5�0�p�x�;�
� � � � �m�a�x�-�h�e�i�g�h�t�:� �4�0�0�p�x�;�
� � � � �b�a�c�k�g�r�o�u�n�d�:� �w�h�i�t�e�;�
� � � � �b�o�r�d�e�r�-�r�a�d�i�u�s�:� �1�2�p�x�;�
� � � � �b�o�x�-�s�h�a�d�o�w�:� �0� �8�p�x� �3�2�p�x� �r�g�b�a�(�0�,� �0�,� �0�,� �0�.�1�2�)�;�
� � � � �b�o�r�d�e�r�:� �1�p�x� �s�o�l�i�d� �v�a�r�(�-�-�g�r�a�y�-�l�i�g�h�t�)�;�
� � � � �z�-�i�n�d�e�x�:� �1�0�0�0�;�
� � � � �o�p�a�c�i�t�y�:� �0�;�
� � � � �v�i�s�i�b�i�l�i�t�y�:� �h�i�d�d�e�n�;�
� � � � �t�r�a�n�s�f�o�r�m�:� �t�r�a�n�s�l�a�t�e�Y�(�-�1�0�p�x�)�;�
� � � � �t�r�a�n�s�i�t�i�o�n�:� �a�l�l� �0�.�3�s� �e�a�s�e�;�
� � � � �m�a�r�g�i�n�-�t�o�p�:� �0�.�5�r�e�m�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�d�r�o�p�d�o�w�n�.�a�c�t�i�v�e� �{�
� � � � �o�p�a�c�i�t�y�:� �1�;�
� � � � �v�i�s�i�b�i�l�i�t�y�:� �v�i�s�i�b�l�e�;�
� � � � �t�r�a�n�s�f�o�r�m�:� �t�r�a�n�s�l�a�t�e�Y�(�0�)�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�h�e�a�d�e�r� �{�
� � � � �p�a�d�d�i�n�g�:� �1�r�e�m� �1�.�5�r�e�m�;�
� � � � �b�o�r�d�e�r�-�b�o�t�t�o�m�:� �1�p�x� �s�o�l�i�d� �v�a�r�(�-�-�g�r�a�y�-�l�i�g�h�t�)�;�
� � � � �d�i�s�p�l�a�y�:� �f�l�e�x�;�
� � � � �j�u�s�t�i�f�y�-�c�o�n�t�e�n�t�:� �s�p�a�c�e�-�b�e�t�w�e�e�n�;�
� � � � �a�l�i�g�n�-�i�t�e�m�s�:� �c�e�n�t�e�r�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�h�e�a�d�e�r� �h�4� �{�
� � � � �m�a�r�g�i�n�:� �0�;�
� � � � �f�o�n�t�-�s�i�z�e�:� �1�.�1�r�e�m�;�
� � � � �f�o�n�t�-�w�e�i�g�h�t�:� �6�0�0�;�
� � � � �c�o�l�o�r�:� �v�a�r�(�-�-�d�a�r�k�)�;�
�}�
�
�.�b�t�n�-�l�i�n�k� �{�
� � � � �b�a�c�k�g�r�o�u�n�d�:� �n�o�n�e�;�
� � � � �b�o�r�d�e�r�:� �n�o�n�e�;�
� � � � �c�o�l�o�r�:� �v�a�r�(�-�-�p�r�i�m�a�r�y�)�;�
� � � � �f�o�n�t�-�s�i�z�e�:� �0�.�8�5�r�e�m�;�
� � � � �c�u�r�s�o�r�:� �p�o�i�n�t�e�r�;�
� � � � �p�a�d�d�i�n�g�:� �0�;�
� � � � �t�e�x�t�-�d�e�c�o�r�a�t�i�o�n�:� �u�n�d�e�r�l�i�n�e�;�
�}�
�
�.�b�t�n�-�l�i�n�k�:�h�o�v�e�r� �{�
� � � � �c�o�l�o�r�:� �v�a�r�(�-�-�p�r�i�m�a�r�y�-�d�a�r�k�)�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�l�i�s�t� �{�
� � � � �m�a�x�-�h�e�i�g�h�t�:� �3�0�0�p�x�;�
� � � � �o�v�e�r�f�l�o�w�-�y�:� �a�u�t�o�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�i�t�e�m� �{�
� � � � �p�a�d�d�i�n�g�:� �1�r�e�m� �1�.�5�r�e�m�;�
� � � � �b�o�r�d�e�r�-�b�o�t�t�o�m�:� �1�p�x� �s�o�l�i�d� �v�a�r�(�-�-�g�r�a�y�-�l�i�g�h�t�)�;�
� � � � �d�i�s�p�l�a�y�:� �f�l�e�x�;�
� � � � �a�l�i�g�n�-�i�t�e�m�s�:� �f�l�e�x�-�s�t�a�r�t�;�
� � � � �g�a�p�:� �0�.�7�5�r�e�m�;�
� � � � �c�u�r�s�o�r�:� �p�o�i�n�t�e�r�;�
� � � � �t�r�a�n�s�i�t�i�o�n�:� �b�a�c�k�g�r�o�u�n�d�-�c�o�l�o�r� �0�.�2�s� �e�a�s�e�;�
� � � � �p�o�s�i�t�i�o�n�:� �r�e�l�a�t�i�v�e�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�i�t�e�m�:�h�o�v�e�r� �{�
� � � � �b�a�c�k�g�r�o�u�n�d�-�c�o�l�o�r�:� �v�a�r�(�-�-�g�r�a�y�-�l�i�g�h�t�)�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�i�t�e�m�:�l�a�s�t�-�c�h�i�l�d� �{�
� � � � �b�o�r�d�e�r�-�b�o�t�t�o�m�:� �n�o�n�e�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�i�c�o�n� �{�
� � � � �w�i�d�t�h�:� �3�2�p�x�;�
� � � � �h�e�i�g�h�t�:� �3�2�p�x�;�
� � � � �b�o�r�d�e�r�-�r�a�d�i�u�s�:� �5�0�%�;�
� � � � �b�a�c�k�g�r�o�u�n�d�:� �v�a�r�(�-�-�p�r�i�m�a�r�y�)�;�
� � � � �c�o�l�o�r�:� �w�h�i�t�e�;�
� � � � �d�i�s�p�l�a�y�:� �f�l�e�x�;�
� � � � �a�l�i�g�n�-�i�t�e�m�s�:� �c�e�n�t�e�r�;�
� � � � �j�u�s�t�i�f�y�-�c�o�n�t�e�n�t�:� �c�e�n�t�e�r�;�
� � � � �f�o�n�t�-�s�i�z�e�:� �0�.�9�r�e�m�;�
� � � � �f�l�e�x�-�s�h�r�i�n�k�:� �0�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�c�o�n�t�e�n�t� �{�
� � � � �f�l�e�x�:� �1�;�
� � � � �m�i�n�-�w�i�d�t�h�:� �0�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�m�e�s�s�a�g�e� �{�
� � � � �f�o�n�t�-�s�i�z�e�:� �0�.�9�r�e�m�;�
� � � � �l�i�n�e�-�h�e�i�g�h�t�:� �1�.�4�;�
� � � � �c�o�l�o�r�:� �v�a�r�(�-�-�d�a�r�k�)�;�
� � � � �m�a�r�g�i�n�-�b�o�t�t�o�m�:� �0�.�2�5�r�e�m�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�t�i�m�e� �{�
� � � � �f�o�n�t�-�s�i�z�e�:� �0�.�7�5�r�e�m�;�
� � � � �c�o�l�o�r�:� �v�a�r�(�-�-�g�r�a�y�)�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�u�n�r�e�a�d�-�d�o�t� �{�
� � � � �w�i�d�t�h�:� �8�p�x�;�
� � � � �h�e�i�g�h�t�:� �8�p�x�;�
� � � � �b�o�r�d�e�r�-�r�a�d�i�u�s�:� �5�0�%�;�
� � � � �b�a�c�k�g�r�o�u�n�d�:� �v�a�r�(�-�-�p�r�i�m�a�r�y�)�;�
� � � � �p�o�s�i�t�i�o�n�:� �a�b�s�o�l�u�t�e�;�
� � � � �r�i�g�h�t�:� �1�r�e�m�;�
� � � � �t�o�p�:� �1�r�e�m�;�
� � � � �f�l�e�x�-�s�h�r�i�n�k�:� �0�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�i�t�e�m�.�u�n�r�e�a�d� �.�n�o�t�i�f�i�c�a�t�i�o�n�-�m�e�s�s�a�g�e� �{�
� � � � �f�o�n�t�-�w�e�i�g�h�t�:� �6�0�0�;�
�}�
�
�.�n�o�t�i�f�i�c�a�t�i�o�n�-�e�m�p�t�y� �{�
� � � � �p�a�d�d�i�n�g�:� �2�r�e�m� �1�.�5�r�e�m�;�
� � � � �t�e�x�t�-�a�l�i�g�n�:� �c�e�n�t�e�r�;�
� � � � �c�o�l�o�r�:� �v�a�r�(�-�-�g�r�a�y�)�;�
� � � � �f�o�n�t�-�s�t�y�l�e�:� �i�t�a�l�i�c�;�
�}�
�
�/�*� �=�=�=�=�=� �A�N�A�L�Y�T�I�C�S� �W�I�D�G�E�T�S� �=�=�=�=�=� �*�/�
�.�a�n�a�l�y�t�i�c�s�-�w�i�d�g�e�t� �{�
� � � � �b�a�c�k�g�r�o�u�n�d�:� �w�h�i�t�e�;�
� � � � �b�o�r�d�e�r�-�r�a�d�i�u�s�:� �1�2�p�x�;�
� � � � �p�a�d�d�i�n�g�:� �1�.�5�r�e�m�;�
� � � � �b�o�x�-�s�h�a�d�o�w�:� �0� �4�p�x� �1�2�p�x� �r�g�b�a�(�0�,� �0�,� �0�,� �0�.�0�8�)�;�
� � � � �b�o�r�d�e�r�:� �1�p�x� �s�o�l�i�d� �v�a�r�(�-�-�g�r�a�y�-�l�i�g�h�t�)�;�
�}�
�
�.�a�n�a�l�y�t�i�c�s�-�h�e�a�d�e�r� �{�
� � � � �d�i�s�p�l�a�y�:� �f�l�e�x�;�
� � � � �j�u�s�t�i�f�y�-�c�o�n�t�e�n�t�:� �s�p�a�c�e�-�b�e�t�w�e�e�n�;�
� � � � �a�l�i�g�n�-�i�t�e�m�s�:� �c�e�n�t�e�r�;�
� � � � �m�a�r�g�i�n�-�b�o�t�t�o�m�:� �1�r�e�m�;�
�}�
�
�.�a�n�a�l�y�t�i�c�s�-�t�i�t�l�e� �{�
� � � � �f�o�n�t�-�s�i�z�e�:� �1�.�1�r�e�m�;�
� � � � �f�o�n�t�-�w�e�i�g�h�t�:� �6�0�0�;�
� � � � �c�o�l�o�r�:� �v�a�r�(�-�-�d�a�r�k�)�;�
� � � � �m�a�r�g�i�n�:� �0�;�
�}�
�
�.�a�n�a�l�y�t�i�c�s�-�v�a�l�u�e� �{�
� � � � �f�o�n�t�-�s�i�z�e�:� �2�r�e�m�;�
� � � � �f�o�n�t�-�w�e�i�g�h�t�:� �7�0�0�;�
� � � � �c�o�l�o�r�:� �v�a�r�(�-�-�p�r�i�m�a�r�y�)�;�
� � � � �m�a�r�g�i�n�:� �0�;�
�}�
�
�.�a�n�a�l�y�t�i�c�s�-�c�h�a�n�g�e� �{�
� � � � �f�o�n�t�-�s�i�z�e�:� �0�.�8�5�r�e�m�;�
� � � � �f�o�n�t�-�w�e�i�g�h�t�:� �5�0�0�;�
�}�
�
�.�a�n�a�l�y�t�i�c�s�-�c�h�a�n�g�e�.�p�o�s�i�t�i�v�e� �{�
� � � � �c�o�l�o�r�:� �#�1�0�b�9�8�1�;�
�}�
�
�.�a�n�a�l�y�t�i�c�s�-�c�h�a�n�g�e�.�n�e�g�a�t�i�v�e� �{�
� � � � �c�o�l�o�r�:� �#�e�f�4�4�4�4�;�
�}�
�
�.�a�n�a�l�y�t�i�c�s�-�c�h�a�r�t� �{�
� � � � �h�e�i�g�h�t�:� �2�0�0�p�x�;�
� � � � �p�o�s�i�t�i�o�n�:� �r�e�l�a�t�i�v�e�;�
�}�
�
�.�a�n�a�l�y�t�i�c�s�-�g�r�i�d� �{�
� � � � �d�i�s�p�l�a�y�:� �g�r�i�d�;�
� � � � �g�r�i�d�-�t�e�m�p�l�a�t�e�-�c�o�l�u�m�n�s�:� �r�e�p�e�a�t�(�a�u�t�o�-�f�i�t�,� �m�i�n�m�a�x�(�2�5�0�p�x�,� �1�f�r�)�)�;�
� � � � �g�a�p�:� �1�.�5�r�e�m�;�
� � � � �m�a�r�g�i�n�-�t�o�p�:� �2�r�e�m�;�
�}�
�
�/�*� �R�e�s�p�o�n�s�i�v�e� �*�/�
�@�m�e�d�i�a� �(�m�a�x�-�w�i�d�t�h�:� �7�6�8�p�x�)� �{�
� � � � �.�n�o�t�i�f�i�c�a�t�i�o�n�-�d�r�o�p�d�o�w�n� �{�
� � � � � � � � �w�i�d�t�h�:� �3�0�0�p�x�;�
� � � � � � � � �r�i�g�h�t�:� �-�1�r�e�m�;�
� � � � �}�
�
� � � � �.�a�n�a�l�y�t�i�c�s�-�g�r�i�d� �{�
� � � � � � � � �g�r�i�d�-�t�e�m�p�l�a�t�e�-�c�o�l�u�m�n�s�:� �1�f�r�;�
� � � � �}�
�}�
�
� � � � �.�n�o�t�i�f�i�c�a�t�i�o�n�-�d�r�o�p�d�o�w�n� �{�
� � � � � � � � �w�i�d�t�h�:� �3�0�0�p�x�;�
� � � � � � � � �r�i�g�h�t�:� �-�1�r�e�m�;�
� � � � �}�
�
� � � � �.�a�n�a�l�y�t�i�c�s�-�g�r�i�d� �{�
� � � � � � � � �g�r�i�d�-�t�e�m�p�l�a�t�e�-�c�o�l�u�m�n�s�:� �1�f�r�;�
� � � � �}�
�}�
�
�