/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5C1F2C;
  --burgundy-light: #9A3D4E;
  --blush: #FDF0F0;
  --blush-mid: #F8D7DA;
  --blush-dark: #E8B4B8;
  --cream: #FFFAF8;
  --warm-gray: #6B5B5B;
  --text-dark: #3D2B2B;
  --text-mid: #7A6060;
  --text-light: #A08888;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.08);
  --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.12);
  --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --sidebar-width: 260px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--text-dark);
}

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

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

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

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 28px;
  z-index: 1000;
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  color: var(--white);
}

.logo-mark {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.logo-text small {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-top: 2px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.sidebar-nav a.active {
  background: rgba(255,255,255,0.18);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
  transition: var(--transition);
}

.sidebar-nav a.active .nav-dot,
.sidebar-nav a:hover .nav-dot {
  background: var(--blush);
  box-shadow: 0 0 8px rgba(253, 240, 240, 0.5);
}

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

.sidebar-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.sidebar-phone:hover {
  color: var(--white);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--burgundy);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow-md);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.show {
  opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background: var(--blush);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, var(--blush-mid) 0%, var(--blush) 60%, var(--cream) 100%);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(123,45,59,0.04) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero h1 .accent {
  color: var(--burgundy);
  font-style: italic;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 460px;
}

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

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--burgundy);
  box-shadow: var(--shadow-sm);
}

.hero-image {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow: hidden;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.3);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(123, 45, 59, 0.4);
}

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

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

.btn-full {
  width: 100%;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--blush-mid);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===== NOSOTROS ===== */
.nosotros {
  background: var(--white);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

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

.nosotros-text p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

.nosotros-text strong {
  color: var(--text-dark);
}

.nosotros-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--blush-mid);
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== PRODUCTOS ===== */
.productos {
  background: var(--cream);
}

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

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

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

.producto-img {
  height: 220px;
  overflow: hidden;
}

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

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

.producto-info {
  padding: 24px;
}

.producto-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.producto-info p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== GALERÍA ===== */
.galeria {
  background: var(--white);
}

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

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

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

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

.galeria-item--wide {
  grid-column: span 8;
  height: 320px;
}

.galeria-item:not(.galeria-item--wide):not(.galeria-item--tall) {
  height: 260px;
}

.galeria-item--tall {
  grid-column: span 4;
  height: 540px;
}

/* ===== HORARIO ===== */
.horario {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--white);
}

.horario .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.horario .section-header h2 {
  color: var(--white);
}

.horario .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.horario-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.horario-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

.horario-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.horario-day:last-child {
  border-bottom: none;
}

.day-name {
  font-weight: 700;
  font-size: 15px;
}

.day-hours {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.85;
}

.horario-day--weekend .day-name {
  color: var(--blush-mid);
}

.horario-day--closed .day-hours {
  color: var(--blush-dark);
  font-style: italic;
}

.horario-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--cream);
}

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

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacto-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

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

.contacto-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contacto-item p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

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

.contacto-item a:hover {
  color: var(--burgundy-dark);
}

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

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

.contacto-form-wrapper h3 {
  font-size: 24px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--blush-mid);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}

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

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

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

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--burgundy);
}

.form-success svg {
  margin: 0 auto 16px;
  color: var(--burgundy);
}

.form-success p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

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

.footer-logo {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-links,
.footer-contact {
  font-size: 14px;
  line-height: 1.7;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  color: var(--white);
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-contact a {
  transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
  }

  .hero-content {
    padding: 60px 40px;
  }

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

  .galeria-item--wide {
    grid-column: span 12;
  }

  .galeria-item:not(.galeria-item--wide):not(.galeria-item--tall) {
    grid-column: span 6;
  }

  .galeria-item--tall {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-overlay {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 120px 32px 60px;
    order: 2;
  }

  .hero-image {
    height: 400px;
    order: 1;
  }

  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero-content {
    padding: 100px 20px 48px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

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

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

  .galeria-item--wide,
  .galeria-item:not(.galeria-item--wide):not(.galeria-item--tall),
  .galeria-item--tall {
    grid-column: span 1;
    height: 240px;
  }

  .nosotros-stats {
    flex-direction: column;
    gap: 24px;
  }

  .contacto-form-wrapper {
    padding: 28px;
  }

  .horario-card {
    padding: 24px;
  }

  .horario-day {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
