:root {
  --bg: #f5f5f0;
  --bg-2: #ffffff;
  --text: #0f172a;
  --muted: #5f6368;
  --accent: #0f9d69;
  --accent-2: #16a6b8;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --hero-shift: 0px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .rp-nav a, .rp-tagline, .rp-btn-primary, .rp-btn-ghost {
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(15, 157, 105, 0.10), transparent 32%),
              radial-gradient(circle at 85% 20%, rgba(22, 166, 184, 0.10), transparent 30%);
  pointer-events: none;
  z-index: -1;
}

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

.rp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  margin: 16px 20px 0;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  animation: fadeDown 700ms ease both;
}

@keyframes fadeDown {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.rp-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rp-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(15, 157, 105, 0.16));
}

.rp-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.rp-logo-animate { animation: rpLogoPop 1.2s ease-out; }

@keyframes rpLogoPop {
  0% { transform: scale(0.2); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.rp-nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.rp-dark-toggle {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.rp-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.25rem 3rem;
  overflow: hidden;
}

.rp-hero::before,
.rp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 220ms ease-out;
}

.rp-hero::before {
  background: radial-gradient(circle at 20% 20%, rgba(15, 157, 105, 0.16), transparent 32%),
              radial-gradient(circle at 80% 20%, rgba(22, 166, 184, 0.16), transparent 34%);
  transform: translate3d(0, calc(var(--hero-shift) * -1), 0);
}

.rp-hero::after {
  background: linear-gradient(120deg, rgba(255,255,255,0.24), transparent 60%);
  transform: translate3d(0, calc(var(--hero-shift) * 0.35), 0);
}

.rp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 3.3rem 1.6rem;
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: heroReveal 900ms ease both;
}

.rp-hero-inner::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(15, 157, 105, 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.rp-hero-inner::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(22, 166, 184, 0.16), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

@keyframes heroReveal {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.rp-hero h1 {
  font-size: clamp(2.4rem, 4.3vw, 3.6rem);
  margin: 0 auto 1rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 760px;
  animation: heroTextIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.rp-hero p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 1.6rem;
  opacity: 0.9;
  animation: heroTextIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 140ms both;
}

.rp-hero-cta {
  animation: heroTextIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 280ms both;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.rp-btn-primary,
.rp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rp-hero-cta {
  justify-content: center;
}

.rp-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 16px 30px rgba(15, 157, 105, 0.18);
  border: 1px solid transparent;
}

.rp-btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
}

.rp-btn-primary:hover,
.rp-btn-ghost:hover {
  transform: translateY(-2px);
}

.rp-card:hover,
.rp-contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.rp-btn-primary,
.rp-btn-ghost,
.rp-contact-item,
.rp-card {
  will-change: transform;
}

.rp-section {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 1.2rem 1.25rem 2rem;
}

.rp-glass {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(15px);
}

.rp-section h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.rp-section > p {
  color: var(--muted);
  max-width: 760px;
}

.rp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.rp-card {
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 20px;
}

.rp-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.rp-card p {
  margin: 0;
  color: var(--muted);
}

.rp-contact {
  padding-bottom: 5rem;
}

.rp-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.rp-contact-item {
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.rp-whatsapp-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  border: 0;
  border-radius: 999px;
  width: 58px;
  height: 58px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 16px 30px rgba(15, 157, 105, 0.24);
  cursor: pointer;
}

.rp-footer {
  padding: 1.2rem 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .rp-grid,
  .rp-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rp-header {
    flex-wrap: wrap;
    gap: 0.7rem;
  }
  .rp-nav {
    width: 100%;
    justify-content: space-between;
  }
  .rp-hero-inner {
    padding: 2.2rem 1.1rem;
  }
  .rp-grid,
  .rp-contact-grid {
    grid-template-columns: 1fr;
  }
}

body.dark {
  --bg: #07110d;
  --bg-2: #0f1713;
  --text: #f7f9f8;
  --muted: #b7c2bc;
  --accent: #34d399;
  --accent-2: #22d3ee;
  --border: rgba(255,255,255,0.1);
  background: linear-gradient(180deg, #07110d 0%, #0d1612 100%);
}

body.dark .rp-header,
body.dark .rp-hero-inner,
body.dark .rp-glass,
body.dark .rp-card,
body.dark .rp-contact-item {
  background: rgba(15, 23, 20, 0.9);
  color: var(--text);
}

body.dark .rp-btn-ghost,
body.dark .rp-dark-toggle {
  background: #0f1713;
  color: var(--text);
}
