* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Henny Penny', Arial, Helvetica, sans-serif;
    color: #222;
    background-color: white;
    line-height: 1.6;
}

.topbar{
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgb(233, 233, 233);
    border-bottom: 1px solid #838383;
}

.container{
    width: min(1100px, 92%);
    margin: 0 auto;
}

.row{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 600;
    text-decoration: none;
    color: #222;
    font-size: 1.5rem;
    padding: 0.6rem 0.8rem;
}

nav a{
    text-decoration: none;
    color: #222;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
}

nav a:hover{
    background-color: #cecece;
}

section {
    padding: 3rem 0;
    scroll-margin-top: 4rem;
}

section h2 {
    margin-bottom: 0.4rem;
    font-size: 1.8rem;
}

.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: #f1f1f1;
}

.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 #e6e6e6;
    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: 18px;
}

.item h3 {
    margin-top: 0;
    margin-bottom: 3px;
    font-size: 18px;
}

.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 solid #383838
}

.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;
}

footer {
    border-top: 1px solid #e9e9e9;
    background-color: #383838;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

footer a {
    text-decoration: none;
    color: white;
    font-weight: 600
}

@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;
    }

}