body{
    background-image: url(https://ns3.sinaptics.com/assets/ns3/assets2/ns3bg.jpg);
    background-color: black;
    margin: 0;
    padding: 0;
    font-family: Roboto;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

header.main-header{
    background-color: black;
}

header.main-header .inner{
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    background-size: cover;
    background-attachment: fixed;
    align-items: center;
    justify-content: space-between;
}

h2 {
    font-family: Poppins;
}

#main-logo {
    width: 110px;
    margin:1em 1em 1em 0;
    filter: brightness(1.5);
}

nav#navmenu ul {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 2em;
    padding: 0;
}

nav#navmenu ul li {
    display: inline-block;
}

nav#navmenu ul li a {
    font-family: Poppins;
    text-decoration: none;
    color: white;
    padding: 0.5em;
}

nav#navmenu ul ul {
    display: none;
}

a.btn-getstarted {
    font-family: 'Poppins';    
    color: black;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(45deg, #917639, #dbb45c, #feff00);
    text-align: center;
    border-radius: 17px 0;
    padding: 3px;
    font-size: 0.9em;
}

a.btn-getstarted .inner {
    background-color: black;
    color: white;
    padding: 0.8em;
    font-family: 'Roboto';
    margin: 0;
    border-radius: 12px 0;
}

section#banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #00000099;
    padding: 2em 0 3em;
}

section#banner h2 {
    color: white;
    font-size: 3em;
}

section#banner .product-description {
    color: white;
    font-size: 1.1em;
}


#banner .inner {
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

#banner .copy {
    color: #fbba00;
    font-size: 1.4em;
    text-shadow: 2px 1px black;
}

p.contraentrega-copy {
    color: white;
    font-size: 1.8em;
    font-style: italic;
    font-family: 'Poppins';
    font-weight: bold;
}

div#chatbox {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(145, 118, 57, 0.5);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 900;
    transform-origin: bottom right;
}

/* Normal state of the chatbox */
div#chatbox.chatbox-normal {
    width: 50%;
    flex-shrink: 0;
    height: 400px;
    margin-left: 20px;
}

/* Modal state of the chatbox */
div#chatbox.chatbox-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    height: 80vh;
    max-height: 800px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

@keyframes chatbox-modal-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Overlay for the modal */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    transition: opacity 0.4s ease-in-out;
}

.chat-header {
    background: linear-gradient(45deg, #000000, #1a1a1a);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(145, 118, 57, 0.5);
}

.chat-header h3 {
    color: white;
    margin: 0;
    font-family: 'Poppins';
    font-size: 1.2em;
}

.chat-header h3 span {
    color: #dbb45c;
}

.chat-controls {
    display: flex;
    gap: 5px;
}

.chat-controls button {
    background: none;
    border: none;
    color: #7c7c7c;
    cursor: pointer;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-controls button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.close-modal-btn {
    color: #dbb45c !important;
    font-weight: bold;
}

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message .content {
    background-color: rgba(40, 40, 40, 0.8);
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    font-size: 14px;
    color:#dedede;
}

.message.bot .content {
    border-top-left-radius: 0;
    border-left: 2px solid #dbb45c;
}

.message.user .content {
    background-color: rgba(145, 118, 57, 0.3);
    border-top-right-radius: 0;
    border-right: 2px solid #dbb45c;
}

.message .content p {
    margin: 0 0 5px 0;
    line-height: 1.4;
    color:#dedede;
}

.message .timestamp {
    font-size: 0.7em;
    color: #7c7c7c;
    display: block;
    text-align: right;
}

.chat-input {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(145, 118, 57, 0.5);
    background-color: rgba(20, 20, 20, 0.9);
}

.chat-input textarea {
    flex-grow: 1;
    background-color: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(145, 118, 57, 0.5);
    border-radius: 18px;
    padding: 10px 15px;
    color: white;
    font-family: 'Roboto';
    resize: none;
    height: 40px;
    outline: none;
    transition: all 0.2s ease;
}

.chat-input textarea:focus {
    border-color: #dbb45c;
    background-color: rgba(50, 50, 50, 0.8);
}

/* Loading indicator styles */
.message.bot.loading .content p {
    display: flex;
    align-items: center;
}

.message.bot.loading .dots {
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Error message style */
.message.bot.error .content p {
    color: #ff6b6b;
}

/* Markdown content styling */
.markdown-content {
    color: #dedede;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.markdown-content p {
    margin: 0 0 10px 0;
    color: #dedede;
}

.markdown-content p:last-child {
    margin-bottom: 0;
}

.markdown-content ul, 
.markdown-content ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.markdown-content li {
    margin-bottom: 5px;
}

.markdown-content a {
    color: #dbb45c;
    text-decoration: underline;
}

.markdown-content strong, 
.markdown-content b {
    font-weight: bold;
    color: #fff;
}

.markdown-content em, 
.markdown-content i {
    font-style: italic;
}

.markdown-content code {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
}

.markdown-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 0 0 10px 0;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 3px solid #dbb45c;
    margin: 0 0 10px 0;
    padding-left: 10px;
    color: #aaa;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4, 
.markdown-content h5, 
.markdown-content h6 {
    margin: 15px 0 10px 0;
    color: #dbb45c;
    font-weight: bold;
}

.markdown-content h1 { font-size: 1.4em; }
.markdown-content h2 { font-size: 1.3em; }
.markdown-content h3 { font-size: 1.2em; }
.markdown-content h4 { font-size: 1.1em; }
.markdown-content h5 { font-size: 1em; }
.markdown-content h6 { font-size: 0.9em; }

.chat-input .send-btn {
    background: linear-gradient(45deg, #917639, #dbb45c);
    border: none;
    border-radius: 18px;
    color: black;
    font-weight: bold;
    padding: 0 20px;
    cursor: pointer;
    font-family: 'Poppins';
    transition: all 0.2s ease;
}

.chat-input .send-btn:hover {
    background: linear-gradient(45deg, #dbb45c, #feff00);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(219, 180, 92, 0.5);
}

section#filter-bar{
    background-color: #00000099;
    padding-bottom: 1em;
}

section#filter-bar .inner{
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(45deg, black, #525266e0);
    border-radius: 1em;
    align-items: center;
}

section#filter-bar .inner a {
    color: #898997;
    text-decoration: none;
    padding: 10px;
    margin: 0.5em;
    background-color: #1f1f1f;
    border-bottom: 2px solid #474758;
    border-left: 2px solid #474758;
    border-radius: 1em;
}

section#filter-bar .inner a.active {
    color:white;
    border-bottom-color: #cda855;
    border-left-color: #be9c4e;
}

#main-search-input-container {
    font-family: Roboto;
    flex-grow: 1;
    display: flex;
    padding: 1em;
    justify-content: right;
    color: white;
    align-items: center;
}

select {
    padding: 5px;
    border-radius: 10px;
    vertical-align: middle;
}

input#main-search-input {
    font-family: Roboto;
    background-color: #000000;
    color: white;
    border: 2px solid gray;
    padding: 10px;
    border-radius: 10px;
    min-width: 240px;
}


section#portfolio {
    background-color: #00000099;
}

section#portfolio .inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.producto {
    width: calc(23% - 18px);
    padding: 1%;
    margin: 5px;
    border: 4px solid #ffffff59;
    text-align: center;
    background-color: white;
    background: linear-gradient(180deg, #c9c9dd 0%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 1) 90%, rgba(217, 217, 217, 1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    border-radius: 40px;
    transition: all 0.5s ease;
}

.producto:hover {
    /*border: 4px solid #dbb45c;*/
    background: linear-gradient(180deg, #c9c9dd 0%, rgba(255, 255, 255, 1) 5%, rgba(255, 255, 255, 1) 95%, rgba(217, 217, 217, 1) 100%);
    
}

.img-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.product-description {
    display: block;
    text-align: left;
    height: 5.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #575757;
    padding: 0.5em 1em;
}

.producto .img-fluid {
    width: 100%;
}

.producto h4 {
    font-size: 1.4em;
    color: #878787;
}

.producto h4 {
    font-size: 1.2em;
    color: #878787;
    font-family: Poppins;
    text-shadow: 0px -3px #ffffff;
}

.product-actions a {
    text-decoration: none;
    display: inline-block;
    /* border: 1px solid gray; */
    padding: 5px 10px;
    flex-grow: 1;
    color: black;
    /* border: 2px solid #333; */
    box-shadow: 1px 1px 6px 0px #b1b1b1;
    background-color: white;
}

.product-actions a:hover {
    background-color: #4da92a;
    color: white;
}

.product-actions a:first-child:hover {
    background-color: red;
}

.readmore {
    text-align: left;
    padding-left: 1em;
    margin-bottom: 1em;
}

.readmore a {
    color: #000000;
}

.card-price {
    opacity: 0.7;
    font-family: georgia;
    text-shadow: -1px -2px #8e7d1b;
	display: inline-block;
    width: auto;
    height: 38px;
    background: linear-gradient(301deg, #b7a854, #83710c, #beac46, #83710c, #c2b464);
    -moz-border-radius: 3px 4px 4px 3px;
    border-radius: 3px 4px 4px 3px;
    border-left: 1px solid #d2c372;
    margin-left: 19px;
    position: relative;
    color: white;
    font-weight: 300;
    font-size: 22px;
    line-height: 38px;
    padding: 0 10px 0 10px;
}

/* Makes the triangle */
.card-price:before {
	content: "";
	position: absolute;
	display: block;
	left: -19px;
	width: 0;
	height: 0;
	border-top: 19px solid transparent;
	border-bottom: 19px solid transparent;
	border-right: 19px solid #b1a24c;
}

/* Makes the circle */
.card-price:after {
	content: "";
	background-color: white;
	border-radius: 50%;
	width: 4px;
	height: 4px;
	display: block;
	position: absolute;
	left: -9px;
	top: 17px;
}

.product-actions {
    display: flex;
    width: 100%;
    gap: 4px;
    margin-top: 1em;
}

.product-actions a:first-child {
    border-radius: 20px 0 0 20px;
}

.product-actions a:last-child {
    border-radius: 0 20px 20px 0;
}

#main-footer{
    height: 5em;
    background-color: #00000099;
}

/* Share Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(145, 118, 57, 0.5);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    background: linear-gradient(45deg, #917639, #dbb45c);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

.close-modal {
    color: #000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
    color: #fff;
}

.share-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.share-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: all 0.2s ease;
}

.share-link i {
    font-size: 24px;
    margin-right: 15px;
}

.share-link.whatsapp {
    background-color: #25D366;
}

.share-link.facebook {
    background-color: #3b5998;
}

.share-link.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
}

.share-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
}

@media (max-width: 1024px) {
    .modal-content {
        width: 90%;
        margin: 15% auto;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    header.main-header .inner {
        padding: 1em;
    }

    nav#navmenu {
        display: none;
    }

    #banner .inner {
        flex-direction: column;
        padding: 0 1em;
        width: auto;
    }

    .producto {
        width: auto;
    }

    section#filter-bar .inner {
        flex-wrap: wrap;
    }

    div#chatbox.chatbox-normal {
        width: auto;
        margin: 0;
    }

    div#chatbox.chatbox-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 5% auto;
    }
}
