/* ================================================
   SAFEPETS WEB — CSS PRINCIPAL
   Paleta coherente con la app
   ================================================ */

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

:root {
  --teal:    #00a8a3;
  --teal2:   #00ffde;
  --dark:    #0f2a29;
  --dark2:   #1a5554;
  --bg:      #f0fffe;
  --white:   #ffffff;
  --border:  #d0f0ee;
  --text:    #0f2a29;
  --muted:   #64748b;
  --radius:  18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

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

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  background: var(--dark);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.logo span {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.3px;
}
.logo span em {
  color: var(--teal2);
  font-style: normal;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar nav a {
  color: rgba(255,255,255,.65);
  font-weight: 700;
  font-size: .88rem;
  padding: 7px 14px;
  border-radius: 20px;
  transition: color .2s, background .2s;
}
.navbar nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.navbar nav a.active { color: #fff; }

.btn-nav {
  background: var(--teal) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 14px rgba(0,168,163,.35);
  margin-left: 8px;
}
.btn-nav:hover { filter: brightness(1.08); background: var(--teal) !important; }

/* Hamburger móvil */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .navbar nav {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .navbar nav.open { display: flex; }
  .navbar nav a { width: 100%; padding: 11px 16px; }
  .btn-nav { margin-left: 0 !important; margin-top: 6px; text-align: center; }
}

/* ================================================
   BOTONES GLOBALES
   ================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .13s, box-shadow .13s, filter .13s;
  box-shadow: 0 4px 18px rgba(0,168,163,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 24px rgba(0,168,163,.5); filter: brightness(1.06); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: background .2s, transform .13s;
}
.btn-secondary:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  color: var(--teal);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: background .2s, transform .13s, box-shadow .13s;
}
.btn-outline:hover { background: #e0f7f5; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,168,163,.15); }

/* ================================================
   HERO
   ================================================ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 55%, var(--teal) 100%);
  padding: 100px 40px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 75% 20%, rgba(0,255,222,.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(0,168,163,.14) 0%, transparent 40%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,2 58,17 58,47 30,62 2,47 2,17' fill='none' stroke='rgba(0,255,222,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px;
}

.hero-text {
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,255,222,.12);
  border: 1px solid rgba(0,255,222,.28);
  color: var(--teal2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--teal2); }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chapita-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal2), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0,168,163,.45);
  position: relative;
}
.chapita-inner {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: var(--dark);
  border: 3px solid rgba(0,255,222,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.chapita-paw { font-size: 2.8rem; }
.chapita-brand { font-size: .7rem; font-weight: 900; color: var(--teal2); letter-spacing: .12em; text-transform: uppercase; }
.chapita-tech  { font-size: .6rem; color: rgba(255,255,255,.35); font-weight: 700; }
.scan-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(0,255,222,.22);
  animation: pulse 2.8s ease-in-out infinite;
}
.scan-ring-2 {
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,255,222,.1);
  animation: pulse 2.8s ease-in-out infinite .9s;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.35; transform:scale(1.03); }
}

@media (max-width: 768px) {
  .hero { padding: 70px 24px 60px; gap: 48px; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .chapita-wrap { width: 170px; height: 170px; }
  .chapita-inner { width: 138px; height: 138px; }
}

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar {
  background: var(--bg);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 32px 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--teal); }
.stat-lbl { font-size: .78rem; color: var(--muted); font-weight: 700; margin-top: 3px; }

@media (max-width: 600px) {
  .stats-bar { gap: 30px; padding: 24px 20px; }
  .stat-num { font-size: 1.6rem; }
}

/* ================================================
   SECCIONES GENÉRICAS
   ================================================ */
.section { padding: 90px 40px; }
.section.bg-white  { background: var(--white); }
.section.bg-light  { background: var(--bg); }
.section.bg-dark   { background: var(--dark); }

.section-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section.bg-dark .section-label { color: var(--teal2); }

.section-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section.bg-dark .section-title { color: #fff; }

.section-sub {
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 54px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.section.bg-dark .section-sub { color: rgba(255,255,255,.5); }

@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  .section-title { font-size: 1.6rem; }
}

/* ================================================
   FEATURES GRID
   ================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,168,163,.12); }
.feature-icon {
  width: 46px;
  height: 46px;
  background: #e8fffe;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: .95rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.feature-card p  { font-size: .84rem; color: var(--muted); line-height: 1.65; }

/* ================================================
   STEPS
   ================================================ */
.steps-grid {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
}
.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: var(--dark);
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--dark);
  box-shadow: 0 4px 16px rgba(0,168,163,.4);
}
.step-item h3 { font-size: .9rem; font-weight: 900; color: #fff; margin-bottom: 7px; }
.step-item p  { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.55; }

@media (max-width: 600px) {
  .steps-grid { flex-direction: column; align-items: center; gap: 28px; }
  .steps-grid::before { display: none; }
}

/* ================================================
   PRICING
   ================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 30px 26px;
  transition: transform .2s, box-shadow .2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,168,163,.12); }
.plan-card.featured {
  background: var(--dark);
  border-color: var(--teal);
  box-shadow: 0 10px 40px rgba(0,168,163,.28);
}
.plan-badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.plan-name { font-size: 1.15rem; font-weight: 900; color: var(--text); margin-bottom: 5px; }
.plan-card.featured .plan-name { color: #fff; }
.plan-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--teal);
  margin: 12px 0 5px;
  line-height: 1;
}
.plan-price span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan-card.featured .plan-price span { color: rgba(255,255,255,.4); }
.plan-desc { font-size: .83rem; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.plan-card.featured .plan-desc { color: rgba(255,255,255,.5); }
.plan-features {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.plan-features li {
  font-size: .85rem;
  color: var(--text);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.4;
}
.plan-card.featured .plan-features li { color: rgba(255,255,255,.8); }
.plan-features li::before { content: '✓'; color: var(--teal); font-weight: 900; flex-shrink: 0; }
.plan-btn {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 22px;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  background: var(--teal);
  color: #fff;
  transition: filter .15s, transform .15s;
  box-shadow: 0 3px 14px rgba(0,168,163,.3);
}
.plan-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.plan-card:not(.featured) .plan-btn {
  background: var(--bg);
  color: var(--teal);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.plan-card:not(.featured) .plan-btn:hover { background: #e0f7f5; }

/* Plan anual note */
.pricing-note {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 20px;
}
.pricing-note strong { color: var(--teal); }

/* ================================================
   CTA FINAL
   ================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, var(--teal) 100%);
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '🐾';
  position: absolute;
  font-size: 200px;
  opacity: .04;
  right: -20px;
  bottom: -40px;
  transform: rotate(-15deg);
}
.cta-section h2 { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-section p  { font-size: 1rem; color: rgba(255,255,255,.65); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  .cta-section { padding: 70px 24px; }
  .cta-section h2 { font-size: 1.7rem; }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #080f0f;
  padding: 50px 40px 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand { max-width: 260px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.footer-logo img { width: 32px; border-radius: 8px; }
.footer-logo span { font-size: 1rem; font-weight: 900; color: #fff; }
.footer-logo span em { color: var(--teal2); font-style: normal; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.65; }

.footer-links h4 { font-size: .78rem; font-weight: 900; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links ul li a { font-size: .85rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-links ul li a:hover { color: var(--teal2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.25); }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,168,163,.15);
  border: 1px solid rgba(0,168,163,.3);
  color: var(--teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 600px) {
  .footer { padding: 40px 20px 24px; }
  .footer-top { gap: 28px; }
}

/* ================================================
   COMO FUNCIONA — página detalle
   ================================================ */
.how-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  padding: 80px 40px 70px;
  text-align: center;
}
.how-hero h1 { font-size: 2.4rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.how-hero p  { font-size: 1rem; color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.faq-item {
  border-bottom: 1.5px solid var(--border);
  padding: 20px 0;
}
.faq-q { font-size: .95rem; font-weight: 800; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--teal); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; font-size: .88rem; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.faq-item.open .faq-a { display: block; }

/* ================================================
   COMPRAR — página tienda
   ================================================ */
.shop-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  padding: 70px 40px 60px;
  text-align: center;
}
.shop-hero h1 { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.shop-hero p  { font-size: .95rem; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto; }

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,168,163,.15); }
.product-img {
  background: var(--bg);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.product-img img { max-height: 160px; object-fit: contain; }
.product-body { padding: 20px; }
.product-name { font-size: 1.05rem; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.product-desc { font-size: .83rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.product-price { font-size: 1.4rem; font-weight: 900; color: var(--teal); margin-bottom: 16px; }
.product-price span { font-size: .8rem; color: var(--muted); font-weight: 600; }

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

/* ================================================
   UTILS
   ================================================ */
.container { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
