/* ==========================================================================
   Retail Moda Mexico - Corporate Design System & Styles
   High-End Light Executive Financial Aesthetic (White Theme)
   ========================================================================== */

/* 1. CSS Custom Properties / Design Tokens */
:root {
  --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Outfit', sans-serif;

  /* Color Palette: Executive White, Slate Blue & Premium Gold */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --text-main: #0f172a;      /* Slate 900 for high readability */
  --text-muted: #475569;     /* Slate 600 */
  --text-light: #64748b;     /* Slate 500 */
  --text-inverse: #ffffff;

  --accent-gold: #b48c18;
  --accent-gold-hover: #967310;
  --accent-gold-light: #947110;
  --accent-gold-bg: rgba(180, 140, 24, 0.08);

  --accent-blue: #1e40af;     /* Executive Royal Navy */
  --accent-blue-light: #3b82f6;
  --accent-blue-bg: rgba(30, 64, 175, 0.06);

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-gold: rgba(180, 140, 24, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 10px 30px rgba(180, 140, 24, 0.15);
}

/* 2. Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

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

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 3. Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-medium);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f172a;
  padding-top: 10px;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

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

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #0f172a;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 4. Page View Router Containers */
.page-view {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  padding-top: 80px;
}

.page-view.active-view {
  display: block;
  opacity: 1;
}

/* 5. Hero Banner Component (Light Executive Style) */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 110px 0 90px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(0.95);
  opacity: 0.18;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(30, 64, 175, 0.05), transparent 60%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #fef3c7;
  border: 1px solid rgba(180, 140, 24, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: #0f172a;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 720px;
  line-height: 1.8;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* Secondary Page Banner */
.page-banner {
  position: relative;
  padding: 85px 0 65px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  color: #0f172a;
}

.page-banner-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* 6. Section Layouts */
.section {
  padding: 95px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.5px;
  color: #0f172a;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

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

.content-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.content-box p:last-child {
  margin-bottom: 0;
}

.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-card:hover img {
  transform: scale(1.04);
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(15, 23, 42, 0.2));
}

/* Feature Cards (Executive Light Glass/Shadow Cards) */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card-glass:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-glass:hover::before {
  opacity: 1;
}

.card-icon {
  width: 54px;
  height: 54px;
  background: var(--accent-blue-bg);
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.28rem;
  margin-bottom: 14px;
  color: #0f172a;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Timeline Component (Clean Light Timeline) */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-blue));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 50px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 4px solid var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(30, 64, 175, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 7. Contact Form & Info (Light Theme) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

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

.info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--accent-blue-bg);
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.2rem;
}

.info-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.info-value {
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.6;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #0f172a;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
  background: #ffffff;
}

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

.form-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Toast / Notification Modal */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  background: #0f172a;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  width: 40px;
  height: 40px;
  background: rgba(180, 140, 24, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.toast-text {
  font-size: 0.95rem;
  color: #ffffff;
}

/* 8. Privacy Notice Document Styling */
.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}

.privacy-paragraph {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-paragraph:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* 9. Footer Components (Executive Navy Solid Footer for Institutional Stability) */
.footer {
  background-color: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 80px 0 40px;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 360px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-gold);
}

.footer-info-item {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content:center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    display: none;
    box-shadow: var(--shadow-md);
  }

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

  .mobile-toggle {
    display: block;
  }

  .privacy-container {
    padding: 30px 20px;
  }
}
