*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.5;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e8e8;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 14px;
  font-size: 14px;
  color: #444;
  border-radius: 8px;
}

.nav-links a:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(90deg, #689F38, #7CB342);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 179, 66, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(124, 179, 66, 0.45);
}

.btn-secondary {
  background: #fff;
  color: #33691E;
  border: 2px solid #7CB342;
}

.btn-secondary:hover {
  background: #f1f8e9;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 64px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #1B4332 40%, #2D6A4F 70%, #1976D2 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(124, 179, 66, 0.15);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-text p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-card-icon {
  font-size: 28px;
}

.hero-card strong {
  display: block;
  font-size: 16px;
}

.hero-card p {
  margin: 2px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #f8faf8;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.section-title.light {
  color: #fff;
}

.section-sub {
  text-align: center;
  color: #666;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 16px;
}

.section-sub.light {
  color: rgba(255, 255, 255, 0.85);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.feature-icon.green { background: #e8f5e9; }
.feature-icon.blue { background: #e3f2fd; }
.feature-icon.orange { background: #fff3e0; }
.feature-icon.purple { background: #f3e5f5; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

/* Registro cards */
.registro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.registro-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

.registro-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.registro-emoji {
  font-size: 32px;
}

.registro-card h3 {
  margin: 0;
  font-size: 20px;
}

.registro-desc {
  color: #555;
  font-size: 14px;
  margin: 0 0 16px;
}

.registro-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  flex: 1;
}

.registro-steps li {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.5;
}

.registro-note {
  font-size: 12px;
  color: #888;
  background: #f5f5f5;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 0 0 20px;
}

/* Form section — tabs con CSS puro */
.section-form {
  background: linear-gradient(160deg, #1B4332 0%, #2D6A4F 50%, #1a1a1a 100%);
  padding-bottom: 88px;
}

.tabs-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.form-tab {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#tab-cliente:checked ~ .form-tabs label[for="tab-cliente"],
#tab-veterinaria:checked ~ .form-tabs label[for="tab-veterinaria"],
#tab-repartidor:checked ~ .form-tabs label[for="tab-repartidor"] {
  background: #fff;
  color: #1B4332;
  border-color: #fff;
}

.form-panel {
  display: none;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

#tab-cliente:checked ~ .form-panels #panel-cliente,
#tab-veterinaria:checked ~ .form-panels #panel-veterinaria,
#tab-repartidor:checked ~ .form-panels #panel-repartidor {
  display: block;
}

.form-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.form-panel-desc {
  color: #666;
  font-size: 14px;
  margin: 0 0 24px;
}

.form-error {
  display: none;
  background: #ffebee;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-error.visible {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field span {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #7CB342;
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.15);
}

.form-hint {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin: 14px 0 0;
}

/* CTA */
.cta-section {
  padding: 48px 0;
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #f1f8e9;
  border-radius: 20px;
  padding: 36px 40px;
  border: 1px solid #c5e1a5;
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cta-box p {
  margin: 0;
  color: #555;
  max-width: 480px;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  height: 36px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-inner p {
  margin: 4px 0;
  font-size: 14px;
}

.footer-contact {
  color: #7CB342;
  font-weight: 600;
}

/* FAB WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 200;
  transition: transform 0.15s;
  text-decoration: none;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-cards {
    max-width: 360px;
    margin: 0 auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .nav-links a:not(.btn):not(.nav-always) {
    display: none;
  }
}

@media (max-width: 480px) {
  .form-panel {
    padding: 24px 18px;
  }

  .hero {
    padding: 48px 0 56px;
  }
}

/* ─── Blog & SEO pages ─── */
.blog-hero {
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  color: #fff;
  padding: 48px 0 56px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.blog-hero p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #558B2F;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 48px 0 72px;
}

.blog-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.blog-card-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #558B2F;
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px;
  flex: 1;
}

.blog-card-more {
  font-size: 14px;
  font-weight: 600;
  color: #1976D2;
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.blog-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
}

.blog-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.blog-article h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: #1B4332;
}

.blog-article h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

.blog-article p,
.blog-article li {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.blog-article ul,
.blog-article ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.blog-article li {
  margin-bottom: 8px;
}

.blog-article a {
  color: #1976D2;
}

.blog-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.blog-related h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.blog-related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-related-links a {
  font-size: 15px;
  font-weight: 500;
}

.blog-cta-inline {
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  border-radius: 16px;
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}

.blog-cta-inline h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.blog-cta-inline p {
  margin-bottom: 16px;
}

.seo-keywords {
  font-size: 12px;
  color: #aaa;
  margin-top: 40px;
  line-height: 1.6;
}

/* Directorio / SEO landing */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #1B4332;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step-card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.55;
}

.step-card a {
  font-size: 14px;
  font-weight: 600;
  color: #2E7D32;
  text-decoration: none;
}

.step-card a:hover {
  text-decoration: underline;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: #888;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: #555;
  line-height: 1.65;
  font-size: 15px;
}

.faq-item a {
  color: #1976D2;
}

.seo-hero {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: #fff;
  padding: 56px 0 48px;
}

.seo-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 12px 0 16px;
  max-width: 720px;
}

.seo-hero p {
  font-size: 17px;
  opacity: 0.92;
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.seo-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.seo-page h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
  color: #1B4332;
}

.seo-page p,
.seo-page li {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.seo-page ul,
.seo-page ol {
  padding-left: 24px;
  margin: 12px 0 20px;
}

.seo-page li {
  margin-bottom: 8px;
}

.seo-page a {
  color: #1976D2;
}

.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.seo-hub-card {
  display: block;
  background: #f9fbe7;
  border: 1px solid #dce775;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}

.seo-hub-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.seo-hub-card strong {
  display: block;
  font-size: 16px;
  color: #1B4332;
  margin-bottom: 6px;
}

.seo-hub-card span {
  font-size: 13px;
  color: #666;
}

.seo-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.seo-compare th,
.seo-compare td {
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  text-align: left;
}

.seo-compare th {
  background: #f1f8e9;
  color: #1B4332;
}

.seo-cta-box {
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.seo-cta-box h2 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
