/* ==========================================================================
   KHINA BUSINESS GROUP - UI COMPONENTS & MODULES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
}

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

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-brand-light);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-light);
  border-radius: var(--radius-full);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--color-brand-light);
}

/* Mobile Drawer Overlay - Zero Horizontal Overflow */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-surface-1);
  border-left: 1px solid var(--border-medium);
  z-index: 200;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.mobile-nav-drawer.open {
  display: flex;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: var(--radius-sm);
}

.drawer-close:focus-visible {
  outline: 2px solid var(--color-brand-light);
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-link {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.drawer-link:hover, .drawer-link.active {
  color: var(--color-brand-light);
  padding-left: 0.5rem;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .mobile-nav-toggle { display: block; }
}

/* --------------------------------------------------------------------------
   Badges, Pills & Indicators
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  line-height: 1.3;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.badge-brand {
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-brand-light);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-mystyle {
  background: rgba(192, 132, 252, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.badge-calisia {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-2);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-3);
  color: #ffffff;
  border-color: var(--border-highlight);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Cards & Surfaces
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.card-highlight {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.card-mystyle:hover {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 10px 25px -5px rgba(192, 132, 252, 0.15);
}

.card-calisia:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
}

/* App Media & Photography Containers (Aspect Ratio 3:2 Preserved) */
.app-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-media-mystyle {
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.app-card-media-calisia {
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.12);
}

.app-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-base);
}

.card:hover .app-card-media img {
  transform: scale(1.02);
}

/* Hero Showcase in Detail Pages */
.app-hero-showcase {
  margin: 2rem auto 1.5rem;
  max-width: 820px;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-hero-showcase-mystyle {
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.app-hero-showcase-calisia {
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.app-hero-showcase img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.app-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.app-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.app-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.app-feature-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-brand-light);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Pending Information & Legal Alert Boxes
   -------------------------------------------------------------------------- */
.pending-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid var(--status-warning);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.pending-box-title {
  color: #fbbf24;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pending-box p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

.info-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid var(--color-brand-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box-title {
  color: #7dd3fc;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Pending item inline tag */
.pending-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  border: 1px dashed rgba(245, 158, 11, 0.4);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Hero Component
   -------------------------------------------------------------------------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 780px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-domain-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-domain-strip code {
  color: var(--color-brand-light);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Legal & Documentation Layout (Sticky Table of Contents)
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.legal-toc-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-toc-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.legal-toc-link:hover {
  background: var(--bg-surface-2);
  color: var(--color-brand-light);
  text-decoration: none;
}

.legal-article {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.legal-section-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-light);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.form-control::placeholder {
  color: var(--text-dim);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-check input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand-primary);
  cursor: pointer;
}

.form-check label {
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Accordion / FAQs
   -------------------------------------------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.accordion-trigger:hover {
  background: var(--bg-surface-2);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-brand-light);
}

.accordion-content {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.footer-heading {
  color: #ffffff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-brand-light);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.domain-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.6);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Product Gallery Showcase & Media Cards
   -------------------------------------------------------------------------- */
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand-light);
  box-shadow: var(--shadow-lg);
}

.gallery-card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #060910;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-showcase-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #060910;
  overflow: hidden;
  position: relative;
}

.gallery-showcase-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-card-img-contain img {
  object-fit: contain;
  padding: 1.25rem;
}

.gallery-card-caption {
  padding: 1rem 1.25rem;
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
}

.gallery-card-caption h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.gallery-card-caption p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Direct Mailto & Support Action Component
   -------------------------------------------------------------------------- */
.mailto-action-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--color-brand-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.mailto-client-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.mailto-client-notice svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-brand-light);
}

/* Verification State Badges */
.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

@media (max-width: 600px) {
  .card {
    padding: 1.25rem;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr !important;
  }
}

.badge-pending-check {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px dashed rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   FASE 1.6 — HERO CINEMÁTICO & COMPOSICIÓN AUDIOVISUAL
   ========================================================================== */
.hero-cinematic {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background-color: #070B14;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: #080D1A url('../images/hero-corporate-cinematic.jpg') center/cover no-repeat;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  filter: saturate(1.15) brightness(0.95);
  transition: opacity 0.5s ease;
}

.hero-cinematic-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 35%, rgba(7, 11, 20, 0.45) 0%, rgba(7, 11, 20, 0.78) 75%, #070B14 100%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.25) 0%, rgba(7, 11, 20, 0.9) 100%);
  z-index: 1;
}

.hero-cinematic-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-corporate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  max-width: 100%;
  box-sizing: border-box;
}

.hero-corporate-title {
  font-size: clamp(1.9rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #FFFFFF 20%, #E2E8F0 60%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-corporate-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Ecosystem Dual Teaser Cards in Hero */
.hero-ecosystem-teaser {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 740px;
  margin: 0 auto;
}

.teaser-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.teaser-card-mystyle {
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.teaser-card-mystyle:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.2);
}

.teaser-card-calisia {
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.teaser-card-calisia:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.65);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.2);
}

.teaser-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: contain;
  flex-shrink: 0;
}

.teaser-card-info h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: #ffffff;
}

.teaser-card-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* ==========================================================================
   CATÁLOGO INTEGRAL DE APLICACIONES — SEPARACIÓN VISUAL RIGUROSA
   ========================================================================== */
.catalog-grid-separated {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.app-card-premium {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface-1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.app-card-mystyle {
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.08);
}
.app-card-mystyle:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.16);
}

.app-card-calisia {
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(6, 182, 212, 0.08);
}
.app-card-calisia:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.16);
}

.app-card-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #060910;
}

.app-card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.app-card-premium:hover .app-card-media-wrap img {
  transform: scale(1.03);
}

.app-card-body {
  padding: 2rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.app-card-icon-lg {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.app-card-title-group h3 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  color: #ffffff;
}

.app-tagline-text {
  font-weight: 500;
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.app-desc-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Support Icons & Cards */
.support-center-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.support-pillar-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.support-pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand-light);
}

.support-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .support-center-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 868px) {
  .catalog-grid-separated {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-ecosystem-teaser {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .app-card-body {
    padding: 1.5rem 1.25rem;
  }
  .hero-corporate-title {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }
  .hero-corporate-badge {
    font-size: 0.74rem;
    padding: 0.35rem 0.75rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .hero-actions-group .btn {
    width: 100%;
  }
  .brand-logo {
    height: 36px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none !important;
  }
  .app-card-premium:hover,
  .teaser-card:hover,
  .support-pillar-card:hover {
    transform: none !important;
  }
}


/* --------------------------------------------------------------------------
   Editorial Split Sections (FASE 1.8)
   -------------------------------------------------------------------------- */
.editorial-section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.editorial-section:nth-of-type(even) {
  background: rgba(10, 16, 28, 0.45);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.editorial-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-surface-1);
}

.editorial-media-mystyle {
  border-color: rgba(192, 132, 252, 0.22);
}

.editorial-media-calisia {
  border-color: rgba(16, 185, 129, 0.22);
}

.editorial-media-16-9 {
  aspect-ratio: 16 / 9;
}

.editorial-media-16-9 img {
  min-height: unset;
  max-height: 420px;
}

.editorial-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-media:hover img {
  transform: scale(1.025);
}

.editorial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.35rem;
}

.editorial-lead {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.editorial-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 1.75rem;
}

.editorial-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.editorial-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.editorial-benefit-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.editorial-benefit-icon-mystyle {
  color: #c084fc;
}

.editorial-benefit-icon-calisia {
  color: #34d399;
}

/* Reversible order classes */
.editorial-grid-reverse .editorial-media {
  order: 2;
}

.editorial-grid-reverse .editorial-content {
  order: 1;
}

@media (max-width: 960px) {
  .editorial-section {
    padding: 3.5rem 0;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .editorial-grid-reverse .editorial-media {
    order: 1;
  }
  .editorial-grid-reverse .editorial-content {
    order: 2;
  }
  .editorial-media {
    aspect-ratio: 3 / 2;
  }
  .editorial-media-16-9 {
    aspect-ratio: 16 / 9;
  }
  .editorial-media img {
    min-height: 220px;
    max-height: 360px;
    height: 100%;
  }
  .editorial-media-16-9 img {
    min-height: unset;
  }
}

/* ==========================================================================
   Reusable Back Navigation Links & Bottom Wrapper
   ========================================================================== */
.back-catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.back-catalog-link:hover {
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(-3px);
}

.back-catalog-link:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

.back-catalog-bottom-wrap {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
