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

:root {
  --pink-light: #F9DECA;
  --burgundy: #B96C7A;
  --burgundy-dark: #9A5060;
  --gold: #C4A84D;
  --white: #FFFFFF;
  --off-white: #FFF8F4;
  --text-dark: #3A2A2A;
  --text-medium: #6B5050;
  --overlay: rgba(58, 42, 42, 0.55);
}

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

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin: 0.75rem auto 1.5rem;
  border: none;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--burgundy);
  transition: width 0.3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/flatlay-1.jpg') center/cover no-repeat;
  filter: brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(185, 108, 122, 0.6) 0%,
    rgba(58, 42, 42, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 1rem;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-tagline {
  font-size: 1.35rem;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background-color: var(--burgundy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  transition: background-color 0.3s, transform 0.3s;
}

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

/* ===== SECTIONS COMMON ===== */
section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--off-white);
}

/* ===== HISTORIA ===== */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.historia-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.historia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.historia-text p {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.historia-text .highlight {
  color: var(--burgundy);
  font-weight: 700;
  font-style: italic;
}

/* ===== PRODUCTOS ===== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1rem;
}

.productos-grid:last-of-type {
  grid-template-columns: repeat(2, 1fr);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.producto-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.producto-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.producto-card-body {
  padding: 1.5rem;
  text-align: center;
}

.producto-card-body h3 {
  font-size: 1.3rem;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.producto-card-body p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

/* ===== GALERIA ===== */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.galeria-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
}

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

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

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ===== LINEAS DE PRODUCTO ===== */
.linea-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--pink-light);
}

.linea-header:first-of-type {
  margin-top: 0;
}

.linea-logo {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
}

.linea-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--burgundy);
  margin-bottom: 0.15rem;
}

.linea-ubicacion {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.velvet-color {
  color: #8B7340 !important;
}

.linea-velvet {
  border-bottom-color: #D4C5A0;
}

.velvet-card {
  border: 2px solid #E8DFC8;
}

/* ===== UBICACION ===== */
.sedes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.sede-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sede-velvet {
  border-top: 4px solid #8B7340;
}

.sede-card:first-child {
  border-top: 4px solid var(--burgundy);
}

.sede-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sede-logo {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
}

.sede-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--burgundy);
}

.sede-productos {
  font-size: 0.92rem;
  color: var(--text-medium);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.ubicacion-detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ubicacion-detail svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--burgundy);
  margin-top: 2px;
}

.ubicacion-detail p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

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

.ubicacion-detail a:hover {
  color: var(--burgundy-dark);
}

.contacto-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contacto-item svg {
  width: 20px;
  height: 20px;
  color: var(--burgundy);
  flex-shrink: 0;
}

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

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

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 0.5rem;
}

.footer-brand img {
  height: 55px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.footer-social a:hover {
  background: var(--burgundy);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .historia-grid,
  .sedes-grid {
    grid-template-columns: 1fr;
  }

  .historia-img {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-logo {
    width: 150px;
  }

  .section-title {
    font-size: 1.85rem;
  }

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

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

  .galeria-item.span-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

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

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
}
