/* ============ VARIABLES ============ */
:root {
  --bg: #0a1428;
  --bg-soft: #0e1a33;
  --blue: #1e5fa8;
  --blue-light: #4f8fd4;
  --gold: #c9a24b;
  --gold-soft: #ddc07f;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --glass-bg: rgba(79, 143, 212, 0.08);
  --glass-border: rgba(79, 143, 212, 0.22);
  --radius: 18px;
  --ff-title: 'Playfair Display', serif;
  --ff-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--ff-title); font-weight: 700; line-height: 1.15; }

/* ============ FADE-IN ON SCROLL ============ */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #0a1428;
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.25);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(201, 162, 75, 0.4);
}

.btn--ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(79, 143, 212, 0.16);
  transform: translateY(-3px);
}

.btn--full { width: 100%; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 20, 40, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--ff-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a { transition: color 0.3s ease; }
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 10px 22px;
  border-radius: 999px;
}
.nav__cta:hover { background: rgba(201, 162, 75, 0.18); color: var(--gold-soft); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav__toggle span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,40,0.6) 0%, rgba(10,20,40,0.8) 60%, var(--bg) 100%),
    radial-gradient(circle at 50% 30%, rgba(30,95,168,0.28), transparent 60%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 760px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 38px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--glass-border);
  border-radius: 999px;
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 999px;
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ============ SECTION HEAD ============ */
.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section__head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }

/* ============ ABOUT ============ */
.about { padding: 130px 0; background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about__media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: 12px;
  pointer-events: none;
}
.about__text h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 24px; }
.about__text p { color: var(--text-muted); margin-bottom: 16px; font-weight: 300; }

/* ============ PRODUCTOS (specialties) ============ */
.specialties { padding: 130px 0; background: var(--bg-soft); }
.specialties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.dish-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.dish-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  border-color: rgba(201, 162, 75, 0.45);
}
.dish-card__img { height: 230px; overflow: hidden; }
.dish-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dish-card:hover .dish-card__img img { transform: scale(1.08); }
.dish-card__body { padding: 26px; }
.dish-card__body h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--white); }
.dish-card__body p { color: var(--text-muted); font-size: 0.92rem; font-weight: 300; margin-bottom: 18px; }
.dish-card__price {
  display: inline-block;
  font-family: var(--ff-title);
  font-weight: 600;
  color: var(--gold);
  font-size: 1.05rem;
}

/* ============ TESTIMONIAL ============ */
.testimonial {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}
.testimonial__card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 60px 48px;
}
.testimonial__quote { margin-bottom: 20px; }
.testimonial__text {
  font-family: var(--ff-title);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.5;
}
.testimonial__author { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.testimonial__name { font-weight: 600; color: var(--gold-soft); }
.testimonial__stars { color: var(--gold); letter-spacing: 2px; }

/* ============ GALLERY ============ */
.gallery { padding: 130px 0; background: var(--bg-soft); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery__item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.9);
}
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.1); }

/* ============ CONTACT ============ */
.contact {
  position: relative;
  padding: 130px 0;
  background: var(--bg);
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  top: -20%; right: -10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(30,95,168,0.22), transparent 70%);
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact__info h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 32px; }
.contact__list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact__list li { display: flex; flex-direction: column; gap: 4px; }
.contact__list strong { color: var(--gold-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact__list span { color: var(--text-muted); font-weight: 300; }

.contact__map {
  margin-top: 28px;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  filter: grayscale(0.25) contrast(1.05) brightness(0.9);
}
.contact__map iframe { width: 100%; height: 100%; display: block; }

.contact__form {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__form h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form input,
.contact__form textarea {
  width: 100%;
  background: rgba(79, 143, 212, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.92rem;
  resize: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(79, 143, 212, 0.1);
}
.contact__note { font-size: 0.85rem; color: var(--gold-soft); min-height: 18px; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-soft); padding: 64px 0 24px; border-top: 1px solid var(--glass-border); }
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.footer__brand p { color: var(--text-muted); font-weight: 300; margin-top: 10px; max-width: 260px; }
.footer__links, .footer__social { display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; }
.footer__links a:hover, .footer__social a:hover { color: var(--gold); }
.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media img { height: 340px; }
  .specialties__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 64px; right: 0;
    width: 240px;
    height: calc(100vh - 64px);
    background: rgba(10,20,40,0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--glass-border);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: flex; }

  .specialties__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}

/* ============ ASISTENTE VIRTUAL ============ */
.assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.assistant__toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 30px rgba(201, 162, 75, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: assistantPulse 2.8s ease-in-out infinite;
}
.assistant__toggle:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(201, 162, 75, 0.5);
}
.assistant__icon-close { display: none; position: absolute; }
.assistant__icon-chat { position: absolute; }
.assistant.open .assistant__toggle { animation: none; }
.assistant.open .assistant__icon-chat { display: none; }
.assistant.open .assistant__icon-close { display: block; }

@keyframes assistantPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(201, 162, 75, 0.35); }
  50% { box-shadow: 0 10px 30px rgba(201, 162, 75, 0.6), 0 0 0 8px rgba(201, 162, 75, 0.08); }
}

.assistant__panel {
  width: min(340px, calc(100vw - 48px));
  height: min(480px, calc(100vh - 140px));
  background: rgba(14, 26, 51, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.assistant.open .assistant__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.assistant__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(30, 95, 168, 0.12);
}
.assistant__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #0a1428;
  font-family: var(--ff-title);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.assistant__header strong { display: block; font-size: 0.92rem; }
.assistant__header span { display: block; font-size: 0.75rem; color: var(--text-muted); }

.assistant__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.assistant__messages::-webkit-scrollbar { width: 5px; }
.assistant__messages::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 999px; }

.assistant__msg {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.5;
  animation: msgIn 0.3s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.assistant__msg--bot {
  align-self: flex-start;
  background: rgba(79, 143, 212, 0.14);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}
.assistant__msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #0a1428;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.assistant__msg--typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 13px 16px;
  background: rgba(79, 143, 212, 0.14);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}
.assistant__msg--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: typingDot 1.1s ease infinite;
}
.assistant__msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.assistant__msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.assistant__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.assistant__chip {
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: var(--gold-soft);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.assistant__chip:hover { background: rgba(201, 162, 75, 0.15); border-color: rgba(201, 162, 75, 0.4); }

.assistant__form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--glass-border);
}
.assistant__form input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.85rem;
}
.assistant__form input:focus { outline: none; border-color: var(--gold); }
.assistant__form input::placeholder { color: rgba(255,255,255,0.4); }
.assistant__form button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.assistant__form button:hover { transform: scale(1.06); }

@media (max-width: 480px) {
  .assistant { right: 16px; bottom: 16px; }
  .assistant__panel { width: calc(100vw - 32px); }
}

/* Respeta preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { transition: none; opacity: 1; transform: none; }
  .hero__img { animation: none; }
  .hero__scroll span { animation: none; }
  .assistant__toggle { animation: none; }
}
