
:root {
    --verde: #102b24;
    --verde-secundario: #183b30;
    --naranja: #f59a45;
    --naranja-claro: #ffb36c;
    --crema: #faf7f0;
    --blanco: #fff;
    --texto: #20372d;
    --gris: #66776e;
    --radio: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { font-family: "DM Sans", sans-serif; background: var(--crema); color: var(--texto); }
a { text-decoration: none; color: inherit; }
button { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.contenedor { width: min(1180px, 92%); margin-inline: auto; }
.seccion { padding: 90px 0; }
#inicio, #categorias, #carta, #contacto { scroll-margin-top: 95px; }

/* CABECERA */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--verde);
    border-bottom: 1px solid #ffffff18;
}
.navbar {
    min-height: 83px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.logo { display: flex; align-items: center; gap: 12px; color: white; }
.logo-icono {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    background: var(--naranja);
    color: var(--verde);
    border-radius: 14px;
    font: 800 29px "Outfit", sans-serif;
}
.logo-texto {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1.2;
}
.logo-texto strong { font-size: 24px; letter-spacing: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a {
    color: #e9eee9;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s;
}
.nav-links > a:hover { color: var(--naranja); }
.nav-links .nav-pedido {
    background: var(--naranja);
    color: var(--verde);
    padding: 14px 23px;
    border-radius: 40px;
}
.nav-links .nav-pedido:hover { background: var(--naranja-claro); color: var(--verde); }
.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* PORTADA */
.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--verde);
}
.hero-fondo {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(9,35,27,.98) 0%,
            rgba(9,35,27,.94) 38%,
            rgba(9,35,27,.42) 100%),
        url("https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1600&q=85")
        center / cover no-repeat;
}
.hero-contenido { padding-block: 100px; }
.hero-etiqueta, .subtitulo {
    display: inline-block;
    color: var(--naranja);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}
.hero h1 {
    max-width: 760px;
    font-family: "Outfit", sans-serif;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 1.08;
    letter-spacing: -2px;
    color: white;
    margin: 25px 0;
}
.hero h1 span { color: var(--naranja); }
.hero p {
    max-width: 550px;
    color: #e3eae4;
    line-height: 1.8;
    font-size: 17px;
}
.hero-acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    min-height: 54px;
    padding: 15px 27px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primario { background: var(--naranja); color: var(--verde); }
.btn-primario:hover { background: var(--naranja-claro); }
.btn-secundario { color: white; border: 1px solid #ffffff88; }
.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 60px;
    color: #e5eee8;
    font-size: 13px;
}

/* ENCABEZADOS */
.encabezado-seccion {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 38px;
}
.encabezado-seccion h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1.5px;
    margin-top: 12px;
}
.encabezado-seccion h2 span { color: #c87329; }
.encabezado-seccion > p {
    max-width: 350px;
    color: var(--gris);
    line-height: 1.7;
    font-size: 14px;
}

/* CATEGORÍAS */
.grid-categorias {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
.categoria-card {
    min-height: 165px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 22px;
    background: white;
    border: 1px solid #e9e7df;
    border-radius: var(--radio);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    cursor: pointer;
}
.categoria-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px #102b2415;
}
.categoria-card.seleccionada { border-color: var(--naranja); background: #fffaf3; }
.categoria-icono { font-size: 38px; }
.categoria-nombre { font-weight: 800; }
.categoria-flecha {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #b98049;
}

/* CARTA Y FILTROS */
.carta { background: #f0eee7; }
.filtros-carta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 35px;
}
.filtro-carta {
    padding: 11px 17px;
    border: 1px solid #dce5dc;
    border-radius: 30px;
    background: white;
    color: var(--verde);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.filtro-carta:hover, .filtro-carta.activo {
    background: var(--verde-secundario);
    border-color: var(--verde-secundario);
    color: white;
}
.grid-platos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}
.plato-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: white;
    border-radius: var(--radio);
    box-shadow: 0 5px 20px #102b2408;
    transition: transform .25s;
}
.plato-card:hover { transform: translateY(-6px); }
.plato-imagen {
    position: relative;
    height: 235px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(circle, #456d4e, #163f32);
}
.plato-imagen > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.plato-imagen > .plato-emoji {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 72px;
}
.plato-imagen > small {
    position: absolute;
    right: 15px;
    bottom: 15px;
    max-width: calc(100% - 30px);
    padding: 8px 14px;
    background: white;
    color: var(--verde);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
}
.plato-imagen > .etiqueta-destacado {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 12px;
    background: #fff7df;
    color: #895b00;
    border-radius: 25px;
    font: 700 12px "DM Sans", sans-serif;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 3px 12px #00000020;
}
.plato-contenido {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}
.plato-contenido h3 {
    font-family: "Outfit", sans-serif;
    font-size: 23px;
}
.plato-contenido p {
    flex: 1;
    margin-top: 12px;
    color: var(--gris);
    line-height: 1.7;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.plato-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}
.plato-footer strong { font-size: 23px; color: var(--verde); }
.btn-plato {
    padding: 11px 18px;
    border-radius: 40px;
    background: var(--verde);
    color: white;
    font-size: 13px;
    font-weight: 700;
}
.btn-plato:hover { background: #285c49; }
.sin-resultados {
    padding: 35px 20px;
    background: white;
    border-radius: 16px;
    color: var(--gris);
    text-align: center;
}
.carta-informacion {
    text-align: center;
    margin-top: 28px;
    color: var(--gris);
    font-size: 14px;
}
.carta-acciones { text-align: center; margin-top: 28px; }

/* PEDIDOS */
.cta { background: var(--verde-secundario); text-align: center; }
.cta-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cta h2 {
    max-width: 750px;
    margin-top: 15px;
    font: 700 clamp(34px, 5vw, 58px) "Outfit", sans-serif;
    color: white;
}
.cta p {
    max-width: 500px;
    margin: 20px 0 30px;
    color: #d6e2d9;
    line-height: 1.8;
}

/* PIE DE PÁGINA */
.footer { padding-top: 60px; background: #0a211a; color: white; }
.footer-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}
.footer h2 { font-family: "Outfit", sans-serif; }
.footer h2 span { color: var(--naranja); }
.footer h3 { margin-bottom: 14px; font-size: 16px; }
.footer p, .footer a {
    color: #bfcec3;
    font-size: 14px;
    line-height: 1.8;
}
.footer-inferior { padding: 22px 0; border-top: 1px solid #ffffff20; }

/* WHATSAPP */
.whatsapp-flotante {
    position: fixed;
    z-index: 200;
    bottom: 25px;
    right: 25px;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    box-shadow: 0 8px 25px #00000030;
    transition: transform .2s;
}
.whatsapp-flotante:hover { transform: scale(1.1); }

/* TABLETS */
@media (max-width: 950px) {
    .grid-categorias { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-platos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-links { gap: 15px; }
}

/* CELULARES */
@media (max-width: 700px) {
    html { scroll-padding-top: 80px; }
    .seccion { padding: 65px 0; }
    .navbar { min-height: 72px; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 25px 5%;
        background: var(--verde);
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links.activo { display: flex; }
    .hero { min-height: 610px; }
    .hero-fondo {
        background:
            linear-gradient(90deg, rgba(9,35,27,.95), rgba(9,35,27,.72)),
            url("https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=900&q=80")
            center / cover no-repeat;
    }
    .hero h1 { letter-spacing: -1px; }
    .hero p { font-size: 15px; }
    .hero-info { gap: 12px; margin-top: 35px; }
    .encabezado-seccion { display: block; }
    .encabezado-seccion > p { margin-top: 15px; }
    .grid-categorias { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .categoria-card { min-height: 135px; padding: 17px; }
    .categoria-icono { font-size: 32px; }
    .grid-platos { grid-template-columns: 1fr; }
    .plato-imagen { height: 245px; }
    .filtros-carta { gap: 8px; }
    .filtro-carta { padding: 9px 13px; font-size: 12px; }
    .footer-contenido { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
