/* Brand layer v2. Original assets stay immutable; no restaurant styles change. */
:root {
  --green: #1E8149;
  --mint: #C2EDCE;
  --paper: #FFFFFF;
  --cream: #F6EEE5;
  --deep: #123E2A;
  --muted: #5b665e;
  --line: #dde5df;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
::selection { background: var(--mint); color: var(--deep); }
:focus-visible { outline-color: var(--green); }
.header {
  background: rgb(255 255 255 / 88%);
  border-color: rgb(30 129 73 / 10%);
}
.nav-links a { position: relative; transition: color 200ms ease; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 7px; left: 0; right: 0;
  height: 2px; background: var(--green); transform: scaleX(0);
  transform-origin: left; transition: transform 260ms var(--ease);
}
.nav-links a:hover, .lang:hover { color: var(--green); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.button {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--green); color: #fff;
  box-shadow: 0 4px 12px rgb(30 129 73 / 9%);
  transition: background 240ms ease, box-shadow 300ms ease, transform 300ms var(--ease);
}
.button::after {
  content: ''; position: absolute; inset: -45% auto -45% -65%; width: 40%;
  background: linear-gradient(90deg, transparent, #ffffff26, transparent);
  transform: skewX(-25deg); pointer-events: none;
  transition: left 650ms var(--ease);
}
.button > span { transition: transform 300ms var(--ease); }
.button:hover, .button:focus-visible {
  background: #176c3c; box-shadow: 0 9px 24px rgb(30 129 73 / 20%);
  transform: translateY(-2px);
}
.button:hover::after, .button:focus-visible::after { left: 130%; }
.button:hover > span, .button:focus-visible > span { transform: translate(2px, -2px); }
.button:active { transform: translateY(0); }
.text-link { color: var(--deep); }
.text-link > span { transition: transform 260ms var(--ease); }
.text-link:hover > span { transform: translateX(4px); }
.hero-actions > a { flex-shrink: 0; }
.hero-actions > a > span { flex-shrink: 0; }
.hero {
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(180deg, #fff 25%, #f0faf3 70%, #fff 100%);
}
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 13% 55%, #c2edce99, transparent 42%),
    radial-gradient(ellipse at 87% 58%, #f6eee5, transparent 43%);
}
.hero h1 > span {
  color: var(--green);
  background: linear-gradient(115deg, var(--green) 15%, #135c36 70%, #399b61);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .eyebrow { color: var(--green); }
.hero .eyebrow::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 9px 1px 0;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #c2edce70;
}
.device-stage::before {
  background: radial-gradient(ellipse at 50% 68%, #86c89d70, transparent 67%);
}
.desktop { box-shadow: 0 28px 60px -22px #214d3540, 0 0 0 1px #b8c8bf; }
.feature-rail { color: var(--deep); }
.feature-rail > span {
  padding: 7px 12px; border: 1px solid #c2edce99; border-radius: 40px;
  background: #ffffffb8;
}
.feature-rail svg { color: var(--green); }
.menu-feature { background: var(--cream); }
.action-feature { background: #e7f6eb; }
.action-visual > span { border-color: #c6e2cf; color: var(--deep); }
.action-visual > span:first-child { background: var(--green); border-color: var(--green); color: #fff; }
.identity-feature { background: var(--mint); }
.identity-feature p { color: #395443; }
.identity-visual > span { color: var(--deep); }
.identity-visual i { background: var(--green); border-color: var(--mint); box-shadow: 0 1px 4px #123e2a19; }
.identity-visual i:nth-child(2) { background: #fff; }
.identity-visual i:nth-child(3) { background: var(--cream); }
.identity-visual i:nth-child(4) { background: var(--deep); }
.work-section { background: linear-gradient(180deg, #faf6f1, var(--cream)); }
.project-image { box-shadow: 0 8px 25px -15px #3d513945; }
.project-open { background: #fffffff2; color: var(--green); transition: color 250ms, background 250ms, transform 350ms var(--ease); }
.project:focus-visible .project-image > img { transform: scale(1.035); }
.project:hover .project-open, .project:focus-visible .project-open { background: var(--green); color: #fff; transform: rotate(5deg); }
.project-name h3 { transition: color 250ms; }
.project:hover .project-name h3 { color: var(--green); }
.care-visual {
  border-radius: 40px;
  background: radial-gradient(ellipse at center, #c2edce9c, transparent 69%);
}
.care-visual::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(#1e814909 1px, transparent 1px), linear-gradient(90deg, #1e814909 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse, #000 25%, transparent 70%);
  mask-image: radial-gradient(ellipse, #000 25%, transparent 70%);
}
.orbit { border-color: #86c89d7d; }
.orbit-two { border-style: dashed; border-color: #86c89d66; }
.orbit::after {
  content: ''; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #c2edce70;
}
.orbit-two::after { left: auto; right: 42px; top: 12%; width: 5px; height: 5px; opacity: .6; }
.care-emblem {
  border-color: #8bc69e; background: linear-gradient(145deg, #fff, #d5f1de);
  box-shadow: 0 18px 45px -15px #1e814938, inset 0 2px 1px #fff;
}
.care-label { border-color: #c7e6d1; color: var(--deep); box-shadow: 0 7px 24px #123e2a0a; }
.care-number { color: var(--green); font-weight: 600; }
.care-list article { border-color: #dbe9df; }
.approach-section {
  position: relative; isolation: isolate; overflow: clip;
  background: #103b29;
}
.approach-section::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 90% 0%, #1e814970, transparent 65%),
    linear-gradient(130deg, transparent 50%, #c2edce08 50.05%, transparent 50.2%);
}
.approach-section .eyebrow { color: var(--mint); }
.steps article { border-color: #6fb38670; position: relative; }
.steps article::before {
  content: ''; position: absolute; left: 0; top: -2px; width: 36px; height: 3px;
  border-radius: 5px; background: var(--mint);
}
.steps article > span { color: var(--mint); }
.steps p { color: #d1e1d7; }
.faq summary { transition: color 180ms ease; }
.faq summary:hover, .faq details[open] summary { color: var(--green); }
.faq summary svg { color: var(--green); }
.contact-section {
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(130deg, #f6eee5 0%, #e8f5e9 45%, #c2edce 100%);
}
.contact-section::before, .contact-section::after {
  content: ''; position: absolute; z-index: -1; width: 500px; height: 500px;
  border-radius: 50%; border: 1px solid #1e814917; pointer-events: none;
  right: -290px; top: 25%;
}
.contact-section::after { width: 650px; height: 650px; right: -365px; top: calc(25% - 75px); }
.contact-section h2 { color: var(--deep); }
.contact-section .lead, .email { color: #465b4d; }
.footer-bottom a:hover { color: var(--green); }

/* Progressive enhancement: only JS may mark off-screen content as pending.
   No content is hidden by default, without JS, in print, or in reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal-target {
    transition: opacity 650ms var(--ease), transform 750ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready .reveal-target.is-pending { opacity: 0; transform: translateY(20px); }
  .motion-ready .reveal-target:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }
  .motion-ready .hero h1 { animation: title-arrive 850ms var(--ease) both; }
  .motion-ready .hero .lead, .motion-ready .hero-actions { animation: intro-arrive 850ms var(--ease) both; }
  .motion-ready .device-pair { animation: device-arrive 1100ms var(--ease) both; }
  .motion-ready .hero::before { animation: ambient-arrive 3.8s var(--ease) both; }
  .motion-ready .care-visual.is-revealed .orbit-one { animation: orbit-connect 3.8s var(--ease) both; }
  .motion-ready .care-visual.is-revealed .orbit-two { animation: orbit-connect 3.8s var(--ease) reverse both; }
  .motion-ready .care-visual.is-revealed .care-emblem { animation: emblem-arrive 1.1s var(--ease) both; }
  .nav-links.is-open { animation: menu-arrive 230ms var(--ease) both; }
  .faq details[open] > p { animation: answer-arrive 250ms var(--ease) both; }
  @keyframes title-arrive { from { transform: translateY(10px); } to { transform: none; } }
  @keyframes intro-arrive { from { opacity: .75; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes device-arrive { from { transform: translateY(22px) scale(.985); } to { transform: none; } }
  @keyframes ambient-arrive { from { opacity: .3; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
  @keyframes orbit-connect { from { transform: rotate(-60deg); } to { transform: rotate(0deg); } }
  @keyframes emblem-arrive { from { transform: scale(.96); } to { transform: scale(1); } }
  @keyframes menu-arrive { from { opacity: .7; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
  @keyframes answer-arrive { from { opacity: .6; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  @media (hover: hover) and (pointer: fine) {
    .menu-paper { transition: transform 650ms var(--ease); }
    .menu-feature:hover .menu-paper { transform: rotate(-2deg) translateY(12px); }
    .identity-visual i { transition: transform 400ms var(--ease); }
    .identity-feature:hover .identity-visual i:nth-child(even) { transform: translateY(-5px); }
  }
}
@media (max-width: 760px) {
  .feature-rail { column-gap: 8px; row-gap: 8px; }
  .feature-rail > span { padding: 5px 8px; }
  .nav-links { background: #f7fcf8fc; border-color: #c2edce; }
  .nav-links a::after { display: none; }
  .care-visual { border-radius: 28px; }
  .project { border-color: #ded5ca; }
  /* The phone is an illustration overlay, never a mask over the desktop copy. */
  .desktop .restaurant-copy { width: 66%; padding-right: 8px; }
  .desktop .restaurant-copy h2 { font-size: clamp(16px, 4.4vw, 25px); }
}
@media (max-width: 480px) {
  .hero-actions, html[lang=es] .hero-actions {
    flex-direction: column; gap: 5px; align-items: center;
  }
  .hero-actions > .button {
    min-width: 210px; max-width: 100%; white-space: nowrap;
  }
  .hero-actions > .text-link { white-space: nowrap; }
  .desktop .restaurant-copy { width: 65%; padding-left: 14px; }
  .desktop .restaurant-copy h2 { font-size: clamp(15px, 4.1vw, 19px); }
}
@media (max-width: 430px) {
  .feature-rail { column-gap: 5px; }
  .feature-rail > span { padding: 5px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal-target.is-pending { opacity: 1; transform: none; }
}
@media print {
  .motion-ready .reveal-target.is-pending { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
