/* El Michi del Puerto — component styles. Base lifted from el-michi.css (theme el-michi-7); 2026 redesign: accessible greens, focus ring, micro-animations, new navbar, blog and allergens. Colour/size values come from tokens.css. */

/* Motion (not a token family): durations and easing used by every component */
:root {
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .15s;
  --dur-base: .25s;
  --dur-slow: .45s;
}

body { margin: 0; background-color: var(--arena); color: var(--obscuro); font-family: var(--font-sans); font-size: 1rem; font-weight: 400; line-height: 150%; }
.em-h { text-transform: uppercase; font-weight: 700; line-height: 120%; margin: 0; }
.em-h1 { font-size: 3.5rem; } .em-h2 { font-size: 3rem; } .em-h3 { font-size: 2.5rem; }
.em-h5 { font-size: 1.5rem; line-height: 140%; } .em-h6 { font-size: 1.25rem; line-height: 140%; }
.em-muted { color: var(--obscuro-suave); }

/* Focus ring: every interactive element, keyboard only */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--obscuro); outline-offset: 3px; border-radius: var(--radius); }
.on-dark :where(a, button):focus-visible { outline-color: var(--naranjato); }

/* Button — the element itself moves into its shadow: hover half-way, press all the way */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: var(--border-solid); border-radius: var(--radius); background-color: var(--verde-profundo); box-shadow: var(--shadow-offset); color: var(--arena); text-align: center; white-space: nowrap; padding: 9px 15px; text-decoration: none; font: inherit; cursor: pointer; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out); }
.button:hover { transform: translate(-2px, 2px); box-shadow: var(--shadow-offset-hover); }
.button:active { transform: translate(-4px, 4px); box-shadow: 0 0 0 0 var(--obscuro); transition-duration: var(--dur-fast); }
.button.secondary { background-color: var(--arena); color: var(--obscuro); }
.button.secondary:hover { background-color: var(--casi-verde); }
.button.accent { background-color: var(--naranjato); color: var(--obscuro); }
.button.smaller { padding: 6px 12px; font-size: .8rem; }
.button.huge { box-shadow: var(--shadow-offset-lg); padding: 16px 28px; font-size: 1.5rem; }
.button.huge:hover { transform: translate(-2px, 2px); box-shadow: var(--shadow-offset); }
.button.huge:active { transform: translate(-6px, 6px); box-shadow: 0 0 0 0 var(--obscuro); }
.button.tertiary { box-shadow: none; color: var(--obscuro); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; border: 0; border-radius: 0; padding: 0 0 2px; transition: background-size var(--dur-base) var(--ease-out), color var(--dur-base); }
.button.tertiary:hover { transform: none; color: var(--verde-profundo); background-size: 30% 1px; }
.button .icon { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--dur-base) var(--ease-spring); }
.button:hover .icon-arrow { transform: translateX(3px); }
.button-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
/* Buttons on dark grounds (photos, event cards, obscuro areas): the original obscuro border + offset shadow stay;
   contrast comes from the FILL — primary turns naranjato with obscuro text (7.05:1 against obscuro), secondary stays arena */
.button.on-dark, .on-dark .button, .has-bg_img .button { background-color: var(--naranjato); color: var(--obscuro); }
.button.secondary.on-dark, .on-dark .button.secondary, .has-bg_img .button.secondary { background-color: var(--arena); color: var(--obscuro); }
.button.secondary.on-dark:hover, .on-dark .button.secondary:hover, .has-bg_img .button.secondary:hover { background-color: var(--casi-verde); }
.has-bg_img .button:focus-visible, .on-dark .button:focus-visible { outline-color: var(--naranjato); }

/* Navbar */
.navbar { background-color: var(--obscuro); border-radius: 0 0 var(--radius) var(--radius); padding: 0 1rem; }
.top-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2rem; color: var(--arena); font-size: .8rem; }
.top-banner_right { display: flex; align-items: center; gap: 1.25rem; }
.status-wrapper { display: flex; gap: .4rem; align-items: center; }
.status-indicator { width: .6rem; height: .6rem; border-radius: var(--radius-round); background-color: var(--status-closed); }
.status-indicator.is-open { background-color: var(--status-open); box-shadow: 0 0 0 0 rgba(63, 191, 143, .6); animation: em-pulse 2s var(--ease-out) infinite; }
@keyframes em-pulse { 70% { box-shadow: 0 0 0 6px rgba(63, 191, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 143, 0); } }
.navbar3_component { display: grid; grid-template-columns: 1fr max-content 1fr; align-items: center; gap: 16px; min-height: 4.5rem; padding: 0 2.5%; border-radius: var(--radius); background-color: var(--arena); box-shadow: var(--shadow-nav); margin: 0 -1rem; }
.navbar3_menu { display: flex; align-items: center; }
.navbar3_link { position: relative; white-space: nowrap; padding: .5rem .75rem; color: var(--obscuro); text-decoration: none; transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); display: inline-block; }
.navbar3_link::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--verde-profundo); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.navbar3_link:hover { color: var(--verde-profundo); transform: translateY(-2px); }
.navbar3_link:hover::after, .navbar3_link.is-current::after { transform: scaleX(1); }
.navbar3_link.is-current { color: var(--verde-profundo); }
.navbar-logo { display: block; transition: transform var(--dur-slow) var(--ease-spring); }
.navbar-logo:hover { transform: rotate(-3deg) scale(1.03); }
.navbar-button_group { display: flex; gap: .75rem; justify-content: flex-end; align-items: center; }
.navbar-burger { display: none; width: 2.75rem; height: 2.75rem; border: var(--border-solid); border-radius: var(--radius); background: var(--arena); box-shadow: -2px 2px 0 0 var(--obscuro); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.navbar-burger span { width: 18px; height: 2px; background: var(--obscuro); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.navbar-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile header (≤ 991px): logo | reserve + burger; links move into the drawer */
.navbar.is-mobile .navbar3_component { grid-template-columns: 1fr auto; padding: 0 1rem; }
.navbar.is-mobile .navbar3_menu, .navbar.is-mobile .hide-mobile { display: none; }
.navbar.is-mobile .navbar-burger { display: inline-flex; }
.navbar-drawer { background: var(--arena); border: var(--border-dashed); border-radius: var(--radius); margin: .5rem -1rem 0; padding: 1rem 1.25rem 1.25rem; display: grid; gap: .25rem; transform-origin: top; animation: em-drawer var(--dur-slow) var(--ease-out); }
.navbar-drawer > a { color: var(--obscuro); text-decoration: none; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; padding: .35rem 0; }
@keyframes em-drawer { from { opacity: 0; transform: translateY(-8px) scaleY(.96); } }

/* Language switcher */
.lang { position: relative; }
.lang_toggle { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 1px solid rgba(235, 236, 217, .5); border-radius: 999px; color: var(--arena); font: inherit; padding: .1rem .6rem; cursor: pointer; transition: border-color var(--dur-base); }
.lang_toggle:hover { border-color: var(--arena); }
.lang_toggle svg { transition: transform var(--dur-base) var(--ease-out); }
.lang.is-open .lang_toggle svg { transform: rotate(180deg); }
.lang_list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 5; min-width: 9rem; margin: 0; padding: .35rem; list-style: none; background: var(--arena); border: var(--border-solid); border-radius: var(--radius); box-shadow: var(--shadow-offset); display: none; }
.lang.is-open .lang_list { display: block; animation: em-drawer var(--dur-base) var(--ease-out); }
.lang_list a { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem .6rem; border-radius: .6rem; color: var(--obscuro); text-decoration: none; font-size: .875rem; }
.lang_list a:hover { background: var(--casi-verde); }
.lang_list a[aria-current="true"] { color: var(--verde-profundo); font-weight: 700; }

/* Sticker (script heading) + watermark */
.stiker { display: inline-flex; color: var(--arena); -webkit-text-stroke: 4px var(--verde); paint-order: stroke fill; font-size: 4.75rem; font-weight: 900; line-height: 1; transition: transform var(--dur-slow) var(--ease-spring); }
.stiker:hover { transform: rotate(-2deg) scale(1.02); }
.stiker.smaller { -webkit-text-stroke-width: 3px; font-size: 2.5rem; }
.banner_heading-top { color: var(--casi-verde); font-size: 6rem; font-weight: 700; text-transform: uppercase; line-height: 120%; white-space: nowrap; }

/* Tag */
.label { display: inline-flex; padding: .5rem 1rem; line-height: 120%; }
.label.bigger { font-size: 1.2rem; }
.label.bigger._w-bg { border-radius: var(--radius); background-color: var(--naranjato); color: var(--obscuro); }
.label.small._w-bg { font-size: .75rem; padding: .25rem .65rem; border-radius: 999px; background-color: var(--naranjato); color: var(--obscuro); text-transform: uppercase; letter-spacing: .04em; }

/* Cards: lift toward the top-right, photo zooms inside its frame */
.item { display: flex; flex-direction: column; border: var(--border-dashed); border-radius: var(--radius); background-color: var(--casi-verde); overflow: hidden; color: var(--obscuro); text-decoration: none; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
a.item:hover { transform: translate(2px, -3px); box-shadow: var(--shadow-offset); }
.item.has-bg_img { color: var(--arena); position: relative; background-color: var(--obscuro); }
.item_media { overflow: hidden; aspect-ratio: 3 / 2; }
.item_image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out); }
a.item:hover .item_image { transform: scale(1.05); }
.menu_title-wrapper { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; }

/* Blog */
.blog-card_body { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem; flex: 1; }
.blog-card_meta { display: flex; align-items: center; gap: .75rem; color: var(--obscuro-suave); font-size: .875rem; }
.blog-card_excerpt { color: var(--obscuro-suave); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card_more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--verde-profundo); font-weight: 700; }
.blog-card_more svg { transition: transform var(--dur-base) var(--ease-spring); }
a.item:hover .blog-card_more svg { transform: translateX(4px); }

/* Allergens (EU 14) */
.allergen-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.allergen { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem .15rem .2rem; border: 1px solid var(--verde-profundo); border-radius: 999px; background: var(--arena); color: var(--obscuro); font-size: .75rem; line-height: 1.4; }
.allergen_code { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--verde-profundo); color: var(--arena); font-size: .625rem; font-weight: 700; letter-spacing: .02em; }
.allergen.is-compact { padding: .15rem; }
.allergen.is-compact .allergen_name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Menu accordion — height animates with grid rows */
.menu-section { border: var(--border-dashed); border-radius: var(--radius); background-color: var(--arena); box-shadow: var(--shadow-soft-offset); overflow: hidden; transition: box-shadow var(--dur-base) var(--ease-out); }
.menu-section:hover { box-shadow: -3px 3px 0 0 rgba(0, 0, 0, .15); }
.menu-item_question { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem; cursor: pointer; width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; }
.menu-item_icon { width: 2rem; height: 2rem; position: relative; flex: none; }
.menu-item_icon::before, .menu-item_icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--obscuro); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out); }
.menu-item_icon::after { transform: rotate(90deg); }
.menu-section.is-open .menu-item_icon::after { transform: rotate(0deg); }
.menu-item_panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.menu-section.is-open .menu-item_panel { grid-template-rows: 1fr; }
.menu-item_answer { overflow: hidden; padding: 0 1.5rem; }
.menu-section.is-open .menu-item_answer { padding-bottom: 1.5rem; }
.menu-product_wrapper { border: 1px dashed var(--casi-verde); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.menu-product_wrapper:last-child { margin-bottom: 0; }
.top-menu-product_item { display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.menu_card_item_ellipses { position: absolute; left: 0; right: 0; bottom: .45em; border-bottom: 2px dotted var(--obscuro); opacity: .15; }
.menu_card_item_title, .menu_card_item_price-wrapper { position: relative; z-index: 1; background-color: var(--arena); }
.menu_card_item_title { padding-right: .3rem; font-size: 1.25rem; font-weight: 700; text-transform: uppercase; line-height: 140%; }
.menu_card_item_price-wrapper { padding-left: .3rem; font-size: 1.25rem; font-weight: 600; }
.bottom-menu-product_item { display: flex; flex-direction: column; gap: .5rem; color: var(--obscuro-suave); padding: .5rem; }

/* Forms */
.contact5_form-block { border: var(--border-solid); border-radius: var(--radius); background-color: var(--casi-verde); box-shadow: var(--shadow-offset); padding: 2rem; display: grid; gap: 1.5rem; }
.form_field-label { display: block; margin-bottom: .5rem; }
.form_input { box-sizing: border-box; width: 100%; border: var(--border-solid); background-color: var(--arena); min-height: 2.75rem; color: var(--obscuro); border-radius: var(--radius-input); padding: .5rem .75rem; font: inherit; line-height: 1.6; transition: box-shadow var(--dur-base) var(--ease-out); }
.form_input::placeholder { color: var(--obscuro-suave); }
.form_input:hover { box-shadow: -2px 2px 0 0 var(--obscuro); }
.form_input:focus { outline: 2px solid var(--obscuro); outline-offset: 2px; box-shadow: -3px 3px 0 0 var(--obscuro); }
.form_input.is-text-area { min-height: 11.25rem; }
.form_message-error { color: var(--form-error-text); background-color: var(--form-error-bg); border-radius: var(--radius); padding: 1rem; text-align: center; }

/* Slider arrow */
.slider-arrow { display: inline-flex; justify-content: center; align-items: center; width: 3rem; height: 3rem; border: var(--border-solid); border-radius: 100%; box-shadow: -2px 2px 0 0 var(--obscuro); color: var(--obscuro); background: var(--arena); cursor: pointer; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base); }
.slider-arrow:hover { background-color: var(--casi-verde); transform: translate(-1px, 1px); box-shadow: -1px 1px 0 0 var(--obscuro); }
.slider-arrow:active { transform: translate(-2px, 2px); box-shadow: none; }
.slider-arrow svg { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-spring); }
.slider-arrow.is-prev:hover svg { transform: translateX(-2px); }
.slider-arrow.is-next:hover svg { transform: translateX(2px); }
.slider-arrow:disabled { opacity: .4; cursor: default; transform: none; box-shadow: -2px 2px 0 0 var(--obscuro); background: var(--arena); }

/* Weekly menu — a card with a header and one airy row per day; today is highlighted */
.weekly { border: var(--border-solid); border-radius: var(--radius); background-color: var(--arena); box-shadow: var(--shadow-offset); overflow: hidden; }
.weekly_head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--casi-verde); border-bottom: var(--border-solid); }
.weekly_range { color: var(--obscuro-suave); font-size: .875rem; }
.weekly_list { list-style: none; margin: 0; padding: .5rem; }
.weekly_day { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: calc(var(--radius) - .25rem); transition: background-color var(--dur-base) var(--ease-out); }
.weekly_day + .weekly_day { border-top: 1px dashed var(--casi-verde); }
.weekly_day:hover { background: rgba(220, 221, 193, .45); }
.weekly_badge { display: grid; place-items: center; height: 3rem; border-radius: .75rem; background: var(--naranjato); color: var(--obscuro); font-weight: 700; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.weekly_dish { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.weekly_name { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.weekly_desc { color: var(--obscuro-suave); font-size: .875rem; }
.weekly_price { font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.weekly_day.is-today { background: var(--casi-verde); border-top-color: transparent; }
.weekly_day.is-today + .weekly_day { border-top-color: transparent; }
.weekly_day.is-today .weekly_badge { background: var(--verde-profundo); color: var(--arena); }
.weekly_today { display: inline-flex; align-self: flex-start; padding: .1rem .5rem; border-radius: 999px; background: var(--verde-profundo); color: var(--arena); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.weekly_day.is-closed .weekly_badge { background: transparent; border: 1px dashed var(--obscuro-suave); color: var(--obscuro-suave); }
.weekly_day.is-closed .weekly_name { color: var(--obscuro-suave); font-weight: 400; text-transform: none; }

/* Link block — link-in-bio rows: icon tile · label + hint · arrow chip */
.link-list { display: grid; gap: .75rem; }
.link_block { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; border: 1px dashed var(--verde); background-color: var(--arena); color: var(--obscuro); border-radius: var(--radius); padding: .65rem .75rem .65rem .65rem; text-decoration: none; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.link_block_icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .7rem; background: var(--casi-verde); color: var(--verde-profundo); transition: background-color var(--dur-base), color var(--dur-base); }
.link_block_icon svg { width: 1.25rem; height: 1.25rem; }
.link_block_text { display: flex; flex-direction: column; min-width: 0; }
.link_block_label { font-weight: 700; line-height: 1.3; }
.link_block_hint { color: var(--obscuro-suave); font-size: .8rem; line-height: 1.4; }
.link_block_arrow { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--casi-verde); color: var(--obscuro); transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base); }
.link_block_arrow svg { width: .9rem; height: .9rem; }
.link_block:hover { border-style: solid; border-color: var(--verde-profundo); box-shadow: 4px 4px 0 0 var(--verde-profundo); transform: translate(-2px, -2px); }
.link_block:hover .link_block_icon { background: var(--verde-profundo); color: var(--arena); }
.link_block:hover .link_block_arrow { background: var(--verde-profundo); border-color: var(--verde-profundo); color: var(--arena); transform: translateX(2px); }
.link_block.is-featured { background: var(--naranjato); border: var(--border-solid); box-shadow: var(--shadow-offset); }
.link_block.is-featured .link_block_icon { background: var(--arena); }
.link_block.is-featured .link_block_hint { color: var(--obscuro); }
.link_block.is-featured:hover { box-shadow: var(--shadow-offset-hover); transform: translate(-2px, 2px); border-color: var(--obscuro); }

/* Footer */
.footer_component { border-radius: var(--radius) var(--radius) 0 0; background-color: var(--obscuro); color: var(--arena); box-shadow: var(--shadow-footer); padding: 2.5rem 4.5rem 1rem; }
.footer-menu_wrapper { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.info_item { color: var(--arena); text-decoration: none; transition: color var(--dur-base), transform var(--dur-base) var(--ease-out); display: inline-block; }
.info_item:hover { color: var(--naranjato); transform: translateY(-3px); }
.divider-horizontal { background-color: var(--arena); height: 1px; margin: 2.5rem 0 1rem; }
.footer_bottom-wrapper { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 16px; font-size: .875rem; }
.footer_legal-link { color: var(--arena); text-decoration: none; font-size: .875rem; margin-left: 1.5rem; transition: color var(--dur-base); }
.footer_legal-link:hover { color: var(--naranjato); }

/* Blockquote */
blockquote, .em-quote { border-left: 5px solid var(--naranja); margin: 0 0 10px; padding: 10px 20px; font-size: 18px; line-height: 22px; }

/* Scroll reveal: add .reveal, the page script adds .is-visible when it enters the viewport */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
