/* ==========================================================================
   MIOO — PAGE-SPECIFIC STYLES
   ========================================================================== */

/* 1. HOME HERO SECTION */
.hero-section {
  position: relative;
  background-color: var(--color-bg-subtle);
  overflow: hidden;
  padding: var(--space-4xl) 0 var(--space-4xl);
  border-bottom: 1px solid var(--border-color-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bronze-dark);
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-light);
  padding: 0.4rem 0.95rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-bg-surface);
  background: var(--color-bg-dark);
  max-width: 480px;
  width: 100%;
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-bg-surface);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-color-light);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bronze-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bronze);
  flex-shrink: 0;
}

.floating-icon svg {
  width: 20px;
  height: 20px;
}

.floating-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-primary);
}

.floating-text span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* 2. VALUE PROPOSITION / TRUST PILLARS */
.features-section {
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--border-color-light);
  padding: var(--space-3xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bronze-dark);
  flex-shrink: 0;
  border: 1px solid var(--border-color-light);
}

.feature-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.feature-content h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* 3. CATEGORIES / FEATURED HIGHLIGHTS */
.category-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.category-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  color: var(--color-text-inverse);
  background-color: var(--color-bg-dark);
}

.category-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.category-card:hover .category-bg {
  transform: scale(1.06);
  opacity: 0.75;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1;
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-bronze-light);
  margin-bottom: 0.35rem;
}

.category-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  border-bottom: 1.5px solid var(--color-bronze);
  padding-bottom: 2px;
}

/* 4. BRAND STORY / EDITORIAL TEASER */
.brand-story-section {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--border-color-light);
  border-bottom: 1px solid var(--border-color-light);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.story-media {
  position: relative;
}

.story-img-main {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.story-content {
  padding-right: var(--space-lg);
}

.story-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  border-left: 3px solid var(--color-bronze);
  padding-left: var(--space-lg);
}

/* 5. SHOP CATALOG PAGE (tienda.html) */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.shop-sidebar {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.filter-group {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color-light);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.filter-option:hover,
.filter-option.active {
  color: var(--color-text-primary);
  font-weight: 600;
}

.filter-badge {
  font-size: 0.72rem;
  background: var(--color-bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--border-radius-pill);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color-light);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.results-count {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-size: 0.88rem;
  border: 1px solid var(--border-color-medium);
  border-radius: var(--border-radius-xs);
  background: var(--color-bg-surface);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* 6. CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.contact-channel-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-channel-item:last-child {
  margin-bottom: 0;
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bronze-dark);
  flex-shrink: 0;
  border: 1px solid var(--border-color-light);
}

.contact-channel-icon svg {
  width: 20px;
  height: 20px;
}

.contact-channel-detail h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-channel-detail p,
.contact-channel-detail a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.contact-form-panel {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

/* 7. LEGAL & COMPLIANCE PAGES */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
}

.legal-nav-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.legal-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legal-nav-link {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  padding: 0.35rem 0.5rem;
  border-radius: var(--border-radius-xs);
  transition: all var(--transition-fast);
  display: block;
}

.legal-nav-link:hover,
.legal-nav-link.active {
  color: var(--color-text-primary);
  background: var(--color-bg-subtle);
  font-weight: 600;
}

.legal-article {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-sm);
}

.legal-header {
  border-bottom: 1px solid var(--border-color-light);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.legal-section-block {
  margin-bottom: var(--space-2xl);
}

.legal-section-block:last-child {
  margin-bottom: 0;
}

.legal-section-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.legal-section-block p,
.legal-section-block ul {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.legal-section-block ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-section-block li {
  margin-bottom: 0.5rem;
}

.legal-alert-box {
  background: var(--color-bg-subtle);
  border-left: 4px solid var(--color-bronze);
  border-radius: var(--border-radius-xs);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.legal-alert-box strong {
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 0.25rem;
}
