:root {
    --cafe: #5D4037;
    --cafe-oscuro: #3E2723;
    --naranja: #FF6B35;
    --naranja-oscuro: #E55A2B;
    --rojo: #C62828;
    --rojo-oscuro: #B71C1C;
    --crema: #FFF8E7;
    --blanco: #FFFFFF;
    --negro: #1A1A1A;
    --gris: #666666;
    --sombra: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--crema);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--blanco);
    box-shadow: 0 2px 20px var(--sombra);
    padding: 0.75rem 2rem;
}

.navbar.scrolled .nav-logo {
    color: var(--cafe);
}

.navbar.scrolled .cart-btn {
    background: var(--cafe);
}

.navbar.scrolled .cart-btn:hover {
    background: var(--cafe-oscuro);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blanco);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s;
}

.nav-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--naranja);
}

.nav-logo span {
    color: var(--naranja);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--cafe);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--naranja);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--blanco);
    border-radius: 2px;
    transition: all 0.3s;
}

.navbar.scrolled .menu-toggle span {
    background: var(--cafe);
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cafe-oscuro) 0%, var(--cafe) 50%, var(--naranja-oscuro) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    background: var(--naranja);
    color: var(--blanco);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--blanco);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero h1 span {
    color: var(--naranja);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    font-style: italic;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--naranja);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background: var(--naranja-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
}

.btn-secondary:hover {
    background: var(--blanco);
    color: var(--cafe);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: var(--blanco);
    opacity: 0.7;
}

section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cafe);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gris);
    font-size: 1.1rem;
}

.section-header .divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--naranja), var(--rojo));
    margin: 1rem auto;
    border-radius: 2px;
}

.menu {
    background: var(--blanco);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--cafe);
    background: transparent;
    color: var(--cafe);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--cafe);
    color: var(--blanco);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-item {
    background: var(--crema);
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1000px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.menu-item {
    background: var(--crema);
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    max-width: 380px;
    width: 100%;
}
    box-shadow: 0 4px 15px var(--sombra);
    transition: all 0.3s;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--sombra);
}

.menu-item-image {
    height: 180px;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-image .placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.menu-item-content {
    padding: 1.5rem;
    flex: 1;
}

.menu-item-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--naranja);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.menu-item h3 {
    font-size: 1.2rem;
    color: var(--cafe);
    margin-bottom: 0.5rem;
}

.menu-item-description {
    font-size: 0.9rem;
    color: var(--gris);
    margin-bottom: 1rem;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.menu-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rojo);
}

.product-options {
    background: rgba(255, 107, 53, 0.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.option-group {
    margin-bottom: 0.75rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--cafe);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.option-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gris-light);
    border-radius: 8px;
    background: var(--blanco);
    font-size: 0.9rem;
    cursor: pointer;
}

.info-section {
    background: var(--cafe-oscuro);
    color: var(--blanco);
}

.info-section .section-header h2 {
    color: var(--blanco);
}

.info-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    background: var(--naranja);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-card-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--blanco);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--naranja);
}

.info-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.info-card a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s;
}

.info-card a:hover {
    color: var(--naranja);
}

.map-section {
    background: var(--blanco);
    padding: 3rem 2rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--sombra);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.contact-cta {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    text-align: center;
    padding: 4rem 2rem;
}

.contact-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--blanco);
    margin-bottom: 1rem;
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-cta .btn-whatsapp {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

.footer {
    background: var(--cafe-oscuro);
    color: var(--blanco);
    padding: 3rem 2rem 1.5rem;
}

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

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-brand h3 span {
    color: var(--naranja);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--naranja);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--naranja);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--naranja);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: var(--blanco);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: var(--blanco);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--cafe-oscuro);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--blanco);
        font-size: 1.2rem;
        padding: 1rem;
    }

    .navbar.scrolled .nav-links a {
        color: var(--blanco);
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    section {
        padding: 3rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .menu-item-content {
        padding: 1rem;
    }

    .menu-item-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-item-price {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

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

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

.product-options {
    background: rgba(255, 107, 53, 0.08);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.option-group {
    margin-bottom: 0.5rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--cafe);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gris-light);
    border-radius: 8px;
    background: var(--blanco);
    font-size: 0.9rem;
    color: var(--negro);
    cursor: pointer;
}

.option-group select:focus {
    outline: none;
    border-color: var(--naranja);
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.option-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--cafe);
    border-radius: 20px;
    background: var(--blanco);
    color: var(--cafe);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: var(--crema);
}

.option-btn.active {
    background: var(--naranja);
    border-color: var(--naranja);
    color: var(--blanco);
}

@media (max-width: 768px) {
    .product-options {
        padding: 0.5rem;
    }
    
    .option-group select {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
}

.cart-btn {
    position: relative;
    background: var(--naranja);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--blanco);
    margin-left: 1rem;
    transition: all 0.3s;
}

.cart-btn:hover {
    background: var(--naranja-oscuro);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--rojo);
    color: var(--blanco);
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-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: flex-end;
    justify-content: center;
}

.cart-modal.show {
    display: flex;
}

.cart-content {
    background: var(--blanco);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gris-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--cafe);
    font-size: 1.3rem;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gris);
    cursor: pointer;
    line-height: 1;
}

.cart-close:hover {
    color: var(--rojo);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    max-height: 50vh;
}

.cart-empty {
    text-align: center;
    color: var(--gris);
    padding: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gris-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info strong {
    color: var(--cafe);
    display: block;
}

.cart-item-options {
    color: var(--gris);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--naranja);
    font-size: 1.1rem;
}

.cart-item-remove {
    background: var(--rojo);
    color: var(--blanco);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-item-remove:hover {
    background: var(--rojo-oscuro);
}

.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 2px solid var(--cafe);
    background: var(--crema);
    border-radius: 0 0 20px 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cart-total span:first-child {
    font-weight: 600;
    color: var(--cafe);
}

.cart-total span:last-child {
    font-weight: 800;
    color: var(--naranja);
}

.cart-order-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.menu-item-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-cart {
    background: var(--cafe);
    color: var(--blanco);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart:hover {
    background: var(--cafe-oscuro);
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--cafe);
    color: var(--blanco);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s;
    z-index: 3000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .cart-btn {
        width: 42px;
        height: 42px;
    }
    
    .menu-item-buttons {
        flex-direction: column;
    }
    
    .menu-item-buttons .btn {
        width: 100%;
    }
}
