@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #4a2c1d;    /* Café oscuro del logo */
    --accent-brown: #5d3d2e; /* Café de 'La Casa de' */
    --green: #7e9e50;     /* Verde de las hojas */
    --yellow: #fecb32;    /* Amarillo de los limones */
    --bg-warm: #fbf6ef;   /* Crema del fondo del logo */
    --text: #2d3436;
    --lolo-bubble: #ffffff;
    --shadow: 0 4px 20px rgba(74, 44, 29, 0.08);
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
header {
    padding: 1.5rem;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.avatar {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.header-info {
    position: relative;
    flex: 1;
}

.header-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: none; /* Hidden by default */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.status {
    font-size: 0.8rem;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
}

/* Chat Area */
#chat-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.message {
    max-width: 85%;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.message.lolo {
    align-self: flex-start;
    background: var(--lolo-bubble);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow);
}

.message.visible {
    opacity: 1;
    transform: translateY(0);
}

.typing-indicator {
    padding: 1rem;
    background: var(--lolo-bubble);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    display: none;
    align-self: flex-start;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Map Message */
.map-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}

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

.modal-content {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content.large {
    max-width: 1000px;
    height: 85vh;
}

#modal-map {
    width: 100%;
    flex: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2010;
    border: none;
}

.map-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.btn-map {
    flex: 1;
    padding: 10px 5px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-map.primary {
    background-color: var(--green);
    color: white;
    border: none;
}

.btn-map.secondary {
    background-color: white;
    color: var(--text);
    border: 1px solid #ddd;
}

.btn-map:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}


.btn-menu {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    transition: var(--transition);
}

.btn-menu:hover {
    transform: scale(1.05);
}

/* Menu Modal Specifics */
.menu-content {
    padding: 2rem;
    text-align: center;
}

.menu-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--primary);
    white-space: pre-wrap;
}

.menu-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.menu-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.menu-footer {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    text-align: center;
    position: sticky;
    bottom: 0;
}

.btn-order {
    background: #27ae60;
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-order:hover {
    transform: translateY(-2px);
    background: #2ecc71;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}
/* Floating Buttons Common */
.floating-btn {
    height: 48px;
    width: auto;
    padding: 0 20px;
    color: white;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    gap: 10px;
    text-decoration: none;
}

.floating-btn.fixed {
    position: fixed;
    right: 20px;
    z-index: 1000;
}

.floating-btn svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    display: block;
    fill: white !important;
}

.floating-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Specific Buttons */
.btn-share-main {
    bottom: 30px;
    background: var(--primary);
}

.btn-directions-inner {
    background: #00838f;
    display: inline-flex;
}

.share-tray-fixed {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    border: 1px solid #eee;
}

.share-tray-fixed.active {
    display: flex;
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.share-item {
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.share-item:hover {
    background: var(--bg-warm);
}

footer {
    padding: 2.5rem 1.5rem;
    background: white;
    text-align: center;
    font-size: 0.85rem;
    color: #95a5a6;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    #chat-container {
        padding: 1rem;
    }
}
