/*
 Theme Name:   Orion Media Child
 Theme URI:    https://orionmedia.com.mx
 Description:  Child theme de Hello Elementor para Orion Media — The Cosmic Intelligence
 Author:       Orion Media
 Author URI:   https://orionmedia.com.mx
 Template:     hello-elementor
 Version:      1.0.5
 Text Domain:  orion-media-child
*/

/* ============================================================
   ORION MEDIA — DESIGN SYSTEM CSS
   "The Cosmic Intelligence" — Navy / Morado / Gold / Teal
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Primary palette */
  --om-primary: #d2bbff;
  --om-primary-container: #7c3aed;
  --om-on-primary: #3f008e;
  --om-on-primary-container: #ede0ff;

  /* Secondary (Gold) */
  --om-secondary: #ffd887;
  --om-secondary-container: #f4b700;
  --om-on-secondary: #402d00;

  /* Tertiary (Teal) */
  --om-tertiary: #4cd7f6;
  --om-tertiary-container: #007184;
  --om-on-tertiary: #003640;

  /* Surfaces */
  --om-surface: #0e102c;
  --om-surface-dim: #0e102c;
  --om-surface-container-lowest: #090b27;
  --om-surface-container-low: #171935;
  --om-surface-container: #1b1d39;
  --om-surface-container-high: #252744;
  --om-surface-container-highest: #303250;
  --om-surface-variant: #303250;
  --om-surface-bright: #353755;

  /* Text */
  --om-on-surface: #e0e0ff;
  --om-on-surface-variant: #ccc3d8;
  --om-outline: #958da1;
  --om-outline-variant: #4a4455;

  /* Error */
  --om-error: #ffb4ab;
  --om-error-container: #93000a;

  /* Inverse */
  --om-inverse-surface: #e0e0ff;
  --om-inverse-primary: #732ee4;

  /* Fonts */
  --om-font-headline: 'Plus Jakarta Sans', sans-serif;
  --om-font-body: 'Plus Jakarta Sans', sans-serif;
  --om-font-label: 'Space Mono', monospace;
}

/* ---------- Base Reset & Body ---------- */
html { scroll-behavior: smooth; }

body,
.elementor-page,
.site-main {
  background-color: var(--om-surface) !important;
  color: var(--om-on-surface);
  font-family: var(--om-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(124, 58, 237, 0.3);
  color: #fff;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--om-font-headline);
  color: var(--om-on-surface);
  letter-spacing: -0.02em;
}

.om-label {
  font-family: var(--om-font-label);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Cosmic Background Effects ---------- */
.cosmic-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(210, 187, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.grid-bg {
  background-image:
    linear-gradient(to right, rgba(74, 68, 85, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 68, 85, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.blur-orb {
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.nebula-glow {
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Glass Effects ---------- */
.glass-effect {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 68, 85, 0.2);
}

.glass-card {
  background: rgba(37, 39, 68, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Gradient Utilities ---------- */
.signature-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #4cd7f6 100%);
}

.text-gradient-primary {
  background: linear-gradient(to right, #d2bbff, #4cd7f6, #ffd887);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow-primary {
  text-shadow: 0 0 15px rgba(210, 187, 255, 0.4);
}

/* ---------- Buttons ---------- */
.om-btn-primary {
  background: linear-gradient(135deg, var(--om-primary-container), var(--om-tertiary));
  color: var(--om-on-primary-container);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.om-btn-primary:hover { filter: brightness(1.1); }

.om-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--om-on-surface);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s;
}
.om-btn-secondary:hover { background: rgba(255,255,255,0.05); }

.om-btn-gold {
  background: var(--om-secondary-container);
  color: var(--om-on-secondary);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.om-btn-gold:hover { filter: brightness(1.1); }

.om-btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
}
.om-btn-whatsapp:hover { filter: brightness(1.1); }

/* ---------- Nav (from child theme header.php) ---------- */
.om-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(14, 16, 44, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}

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

.om-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--om-on-surface);
  font-family: var(--om-font-headline);
  text-decoration: none;
  text-transform: uppercase;
}

.om-nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.om-nav-links a {
  font-family: var(--om-font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(224, 224, 255, 0.7);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.om-nav-links a:hover,
.om-nav-links a.active {
  color: var(--om-primary);
}
.om-nav-links a.active {
  border-bottom: 2px solid var(--om-primary);
  padding-bottom: 4px;
}

.om-nav-cta {
  background: var(--om-primary-container);
  color: var(--om-on-primary-container);
  padding: 0.625rem 1.875rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.om-nav-cta:hover { filter: brightness(1.1); color: var(--om-on-primary-container); }

/* Mobile menu */
.om-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--om-primary);
  font-size: 1.5rem;
}

.om-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--om-surface-container);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.om-mobile-menu.open { display: flex; }
.om-mobile-menu a {
  color: var(--om-on-surface);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .om-nav-links { display: none; }
  .om-nav-cta.desktop-only { display: none; }
  .om-menu-toggle { display: block; }
}

/* ---------- Footer ---------- */
.om-footer {
  background: var(--om-surface-container-lowest);
  width: 100%;
  padding: 3rem 2rem;
}

.om-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.om-footer-brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--om-on-surface);
  font-family: var(--om-font-headline);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.om-footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.om-footer-links a {
  font-family: var(--om-font-label);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(224, 224, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.om-footer-links a:hover { color: var(--om-primary); }

.om-footer-copy {
  font-family: var(--om-font-label);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f5b800;
}

/* ---------- Floating Chat Bubble ---------- */
.om-chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}
.om-chat-bubble button {
  width: 4rem;
  height: 4rem;
  background: var(--om-primary-container);
  color: var(--om-on-primary-container);
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}
.om-chat-bubble button:hover { transform: scale(1.1); }

/* ---------- Elementor Overrides ---------- */
.elementor-section { background: transparent !important; }
.elementor-widget-html { overflow: visible !important; }

/* Remove Hello Elementor defaults that conflict */
.site-header, .site-footer { display: none !important; }

/* ===== CRITICAL: Force Elementor containers to full-width ===== */
/* Override Elementor's boxed container inner wrapper (1200px default) */
.e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
}

.e-con-boxed > .e-con-inner {
  max-width: 100% !important;
}

/* Remove any padding Elementor adds to containers */
.elementor[data-elementor-type="wp-page"] > .e-con {
  --padding-top: 0px !important;
  --padding-right: 0px !important;
  --padding-bottom: 0px !important;
  --padding-left: 0px !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Force HTML widget to be full width */
.elementor-widget-html,
.elementor-widget-html .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

/* Ensure full-width sections */
.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100% !important;
}

/* Make the page content area full width (override Hello Elementor) */
.site-main,
.page-content,
.entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove any gap Elementor adds between elements */
.elementor[data-elementor-type="wp-page"] > .e-con > .e-con-inner > .elementor-element {
  --widgets-spacing: 0px !important;
}

/* ---------- Responsive max-width container ---------- */
.om-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Remove Stitch HTML hero top padding ---------- */
/* Stitch exports use Tailwind pt-20 (80px) on hero sections;
   the fixed-nav spacer already accounts for the offset. */
section.pt-20 {
  padding-top: 1rem !important;
}

/* Also reduce min-h-screen on hero sections so content below is visible */
section.min-h-screen {
  min-height: auto !important;
}

/* ---------- Animations ---------- */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
