/*
Theme Name: Romatech
Theme URI: https://romatech.grupoarezzo.com
Author: Grupo Arezzo
Description: Landing page para Romatech - Tecnología, redes, equipos y diseño web
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: romatech
*/

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

:root {
  /* Colores oficiales Romatech (brand-visual-identity.md) */
  --rom-primary: #F57C00;
  --rom-primary-light: #FF9933;
  --rom-primary-dark: #C96400;
  --rom-dark: #0A1628;
  --rom-darker: #060E1A;
  --rom-accent: #00B0FF;
  --rom-light: #F0F4F8;
  --rom-glow: rgba(245,124,0,0.15);
  --rom-text: #2C3E50;
  --rom-text-light: #7F8C9B;
  --rom-white: #FFFFFF;
  --rom-border: rgba(245,124,0,0.1);
  /* Tipografías oficiales Grupo Arezzo (sustitutos web) */
  --rom-font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --rom-font-body: 'Cabin', 'Helvetica', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--rom-font-body); color: var(--rom-text); background: var(--rom-white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .section-title, .hero h1, .section-label { font-family: var(--rom-font-display); letter-spacing: 0.02em; }
a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--rom-primary); margin-bottom: 12px; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--rom-dark); margin-bottom: 16px; line-height: 1.15; }
.section-subtitle { font-size: 1.05rem; color: var(--rom-text-light); max-width: 600px; line-height: 1.7; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rom-border); transition: all 0.4s; }
.site-header.scrolled { padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo-text { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.site-logo { height: 68px; width: auto; display: block; }
.site-logo-tagline { font-size: 0.55rem; font-weight: 500; letter-spacing: 2.5px; color: #9aa5b1; text-transform: uppercase; font-family: var(--rom-font-body); opacity: 0.9; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--rom-text-light); }
.nav-links a:hover { color: var(--rom-primary); }
.nav-back { color: var(--rom-primary) !important; border: 1px solid var(--rom-border); padding: 6px 16px; border-radius: 8px; font-size: 0.8rem; }
.nav-back:hover { background: var(--rom-primary); color: var(--rom-white) !important; }

/* DEC-006 — boton Grupo Arezzo solido + CTA principal outline */
.nav-group {
  background: var(--rom-primary) !important;
  color: var(--rom-white) !important;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
.nav-group:hover {
  background: var(--rom-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,124,0,0.3);
}
.nav-cta-outline {
  color: var(--rom-primary-dark) !important;
  border: 1.5px solid var(--rom-primary);
  padding: 9px 20px !important;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: transparent;
  transition: all 0.3s;
}
.nav-cta-outline:hover {
  background: rgba(245,124,0,0.1) !important;
  color: var(--rom-primary-dark) !important;
  border-color: var(--rom-primary-dark);
}

/* DEC-006 6.3 — Indicador de seccion activa: LED status verde (metafora dashboard IT) */
.nav-links a { position: relative; }
.nav-links a[href^="#"].is-active:not(.nav-cta-outline) {
  color: var(--rom-primary) !important;
}
.nav-links a[href^="#"].is-active:not(.nav-cta-outline)::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00c853;
  box-shadow: 0 0 8px rgba(0,200,83,0.7);
  margin-right: 8px;
  vertical-align: middle;
  animation: rom-online-pulse 2s ease-in-out infinite;
}
@keyframes rom-online-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.nav-cta-outline.is-active {
  background: rgba(245,124,0,0.12) !important;
  border-color: var(--rom-primary-dark) !important;
}

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--rom-darker); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,14,26,0.92), rgba(0,0,0,0.72) 50%, rgba(245,124,0,0.22)); }
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 120px 0 80px; }
.hero-content .container { padding: 0 24px; }

.hero-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--rom-primary); margin-bottom: 20px; padding: 8px 20px; border: 1px solid rgba(245,124,0,0.35); border-radius: 8px; background: rgba(245,124,0,0.1); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 700; color: var(--rom-white); line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.hero h1 em { font-style: normal; color: var(--rom-primary); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 32px; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--rom-primary); color: var(--rom-white); padding: 14px 32px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s; }
.btn-primary:hover { background: var(--rom-primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,124,0,0.35); }
.btn-outline-hero { display: inline-flex; align-items: center; gap: 8px; color: var(--rom-white); padding: 14px 32px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s; margin-left: 12px; }
.btn-outline-hero:hover { background: rgba(255,255,255,0.1); }

/* TECH DIVIDER */
.tech-divider { height: 3px; background: linear-gradient(90deg, var(--rom-accent), var(--rom-primary), var(--rom-accent)); }

/* SERVICES */
.services { padding: 80px 0; background: var(--rom-light); }
.services .section-header { text-align: center; margin-bottom: 56px; }
.services .section-subtitle { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.service-card { background: var(--rom-white); padding: 36px 28px; border-radius: 12px; text-align: center; border: 1px solid var(--rom-border); transition: all 0.4s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--rom-primary), var(--rom-accent)); transform: scaleX(0); transition: transform 0.4s; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(245,124,0,0.08); }

.service-icon { width: 60px; height: 60px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--rom-glow); color: var(--rom-primary); }
.service-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--rom-dark); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--rom-text-light); line-height: 1.6; }

/* PROCESS */
.process { padding: 80px 0; background: var(--rom-white); }
.process .section-header { text-align: center; margin-bottom: 56px; }
.process .section-subtitle { margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 36px; left: 12%; right: 12%; height: 1px; background: var(--rom-border); }
.process-step { text-align: center; position: relative; }
.step-number { width: 72px; height: 72px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--rom-dark); color: var(--rom-primary); font-size: 1.4rem; font-weight: 700; position: relative; z-index: 1; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.process-step h3 { font-size: 1rem; font-weight: 700; color: var(--rom-dark); margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--rom-text-light); max-width: 220px; margin: 0 auto; }

/* WHY US */
.why-us { padding: 80px 0; background: var(--rom-dark); color: var(--rom-white); }
.why-us .section-label { color: var(--rom-accent); }
.why-us .section-title { color: var(--rom-white); }
.why-us .section-subtitle { color: rgba(255,255,255,0.6); margin: 0 auto; }
.why-us .section-header { text-align: center; margin-bottom: 56px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit-card { text-align: center; padding: 32px 24px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); transition: all 0.3s; }
.benefit-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.benefit-icon { font-size: 2rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.benefit-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* CONTACT */
.contact { padding: 80px 0; background: var(--rom-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 700; color: var(--rom-dark); margin-bottom: 16px; }
.contact-info p { color: var(--rom-text-light); margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.contact-detail-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--rom-glow); color: var(--rom-primary); flex-shrink: 0; }
.contact-detail-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.contact-detail span { font-size: 0.95rem; }

.contact-form { background: var(--rom-white); padding: 40px; border-radius: 16px; border: 1px solid var(--rom-border); box-shadow: 0 8px 30px rgba(0,0,0,0.04); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--rom-dark); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--rom-border); border-radius: 10px; font-family: var(--rom-font-body); font-size: 0.9rem; color: var(--rom-text); background: var(--rom-light); outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--rom-primary); box-shadow: 0 0 0 3px var(--rom-glow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; padding: 14px; background: var(--rom-primary); color: var(--rom-white); border: none; border-radius: 10px; font-family: var(--rom-font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-submit:hover { background: var(--rom-primary-light); transform: translateY(-2px); }
.form-success { display: none; text-align: center; padding: 40px 20px; color: var(--rom-primary); font-weight: 600; }

/* FOOTER */
.site-footer { padding: 48px 0; background: var(--rom-darker); color: rgba(255,255,255,0.6); text-align: center; }
.footer-brands { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-brands a { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-brands a:hover { color: var(--rom-primary); }
.footer-divider { width: 60px; height: 1px; background: rgba(245,124,0,0.3); margin: 0 auto 24px; }
.site-footer p { font-size: 0.8rem; }
.footer-parent { display: inline-block; margin-top: 12px; font-size: 0.8rem; color: var(--rom-primary); }
.footer-group { color: var(--rom-primary) !important; font-weight: 600; transition: color 0.3s; }
.footer-group:hover { color: var(--rom-primary-light) !important; }

.whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); z-index: 999; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; } .stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; } .stagger-4 { transition-delay: 0.4s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .services-grid, .benefits-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   REDISEÑO v2 — Stories 6.2 a 6.7
   Toggle + Diagnóstico TI + Capacidades expandible
   ============================================ */

/* DASHBOARD DE RED (DEC-003 v2 §3.3) — Empresa / Hogar */
.romatech-dashboard {
  padding: 72px 0;
  background: linear-gradient(180deg, #0d1520 0%, #0a121c 100%);
  border-top: 1px solid rgba(245,124,0,0.2);
  border-bottom: 1px solid rgba(245,124,0,0.2);
  position: relative;
  overflow: hidden;
}
/* Grid de fondo sutil tipo terminal */
.romatech-dashboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,124,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,124,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.romatech-dashboard .container { position: relative; z-index: 1; }

.rm-dash-header { text-align: center; margin-bottom: 40px; }
.rm-dash-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--rom-primary, #F57C00);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(245,124,0,0.4);
  border-radius: 3px;
  margin-bottom: 18px;
  background: rgba(245,124,0,0.06);
}
.rm-dash-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.rm-dash-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Racks */
.rm-racks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.rm-rack {
  position: relative;
  background: #0f1a26;
  border: 1px solid rgba(245,124,0,0.15);
  border-radius: 8px;
  padding: 28px 28px 24px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: #fff;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  outline: none;
  font-family: inherit;
}
.rm-rack:hover {
  transform: translateY(-3px);
  border-color: rgba(245,124,0,0.45);
  background: #101f2e;
}
.rm-rack:focus-visible { outline: 2px solid var(--rom-primary, #F57C00); outline-offset: 4px; }

.rm-rack.active {
  border-color: var(--rom-primary, #F57C00);
  background: linear-gradient(155deg, #102235 0%, #0f1a26 100%);
  box-shadow: 0 0 40px rgba(245,124,0,0.2), inset 0 0 30px rgba(245,124,0,0.05);
}
.rm-rack.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rom-primary, #F57C00), transparent);
  animation: rmScan 3s ease-in-out infinite;
}
@keyframes rmScan {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Head del rack */
.rm-rack-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(245,124,0,0.2);
}
.rm-rack-code {
  font-family: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rom-primary, #F57C00);
  letter-spacing: 2px;
}
.rm-rack-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.rm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4a5a;
  box-shadow: 0 0 6px rgba(58,74,90,0.5);
  transition: background 0.3s, box-shadow 0.3s;
}
.rm-rack.active .rm-rack-status { color: #5fdc7c; }
.rm-rack.active .rm-status-dot {
  background: #5fdc7c;
  box-shadow: 0 0 8px #5fdc7c, 0 0 14px rgba(95,220,124,0.5);
  animation: rmBlink 1.8s ease-in-out infinite;
}
@keyframes rmBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Contenido */
.rm-rack-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.rm-rack-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0 0 18px;
}

/* Métricas */
.rm-rack-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(245,124,0,0.1);
  border-radius: 4px;
}
.rm-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
}
.rm-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(245,124,0,0.7);
  text-transform: uppercase;
}
.rm-stat-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}
.rm-rack.active .rm-stat-label { color: var(--rom-primary, #F57C00); }

/* Lista de servicios con LEDs */
.rm-rack-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}
.rm-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  border-left: 2px solid rgba(245,124,0,0.15);
  border-radius: 0 3px 3px 0;
  font-size: 0.85rem;
  transition: border-color 0.3s, background 0.3s;
}
.rm-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a3e4e;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.rm-svc-name {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.3s;
}
.rm-rack.active .rm-service {
  border-left-color: var(--rom-primary, #F57C00);
  background: rgba(245,124,0,0.06);
}
.rm-rack.active .rm-led {
  background: #5fdc7c;
  box-shadow: 0 0 6px #5fdc7c, 0 0 12px rgba(95,220,124,0.45);
}
.rm-rack.active .rm-svc-name { color: rgba(255,255,255,0.92); }

/* Animación handshake al activar: LEDs se encienden en stagger */
.rm-rack.active .rm-service:nth-child(1) .rm-led { animation: rmLedOn 0.4s ease-out 0.0s both; }
.rm-rack.active .rm-service:nth-child(2) .rm-led { animation: rmLedOn 0.4s ease-out 0.08s both; }
.rm-rack.active .rm-service:nth-child(3) .rm-led { animation: rmLedOn 0.4s ease-out 0.16s both; }
.rm-rack.active .rm-service:nth-child(4) .rm-led { animation: rmLedOn 0.4s ease-out 0.24s both; }
.rm-rack.active .rm-service:nth-child(5) .rm-led { animation: rmLedOn 0.4s ease-out 0.32s both; }
@keyframes rmLedOn {
  0% { background: #2a3e4e; box-shadow: none; transform: scale(0.8); }
  50% { background: #ffdb5f; box-shadow: 0 0 12px #ffdb5f; transform: scale(1.2); }
  100% { background: #5fdc7c; box-shadow: 0 0 6px #5fdc7c, 0 0 12px rgba(95,220,124,0.45); transform: scale(1); }
}

/* CTA */
.rm-rack-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(245,124,0,0.08);
  color: var(--rom-primary, #F57C00) !important;
  border: 1px solid rgba(245,124,0,0.4);
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rm-rack.active .rm-rack-cta {
  background: var(--rom-primary, #F57C00);
  color: #fff !important;
  border-color: var(--rom-primary, #F57C00);
}
.rm-rack-cta:hover {
  background: #fff;
  color: var(--rom-primary, #F57C00) !important;
  border-color: #fff;
}

/* Responsive */
@media (max-width: 820px) {
  .rm-racks { grid-template-columns: 1fr; }
  .rm-rack { min-height: auto; }
  .rm-rack-stats { grid-template-columns: 1fr 1fr; }
}

/* Filtrado declarativo por segmento (se mantiene) */
body.rom-segment-empresa [data-rt-segment="hogar"],
body.rom-segment-hogar [data-rt-segment="empresa"] { display: none; }

/* DIAGNÓSTICO TI (Story 6.3) */
.romatech-diagnostico { padding: 80px 0; background: var(--rom-white, #fff); }
.romatech-diagnostico .section-header { text-align: center; margin-bottom: 40px; }
.romatech-diagnostico .section-subtitle { margin: 0 auto; }
.diag-box {
  max-width: 820px; margin: 0 auto;
  background: var(--rom-light, #f4f4f5); border-radius: 14px;
  padding: 32px;
}
.diag-questions { display: grid; gap: 20px; }
.diag-q { background: var(--rom-white, #fff); padding: 20px 24px; border-radius: 12px; border: 1px solid rgba(13,13,13,0.06); }
.diag-area { display: inline-block; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--rom-primary, #e65100); margin-bottom: 8px; font-weight: 700; }
.diag-q p { font-size: 0.98rem; color: var(--rom-dark, #0d0d0d); margin-bottom: 14px; font-weight: 500; }
.diag-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.diag-c {
  background: var(--rom-light, #f4f4f5); border: 1px solid rgba(13,13,13,0.1);
  padding: 8px 14px; border-radius: 50px; font-family: inherit; font-size: 0.82rem;
  cursor: pointer; transition: all 0.25s; color: var(--rom-dark, #0d0d0d);
}
.diag-c:hover { border-color: var(--rom-primary, #e65100); }
.diag-c.selected { background: var(--rom-primary, #e65100); color: var(--rom-white, #fff); border-color: var(--rom-primary, #e65100); }

.diag-footer { margin-top: 24px; text-align: center; }
.diag-submit { padding: 12px 32px; justify-content: center; display: inline-flex; }
.diag-note { margin-top: 10px; font-size: 0.76rem; color: #888; }

.diag-result { padding-top: 10px; }
.diag-progress { display: inline-block; font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--rom-primary, #e65100); margin-bottom: 16px; font-weight: 700; }
.diag-score-wrap { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.diag-score-circle {
  width: 140px; height: 140px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--rom-white, #fff); background: var(--rom-dark, #0d0d0d);
  flex-shrink: 0; transition: background 0.3s;
}
.diag-score-circle.score-high { background: #2e7d32; }
.diag-score-circle.score-mid { background: #f9a825; }
.diag-score-circle.score-low { background: #c62828; }
.diag-score-num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.diag-score-label { font-size: 0.78rem; opacity: 0.8; margin-top: 4px; }
.diag-score-text h3 { font-size: 1.3rem; font-weight: 700; color: var(--rom-dark, #0d0d0d); margin-bottom: 6px; }
.diag-score-text p { font-size: 0.92rem; color: #666; line-height: 1.6; }

.diag-actions-list { background: var(--rom-white, #fff); padding: 20px; border-radius: 10px; margin-bottom: 20px; }
.diag-actions-list h4 { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--rom-primary, #e65100); margin-bottom: 12px; }
.diag-actions-list ul { list-style: none; padding: 0; margin: 0; }
.diag-actions-list li { padding: 8px 0; font-size: 0.9rem; color: var(--rom-dark, #0d0d0d); border-bottom: 1px solid rgba(13,13,13,0.06); }
.diag-actions-list li:last-child { border-bottom: none; }
.diag-actions-list li::before { content: '→ '; color: var(--rom-primary, #e65100); font-weight: 700; }

.diag-cta-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.diag-cta-wrap .btn-outline {
  background: transparent; border: 1px solid rgba(13,13,13,0.2); padding: 10px 20px;
  border-radius: 50px; font-family: inherit; font-size: 0.85rem; cursor: pointer;
  color: var(--rom-dark, #0d0d0d); transition: all 0.3s;
}
.diag-cta-wrap .btn-outline:hover { border-color: var(--rom-primary, #e65100); color: var(--rom-primary, #e65100); }

/* CAPACIDADES EXPANDIBLE (Story 6.4) */
.romatech-capacidades { padding: 80px 0; background: var(--rom-light, #f4f4f5); }
.romatech-capacidades .section-header { text-align: center; margin-bottom: 40px; }
.romatech-capacidades .section-subtitle { margin: 0 auto; }
.capacidades-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.cap-card { background: var(--rom-white, #fff); border-radius: 12px; border: 1px solid rgba(245,124,0,0.1); overflow: hidden; transition: all 0.3s; }
.cap-card:hover { box-shadow: 0 12px 32px rgba(245,124,0,0.08); }
.cap-head { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; }
.cap-icon { font-size: 1.8rem; }
.cap-head h3 { flex: 1; font-size: 1.1rem; font-weight: 700; color: var(--rom-dark, #0d0d0d); margin: 0; }
.cap-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--rom-light, #f4f4f5); border: none; cursor: pointer;
  font-size: 1.2rem; font-weight: 700; color: var(--rom-primary, #e65100); transition: all 0.3s;
}
.cap-toggle[aria-expanded="true"] { background: var(--rom-primary, #e65100); color: var(--rom-white, #fff); transform: rotate(45deg); }
.cap-body { padding: 0 24px 24px; border-top: 1px solid rgba(13,13,13,0.06); animation: capFadeIn 0.3s ease; }
@keyframes capFadeIn { from { opacity: 0; } to { opacity: 1; } }
.cap-body ul { list-style: none; padding-top: 16px; margin: 0; }
.cap-body li { padding: 8px 0; font-size: 0.92rem; color: #555; border-bottom: 1px solid rgba(13,13,13,0.04); }
.cap-body li:last-child { border-bottom: none; }
.cap-body li::before { content: '✓ '; color: var(--rom-primary, #e65100); font-weight: 700; }

/* CONTINUIDAD OPERATIVA (Story 6.5) */
.romatech-continuidad { padding: 80px 0; background: var(--rom-dark, #0d0d0d); color: var(--rom-white, #fff); }
.romatech-continuidad .section-label { color: var(--rom-primary, #e65100); }
.romatech-continuidad .section-title { color: var(--rom-white, #fff); }
.romatech-continuidad .section-subtitle { color: rgba(255,255,255,0.6); margin: 0 auto; }
.romatech-continuidad .section-header { text-align: center; margin-bottom: 48px; }
.cont-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.cont-card { background: rgba(255,255,255,0.04); padding: 28px 20px; border-radius: 12px; border: 1px solid rgba(245,124,0,0.2); text-align: center; transition: all 0.3s; }
.cont-card:hover { background: rgba(255,255,255,0.08); border-color: var(--rom-primary, #e65100); transform: translateY(-4px); }
.cont-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--rom-primary, #e65100); margin-bottom: 8px; }
.cont-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--rom-white, #fff); margin-bottom: 8px; }
.cont-card p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.cont-note { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); font-style: italic; max-width: 720px; margin: 0 auto; }

/* CASOS Y SECTORES (Story 6.6) */
.romatech-casos { padding: 80px 0; background: var(--rom-white, #fff); }
.romatech-casos .section-header { text-align: center; margin-bottom: 48px; }
.romatech-casos .section-subtitle { margin: 0 auto; }
.casos-grid-rm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.caso-card-rm {
  background: var(--rom-light, #f4f4f5); padding: 24px; border-radius: 12px;
  border: 1px solid rgba(245,124,0,0.08); transition: all 0.3s;
}
.caso-card-rm:hover { transform: translateY(-4px); border-color: rgba(245,124,0,0.3); }
.caso-tag-rm {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--rom-primary, #e65100); margin-bottom: 10px;
  padding: 4px 12px; border-radius: 50px; background: rgba(245,124,0,0.08);
}
.caso-card-rm h3 { font-size: 1.05rem; font-weight: 700; color: var(--rom-dark, #0d0d0d); margin-bottom: 10px; line-height: 1.4; }
.caso-card-rm p { font-size: 0.88rem; color: #555; line-height: 1.6; margin-bottom: 6px; }
.caso-card-rm strong { color: var(--rom-dark, #0d0d0d); }

/* FORM (Story 6.7) */
.form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(245,124,0,0.15);
  border-radius: 10px; font-family: inherit; font-size: 0.9rem;
  background: var(--rom-light, #f4f4f5); color: var(--rom-dark, #0d0d0d);
  outline: none; transition: border-color 0.3s;
}
.form-group select:focus { border-color: var(--rom-primary, #e65100); }

/* RESPONSIVE v2 */
@media (max-width: 1024px) {
  .capacidades-grid, .casos-grid-rm { grid-template-columns: 1fr; }
  .cont-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cont-grid { grid-template-columns: 1fr; }
  .diag-choices { flex-direction: column; }
  .diag-c { text-align: left; }
  .diag-score-wrap { flex-direction: column; text-align: center; }
  .diag-cta-wrap { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) { .hero h1 { font-size: 1.8rem; } .process-steps { grid-template-columns: 1fr; } .btn-outline-hero { margin-left: 0; margin-top: 10px; } }
