:root {
    --primary: #FFCC33; /* Yellow from logo */
    --accent: #E65100; /* Darker orange for hover/details */
    --dark: #111111; /* Black for text and outlines */
    --light: #FFFFFF;
    --bg-color: #FFFDF7; /* Very light cream */
    --font-heading: 'Luckiest Guy', cursive;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Typography with comic style outline */
.comic-text {
    color: var(--light);
    -webkit-text-stroke: 2px var(--dark);
    text-shadow: 4px 4px 0px var(--dark);
}

/* Header */
header {
    background-color: var(--primary);
    border-bottom: 5px solid var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-size: 2rem;
    color: var(--light);
    -webkit-text-stroke: 1.5px var(--dark);
    text-shadow: 3px 3px 0px var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 0px var(--dark));
    transition: transform 0.3s ease;
}

.logo-text:hover .logo-img {
    transform: rotate(-10deg) scale(1.1);
}

@media (max-width: 900px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 900;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--light);
    -webkit-text-stroke: 1px var(--dark);
}

/* Buttons */
.btn-primary {
    background-color: var(--light);
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 10px 25px;
    border: 3px solid var(--dark);
    border-radius: 10px;
    box-shadow: 4px 4px 0px var(--dark);
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--dark);
    background-color: var(--primary);
}

.btn-primary:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--dark);
}

.btn-large {
    font-size: 1.5rem;
    padding: 15px 40px;
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 20%, transparent 20%),
                      radial-gradient(circle, rgba(255,255,255,0.2) 20%, transparent 20%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    padding: 80px 0;
    border-bottom: 5px solid var(--dark);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--light);
    -webkit-text-stroke: 2px var(--dark);
    text-shadow: 5px 5px 0px var(--dark);
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    background-color: var(--light);
    padding: 15px;
    border: 3px solid var(--dark);
    border-radius: 10px;
    box-shadow: 4px 4px 0px var(--dark);
    display: inline-block;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    width: 500px;
    filter: drop-shadow(8px 8px 0px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Menu Section */
.menu-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--light);
    -webkit-text-stroke: 2px var(--dark);
    text-shadow: 4px 4px 0px var(--dark);
}

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

.menu-category {
    background: var(--light);
    border: 4px solid var(--dark);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 8px 8px 0px var(--dark);
}

.category-title {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary);
    -webkit-text-stroke: 1px var(--dark);
    text-shadow: 2px 2px 0px var(--dark);
    border-bottom: 3px dashed var(--dark);
    padding-bottom: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 2px dotted #ccc;
    padding-bottom: 15px;
}

.menu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: 900;
}

.item-info p {
    font-size: 0.95rem;
    color: #555;
}

.item-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
    margin-left: 15px;
    -webkit-text-stroke: 0.5px var(--dark);
}

/* About Section */
.about-section {
    background-color: var(--primary);
    padding: 80px 0;
    border-top: 5px solid var(--dark);
    border-bottom: 5px solid var(--dark);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light);
    padding: 40px;
    border: 4px solid var(--dark);
    border-radius: 20px;
    box-shadow: 10px 10px 0px var(--dark);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.about-content p {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.footer-info p {
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-social h4 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-social a {
    color: var(--light);
    font-weight: 700;
}

.social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.social-links .sep {
    margin: 0 12px;
    color: var(--primary);
    font-weight: 700;
}

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

.footer-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 0px var(--primary));
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: var(--dark);
    border: 3px solid var(--light);
    border-radius: 10px;
    box-shadow: 3px 3px 0px var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Menú hamburguesa (oculto en escritorio) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 50px;
    height: 46px;
    padding: 0 10px;
    background: var(--light);
    border: 3px solid var(--dark);
    border-radius: 10px;
    box-shadow: 3px 3px 0px var(--dark);
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 4px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.mobile-only { display: none; }

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .header-content {
        position: relative;
        height: 70px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .header-content > .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        background: var(--primary);
        border-bottom: 5px solid var(--dark);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.35s ease, visibility 0.35s;
    }

    nav.open {
        max-height: 400px;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 25px 0 30px;
    }

    nav a {
        font-size: 1.3rem;
    }

    nav .mobile-only {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Map Section */
.map-section {
    padding: 80px 0 80px 0;
    background-color: var(--bg-color);
}
.map-section .section-title {
    margin-bottom: 30px;
}
.map-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    border: 5px solid var(--dark);
    border-radius: 20px;
    box-shadow: 10px 10px 0px var(--dark);
    overflow: hidden;
    display: block;
    background: var(--light);
}
.map-container iframe, .map-container #map {
    display: block;
    width: 100%;
}

/* Halal Badge */
.halal-badge {
    display: inline-block;
    background-color: #2e7d32; /* Green for Halal */
    color: var(--light);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 10px 20px;
    border: 3px solid var(--dark);
    border-radius: 10px;
    box-shadow: 4px 4px 0px var(--dark);
    margin-bottom: 25px;
    transform: rotate(-3deg);
    -webkit-text-stroke: 1px var(--dark);
    letter-spacing: 2px;
}

/* Halal Badge Enhancements */
.halal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.halal-icon {
    height: 30px;
    transform: scale(1.8);
    transform-origin: right center;
    margin-right: 15px;
    margin-left: 5px;
    filter: drop-shadow(2px 2px 0px var(--dark));
}

@media (max-width: 600px) {
    .halal-badge {
        flex-direction: column-reverse;
        padding: 15px 20px;
    }
    .halal-icon {
        transform: scale(1.8);
        transform-origin: center;
        margin: 15px 0 0 0;
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

@media (max-width: 900px) {
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        gap: 10px;
    }
    .btn-large {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    .halal-badge {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
}

/* Custom Map Pin */
.custom-pin-container {
    background: transparent;
    border: none;
    position: relative;
    width: 60px;
    height: 75px;
}
.custom-pin {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pin-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid var(--dark);
    box-shadow: -4px 4px 0px rgba(0,0,0,0.5);
    z-index: 1;
}
.custom-pin img {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--light);
    border: 2px solid var(--dark);
}

/* Static Image Map */
.static-image-map {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: var(--light);
}
.static-image-map .map-bg {
    width: 100%;
    display: block;
    border-radius: 15px;
}
.static-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 10;
}
.custom-popup {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
    position: absolute;
    white-space: nowrap;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 15px;
}
.custom-popup::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 11px 0 11px 13px;
    border-style: solid;
    border-color: transparent transparent transparent var(--dark);
}
.custom-popup::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 9px 0 9px 10px;
    border-style: solid;
    border-color: transparent transparent transparent white;
    z-index: 1;
}

/* Mapa en móvil: más alto, recortando los lados (el pin se mantiene en su sitio) */
@media (max-width: 768px) {
    .static-image-map .map-bg {
        height: 420px;
        object-fit: cover;
        object-position: 67% 17%; /* igual que top/left del .static-marker */
    }
    .custom-popup {
        padding: 6px 10px;
        margin-right: 10px;
    }
    .custom-popup b {
        font-size: 1rem !important;
    }
}
