/* ============================================
   ELSABOR DE LA GARNACHA — STYLES
   Burgundy + Blush | Warm & Friendly
   ============================================ */

/* --- CSS Variables --- */
:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5A1F2B;
  --burgundy-light: #9E3A4D;
  --blush: #F5D5D0;
  --blush-light: #FBEEEA;
  --blush-lighter: #FFF6F4;
  --cream: #FFFAF8;
  --text-dark: #2D1520;
  --text-body: #4A2C35;
  --text-muted: #7A5560;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.06);
  --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.10);
  --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.14);
  --shadow-xl: 0 16px 60px rgba(123, 45, 59, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.text-center { text-align: center; }

/* --- Typography --- */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--blush);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.text-accent {
  color: var(--burgundy);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn--primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn--outline:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: all var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--burgundy);
  font-weight: 700;
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--burgundy);
  background: var(--blush-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--burgundy);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--blush-light);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  background: linear-gradient(135deg, var(--blush-lighter) 0%, var(--blush-light) 50%, var(--blush) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 2px 2px, var(--burgundy) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(123, 45, 59, 0.15);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 1.4rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(123, 45, 59, 0.2);
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
}

.hero-image-blob {
  position: absolute;
  inset: -20px;
  background: var(--burgundy);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: 0.08;
  animation: blobMorph 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  aspect-ratio: 620/780;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.hero-float-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-float-card--coffee {
  bottom: 60px;
  left: -40px;
  animation-delay: 0s;
}

.hero-float-card--wine {
  top: 60px;
  right: -30px;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- About --- */
.about {
  padding: 100px 24px;
  background: var(--white);
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--white);
}

.about-img-secondary img {
  width: 260px;
  height: 260px;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--blush);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
}

.about-text .section-tag { margin-bottom: 16px; }

.about-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

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

.about-feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--blush-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature strong {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.about-feature span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Menu --- */
.menu {
  padding: 100px 24px;
  background: var(--cream);
}

.menu .container { max-width: 1200px; }

.section-header {
  margin-bottom: 48px;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--white);
  border: 2px solid var(--blush);
  border-radius: 50px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-tab:hover {
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.menu-tab.active {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card-img {
  overflow: hidden;
  height: 200px;
}

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

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

.menu-card-body {
  padding: 24px;
}

.menu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.menu-card-top h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.menu-card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  background: var(--blush-light);
  padding: 4px 10px;
  border-radius: 50px;
}

.menu-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
  padding: 100px 24px;
  background: var(--white);
}

.gallery .container { max-width: 1200px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

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

.gallery-item--large img {
  height: 100%;
  min-height: 420px;
}

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

.gallery-item--wide img {
  height: 260px;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) img {
  height: 200px;
}

/* --- Visit --- */
.visit {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--blush) 100%);
}

.visit-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.visit-info .section-tag { margin-bottom: 16px; }

.visit-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 36px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.visit-detail {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.visit-detail-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.visit-detail strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.visit-detail span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.visit-detail a {
  color: var(--burgundy);
  font-weight: 600;
  transition: color var(--transition);
}

.visit-detail a:hover {
  color: var(--burgundy-dark);
  text-decoration: underline;
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.visit-map-placeholder {
  background: var(--white);
  padding: 60px 40px;
  text-align: center;
}

.visit-map-placeholder svg {
  margin: 0 auto 20px;
  opacity: 0.6;
}

.visit-map-placeholder p {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* --- Contact --- */
.contact {
  padding: 100px 24px;
  background: var(--cream);
}

.contact .container { max-width: 1200px; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text .section-tag { margin-bottom: 16px; }

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--blush-lighter);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--blush-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--burgundy-dark);
}

.form-success strong {
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--text-dark);
  color: var(--blush);
  padding: 80px 24px 0;
}

.footer .container { max-width: 1200px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 213, 208, 0.6);
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(245, 213, 208, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blush);
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col li {
  font-size: 0.9rem;
  color: rgba(245, 213, 208, 0.6);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.footer-col li svg {
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0.6;
}

.footer-col a {
  color: rgba(245, 213, 208, 0.6);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col li span {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 213, 208, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(245, 213, 208, 0.4);
}

/* --- Mobile Menu --- */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 250, 248, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  gap: 8px;
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  box-shadow: var(--shadow-md);
}

.nav-links.open a {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  width: 100%;
}

/* --- Scroll Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default visible state for reduced motion */
.reveal {
  opacity: 1;
  transform: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-image-wrap {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-float-card--coffee { left: 0; }
  .hero-float-card--wine { right: 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-images { max-width: 500px; margin: 0 auto; }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--large { grid-row: span 1; }
  .gallery-item--large img { min-height: 280px; }
  .gallery-item--wide { grid-column: span 2; }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

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

  .hero-float-card { display: none; }

  .about-img-secondary {
    right: -10px;
    bottom: -20px;
  }

  .about-img-secondary img {
    width: 180px;
    height: 180px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide { grid-column: span 1; }
  .gallery-item--wide img { height: 220px; }

  .gallery-item img { min-height: 200px; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .menu-tabs {
    flex-direction: column;
    align-items: center;
  }

  .menu-tab {
    width: 100%;
    justify-content: center;
  }
}
