/* ==========================================================================
   VIRTUS TPM - SISTEMA DE DISEÑO & ESTILOS (VIRTUSTPM.COM)
   Estética: Blanco-Gris Técnico, Azul Acero e Industrial Moderno
   ========================================================================== */

:root {
  /* Paleta de Colores */
  --bg-body: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F3F5;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-dark-surface: #1E293B;

  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-light: #F8FAFC;

  --primary: #0B4F6C;
  --primary-hover: #083D54;
  --primary-light: #E0F2FE;
  --accent: #E65F2B;
  --accent-hover: #D14D1B;
  --accent-light: #FFEDD5;

  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: #0B4F6C;

  --success: #10B981;
  --warning: #F59E0B;

  /* Tipografía & Escalado */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-family);

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 32px rgba(0, 0, 0, 0.15);

  /* Bordes & Transiciones */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* Layout & Contenedores */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
}

.badge-orange {
  background-color: var(--accent-light);
  color: var(--accent);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.section-dark .section-subtitle {
  color: var(--text-muted);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 95, 43, 0.3);
}

.btn-secondary {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 79, 108, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-dark:hover {
  background-color: #FFFFFF;
  color: var(--bg-dark);
  border-color: #FFFFFF;
}

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

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  margin-right: 1rem;
}

.logo-img {
  height: 40px;
  max-height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img-footer {
  height: 44px;
  max-height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, #1F7A8C 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(11, 79, 108, 0.25);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  position: relative;
}

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* HERO / ANZUELO SECTION */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-body) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 79, 108, 0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, #F37021 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h4 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.hero-feature-icon {
  color: var(--success);
  font-size: 1.2rem;
  margin-top: 2px;
}

/* DOLOR / PAIN POINTS SECTION */
/* CONCEPTOS CLAVE (¿QUÉ ES TPM Y OEE?) */
.video-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 3.5rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-dark);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.concept-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.concept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.concept-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.concept-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.concept-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.concept-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.concept-list li {
  position: relative;
  padding-left: 1.5rem;
}

.concept-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.oee-formula-box {
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-medium);
  margin-top: auto;
}

.oee-formula-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-medium);
}

.oee-factors {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.oee-factor strong {
  color: var(--text-primary);
}

/* DOLOR / PAIN POINTS SECTION */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pain-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #EF4444;
  opacity: 0.6;
}

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

.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: #FEE2E2;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.pain-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

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

/* SOLUCIÓN & 8 PILARES TPM */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.pillar-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ROADMAP / PASOS DE IMPLEMENTACIÓN */
.roadmap-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.roadmap-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  z-index: 2;
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* CALCULADORA DE ROI Y PERDIDAS */
.calculator-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 79, 108, 0.15);
}

.range-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-results {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-surface) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  width: 100%;
}

.calc-result-number {
  font-size: clamp(1.6rem, 4.5vw, 2.75rem);
  font-family: var(--font-heading);
  font-weight: 900;
  color: #EF4444;
  line-height: 1.1;
  margin-top: 0.25rem;
  word-break: break-word;
}

.calc-result-number.savings {
  color: var(--success);
}

.calc-result-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.25rem;
}

.calc-result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* TEST DE MADUREZ TPM (QUIZ) */
.quiz-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.quiz-question-box {
  margin-bottom: 2rem;
}

.quiz-q-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: var(--bg-body);
}

.quiz-option:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.quiz-option input[type="radio"] {
  accent-color: var(--primary);
  transform: scale(1.2);
}

/* OBJECIONES (ACCORDION / FAQ) */
.objections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.objection-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.objection-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.objection-myth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #DC2626;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.objection-reality {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SECCIÓN QUIÉNES SOMOS & HOJAS DE VIDA */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #1F7A8C 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 16px rgba(11, 79, 108, 0.2);
}

.team-name {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.team-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background-color: var(--bg-body);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* OFERTA SECTION (CALL TO ACTION) */
.offer-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #083D54 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.offer-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 95, 43, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.offer-title {
  font-size: 2.5rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.offer-desc {
  font-size: 1.25rem;
  color: #E0F2FE;
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
}

.offer-guarantee {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #93C5FD;
}

/* SECCIÓN DE CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* MODALS */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-surface-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}

.cv-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.cv-section {
  margin-bottom: 1.5rem;
}

.cv-section h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.25rem;
  display: inline-block;
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cv-list li {
  position: relative;
  padding-left: 1.25rem;
}

.cv-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* FOOTER */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--bg-dark-surface);
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid var(--bg-dark-surface);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* ==========================================================================
   ESTILOS SECCIÓN SOFTWARE OEE 4.0 & $OEE FINANCIERO (TARJETAS ELEGANTES Y VISIBLES)
   ========================================================================== */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2.25rem;
  margin-top: 3rem;
}

.software-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-top: 5px solid var(--primary);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.software-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -10px rgba(11, 79, 108, 0.2), 0 8px 16px -4px rgba(11, 79, 108, 0.1);
  border-color: var(--primary);
}

/* Tarjeta Highlight ($OEE Financiero) */
.software-card.highlight {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
  border: 2px solid #16A34A;
  border-top: 5px solid #16A34A;
  box-shadow: 0 16px 40px -8px rgba(22, 163, 74, 0.22);
}

.software-card.highlight:hover {
  box-shadow: 0 28px 56px -10px rgba(22, 163, 74, 0.32);
  border-color: #15803D;
}

.software-badge-popular {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  z-index: 2;
}

.software-card-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(11, 79, 108, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 1.25rem;
}

.software-card.highlight .software-card-kicker {
  color: #15803D;
  background: rgba(22, 163, 74, 0.12);
}

.software-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0B4F6C 0%, #1F7A8C 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 16px rgba(11, 79, 108, 0.25);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.software-card.highlight .software-card-icon {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3);
}

.software-card:hover .software-card-icon {
  transform: scale(1.1) rotate(-4deg);
}

.software-card-title {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.software-card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.software-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
}

.software-card-list li {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3.5px solid var(--primary);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.software-card.highlight .software-card-list li {
  border-left-color: #16A34A;
  background: #FFFFFF;
}

.software-card-list li:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  border-left-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateX(3px);
}

.software-card-list li strong {
  display: block;
  color: #0F172A;
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}

.software-card-list li div {
  color: #64748B;
  font-size: 0.84rem;
}

.software-demo-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.4);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.software-demo-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.software-demo-content {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-grid,
  .calculator-box,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .calculator-box {
    padding: 2rem 1.5rem;
  }

  .roadmap-container {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 1080px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: none;
    border-bottom: 1px solid var(--border-light);
    gap: 1.25rem;
  }

  .nav-links.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  .calculator-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .calc-results {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .form-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .roadmap-container {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
