/* DreamTeam Reinvented Design System - styles.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --brand-red: #FE0002;
  --brand-red-rgb: 254, 0, 2;
  --brand-red-hover: #D10002;
  --brand-red-glow: rgba(254, 0, 2, 0.4);
  
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-color: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F3F4F6;
  --bg-navbar: rgba(249, 250, 251, 0.85);
  --text-main: #111827;
  --text-muted: #4B5563;
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(254, 0, 2, 0.25);
  --shadow-main: 0 12px 40px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 24px 60px rgba(254, 0, 2, 0.08);
  --input-bg: #F3F4F6;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg-color: #000000;
  --bg-card: #0A0A0A;
  --bg-card-hover: #121212;
  --bg-navbar: rgba(0, 0, 0, 0.85);
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(254, 0, 2, 0.45);
  --shadow-main: 0 16px 50px rgba(0, 0, 0, 0.9);
  --shadow-hover: 0 30px 70px rgba(254, 0, 2, 0.18);
  --input-bg: #111111;
  --glass-bg: rgba(10, 10, 10, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Header & Glassmorphism Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: color var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme switch button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background-color: var(--brand-red);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 6px 20px rgba(254, 0, 2, 0.2);
}

.btn-primary:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(254, 0, 2, 0.35);
}

.btn-secondary {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

/* Sections structure */
.section {
  padding: 120px 0;
  position: relative;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section (Reinvented) */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(254, 0, 2, 0.08);
  color: var(--brand-red);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--brand-red);
  position: relative;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Call Center Live Dashboard Widget */
.hero-dashboard-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow-main);
  transition: all var(--transition-normal);
  position: relative;
}

.hero-dashboard-widget:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-red);
  border-radius: 50%;
  animation: pulse-red 2s infinite;
}

.widget-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.widget-stat-card {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget-stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

.widget-stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bento Grid About Section */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 24px;
}

.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-main);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-row-2 {
  grid-row: span 2;
}

.bento-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.bento-card-desc {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Asymmetrical Team Slideshow Card */
.team-slideshow-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  padding: 24px;
  color: #FFFFFF;
}

.team-slideshow-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 70%);
  border-radius: 20px;
  z-index: 1;
}

.team-slide-info {
  position: relative;
  z-index: 2;
}

.team-slide-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.team-slide-role {
  font-size: 12px;
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
}

/* Infinite Marquee Ticker (Carrier Brands) */
.marquee-wrapper {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-container {
  display: flex;
  width: max-content;
  animation: scroll-left 25s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  width: 180px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: all var(--transition-normal);
}

.marquee-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* Process Roadmap ("El Embudo de Conversión") */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transition: all var(--transition-normal);
}

.process-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  color: rgba(254, 0, 2, 0.08);
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 32px;
}

.process-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(254, 0, 2, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  margin-bottom: 32px;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-desc {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  background-color: var(--bg-card);
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-normal);
}

.footer-link:hover {
  color: var(--text-main);
}

/* Keyframe animations */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse-red {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(254, 0, 2, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(254, 0, 2, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(254, 0, 2, 0); }
}

/* Responsive grid overrides */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bento-col-2 { grid-column: span 1; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Corrección de contraste y opacidad para textos en Modo Claro */
.hero-desc-text,
#inicio p,
.fade-up-3,
html body section#inicio > div > div p,
div[style*="opacity: 0.55"],
p[style*="opacity: 0.5"] {
  color: #1f2937 !important; /* Gris oscuro legible */
  opacity: 1 !important;
}

/* Corrección de contraste y opacidad para textos en Modo Oscuro */
[data-theme="dark"] .hero-desc-text,
[data-theme="dark"] #inicio p,
[data-theme="dark"] .fade-up-3,
[data-theme="dark"] html body section#inicio > div > div p {
  color: #e5e7eb !important; /* Blanco/gris claro legible */
  opacity: 0.9 !important;
}

[data-theme="dark"] div[style*="opacity: 0.55"],
[data-theme="dark"] p[style*="opacity: 0.5"] {
  color: #e5e7eb !important;
  opacity: 0.9 !important;
}