/* ==========================================================================
   MUNDO DE JOYAS - REVISTA CORPORATIVA EDITORIAL (LIGHT THEME)
   Style: Static Corporate Editorial Magazine / Horizontal Strips
   Colors: Terracota (#9E5A48), Warm Sand (#F5EBE6), Clean White (#FFFFFF), Slate (#334155)
   ========================================================================== */

/* 1. DESIGN TOKENS */
:root {
  --color-terracotta: #9E5A48;
  --color-terracotta-dark: #7E4436;
  --color-terracotta-light: #F5EBE6;
  
  --color-sand-warm: #F5EBE6;
  --color-sand-light: #FAF6F3;
  
  --color-white: #FFFFFF;
  --color-text-dark: #151515;
  --color-text-muted: #525252;
  --color-text-light: #6B7280;
  
  --color-border-line: #D1D5DB;
  --color-border-subtle: #E5E7EB;
  
  --color-footer-bg: #334155;
  --color-footer-text: #E2E8F0;
  --color-footer-muted: #94A3B8;

  --font-primary: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* WCAG 2.2 AA Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 3. LAYOUT UTILITIES & STRIPS */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.editorial-strip {
  width: 100%;
  padding: 70px 0;
  border-bottom: 1px solid var(--color-border-line);
}

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

.editorial-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-terracotta);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.strip-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.strip-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 760px;
  margin: 0 auto 36px auto;
}

/* 4. HEADER & HERO EDITORIAL */
.editorial-top-bar {
  background-color: var(--color-sand-warm);
  border-bottom: 1px solid var(--color-border-line);
  padding: 10px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  text-align: center;
}

.editorial-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-line);
  padding: 14px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.header-brand-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo-link {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.editorial-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
}

.nav-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-social-link {
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-social-link:hover {
  color: var(--color-terracotta);
  transform: translateY(-1px);
}

.editorial-nav-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-dark);
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.editorial-nav-link:hover, .editorial-nav-link.active {
  color: var(--color-terracotta);
}

.editorial-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-terracotta);
  transition: width var(--transition-fast);
}

.editorial-nav-link:hover::after, .editorial-nav-link.active::after {
  width: 100%;
}

/* HERO EDITORIAL PANORAMIC BANNER */
.hero-editorial-section {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--color-border-line);
}

.hero-panoramic-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background-color: var(--color-sand-warm);
}

.hero-panoramic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-editorial-overlay-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(158, 90, 72, 0.94);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-overlay-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
}

.hero-overlay-headline {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.hero-overlay-desc {
  font-size: 14px;
  opacity: 0.92;
  max-width: 600px;
}

/* 5. SECCIÓN INSTITUCIONAL EN 2 COLUMNAS PLANAS (SIN TARJETAS) */
.institutional-strip {
  background-color: var(--color-white);
}

.flat-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border-line);
  border-bottom: 1px solid var(--color-border-line);
  margin-top: 24px;
}

.flat-column-item {
  padding: 40px 32px;
  border-right: 1px solid var(--color-border-line);
  background: transparent;
}

.flat-column-item:last-child {
  border-right: none;
}

.flat-col-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-terracotta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.flat-col-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 14px;
}

.flat-col-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* 6. GALERÍA DE CATÁLOGO DE MUESTRA (SÓLO IMÁGENES) */
.catalog-sample-strip {
  background-color: var(--color-sand-light);
}

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

.gallery-img-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-line);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth);
}

.gallery-img-card:hover {
  box-shadow: 0 10px 25px rgba(158, 90, 72, 0.15);
  transform: translateY(-2px);
}

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

/* 7. FRANJA DESTACADA DE VIDEO (TERRACOTA/ARENA CÁLIDO #F5EBE6) */
.video-highlight-strip {
  background-color: var(--color-sand-warm);
  border-top: 1px solid var(--color-border-line);
  border-bottom: 1px solid var(--color-border-line);
}

.video-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}

.video-frame-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-line);
  padding: 16px;
}

.video-wrapper-native {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  margin-bottom: 16px;
}

.video-wrapper-native video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.video-frame-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* 8. PANEL DE PRESENCIA DIGITAL Y FICHA TÉCNICA DE CONTACTO */
.digital-contact-strip {
  background-color: var(--color-white);
}

/* Franja superior de botones de redes */
.social-buttons-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-border-line);
}

.social-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: var(--color-sand-warm);
  border: 1px solid var(--color-border-line);
  color: var(--color-terracotta-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.social-bar-btn:hover {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

.social-bar-btn-wa {
  background-color: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.social-bar-btn-wa:hover {
  background-color: #20ba5a;
  color: #FFFFFF;
  border-color: #20ba5a;
}

.social-bar-btn-phone {
  background-color: #F1F5F9;
  color: #475569;
  border-color: #E2E8F0;
}

.social-bar-btn-phone:hover {
  background-color: #E2E8F0;
  color: #1E293B;
  border-color: #CBD5E1;
}

/* FLOATING WHATSAPP BUTTON (SIEMPRE VISIBLE) */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}

.whatsapp-float-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

.whatsapp-float-text {
  letter-spacing: 0.02em;
}

/* Franja inferior: Ficha Técnica en Tabla Ordenada */
.contact-tech-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-line);
}

.contact-tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.contact-tech-table tr {
  border-bottom: 1px solid var(--color-border-line);
}

.contact-tech-table tr:last-child {
  border-bottom: none;
}

.contact-tech-table th {
  background-color: var(--color-sand-warm);
  color: var(--color-terracotta-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 16px 24px;
  text-align: left;
  width: 30%;
  border-right: 1px solid var(--color-border-line);
}

.contact-tech-table td {
  padding: 16px 24px;
  color: var(--color-text-dark);
  line-height: 1.6;
}

.contact-link {
  color: var(--color-terracotta-dark);
  font-weight: 700;
}

.contact-link:hover {
  text-decoration: underline;
}

/* 9. PIE LEGAL */
.legal-footer-strip {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 30px 0;
  font-size: 13px;
  text-align: center;
}

.legal-footer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.legal-brand-text {
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  width: 100%;
}

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

.legal-links-list a {
  color: var(--color-footer-muted);
}

.legal-links-list a:hover {
  color: var(--color-white);
}

.legal-mercantil-text {
  font-size: 12px;
  color: var(--color-footer-muted);
  line-height: 1.6;
  text-align: center;
}

/* 10. UNIFIED MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(21, 21, 21, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-line);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-sand-warm);
  border: 1px solid var(--color-border-line);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-text-dark);
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .editorial-strip {
    padding: 50px 0;
  }

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

  .flat-column-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border-line);
    padding: 30px 20px;
  }

  .flat-column-item:last-child {
    border-bottom: none;
  }

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

  .hero-panoramic-wrapper {
    height: 360px;
  }

  .hero-overlay-headline {
    font-size: 20px;
    text-align: center;
  }

  .hero-overlay-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .editorial-header {
    padding: 12px 0;
  }

  .header-brand-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .header-logo-img {
    height: 38px;
  }

  .editorial-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    width: 100%;
  }

  .editorial-nav-link {
    font-size: 11px;
    padding: 4px 6px;
  }

  .nav-social-icons {
    justify-content: center;
    gap: 14px;
    width: 100%;
  }

  .strip-title {
    font-size: 26px;
  }

  .strip-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

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

@media (max-width: 640px) {
  .hero-panoramic-wrapper {
    height: 260px;
  }

  .hero-editorial-overlay-strip {
    padding: 18px 0;
  }

  .hero-overlay-headline {
    font-size: 16px;
    line-height: 1.35;
  }

  .social-buttons-bar {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    gap: 12px;
  }

  .social-bar-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 13px;
  }

  .construction-content-box {
    padding: 40px 24px;
  }

  .construction-logo-img {
    height: 54px;
  }

  .construction-brand-name {
    font-size: 22px;
  }

  .construction-status-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .editorial-top-bar {
    font-size: 10px;
    padding: 8px 12px;
  }

  .catalog-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-img-card {
    aspect-ratio: 4 / 3;
  }

  .whatsapp-float-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-float-text {
    display: none;
  }
}


