/* ═══════════════════════════════════════════════
   RG-DEVELOPMENT — Landing Page
   Fuentes: Inter + Space Grotesk
   Acento: Esmeralda #059669
═══════════════════════════════════════════════ */

:root {
  --green:       #059669;
  --green-light: #d1fae5;
  --green-dark:  #047857;
  --black:       #0f172a;
  --gray-900:    #111827;
  --gray-800:    #1f2937;
  --gray-700:    #374151;
  --gray-500:    #6b7280;
  --gray-400:    #9ca3af;
  --gray-200:    #e5e7eb;
  --gray-100:    #f3f4f6;
  --gray-50:     #edf2ee;
  --white:       #f4f7f5;
  --blue:        #3b82f6;
  --purple:      #8b5cf6;

  --font-sans:   'Inter', system-ui, sans-serif;
  --font-head:   'Space Grotesk', system-ui, sans-serif;

  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--gray-900); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn--sm  { font-size: .8125rem; padding: 8px 16px; }
.btn--lg  { font-size: 1rem;     padding: 14px 28px; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(5,150,105,.3);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all .3s;
  padding: 0;
}
.nav.scrolled {
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}
.nav__logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav__links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.nav__links a svg {
  width: 14px;
  height: 14px;
  opacity: .6;
  transition: opacity .2s;
  flex-shrink: 0;
}
.nav__links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,.08);
}
.nav__links a:hover svg { opacity: 1; }
.nav__cta { margin-left: auto; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 400px;
  height: 600px;
  background: radial-gradient(circle, rgba(5,150,105,.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5,150,105,.15);
  border: 1px solid rgba(5,150,105,.3);
  color: #6ee7b7;
  font-size: .8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -.03em;
  max-width: 100%;
}
.hero__title-accent {
  color: var(--green);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 820px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
}
.hero__stat-label {
  display: block;
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
.hero__stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.12);
}

/* ── SECCIONES ── */
.section {
  padding: 96px 0;
}
.section--dark {
  background: var(--gray-900);
  color: var(--white);
}
.section--muted {
  background: var(--gray-50);
}
.section__header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 60px;
}
.section__header--light .section__title,
.section--dark .section__title { color: var(--white); }
.section__header--light .section__desc,
.section--dark .section__desc  { color: rgba(255,255,255,.55); }
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section__desc {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── SERVICIOS ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: #ffffff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all .25s;
}
.service-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card--featured {
  border-color: var(--green);
  background: linear-gradient(135deg, #f0fdf4 0%, var(--white) 60%);
}
.service-card__badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--green);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card--featured .service-card__icon {
  background: var(--green-light);
}
.service-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--gray-700);
}
.service-card--featured .service-card__icon svg {
  color: var(--green-dark);
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.service-card p {
  font-size: .9375rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card__list li {
  font-size: .8125rem;
  color: var(--gray-600, #4b5563);
  padding-left: 16px;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
}

/* ── PRODUCTOS ── */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.product-card {
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s;
}
.product-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-2px);
}
.product-card--accent {
  border-color: rgba(5,150,105,.4);
  background: rgba(5,150,105,.06);
}
.product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.product-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__icon svg { width: 20px; height: 20px; }
.product-card__icon--blue   { background: rgba(59,130,246,.15);  color: #60a5fa; }
.product-card__icon--green  { background: rgba(5,150,105,.15);   color: #34d399; }
.product-card__icon--purple { background: rgba(139,92,246,.15);  color: #a78bfa; }
.product-card__tag {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 3px 10px;
  border-radius: 100px;
}
.product-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.product-card p {
  font-size: .9375rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-bottom: 20px;
}
.product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-card__features span {
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── PROCESO ── */
.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.process__step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.process__step-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  opacity: .25;
  line-height: 1;
  margin-bottom: 16px;
}
.process__step-content h3 {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.process__step-content p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
}
.process__connector {
  width: 48px;
  height: 2px;
  background: var(--gray-200);
  flex-shrink: 0;
  margin-top: 20px;
  position: relative;
}
.process__connector::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--gray-200);
  border-right: 2px solid var(--gray-200);
  transform: rotate(45deg);
}

/* ── POR QUÉ ── */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why__text p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}
.why__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.why__item-icon {
  width: 28px;
  height: 28px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.why__item-icon svg {
  width: 14px;
  height: 14px;
  color: var(--green-dark);
  stroke-width: 2.5;
}
.why__item strong {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.why__item p {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}
.why__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.why__card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}
.why__card {
  background: #ffffff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.why__card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.why__card--1 { margin-left: 0; }
.why__card--2 { margin-left: 24px; }
.why__card--3 { margin-left: 48px; }
.why__card-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why__card-icon svg { width: 18px; height: 18px; color: var(--gray-600, #4b5563); }
.why__card-icon--green  { background: var(--green-light); }
.why__card-icon--green svg { color: var(--green-dark); }
.why__card-icon--purple { background: #ede9fe; }
.why__card-icon--purple svg { color: #7c3aed; }
.why__card-title { font-size: .75rem; color: var(--gray-400); font-weight: 500; margin-bottom: 2px; }
.why__card-val { font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }
.why__card-val--green  { color: var(--green); }
.why__card-val--purple { color: #7c3aed; }

/* ── CONTACTO ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact__info p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact__item-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__item-icon svg { width: 18px; height: 18px; color: var(--gray-600, #4b5563); }
.contact__item-icon--green { background: var(--green-light); }
.contact__item-icon--green svg { color: var(--green-dark); }
.contact__item-label { font-size: .75rem; color: var(--gray-400); font-weight: 500; margin-bottom: 2px; }
.contact__item a, .contact__item span { font-size: .9375rem; font-weight: 500; color: var(--gray-700); }
.contact__item a:hover { color: var(--green); }

.contact__form-wrap {
  background: #ffffff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 16px; }
.form__group label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--gray-900);
  padding: 11px 14px;
  outline: none;
  transition: all .2s;
  resize: vertical;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--gray-400); }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.form__submit { margin-top: 8px; }
.btn svg { width: 18px; height: 18px; }
.hidden { display: none !important; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
}
.form__msg--ok    { background: var(--green-light); color: var(--green-dark); border: 1px solid #a7f3d0; }
.form__msg--error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ── FOOTER ── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer__brand p { font-size: .9375rem; line-height: 1.7; }
.footer__links {
  display: flex;
  gap: 48px;
}
.footer__links-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}
.footer__links a {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .why__grid     { grid-template-columns: 1fr; }
  .why__visual   { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(15,23,42,.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav__links.open a { padding: 10px 12px; }
  .nav__cta    { display: none; }
  .nav__hamburger { display: flex; }

  .section { padding: 64px 0; }
  .process__steps { flex-direction: column; align-items: center; }
  .process__connector { width: 2px; height: 32px; margin: 0; }
  .process__connector::after { display: none; }
  .process__step { width: 100%; max-width: 400px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 24px; }
  .footer__bottom .container { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 20px; }
  .services__grid   { grid-template-columns: 1fr; }
  .products__grid   { grid-template-columns: 1fr; }
}
