@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #8B1A1A;
  --primary-light: #A52A2A;
  --primary-dark: #5C1010;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-dark: #A08030;
  --cream: #FDF8F0;
  --dark: #1A1A1A;
  --dark-light: #2D2D2D;
  --text: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  --border: #E8E0D4;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  /*background: var(--cream);*/
  background: #e6b668;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

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

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--gold);
  backdrop-filter: blur(12px);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
}
.estanco-symbol {
  width: 48px; height: 48px;
  background: var(--primary);
  border: 2px solid var(--gold);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800;
  color: var(--gold);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--gold-light); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  display: block; width: 28px; height: 3px;
  background: var(--gold); margin: 5px 0;
  transition: 0.3s;
}

/* HERO */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: center;
  background: url('../images/fachada1.webp') center center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 650px;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.8;
  /*margin-right: 20px;*/
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--dark);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-symbol {
  position: absolute;
  right: 8%; top: 50%; transform: translateY(-50%);
  width: 230px; height: 250px;
  background: var(--primary);
  /*border: 6px solid var(--gold);*/
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 14rem; font-weight: 800;
  color: var(--gold);
  text-shadow: 4px 4px 8px rgba(0,0,0,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-symbol::after {
  content: '';
  position: absolute; inset: -20px;
  border: 2px solid rgba(201,168,76,0.2);
  border-radius: 32px;
}

/* SECTIONS */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-size: 2.5rem; font-weight: 700;
  color: var(--dark); margin-bottom: 16px;
}
.section-header h2 span { color: var(--primary); }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-divider {
  width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* PRODUCTOS */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.producto-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s;
  border: 1px solid var(--border);
}
.producto-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.producto-img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}
.producto-card:hover .producto-img { transform: scale(1.05); }
.producto-img-wrapper { overflow: hidden; position: relative; }
.producto-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.producto-info { padding: 24px; }
.producto-info h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--dark); }
.producto-info p { font-size: 0.95rem; color: var(--text-light); }

/* GALERÍA */
.bg-dark { background: var(--dark); }
.bg-dark .section-header h2 { color: var(--white); }
.bg-dark .section-header h2 span { color: var(--gold); }
.bg-dark .section-header p { color: rgba(255,255,255,0.6); }
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 16px;
}
.galeria-item {
  position: relative; overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}
.galeria-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.galeria-item:hover img { transform: scale(1.1); }
.galeria-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
  display: flex; align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay span { color: var(--white); font-weight: 600; font-size: 1rem; }

/* HORARIO */
.horario-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.horario-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.horario-card h3 {
  font-size: 1.6rem;
  margin-bottom: 32px;
  color: var(--dark);
  display: flex; align-items: center; gap: 12px;
}
.horario-card h3 .icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.horario-table { width: 100%; }
.horario-table tr { border-bottom: 1px solid var(--border); }
.horario-table tr:last-child { border: none; }
.horario-table td {
  padding: 16px 0;
  font-size: 1rem;
}
.horario-table td:first-child { font-weight: 600; color: var(--dark); }
.horario-table td:last-child { text-align: right; color: var(--text-light); }
.horario-table tr.closed td:last-child { color: var(--primary); font-weight: 600; }
.info-list { list-style: none; }
.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem;
}
.info-list li:last-child { border: none; }
.info-list .icon-sm {
  width: 36px; height: 36px;
  background: rgba(139,26,26,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* MAPA */
.mapa-section { background: var(--white); }
.mapa-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.mapa-wrapper iframe {
  width: 100%; height: 450px; border: none;
}
.mapa-placeholder {
  width: 100%; height: 450px;
  background: var(--cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  color: var(--text-light);
}
.mapa-placeholder .icon-lg { font-size: 3rem; }
.mapa-placeholder p { font-size: 1rem; max-width: 400px; text-align: center; }
.mapa-placeholder code {
  background: var(--dark);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer h4 {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: rgba(255,255,255,1);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none;
  color: var(--white); font-size: 2.5rem;
  cursor: pointer;
}

/* ANIMATIONS */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-symbol { display: none; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .galeria-item:nth-child(1) { grid-column: span 2; }
  .horario-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-content { margin-top: 10px; margin-bottom: 10px;  }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--dark);
    padding: 24px;
    border-top: 1px solid rgba(201,168,76,0.2);
    gap: 16px;
  }
  .menu-toggle { display: block; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .galeria-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
  .horario-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
