/* ─────────────────────────────────────────────────────────────────────
   PetPal — Design System
   Inspirado en Linear, Vercel, Notion, Apple
   ───────────────────────────────────────────────────────────────────── */

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

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

:root {
  /* Colores */
  --green-50:  #ECFDF5;
  --green-100: #D1FAE5;
  --green-200: #A7F3D0;
  --green-300: #6EE7B7;
  --green-400: #34D399;
  --green-500: #00C48C;
  --green-600: #00A876;
  --green-700: #047857;
  --green-900: #064E3B;

  --ink-50:  #FAFAFB;
  --ink-100: #F4F4F5;
  --ink-200: #E4E4E7;
  --ink-300: #D4D4D8;
  --ink-400: #A1A1AA;
  --ink-500: #71717A;
  --ink-600: #52525B;
  --ink-700: #3F3F46;
  --ink-800: #27272A;
  --ink-900: #18181B;

  --text:        var(--ink-900);
  --text-soft:   var(--ink-600);
  --text-muted:  var(--ink-400);
  --bg:          #FFFFFF;
  --bg-soft:     var(--ink-50);
  --border:      var(--ink-200);
  --border-soft: var(--ink-100);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow:    0 4px 12px rgba(24, 24, 27, 0.06), 0 1px 2px rgba(24, 24, 27, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(24, 24, 27, 0.12), 0 8px 16px -8px rgba(24, 24, 27, 0.06);
  --shadow-green: 0 12px 32px -8px rgba(0, 196, 140, 0.32);

  /* Radios */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Spacing escala */
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

a {
  color: var(--green-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--green-700);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Navbar ───────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.navbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background-image: url('/app-icon.png');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}

.nav-cta {
  background: var(--ink-900);
  color: white !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.nav-cta:hover {
  background: var(--ink-800);
  transform: translateY(-1px);
}

/* ─── Botones ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink-900);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #000;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: white;
  color: var(--text);
  border-color: var(--ink-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-green {
  background: var(--green-500);
  color: white;
  box-shadow: var(--shadow-green);
}

.btn-green:hover {
  background: var(--green-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green), var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
}

/* ─── Hero ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 80px 24px 96px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 196, 140, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 40%, rgba(110, 231, 183, 0.08), transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 24, 27, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(0, 196, 140, 0.18);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 196, 140, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 196, 140, 0); }
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cta-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mockup móvil */
.hero-mockup {
  position: relative;
  margin: 64px auto 0;
  max-width: 320px;
  filter: drop-shadow(0 32px 64px rgba(24, 24, 27, 0.18));
}

.phone-frame {
  position: relative;
  background: var(--ink-900);
  border-radius: 42px;
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(24, 24, 27, 0.1);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: var(--ink-900);
  border-radius: 14px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #F0FBF6 0%, #FFFFFF 100%);
  aspect-ratio: 9 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 56%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.phone-bubble {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 4s ease-in-out infinite;
}

.phone-bubble .emoji {
  font-size: 18px;
}

.phone-bubble.b1 {
  top: 22%;
  left: -28%;
  animation-delay: 0s;
}

.phone-bubble.b2 {
  top: 50%;
  right: -28%;
  animation-delay: 1.5s;
}

.phone-bubble.b3 {
  bottom: 16%;
  left: -22%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ─── Secciones ────────────────────────────────────────────────────── */

.section {
  padding: 96px 24px;
}

.section-tight {
  padding: 64px 24px;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--ink-900);
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark p {
  color: var(--ink-300);
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.container-wide {
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.section-header p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Features grid ───────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1024px;
  margin: 0 auto;
}

.feature {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-soft);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  font-size: 24px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.feature p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ─── Cómo funciona ───────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1024px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow-green);
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

/* ─── Stats ───────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
}

/* ─── CTA final ───────────────────────────────────────────────────── */

.cta-card {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  color: white;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 196, 140, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(110, 231, 183, 0.12), transparent 50%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: white;
}

.cta-card p {
  font-size: 17px;
  color: var(--ink-300);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ─── Páginas legales / soporte ───────────────────────────────────── */

.page-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.page-title {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 18px;
  margin-bottom: 6px;
}

.legal-section p,
.legal-section ul {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.legal-section ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-500);
}

.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

.callout {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-left: 3px solid var(--green-500);
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--green-900);
  margin: 16px 0;
}

.callout strong {
  color: var(--green-900);
}

/* ─── Soporte / FAQ ───────────────────────────────────────────────── */

.contact-card {
  background: linear-gradient(135deg, var(--green-50) 0%, white 100%);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.contact-card h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-card p {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-900);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.18s ease;
}

.contact-email:hover {
  background: #000;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.faq-list {
  margin-top: 16px;
}

.faq {
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
}

.faq:first-child {
  border-top: none;
}

.faq h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.faq p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ─── Footer ──────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 24px 32px;
  background: var(--bg-soft);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-top .brand-mark {
  width: 28px;
  height: 28px;
}

.footer-top span {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

/* ─── Trust row ───────────────────────────────────────────────────── */

.trust-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-soft);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item::before {
  content: "✓";
  color: var(--green-500);
  font-weight: 700;
}

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 56px 20px 72px;
  }

  .section {
    padding: 64px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .page-wrapper {
    padding: 40px 20px 64px;
  }

  .phone-bubble.b1 { left: -10%; top: 12%; }
  .phone-bubble.b2 { right: -10%; }
  .phone-bubble.b3 { left: -6%; }
}

/* ─── Selección y scroll ──────────────────────────────────────────── */

::selection {
  background: var(--green-200);
  color: var(--green-900);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--ink-200);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-300);
}
