@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #2C1B18;
    /* Espresso */
    --secondary: #B8860B;
    /* Gold */
    --accent: #D4A373;
    /* Roasted bean */
    --bg-light: #FDFBF7;
    --text-dark: #1A0F0D;
    --text-light: #F5E8D3;
    --glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #966d09;
    transform: translateY(-3px);
}

/* Products Section */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
}

.product-price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Specific */
.admin-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Chatbot Estilos Premium */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

#chat-button {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: var(--transition);
}

#chat-button:hover { transform: scale(1.1); }

#chat-window {
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: absolute;
    bottom: 80px;
    right: 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
}

.bot-msg { background: #F0E6D2; align-self: flex-start; }
.user-msg { background: var(--secondary); color: white; align-self: flex-end; }

.chat-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: white;
}

.chat-footer input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    outline: none;
}

/* Botón flotante del Chatbot */
#chatbot-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
#chat-button { 
    width: 60px; height: 60px; background: #B8860B; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.3); font-size: 1.5rem;
}
/* Ventana de Chat */
#chat-window { 
    width: 330px; height: 450px; background: white; border-radius: 15px; 
    position: absolute; bottom: 80px; right: 0; display: none; 
    flex-direction: column; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.chat-header { background: #2C1B18; color: white; padding: 15px; font-weight: bold; }
.chat-body { flex: 1; padding: 15px; overflow-y: auto; background: #fdfbf7; display: flex; flex-direction: column; gap: 10px; }
.chat-footer { padding: 10px; display: flex; gap: 5px; border-top: 1px solid #eee; }
.msg { padding: 8px 12px; border-radius: 12px; max-width: 80%; font-size: 0.9rem; }
.bot { background: #EBD9B4; align-self: flex-start; }
.user { background: #B8860B; color: white; align-self: flex-end; }

