/* =============================================
   RemoteWorking.es — Corporate Website
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --navy:      #0A1628;
  --navy-mid:  #0F2044;
  --navy-soft: #152A52;
  --blue:      #1E6FD9;
  --blue-light:#2E85F5;
  --cyan:      #00C8F0;
  --white:     #FFFFFF;
  --gray-100:  #F4F6FA;
  --gray-200:  #E8ECF4;
  --gray-400:  #9AAAC8;
  --gray-600:  #5A6A8A;
  --gray-800:  #2A3550;
  --text:      #1A2540;
  --text-muted:#5A6A8A;

  --font: 'Inter', -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10,22,40,0.08);
  --shadow-md: 0 8px 32px rgba(10,22,40,0.12);
  --shadow-lg: 0 20px 60px rgba(10,22,40,0.18);
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.75rem;
}

/* ---- Layout ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

nav.scrolled {
  background: rgba(10, 22, 40, 0.96);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-logo span { color: var(--cyan); }

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,111,217,0.4);
}

.btn-primary-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-outline-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline-lg:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
}

.btn-cyan:hover {
  background: #20DCFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,200,240,0.35);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

#dotCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,240,0.1);
  border: 1px solid rgba(0,200,240,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: normal;
  color: var(--cyan);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

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

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-item .stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero visual — connection diagram */
.hero-visual {
  position: relative;
}

.connection-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.connection-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30,111,217,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.conn-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.conn-device {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.conn-device .device-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.conn-device .device-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.conn-device .device-name {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-top: 2px;
}

.conn-arrow {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.conn-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(30,111,217,0.4), var(--cyan), rgba(30,111,217,0.4));
  position: relative;
}

.conn-dot-moving {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  position: absolute;
  top: -2px;
  animation: moveAlong 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--cyan);
}

@keyframes moveAlong {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

.conn-label {
  font-size: 0.65rem;
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}

.conn-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.status-chip {
  background: rgba(0,200,240,0.08);
  border: 1px solid rgba(0,200,240,0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.status-chip .chip-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

.status-chip .chip-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  display: block;
}

/* ============================================
   FEATURES GRID (Ventajas)
   ============================================ */
#ventajas { background: var(--gray-100); }

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

.section-header p {
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gray-200);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-icon.blue  { background: rgba(30,111,217,0.1); }
.feature-icon.cyan  { background: rgba(0,200,240,0.1); }
.feature-icon.navy  { background: rgba(10,22,40,0.06); }
.feature-icon.green { background: rgba(16,185,129,0.1); }

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
#como-funciona { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 0;
}

.step-item {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 auto 1.25rem;
  border: 3px solid var(--gray-200);
  position: relative;
  z-index: 1;
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   PRICING
   ============================================ */
#precios { background: var(--gray-100); }

.pricing-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--transition);
}

.pricing-card.featured {
  background: var(--navy);
  border-color: var(--blue);
  color: white;
  transform: scale(1.03);
}

.pricing-card.featured h3,
.pricing-card.featured .price-amount,
.pricing-card.featured li {
  color: white;
}

.pricing-card.featured p,
.pricing-card.featured .price-period {
  color: rgba(255,255,255,0.6);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.pricing-card.featured .plan-name { color: var(--cyan); }

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.price-amount sup {
  font-size: 1.3rem;
  vertical-align: top;
  margin-top: 0.5rem;
  font-weight: 400;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card.featured .pricing-features li {
  border-bottom-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.check-icon {
  width: 18px;
  height: 18px;
  background: rgba(16,185,129,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #10B981;
}

.pricing-card.featured .check-icon {
  background: rgba(0,200,240,0.15);
  color: var(--cyan);
}

.demo-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-note strong {
  color: var(--blue);
}

/* ============================================
   REQUIREMENTS
   ============================================ */
#requisitos { background: var(--white); }

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.req-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.req-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.req-card ul {
  list-style: none;
}

.req-card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.req-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
#comparativa { background: var(--navy); }

#comparativa .section-header h2,
#comparativa .eyebrow {
  color: white;
}

#comparativa .section-header p {
  color: rgba(255,255,255,0.55);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.comp-table th {
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.comp-table th:first-child { text-align: left; color: rgba(255,255,255,0.5); }
.comp-table th.highlight { color: var(--cyan); }
.comp-table th.other { color: rgba(255,255,255,0.4); }

.comp-table td {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.comp-table td:first-child { text-align: left; }
.comp-table tr:last-child td { border-bottom: none; }

.comp-table td.highlight-col {
  background: rgba(30,111,217,0.08);
}

.check-yes { color: var(--cyan); font-size: 1.1rem; }
.check-no  { color: rgba(255,255,255,0.2); font-size: 1.1rem; }
.check-partial { color: #F59E0B; font-size: 0.8rem; }

/* ============================================
   ACCESO CLIENTES CTA
   ============================================ */
#acceso-clientes { background: var(--gray-100); }

.access-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.access-box::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30,111,217,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.access-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0,200,240,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.access-box h2 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.access-box p {
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.access-box .btn {
  position: relative;
  z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 2rem;
}

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

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--cyan); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual { order: -1; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .comp-table td, .comp-table th {
    padding: 0.75rem 0.75rem;
    font-size: 0.82rem;
  }

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

  .steps-grid::before { display: none; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-cta.open {
    display: flex;
    position: fixed;
    top: auto;
    flex-direction: column;
    left: 0; right: 0;
    background: var(--navy);
    padding: 0 2rem 1.5rem;
    gap: 0.75rem;
  }

  section { padding: 3.5rem 0; }

  .hero-stats { gap: 1.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }

  .access-box { padding: 2.5rem 1.5rem; }
}
