/* Estilo ApexSimApps 2026: Tema oscuro racing con cian tecnológico */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-main: hsl(0, 0%, 4%);
  --bg-alt: hsl(0, 0%, 8%);
  --accent-primary: hsl(183, 100%, 50%);
  --accent-secondary: hsl(183, 80%, 40%);
  --accent-glow: rgba(0, 240, 255, 0.3);
  --text-main: hsl(0, 0%, 98%);
  --text-muted: hsl(0, 0%, 64%);
  --card-bg: hsl(0, 0%, 6%);
  --border-soft: hsl(0, 0%, 15%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.theme-dark {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* Language toggle helpers - REMOVED for production static files */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.hero {
  position: relative;
  padding: 6rem 8vw 4rem;
  background: url("../img/hero-cockpit.jpg") center/cover no-repeat fixed;
  overflow: hidden;
  isolation: isolate;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

/* Dark Overlay - Reduced opacity to show cockpit */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.4), var(--bg-main));
  z-index: -1;
}

/* Cyan Accent Line */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.6;
}

.hero-main {
  width: 100%;
}

.hero-inner {
  position: relative;
  margin: 0 auto;
}

/* Product Page Hero Layout - Restore side-by-side */
.hero-product .hero-inner,
.hero.planner .hero-inner,
.hero.engineer .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  text-align: left;
}

.hero-product .hero-content,
.hero.planner .hero-content,
.hero.engineer .hero-content {
  margin: 0;
  text-align: left;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-product-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.hero-product-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 2;
  margin: 0 auto;
  text-align: center;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  max-width: 800px;
  margin: 4rem auto 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  background: var(--card-bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* Ensure button is visible on product pages */
.hero-product .hero-actions,
.hero.planner .hero-actions,
.hero.engineer .hero-actions {
  justify-content: flex-start;
  margin-top: 2.5rem;
}

/* Hide old hero visual for this layout */
.hero-visual {
  display: none;
}

/* Old hero visual styles removed or hidden */

.hero-visual-inner {
  position: relative;
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.hero-visual-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}

.hero-visual-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-visual-footnote {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  margin-bottom: 1.1rem;
  box-shadow: none;
  animation: none;
}

.badge-sub {
  margin-bottom: 0.7rem;
}

.badge-label {
  background: var(--accent-primary);
  color: var(--bg-main);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.badge-text {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 500;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

.hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
}

.hero-tagline {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--accent-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-main);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-primary);
}

main {
  padding: 3rem 8vw 4rem;
}

.section {
  margin-bottom: 3.2rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.35));
  padding: 2.5rem 2.5rem 2.8rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.section-title {
  margin-bottom: 1.6rem;
}

.section-title h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--card-bg);
  border-radius: 1.4rem;
  border: 1px solid var(--border-soft);
  padding: 1.7rem 1.6rem 1.6rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.product-thumb {
  margin-bottom: 0.9rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65);
  background: rgba(7, 10, 20, 0.7);
}

.product-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0c1020;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.product-card ul {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.product-card li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-secondary);
}

.product-card.planner {
  border-top: 3px solid var(--accent-primary);
}

.product-card.engineer {
  border-top: 3px solid var(--accent-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.feature-item {
  background: rgba(3, 7, 20, 0.9);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.3rem 1.2rem 1.25rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-item p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.stats {
  padding: 2.5rem 2.5rem 2.8rem;
  background: radial-gradient(circle at top, rgba(255, 75, 31, 0.24), rgba(0, 0, 0, 0.85));
  border-radius: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  margin-top: 0.8rem;
}

.stat-item {
  background: rgba(4, 8, 18, 0.78);
  border-radius: 1.2rem;
  padding: 1.1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.workflow {
  margin-top: 2.3rem;
}

.workflow-steps {
  list-style: none;
  margin-top: 0.6rem;
}

.workflow-steps li {
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.workflow-steps li span {
  display: inline-block;
  min-width: 70px;
  font-weight: 600;
  color: var(--accent-secondary);
}

.cta-final {
  margin-top: 2.8rem;
  padding: 2.4rem 2.5rem 2.6rem;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, rgba(255, 75, 31, 0.25), rgba(0, 0, 0, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-content h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: var(--text-muted);
  max-width: 620px;
}

/* Franja de imágenes racing entre hero y contenido */

.strip-gallery {
  position: relative;
  height: 140px;
  overflow: hidden;
  margin: 0 -8vw 2.2rem;
}

.strip-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 35%;
  filter: saturate(1.1) contrast(1.05);
}

/* Usamos solo la imagen de pitwall/ingenieros como franja completa */
.strip-cars,
.strip-engineers {
  background-image: url("../img/red-bull-racing-pitwall.webp");
}

.strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
  mix-blend-mode: multiply;
}

/* Language switch button in header (simple styling for static pages) */
.lang-switch-static {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.lang-btn-static {
  background: #1a1f2e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
}

.lang-btn-static.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

@media (max-width: 768px) {

  .hero,
  main {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .cta-final,
  .section-alt,
  .stats {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-main,
  .hero-product {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .strip-gallery {
    margin-left: -5vw;
    margin-right: -5vw;

    height: 120px;
  }
}

/* --- Launch Offer Badge & Highlights --- */
.hero-visual-wrapper {
  position: relative;
  /* El wrapper permite que la insignia absoluta (badge) se salga del marco si es necesario */
}

.hero-offer-badge {
  position: absolute;
  top: -25px;
  right: -25px;
  z-index: 100;
  background: linear-gradient(135deg, hsl(183, 100%, 45%), hsl(183, 100%, 35%));
  color: var(--bg-main);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(12deg);
  box-shadow: 0 10px 30px var(--accent-glow);
  border: 3px solid rgba(255, 255, 255, 0.9);
  animation: pulseBadge 2s infinite ease-in-out;
}

.offer-line-1 {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 2px;
}

.offer-line-2 {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
}

@keyframes pulseBadge {
  0% {
    transform: rotate(12deg) scale(1);
  }

  50% {
    transform: rotate(12deg) scale(1.08);
    box-shadow: 0 15px 40px rgba(255, 75, 31, 0.8);
  }

  100% {
    transform: rotate(12deg) scale(1);
  }
}

/* Enhanced CTA Section Styles */
.offer-highlight-box {
  background: radial-gradient(circle at center, rgba(255, 75, 31, 0.15), rgba(0, 0, 0, 0));
  border: 2px solid var(--accent-primary);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: 0 0 50px rgba(255, 75, 31, 0.15);
  position: relative;
  overflow: hidden;
}

.offer-highlight-box::before {
  content: "OFERTA";
  position: absolute;
  top: -20px;
  right: -40px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  transform: rotate(-15deg);
  pointer-events: none;
}

.price-display-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.price-strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 0.6;
}

.price-current {
  color: var(--accent-primary);
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(255, 75, 31, 0.5);
  line-height: 1;
}

.offer-subtext {
  display: block;
  color: #FFCB80;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* === LAUNCH OFFER BANNER SYSTEM === */
.launch-offer-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, hsl(183, 100%, 40%) 0%, hsl(183, 100%, 30%) 100%);
  color: var(--bg-main);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideInBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 280px;
}

.launch-offer-banner::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, hsl(183, 100%, 50%), hsl(183, 80%, 60%), hsl(183, 100%, 50%));
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  animation: borderGlow 3s ease-in-out infinite;
}

.offer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s;
}

.offer-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.offer-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.offer-price-big {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 8px 0;
}

.offer-price-old {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 1.2rem;
  font-weight: 600;
}

.offer-text {
  font-size: 0.85rem;
  opacity: 0.95;
  margin-top: 8px;
  line-height: 1.3;
}

.offer-cta {
  display: inline-block;
  background: var(--bg-main);
  color: var(--accent-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.offer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@keyframes slideInBounce {
  0% {
    transform: translateX(400px);
    opacity: 0;
  }

  60% {
    transform: translateX(-20px);
    opacity: 1;
  }

  80% {
    transform: translateX(10px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.6;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .launch-offer-banner {
    bottom: 15px;
    right: 15px;
    left: 15px;
    max-width: none;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .launch-offer-banner .offer-tag {
    display: none;
  }

  .launch-offer-banner .offer-text {
    font-size: 0.7rem;
    margin: 0;
    max-width: 120px;
    text-align: left;
  }

  .launch-offer-banner .offer-price-big {
    font-size: 1.5rem;
    margin: 0;
  }

  .launch-offer-banner .offer-price-old {
    font-size: 0.9rem;
  }

  .launch-offer-banner .offer-cta {
    padding: 8px 12px;
    font-size: 0.8rem;
    margin: 0;
    white-space: nowrap;
  }

  .launch-offer-banner .offer-close {
    top: -8px;
    right: -8px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Hero Offer Sticker (Alternative inline style) */
.hero-offer-sticker {
  position: absolute;
  top: 10%;
  right: 10%;
  background: rgba(255, 94, 0, 0.95);
  color: white;
  padding: 1.5rem;
  border-radius: 50%;
  text-align: center;
  transform: rotate(15deg);
  box-shadow: 0 10px 30px rgba(255, 94, 0, 0.4);
  z-index: 20;
  border: 4px solid white;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: pulseOffer 2s infinite;
}

.sticker-text {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  display: block;
}

.sticker-price {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin: 5px 0;
}

.sticker-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}

@keyframes pulseOffer {
  0% {
    transform: rotate(15deg) scale(1);
  }

  50% {
    transform: rotate(15deg) scale(1.05);
  }

  100% {
    transform: rotate(15deg) scale(1);
  }
}

/* Nav Highlight */
.nav-highlight {
  position: relative;
  color: var(--accent-primary) !important;
  font-weight: 800 !important;
}

.nav-highlight::after {
  content: "NEW";
  position: absolute;
  top: -12px;
  right: -10px;
  background: var(--accent-primary);
  color: var(--bg-main);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
}

/* --- Media & Visual Enhancements (Added for Video/Images) --- */
.hero-product-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
}

.product-screenshot {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.section-video {
  text-align: center;
  padding: 1rem 0 4rem;
}

.video-container {
  max-width: 900px;
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

@media (min-width: 769px) {
  .hero-product-visual {
    justify-content: flex-end;
    margin-top: 0;
  }
}