:root {
  --background: #faf7f2;
  --foreground: #2c3e50;
  --card: #f5f0eb;
  --card-hover: #efe8df;
  --card-foreground: #2c3e50;
  --primary: #3a7ca5;
  --primary-foreground: #ffffff;
  --secondary: #f0e8dc;
  --secondary-foreground: #2c3e50;
  --muted: #ede6dc;
  --muted-foreground: #7a8a9a;
  --accent: #c76b4a;
  --accent-foreground: #ffffff;
  --border: #e0d8ce;
  --input: #e0d8ce;
  --ring: #3a7ca5;
  --radius: 8px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
  --header-height: 72px;
  --section-padding: 100px 24px;
  --shadow-card: 0 4px 20px -4px rgba(44, 62, 80, 0.08);
  --shadow-elevated: 0 8px 30px -8px rgba(44, 62, 80, 0.12);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

strong {
  color: var(--foreground);
}

.container-custom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s;
  padding: 20px 0;
}

.header.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  padding: 12px 0;
}

.header .container-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.3s;
}

.header:not(.scrolled) .logo,
.header:not(.scrolled) .nav-desktop a {
  color: #ffffff;
}

.header.scrolled .logo {
  color: var(--foreground);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.header:not(.scrolled) .nav-desktop a:hover,
.header:not(.scrolled) .nav-desktop a.active {
  color: rgba(255, 255, 255, 0.85);
}

.header.scrolled .nav-desktop a {
  color: var(--foreground);
}

.header.scrolled .nav-desktop a:hover,
.header.scrolled .nav-desktop a.active {
  color: var(--accent);
}

.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.header:not(.scrolled) .nav-phone-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

.header:not(.scrolled) .nav-phone-btn:hover {
  background: #ffffff;
  color: var(--foreground);
}

.header.scrolled .nav-phone-btn {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-foreground);
}

.header.scrolled .nav-phone-btn:hover {
  background: #b85d3e;
  border-color: #b85d3e;
}

/* ========== MOBILE MENU ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header:not(.scrolled) .menu-toggle {
  color: #ffffff;
}

.header.scrolled .menu-toggle {
  color: var(--foreground);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.mobile-menu-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
}

.mobile-menu-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--foreground);
  transition: color 0.3s;
}

.mobile-menu-nav a:hover {
  color: var(--accent);
}

.mobile-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--accent-foreground) !important;
  border-radius: var(--radius);
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-top: 16px;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--header-height) 24px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.4) 0%, rgba(44, 62, 80, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeUp 0.6s ease-out forwards;
}

.hero-badge {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 300;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(44, 62, 80, 0.3);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(44, 62, 80, 0.3);
}

.hero-location {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

.scroll-dot {
  width: 4px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  margin-top: 6px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 4px 12px rgba(199, 107, 74, 0.3);
}

.btn-accent:hover {
  background: #b85d3e;
  box-shadow: 0 6px 20px rgba(199, 107, 74, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--foreground);
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-align: center;
  color: var(--foreground);
}

.section-title.text-left {
  text-align: left;
}

.section-desc {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ========== ESPECIALIDADES ========== */
.especialidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .especialidades-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.card-desc {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-elevated);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-deco {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  z-index: -1;
}

.about-deco-br {
  bottom: -16px;
  right: -16px;
  background: rgba(199, 107, 74, 0.15);
}

.about-deco-tl {
  top: -16px;
  left: -16px;
  background: rgba(58, 124, 165, 0.15);
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-text {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ========== FEATURES ========== */
.features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dbeaf2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.feature-desc {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-lg {
  grid-column: span 2;
  grid-row: span 2;
}

@media (min-width: 768px) {
  .gallery-item-wide {
    grid-column: span 2;
  }

  .gallery-item-lg {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 80, 0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(44, 62, 80, 0.4);
}

.gallery-overlay span {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay span {
  opacity: 1;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--foreground);
  color: #ffffff;
}

.footer-main {
  padding: var(--section-padding);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-brand .btn-accent {
  width: 100%;
}

@media (min-width: 640px) {
  .footer-brand .btn-accent {
    width: auto;
  }
}

.footer-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-icon-circle svg {
  width: 20px;
  height: 20px;
}

.footer-info-header h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

.footer-info-body {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-info-bold {
  color: #ffffff;
  font-weight: 500;
  margin-top: 8px;
}

.footer-info-bold:first-child {
  margin-top: 0;
}

.footer-info-note {
  font-size: 0.85rem;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-info-accent {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
}

.footer-bottom .container-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom .container-custom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--background);
  border-radius: var(--radius);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.modal-badge {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--foreground);
}

.modal-desc {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-top: 4px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--foreground);
  background: var(--muted);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.modal-section {
  margin-bottom: 40px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.modal-plato {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.modal-plato-info {
  flex: 1;
}

.modal-plato-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--foreground);
}

.modal-plato-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-top: 2px;
}

.modal-plato-price {
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  font-size: 1rem;
}

.modal-footer {
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.modal-footer p {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 20px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .card-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .modal-body {
    padding: 20px;
  }

  .modal-header {
    padding: 20px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
