* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'fredoka', system-ui, arial, sans-serif; 
    color: #222;
    background: #fffdf6;
    line-height: 1.6;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fffdf6;
    border-bottom: 4px solid #c62828;

}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;


}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    text-decoration: none;
    color: #c62828;
    font-size: 1.5rem;
    padding: 0.8rem 0;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    color: #222;
    
}

nav a:hover {
    background-color: #f5f5f5;
    color: gray;
}

section {
    padding: 3rem 0;
    scroll-margin-top: 4rem;
}

section h2 {
    margin-bottom: 0.4rem;
    font-size: 1.8re,;
}

.section-subtitle,
.hero p {
    color: #667;
    margin-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 0.4rem;
    font-size: 2.2rem;
}

.hero-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.hero-text {
    max-width: 45%;

}

.hero-img {
    max-width: 45%;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 0.8rem;
    padding: 0.6rem;
}

.hero-img img {
    width: 100%;
    display: block;
    border-radius: 0.5rem;
}

.alt {
    background-color: #fff;
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
}

.item {
    flex-basis: 360px;
    flex-grow: 1;
    flex-shrink: 1;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 13px;
}

.thumb {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.thumb img:hover {
    transform: scale(1.08) rotate(-1deg);
}

.item p {
    color: #666666;
    margin-top: 0;
    margin-bottom: 8px;
}

.item h3 {
    margin-top: 0;
    margin-bottom: 3px;
    font-size: 10px;
}

.price {
    display: inline-block;
    background: #ffe5e5;
    color: #c62828;
    font-weight: 700;
    padding: 4px 8px 4px 8px;
    border-radius: 8px;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.contact-grid > div {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 320px;
    min-width: 260px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;

}

label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 500;
}

input, textarea {
    font: inherit;
    padding: 13px 14px 13px 14px;
    border: 1.5px solid #e9e9e9;
    border-radius: 10px;
    background-color: #fff;
    outline: none;
}

input:focus, textarea:focus {
    border: 2px dotted #000;
    box-shadow: 0px 0px 0px 3px rgba(46, 125, 50, 0.12);
}

.btn {
    display: inline-block;
    background-color: #2e7d32;
    color: #fff;
    padding: 13px 16px 13px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: 0px;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.15);
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 0.8rem;
    padding: 0.6rem;
}

footer {
    border-top: 3px solid black;
    background-color: #c62828;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

footer a {
    text-decoration: none;
    color: rgb(255, 183, 49);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
}

footer a:hover {
    background-color: rgb(255, 0, 0);
    color: rgb(255, 194, 103);
}

@media (max-width: 870px) {

    section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    nav a {
        padding: 10px 11px 10px 11px;

    }

    .hero-text {
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }
}