/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1a237e;
  --accent:    #3949ab;
  --light-bg:  #f5f7ff;
  --dark-bg:   #0d1b4d;
  --text:      #1a1a2e;
  --muted:     #6b7280;
  --white:     #ffffff;
  --radius:    12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8eaf6;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.brand-pragma { color: var(--primary); }
.brand-system { color: var(--accent); font-weight: 400; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--accent); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0d1b4d 0%, #1a237e 50%, #283593 100%);
  padding: 100px 32px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.highlight {
  background: linear-gradient(90deg, #7986cb, #64b5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: #fff;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* Code card */
.code-card {
  background: #0a0e1f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.code-bar {
  background: #1a1f35;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}
.code-bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-body { padding: 24px 28px; font-family: 'Courier New', monospace; font-size: 14px; line-height: 2; }
.code-line { white-space: nowrap; }
.indent { padding-left: 20px; }
.indent2 { padding-left: 40px; }
.kw { color: #c792ea; }
.fn { color: #82aaff; }
.met { color: #82aaff; }
.str { color: #c3e88d; }
.val { color: #f78c6c; }
.cm { color: #546e7a; }

/* ===== SECTIONS ===== */
.section { padding: 96px 32px; }
.section-alt { background: var(--light-bg); }
.section-inner { max-width: 1120px; margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-inner h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 48px;
  line-height: 1.2;
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1.5px solid #e8eaf6;
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,35,126,0.1); }
.service-featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(57,73,171,0.12);
}
.service-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.service-list { list-style: none; }
.service-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.service-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* ===== PRODUCTO ===== */
.product-card {
  background: #fff;
  border: 1.5px solid #e8eaf6;
  border-radius: 16px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  box-shadow: 0 4px 24px rgba(26,35,126,0.06);
}
.product-logo {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.product-brand-pet { color: var(--primary); }
.product-brand-core { color: var(--accent); font-weight: 400; }
.product-tagline { font-size: 16px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.product-features { list-style: none; margin-bottom: 32px; }
.product-features li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.btn-product {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.btn-product:hover { background: var(--accent); }
.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 4px; display: block; }
.product-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  background: #e8eaf6;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ===== NOSOTROS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.about-values { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value-icon { font-size: 24px; flex-shrink: 0; }
.value strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.value p { font-size: 13px; color: var(--muted); margin: 0; }
.data-card {
  background: #fff;
  border: 1.5px solid #e8eaf6;
  border-radius: var(--radius);
  padding: 32px;
}
.data-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.data-item:last-child { border-bottom: none; }
.data-icon { font-size: 20px; flex-shrink: 0; }
.data-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.data-item span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ===== CONTACTO ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-text h2 { margin-bottom: 16px; }
.contact-text p { font-size: 16px; color: var(--muted); margin-bottom: 32px; }
.contact-options { display: flex; flex-direction: column; gap: 12px; }
.contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #e8eaf6;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.contact-option:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-form {
  background: #fff;
  border: 1.5px solid #e8eaf6;
  border-radius: var(--radius);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e8eaf6;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fafbff;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); background: #fff; }
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--accent); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  text-align: center;
  padding: 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-bg);
  padding: 32px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer .brand-pragma { color: rgba(255,255,255,0.9); }
.footer .brand-system { color: rgba(255,255,255,0.5); }
.footer-center { text-align: center; }
.footer-address { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-product-label { display: block; font-size: 10px; color: rgba(255,255,255,0.4); text-align: right; margin-bottom: 4px; }
.footer-petcore { text-decoration: none; font-size: 18px; font-weight: 800; }
.fp-pet { color: rgba(255,255,255,0.9); }
.fp-core { color: rgba(255,255,255,0.5); font-weight: 400; }

/* ===== WHATSAPP ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform .2s, box-shadow .2s;
  z-index: 999;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner,
  .services-grid,
  .product-card,
  .about-grid,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-content h1 { font-size: 34px; }
  .hero-visual { display: none; }
  .product-stats { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-product-label { text-align: center; }
  .section-inner h2 { font-size: 28px; }
}
