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

:root {
    --primary-red: #8B0000;
    --secondary-red: #A0001C;
    --dark-gray: #2F2F2F;
    --medium-gray: #4A4A4A;
    --light-gray: #E8E8E8;
    --white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* Hero Carousel */
.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-gray), var(--medium-gray));
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}

.carousel-item.active {
    display: flex;
}

.carousel-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(139, 0, 0, 0.9);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sedes Section */
.sedes {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 3rem;
}

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

.sede-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sede-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.sede-header {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.sede-header h3 {
    font-size: 1.5rem;
}

.sede-info {
    padding: 1.5rem;
}

.telefono {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.horarios {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.horarios p {
    margin: 0.3rem 0;
}

.sede-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--dark-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--medium-gray);
}

.btn-link {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-link:hover {
    background: var(--primary-red);
    color: var(--white);
}

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

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    animation: slideDown 0.3s;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-red);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--secondary-red);
}

/* Chatbot */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
    transition: transform 0.3s;
    z-index: 1500;
}

.chatbot-button:hover {
    transform: scale(1.1);
}

.chatbot-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1500;
    animation: slideUp 0.3s;
}

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

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-content {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.chatbot-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
}

.chatbot-message.bot {
    background: var(--light-gray);
    margin-right: 2rem;
}

.chatbot-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-option {
    padding: 0.8rem;
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-option:hover {
    background: var(--primary-red);
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
    opacity: 0.8;
}

/* Order Form */
.order-container h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.products-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.product-item {
    background: var(--light-gray);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Menu 3D */
.menu3d-book {
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.menu3d-page {
    width: 400px;
    height: 500px;
    background: white;
    border: 2px solid var(--dark-gray);
    border-radius: 10px;
    padding: 2rem;
    margin: 0 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.5s;
}

.menu3d-page:hover {
    transform: scale(1.05);
}

.product-card {
    text-align: center;
}

.product-emoji {
    font-size: 4rem;
    margin: 1rem 0;
}

.product-name {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin: 1rem 0;
}

.product-description {
    color: var(--medium-gray);
    margin: 1rem 0;
    font-size: 0.9rem;
}

.product-prices {
    margin-top: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.menu-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.menu-nav-btn {
    padding: 0.8rem 2rem;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.menu-nav-btn:hover {
    background: var(--secondary-red);
}

.menu-nav-btn:disabled {
    background: var(--light-gray);
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav a {
        margin: 0 1rem;
    }

    .carousel-content h2 {
        font-size: 2rem;
    }

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

    .menu3d-page {
        width: 100%;
        margin: 0.5rem;
    }

    .chatbot-modal {
        width: calc(100% - 40px);
        right: 20px;
    }
}
