/* ================================================================
   RAPIDITY — Estilos Principales
   Paleta: Teal/mint (#2BA8B1) + blanco limpio + acentos
   ================================================================ */

:root {
  --teal:       #2BA8B1;
  --teal-dark:  #1E8A92;
  --teal-light: #B8E5E8;
  --mint:       #E8F7F7;
  --navy:       #1A3A45;
  --charcoal:   #2C2C2C;
  --white:      #FFFFFF;
  --cream:      #FAFCFC;
  --grey:       #8A8A8A;
  --grey-light: #E5E8EA;
  --border:     rgba(0,0,0,0.08);
  --accent:     #FF7A45;   /* naranja para CTAs */
  --accent-dark:#E5662F;
  --green:      #4CAF50;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--white); color: var(--charcoal); overflow-x: hidden; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.teal { color: var(--teal); }
.accent { color: var(--accent); }

::selection { background: var(--teal-light); color: var(--navy); }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px) saturate(180%);
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,.04);
}

/* Logo de texto (sin imagen — sustitúyelo por tu logo cuando lo tengas) */
.rap-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.rap-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: white;
  letter-spacing: -1px;
  box-shadow: 0 4px 14px rgba(43,168,177,.35);
}
.rap-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
}
.rap-logo-text span { color: var(--teal); }

/* ===== BOTONES ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white; border: none;
  padding: 14px 30px; border-radius: 40px;
  font-weight: 700; font-size: 14px;
  letter-spacing: .3px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(43,168,177,.32);
  transition: all .3s cubic-bezier(.2,.9,.4,1.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(43,168,177,.42); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white; border: none;
  padding: 14px 30px; border-radius: 40px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255,122,69,.32);
  transition: all .3s;
}
.btn-accent:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
  padding: 12px 26px; border-radius: 40px;
  font-weight: 700; transition: all .25s;
}
.btn-outline:hover { background: var(--teal); color: white; }

/* ===== HERO ===== */
#hero {
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 120px 20px 60px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(43,168,177,.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(184,229,232,.30), transparent 60%),
    linear-gradient(135deg, #F4FBFC 0%, #E8F7F7 100%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(43,168,177,.12);
  color: var(--teal-dark);
  font-size: 12px; font-weight: 700;
  padding: 7px 16px; border-radius: 40px;
  margin-bottom: 22px;
  border: 1px solid rgba(43,168,177,.2);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(43,168,177,.6); }
  50% { box-shadow: 0 0 0 8px rgba(43,168,177,0); }
}

h1.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 22px;
}
h1.hero-title .accent-word {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px; color: var(--grey); line-height: 1.65;
  max-width: 520px; margin-bottom: 30px;
}
.hero-sub strong { color: var(--charcoal); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 520px;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  padding: 8px 14px; border-radius: 40px;
  font-size: 12px; font-weight: 600;
  color: var(--charcoal);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.trust-pill .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; color: var(--teal-dark);
}

/* Hero visual: 3 tarjetas representando servicios */
.hero-visual { position: relative; min-height: 480px; }
.hcard {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 48px rgba(0,0,0,.10);
  width: 210px;
  transition: transform .55s cubic-bezier(.2,.9,.4,1.1), box-shadow .55s;
  cursor: pointer;
}
.hcard:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03) !important;
  box-shadow: 0 28px 60px rgba(0,0,0,.16);
  z-index: 10;
}
.hcard-icon { font-size: 32px; margin-bottom: 10px; }
.hcard-title { font-weight: 700; font-size: 14px; color: var(--charcoal); margin-bottom: 4px; }
.hcard-desc { font-size: 12px; color: var(--grey); line-height: 1.5; }
.hcard-1 { top: 0; left: 0; transform: rotate(-4deg); }
.hcard-2 { top: 130px; left: 60px; transform: rotate(3deg); z-index: 2; }
.hcard-3 { top: 280px; left: 10px; transform: rotate(-2deg); }

.hcard-solved {
  position: absolute;
  bottom: -10px; right: -10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  padding: 16px 22px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(43,168,177,.4);
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
}
.hcard-solved-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.hcard-solved-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px; line-height: 1; margin-bottom: 4px; }
.hcard-solved-sub { font-size: 11px; opacity: .9; }

/* ===== SECCIONES generales ===== */
section { position: relative; padding: 90px 0; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--teal-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 5px 14px;
  background: var(--mint);
  border-radius: 40px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-title .teal { color: var(--teal); }
.section-sub {
  font-size: 15px; color: var(--grey); line-height: 1.65;
  max-width: 600px; margin-bottom: 40px;
}
.section-head-center { text-align: center; margin-bottom: 50px; }
.section-head-center .section-sub { margin: 14px auto 0; }

/* ===== SERVICIOS GRID ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.svc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all .35s cubic-bezier(.2,.9,.4,1.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,.08);
  border-color: transparent;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card-icon {
  width: 56px; height: 56px;
  background: var(--mint);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.svc-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}
.svc-card p { font-size: 13px; color: var(--grey); line-height: 1.55; }
.svc-cta {
  display: inline-block; margin-top: 14px;
  font-size: 13px; font-weight: 700; color: var(--teal-dark);
}

/* ===== CÓMO FUNCIONA ===== */
#como { background: var(--cream); }
.como-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.como-step {
  background: white;
  border-radius: 18px;
  padding: 28px 22px;
  position: relative;
  border: 1px solid var(--border);
}
.como-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 60px; font-weight: 900;
  color: var(--teal-light);
  line-height: 1;
  position: absolute; top: 14px; right: 18px;
}
.como-step h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; margin-right: 50px; }
.como-step p { font-size: 13px; color: var(--grey); line-height: 1.6; }

/* ===== PRECIOS ===== */
#precios { background: white; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 28px;
  text-align: center;
  transition: all .35s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.08); }
.price-card--featured {
  border: 2px solid var(--teal);
  position: relative;
  box-shadow: 0 0 0 4px rgba(43,168,177,.08), 0 14px 36px rgba(0,0,0,.06);
}
.price-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white;
  font-size: 11px; font-weight: 800;
  padding: 5px 16px; border-radius: 40px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.price-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.price-tag { color: var(--grey); font-size: 13px; margin-bottom: 18px; }
.price-amount { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 48px; font-weight: 900; color: var(--teal-dark); line-height: 1; margin-bottom: 4px; }
.price-from { font-size: 11px; color: var(--grey); margin-bottom: 22px; text-transform: uppercase; letter-spacing: 1px; }
.price-list { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.price-list li { padding: 8px 0; font-size: 13px; color: var(--charcoal); border-bottom: 1px dashed var(--border); }
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: '✓ '; color: var(--teal); font-weight: 800; }

/* ===== ÚNETE AL EQUIPO ===== */
#unete-section {
  background: linear-gradient(180deg, #FAFCFC, #E8F7F7);
  padding: 90px 0;
}
.unete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.unete-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.9,.4,1.1), box-shadow .35s;
}
.unete-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.10); }
.unete-img {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--mint), var(--teal-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 76px;
  overflow: hidden;
  position: relative;
}
.unete-img img { width: 100%; height: 100%; object-fit: cover; }
.unete-body { padding: 20px 18px 24px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.unete-title-c {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 800;
  letter-spacing: 1px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 8px;
  min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.unete-desc-c { font-size: 12px; color: var(--grey); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.unete-btn-c {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 10px 16px;
  border-radius: 40px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background .25s, transform .15s;
}
.unete-btn-c:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand .rap-logo-text { color: white; }
.footer-brand p { font-size: 13px; margin-top: 10px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--teal-light); }
.footer-copy {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* ===== WHATSAPP FLOAT ===== */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 700;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .3s;
  animation: floatBob 3s ease-in-out infinite;
}
.wa-fab:hover { transform: scale(1.1); }
@keyframes floatBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ===== REVEAL ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s, transform .8s cubic-bezier(.2,.9,.4,1.1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #hero .container { grid-template-columns: 1fr !important; gap: 30px !important; text-align: center; }
  .hero-visual { min-height: 360px !important; max-width: 320px; margin: 0 auto; }
  .hcard {
    position: relative !important;
    transform: none !important;
    margin-bottom: 12px;
    width: 100% !important;
    top: auto !important; left: auto !important;
  }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
}
@media (max-width: 768px) {
  section { padding: 60px 0 !important; }
  .container { padding: 0 16px; }
  #hero { padding: 100px 16px 50px !important; }
  h1.hero-title { font-size: 38px !important; }
  .nav-actions { gap: 8px !important; }
  .nav-slots { display: none !important; }
  .btn-unete-mobile { padding: 8px 14px !important; font-size: 12px !important; }
  .btn-primary { padding: 10px 18px !important; font-size: 12px !important; }
  .rap-logo-text { font-size: 17px !important; }
  .svc-grid { gap: 14px; }
  .svc-card { padding: 22px 18px; }
  .price-card { padding: 26px 22px; }
}
