:root {
  --credit-logo-size: 22px;
  color-scheme: dark;
  --gold: #ffc04d;
  --line: #b97929;
  --white: #fff8ee;
}
.developer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.developer-credit img {
  width: var(--credit-logo-size);
  height: var(--credit-logo-size);
  object-fit: cover;
  clip-path: circle(43%);
  flex-shrink: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #241004;
  color: var(--white);
  font-family: Arial,Helvetica,sans-serif;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

svg {
  width: 1.6rem;
  height: 1.6rem;
}

.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.scene {
  position: relative;
  min-height: calc(100svh - 72px);
  background: url('Fundositecantina.png') center center/cover no-repeat;
  isolation: isolate;
  overflow: hidden;
}

.scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent 20%,#2b100326 40%,#2b100326 65%,transparent 85%);
  z-index: -1;
}

.chef-photo {
  position: absolute;
  left: 4%;
  top: 0;
  width: min(30vw,480px);
  height: auto;
  aspect-ratio: 2 / 3;
  background: url('assets/chef-recortado.png') top center/contain no-repeat;
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  z-index: -1;
}

.content {
  width: min(770px,48%);
  margin: 0 auto;
  padding: 70px 0 10px;
  text-align: center;
  padding-top: 5vh;
  padding-bottom: 8px;
}

.logo {
  width: clamp(100px,25vh,224px);
  height: clamp(100px,25vh,224px);
  object-fit: contain;
  border-radius: 50%;
}

h1 {
  margin: 8px -80px 7px;
  font: 700 clamp(2.2rem,3.25vw,3.5rem)/1.15 Georgia,'Times New Roman',serif;
  text-shadow: 0 3px 10px #210900;
  font-size: clamp(1.8rem,5.5vh,3.5rem);
  margin-top: 7px;
  margin-bottom: 5px;
}

.tagline {
  font-size: clamp(1rem,3.5vh,1.9rem);
  font-style: italic;
  color: var(--gold);
  margin: 5px 0 12px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 24px;
  width: 280px;
  margin-bottom: clamp(10px,2vh,24px);
}

.ornament:before {
  content: "";
  height: 1px;
  width: 130px;
  background: linear-gradient(90deg,transparent,var(--line));
}

.ornament:after {
  content: "";
  height: 1px;
  width: 130px;
  background: linear-gradient(90deg,transparent,var(--line));
  transform: rotate(180deg);
}

.ornament span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e89a26;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg,#7b400a9c,#321904d9);
  box-shadow: inset 0 1px 0 #ffdb8130,0 6px 20px #16070022;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  min-height: clamp(80px,14vh,134px);
  font-size: clamp(1rem,2.4vh,1.25rem);
  font-weight: 600;
  padding: clamp(8px,1.5vh,17px) 10px;
  transition: background .2s,transform .2s,border-color .2s;
}

.card:hover {
  background: linear-gradient(145deg,#9b5915cc,#4b270bd9);
  border-color: var(--gold);
  transform: translateY(-3px);
}

button:focus-visible {
  outline: 3px solid #ffda80;
  outline-offset: 5px;
}

.icon-box {
  display: grid;
  place-items: center;
  background: #b87b2833;
  width: clamp(40px,7vh,65px);
  height: clamp(40px,7vh,63px);
  border-radius: 16px;
  color: var(--gold);
}

.icon-box svg {
  width: clamp(28px,4.5vh,40px);
  height: clamp(28px,4.5vh,40px);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: .82rem;
  letter-spacing: .21em;
  font-weight: 400;
  text-transform: uppercase;
  color: #e7d2bf;
  margin: 24px 0 10px;
  margin-top: clamp(10px,2vh,22px);
  margin-bottom: 8px;
}

.section-title:before {
  content: "";
  height: 1px;
  background: #a36c30;
  flex: 1;
  max-width: 170px;
}

.section-title:after {
  content: "";
  height: 1px;
  background: #a36c30;
  flex: 1;
  max-width: 170px;
}

.hours {
  padding: 0 11%;
}

.hours-badge {
  border: 1px solid #a86720;
  border-radius: 14px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 8px 18px;
  width: fit-content;
  background: #281303a6;
  font-size: clamp(1rem,2.4vh,1.25rem);
  white-space: nowrap;
}

.hours-badge svg {
  color: var(--gold);
}

.hours-badge b {
  margin: 0 10px;
  font-weight: 400;
}

.social {
  padding: 0 10%;
}

.social .section-title {
  margin-top: clamp(10px,2vh,22px);
  margin-bottom: 8px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.social-card {
  min-height: clamp(66px,10vh,97px);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 400;
  padding: 8px 6px;
  gap: 7px;
}

.brand {
  width: clamp(30px,4.7vh,40px);
  height: clamp(30px,4.7vh,40px);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.instagram {
  background: radial-gradient(circle at 25% 100%,#ffdc80,#f77737 28%,#fd1d1d 45%,#c13584 60%,#833ab4 80%,#405de6);
}

.whatsapp {
  background: #05d954;
}

.facebook {
  background: linear-gradient(#168aff,#075cec);
  font: bold 49px/40px Arial;
  overflow: hidden;
  padding-top: 7px;
}

.tiktok {
  background: #101015;
  font: bold 38px/1 Arial;
  text-shadow: -2px -1px #24e8e6,2px 1px #ff245b;
}

.location {
  position: absolute;
  right: 2.8%;
  top: auto;
  border: 1px solid #bd8128;
  border-radius: 17px;
  background: #291201c9;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 17px;
  font-size: 1.2rem;
  text-align: left;
  bottom: 22px;
}

.location small {
  display: block;
  font-size: .9rem;
  color: #ddcbbf;
  margin-top: 5px;
}

.location-icon {
  background: #75441144;
  display: grid;
  place-items: center;
  width: 49px;
  height: 48px;
  border-radius: 12px;
  color: var(--gold);
}

.location-icon svg {
  width: 33px;
  height: 33px;
}

.motto {
  position: absolute;
  color: var(--gold);
  font: italic 2.65rem/1.1 'Brush Script MT','Segoe Script',cursive;
  transform: rotate(-12deg);
  margin: 0;
  text-shadow: 0 2px 10px #301200;
}

.motto-right {
  right: 3%;
  top: 27%;
  font-size: 2.3rem;
  text-align: center;
}
.motto-left {
  left: 1.5%;
  top: 5%;
  font-size: clamp(1rem,1.5vw,1.6rem);
}
@media(max-width:760px) { .motto-left { display: none; } }

.motto-right:after {
  content: "";
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 100%;
  transform: rotate(-6deg);
  margin-top: 8px;
}

.footer-motto:after {
  content: "";
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 100%;
  transform: rotate(-6deg);
  margin-top: 8px;
}

.chef-label {
  position: absolute;
  left: 32%;
  top: 18%;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  text-align: center;
  transform: rotate(-4deg);
  border: 1px solid #a86c21;
  border-radius: 18px;
  padding: 8px 12px;
  background: #2c150696;
}

.chef-label small {
  font-size: 1rem;
}

.chef-label strong {
  font: italic 2rem 'Segoe Script',cursive;
}

footer {
  min-height: 72px;
  background: linear-gradient(100deg,#412105,#251104,#3c1d04);
  border-top: 1px solid #996021;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 3%;
  text-align: center;
  font-size: .9rem;
  color: #cdbfb4;
  height: 72px;
  padding-top: 7px;
  padding-bottom: 7px;
  overflow: hidden;
}

footer p {
  margin: 7px 0;
}

footer span {
  margin: 0 10px;
}

.footer-motto {
  color: var(--gold);
  font: italic 1.5rem/1.1 'Brush Script MT','Segoe Script',cursive;
  transform: rotate(-7deg);
  text-align: left;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-motto.end {
  text-align: right;
}

dialog {
  width: min(440px,calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg,#4c260d,#241105);
  color: var(--white);
  padding: 35px;
  box-shadow: 0 20px 100px #0009;
}

dialog::backdrop {
  background: #100700ba;
  backdrop-filter: blur(5px);
}

dialog h2 {
  font: 700 1.8rem Georgia;
  margin: 16px 0;
}

dialog p {
  line-height: 1.6;
  color: #e7d2bf;
}

.dialog-eyebrow {
  color: var(--gold);
  font-size: .9rem;
}

.close {
  position: absolute;
  right: 13px;
  top: 8px;
  background: none;
  border: 0;
  font-size: 2rem;
}

.dialog-ok {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #7a4212;
  padding: 10px 20px;
  margin-top: 10px;
}

footer>div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: clamp(.75rem,1vw,.9rem);
}

footer>div p {
  margin: 0;
}

footer>div p+p:before {
  content: '·';
  margin-right: 12px;
}

.system-button {
  position: absolute;
  top: 27px;
  right: 2.8%;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid #bd8128;
  border-radius: 13px;
  background: #291201c9;
  color: var(--gold);
  font-size: 1rem;
  transition: background .2s;
}

.system-button:hover {
  background: #6b380ecc;
}

@media (min-width: 761px) and (max-width: 1200px) {
  .content {
    width: 55%;
  }

  .section-title {
    font-size: .75rem;
    letter-spacing: .14em;
  }

  .hours {
    padding: 0 5%;
  }

  .social {
    padding: 0 5%;
  }

  .location {
    right: 2%;
    padding: 10px;
    font-size: 1rem;
  }

  .motto-right {
    right: 2%;
    font-size: 1.7rem;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  footer {
    justify-content: center;
  }

  footer .footer-motto {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .scene {
    min-height: 0;
    background-position: center;
    background-attachment: scroll;
    flex: 1;
    display: flex;
  }

  .scene:after {
    background: linear-gradient(#2a110030,#2a1100e8 42%,#2a1100b0);
  }

  .chef-photo {
    left: 0;
    width: 100%;
    height: 370px;
    mask-image: linear-gradient(#000,transparent);
    background-size: 360px auto;
    opacity: .5;
  }

  .content {
    width: 100%;
    padding: 68px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
  }

  .logo {
    width: clamp(100px,15vh,150px);
    height: clamp(100px,15vh,150px);
    align-self: center;
    flex-shrink: 0;
  }

  h1 {
    margin: 10px 0 6px;
    font-size: clamp(1.7rem,7vw,2.4rem);
  }

  .tagline {
    font-size: 1.1rem;
    margin: 6px 0 12px;
  }

  .ornament {
    margin-bottom: 16px;
    flex-shrink: 0;
  }

  .actions {
    gap: 9px;
  }

  .card {
    border-radius: 14px;
    min-height: 96px;
    font-size: .92rem;
    padding: 10px 5px;
    line-height: 1.3;
  }

  .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .icon-box svg {
    width: 27px;
    height: 27px;
  }

  .section-title {
    gap: 9px;
    font-size: .75rem;
    letter-spacing: .15em;
    line-height: 1.6;
    margin-top: 18px;
    margin-bottom: 9px;
  }

  .hours {
    padding: 0;
  }

  .hours-badge {
    padding: 9px 15px;
    font-size: 1rem;
  }

  .hours-badge b {
    margin: 0 5px;
  }

  .social {
    padding: 0;
  }

  .social .section-title {
    margin-top: 18px;
    margin-bottom: 9px;
  }

  .social-grid {
    gap: 8px;
  }

  .social-card {
    min-height: 78px;
    font-size: .8rem;
    padding: 8px 5px;
    gap: 6px;
  }

  .brand {
    width: 30px;
    height: 30px;
  }

  .brand svg {
    width: 25px;
    height: 25px;
  }

  .facebook {
    font-size: 44px;
    line-height: 35px;
  }

  .tiktok {
    font-size: 32px;
  }

  .location {
    right: 12px;
    top: 12px;
    border-radius: 8px;
    background: #29120166;
    gap: 6px;
    padding: 5px 8px;
    font-size: .75rem;
    border-color: #ad7c3a55;
    color: #ddcbb5;
    bottom: unset;
  }

  .location small {
    font-size: .75rem;
    color: #c5b5a2;
    margin-top: 2px;
  }

  .location-icon {
    background: transparent;
    width: 22px;
    height: 26px;
    color: #d2a14e;
  }

  .location-icon svg {
    width: 19px;
    height: 19px;
  }

  .motto-right {
    right: 2%;
    font-size: 1.7rem;
    display: none;
  }

  .chef-label {
    left: 27%;
    top: 27%;
    display: none;
    padding: 8px;
  }

  footer {
    min-height: 0;
    gap: 0;
    padding: 14px 12px;
    font-size: .75rem;
    flex-direction: column;
    line-height: 1.5;
    flex-shrink: 0;
    height: auto;
    overflow: unset;
  }

  footer p {
    margin: 3px 0;
  }

  footer span {
    margin: 0 3px;
  }

  .footer-motto {
    text-align: center;
    font-size: 1.2rem;
    flex-shrink: unset;
  }

  .footer-motto.end {
    display: none;
  }

  footer .footer-motto {
    display: none;
  }

  .system-button {
    display: none;
  }

  footer>div {
    width: 100%;
    display: grid;
    gap: 6px;
    align-items: unset;
    justify-content: unset;
    flex-wrap: unset;
    white-space: unset;
    font-size: unset;
  }

  footer>div p {
    overflow-wrap: break-word;
  }

  footer>div p+p:before {
    content: none;
    margin-right: unset;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .content {
    padding: 62px 12px 12px;
  }

  .logo {
    width: 76px;
    height: 76px;
  }

  h1 {
    margin: 8px 0 5px;
    font-size: clamp(1.25rem,6.3vw,1.7rem);
  }

  .tagline {
    font-size: 1rem;
    margin: 5px 0 10px;
  }

  .ornament {
    margin-bottom: 12px;
  }

  .card {
    gap: 4px;
    min-height: 78px;
    font-size: .88rem;
    padding: 6px 4px;
    line-height: 1.2;
  }

  .icon-box {
    width: 24px;
    height: 24px;
  }

  .icon-box svg {
    width: 24px;
    height: 24px;
  }

  .section-title {
    gap: 6px;
    letter-spacing: .08em;
    margin-top: 12px;
    margin-bottom: 7px;
  }

  .hours-badge {
    padding: 8px 12px;
    font-size: .95rem;
  }

  .social .section-title {
    margin-top: 12px;
    margin-bottom: 7px;
    font-size: .75rem;
    letter-spacing: .08em;
    gap: 6px;
  }

  .social-card {
    min-height: 68px;
  }

  .brand {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 760px) and (max-height: 600px) {
  .logo {
    width: 44px;
    height: 44px;
  }

  footer {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
