:root{
  --brand:#1a4e8d;
  --brand-600:#1350a5;
  --bg:#0b1220;
  --text:#0f172a;
  --muted:#64748b;
  --surface:#ffffff;
  --surface-alt:#f6f8fb;
  --ring: rgba(26,78,141,.35);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto;
  color:var(--text);
  background:#fff;
  line-height:1.6;
}

/* utilidades */
.container{width:min(1120px,92%);margin-inline:auto}
.section{padding:72px 0}
.section.alt{background:var(--surface-alt)}
.section-title{
  font-size:clamp(24px,2.8vw,34px);
  margin:0 0 24px;
  text-align:center;
}

/* header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:#a9d4dc; backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid #a9d4dc;
}
.nav{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:12px 0;
}
.logo{display:flex; align-items:center; gap:10px; font-weight:700; color:var(--brand); text-decoration:none}
.logo span{font-size:18px}
.menu{display:flex; gap:18px; align-items:center}
.menu a{color:#0f172a; text-decoration:none; font-weight:600}
.menu .btn{margin-left:6px}

.nav-toggle{
  display:none; border:0; background:#fff; font-size:22px; padding:8px 10px; border-radius:10px;
}

/* hero */
.hero{padding:56px 0 32px; background:linear-gradient(180deg,#eef4ff,transparent)}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:28px; align-items:center}
.hero-copy h1{font-size:clamp(28px,4.2vw,48px); line-height:1.1; margin:0 0 12px}
.hero-copy p{color:var(--muted); margin:0 0 18px}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin:8px 0 12px}
.trust{list-style:none; padding:0; margin:10px 0 0; display:flex; gap:16px; flex-wrap:wrap; color:#0f172a}
.hero-media img{width:100%; border-radius:24px; display:block; box-shadow:0 12px 40px rgba(0,0,0,.1)}
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #a9d4dc; /* color del fondo de la imagen */
  padding: 40px 8%;
  gap: 20px;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 80px; /* ajusta para el tamaño exacto que quieras */
  line-height: 1.0;
  margin: 0 0 10px;
}

.hero-text h1 {
  color: #ffffff;
}
.hero-text .brand {
  color: #1a4e8d; /* azul de Petvive */
  font-weight: 700;
}

.hero-text p {
  color: #ffffff;
}
.hero-text p {
  font-size: 20px;
  color: #1a4e8d;
}

.hero-img {
  position: relative;
  top: 110px; /* ajusta este valor para que la imagen baje */
}

.hero-img img {
  max-width: 99%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-banner {
    flex-direction: column;
    text-align: center;
  }
}


/* botones */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:12px; border:1px solid transparent;
  font-weight:700; text-decoration:none; cursor:pointer; transition:.2s transform ease, .2s box-shadow ease, .2s background ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand); color:#fff; box-shadow:0 6px 20px var(--ring)}
.btn-primary:hover{background:var(--brand-600)}
.btn-outline{border-color:var(--brand); color:var(--brand)}
.btn-outline:hover{background:#e8f0fb}
.btn-ghost{background:transparent; border-color:#e5e7eb; color:#0f172a}
.btn-ghost:hover{background:#f4f6fb}

/* grids/cards */
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:24px}
.card{
  background:var(--surface);
  border:1px solid #e8ecf2; border-radius:var(--radius);
  padding:22px; box-shadow:0 4px 14px rgba(2,6,23,.04);
}
.card-icon{font-size:28px; margin-bottom:8px}
.plan{text-align:center; padding:26px}
.plan .price{font-size:28px; font-weight:700; margin:8px 0 10px}
.plan .price span{font-weight:600; font-size:14px; color:var(--muted)}
.features{list-style:none; padding:0; margin:0 0 16px; color:#0f172a}
.features li{padding:6px 0; border-bottom:1px dashed #e5e7eb}
.plan .btn{width:100%}
.plan-pop{position:relative; border-width:2px}
.plan-pop .badge{
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:#111827; color:#fff; font-size:12px; padding:6px 10px; border-radius:999px;
}

/* bullets */
.bullets{list-style: none; padding:0; margin:12px 0 0}
.bullets li{padding-left:26px; position:relative; margin:8px 0}
.bullets li::before{
  content:""; position:absolute; left:0; top:.55em; width:12px; height:12px; border-radius:50%;
  background:var(--brand);
}

/* quotes */
.quote p{margin:0 0 10px; font-style:italic}
.quote cite{color:var(--muted); font-size:14px}

/* contacto */
.contact-form{margin-top:10px}
.form-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:14px}
.form-grid .full{grid-column:1/-1}
input, textarea{
  width:100%; border:1px solid #dbe3ee; border-radius:12px; padding:12px 14px; font:inherit;
  outline:none; transition:border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus{border-color:var(--brand); box-shadow:0 0 0 4px var(--ring)}

/* footer */
.site-footer{padding:32px 0; background:#0b1220; color:#e5e7eb}
.footer-grid{display:grid; grid-template-columns:2fr 1fr; gap:18px; align-items:center}
.footer-nav{display:flex; gap:16px; flex-wrap:wrap}
.footer-nav a{color:#c8d0dd; text-decoration:none}
.footer-copy{grid-column:1/-1; color:#94a3b8; font-size:14px}

/* WhatsApp FAB */
.wa-fab{
  position:fixed; right:18px; bottom:18px; width:56px; height:56px; border-radius:50%;
  background:#25D366; display:grid; place-items:center; color:#fff; box-shadow:0 10px 24px rgba(0,0,0,.15);
  text-decoration:none;
}

/* responsive */
@media (max-width: 980px){
  .grid-3{grid-template-columns:1fr 1fr}
  .grid-2, .hero-grid{grid-template-columns:1fr}
  .about-media img, .hero-media img{max-height:380px; object-fit:cover}
  .menu{position:fixed; inset:64px 0 auto 0; background:#fff; border-bottom:1px solid #e5e7eb;
        padding:10px 16px; display:none; flex-direction:column; gap:10px}
  .nav-toggle{display:inline-block}
  .menu.open{display:flex}
}
@media (max-width:640px){
  .grid-3{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
}

/* ===== Afíliate – estilos ===== */

/* Botón de entrada */
.btn-afiliate{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  background:#1a4e8d;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  line-height:1;
  transition:transform .06s ease, box-shadow .2s ease;
}
.btn-afiliate:hover{ transform: translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.12); }
.btn-afiliate:active{ transform: translateY(0); }

/* Contenedor principal */
.af-container{ scroll-margin-top:80px; padding:40px 0; }
.af-card{
  max-width:1100px; margin:0 auto; background:#fff;
  border-radius:20px; box-shadow:0 10px 30px rgba(0,0,0,.08); overflow:hidden;
}

/* Header y breadcrumbs */
.af-header{ padding:20px 24px 0; }
.af-header h2{ margin:0 0 6px; color:#1a4e8d; }
.af-sub{ margin:0 0 12px; color:#475569; }

.af-steps{
  display:flex; gap:10px; list-style:none; padding:0; margin:0 0 10px;
}
.af-steps li{
  flex:1; text-align:center; font-size:14px; padding:10px;
  border-bottom:3px solid #cbd5e1; color:#475569;
}
.af-steps li.is-active{ border-color:#1a4e8d; color:#1a4e8d; font-weight:700; }

/* Pasos */
.af-step{ display:none; padding:16px 24px 24px; }
.af-step.is-active{ display:block; }

/* Grid del formulario */
.af-grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
.af-field{ grid-column:span 6; }
.af-field .af-label{ display:block; font-weight:600; margin:0 0 6px; color:#0f172a; }

.af-field input[type="text"],
.af-field select{
  width:100%; padding:10px 12px; border-radius:10px;
  border:1px solid #cbd5e1; background:#f8fafc; color:#0f172a;
  outline:none; transition: box-shadow .15s ease, border-color .15s ease;
}
.af-field input[type="text"]:focus,
.af-field select:focus{
  border-color:#1a4e8d; box-shadow:0 0 0 4px rgba(26,78,141,.12);
}

.af-radios{ display:flex; gap:18px; }
.af-radios label{ display:flex; align-items:center; gap:8px; color:#0f172a; }

/* Acciones */
.af-actions{
  display:flex; justify-content:flex-end; gap:12px; padding-top:10px;
}
.af-btn{
  padding:10px 16px; border-radius:12px; background:#e2e8f0;
  border:0; font-weight:600; cursor:pointer; color:#0f172a;
  transition: background .15s ease, transform .06s ease, box-shadow .2s ease;
}
.af-btn:hover{ box-shadow:0 6px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.af-btn:active{ transform: translateY(0); }
.af-btn[disabled]{ opacity:.55; cursor:not-allowed; box-shadow:none; }
.af-btn.af-primary{ background:#1a4e8d; color:#fff; }

/* Tarjetas de planes */
.af-plans{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:8px;
}
.af-plan{
  background:#f8fafc; border:1px solid #dbe2ea; border-radius:16px;
  padding:16px; display:flex; flex-direction:column; gap:10px;
  transition: box-shadow .2s ease, transform .06s ease, border-color .15s ease;
}
.af-plan:hover{ box-shadow:0 10px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.af-plan h3{ margin:0; color:#0f172a; font-size:1.05rem; }
.af-plan ul{ margin:0; padding-left:18px; color:#334155; font-size:14px; }
.af-price{ margin-top:auto; font-size:20px; font-weight:800; color:#1a4e8d; }
.af-select{
  margin-top:6px; padding:10px; border-radius:10px; border:1px solid #cbd5e1;
  background:#fff; cursor:pointer; font-weight:600;
}
.af-plan.is-selected{ outline:3px solid #1a4e8d; border-color:#1a4e8d; }

/* Resumen */
.af-summary{ padding:6px 0; }
.af-summary dl{
  display:grid; grid-template-columns:150px 1fr; gap:8px 14px; margin:0;
}
.af-summary dt{ font-weight:700; color:#0f172a; }
.af-summary dd{ margin:0; color:#334155; }

/* Accesibilidad: enfoque visible */
.af-btn:focus-visible,
.af-select:focus-visible,
.af-field input:focus-visible,
.af-field select:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(26,78,141,.18);
  border-color:#1a4e8d;
}

/* Responsive */
@media (max-width: 1024px){
  .af-plans{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 720px){
  .af-grid{ grid-template-columns:1fr; }
  .af-field{ grid-column:span 1; }
  .af-plans{ grid-template-columns:1fr; }
  .af-summary dl{ grid-template-columns:120px 1fr; }
}
/* === Checkout (pago) === */
.page-title { margin: 1.5rem 0; font-weight: 700; }

.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 24px;
}

.payment-card h2, .summary-card h3 { margin-top: 0; }

.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.field-group input, .field-group select {
  width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px;
  background: #f9fafb; outline: none;
}
.field-group input:focus, .field-group select:focus {
  border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.field-divider { height: 1px; background: #eef2f7; margin: 12px 0 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.btn-primary { background: #1d4ed8; color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-light { background: #f3f4f6; }
.w-100 { width: 100%; }

.muted { color: #6b7280; }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.secure { text-align: center; margin-top: 10px; }

.summary-card .summary-row {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 0;
}
.summary-card .divider { border: none; border-top: 1px solid #eef2f7; margin: 12px 0; }
.summary-card .totals .total { font-weight: 700; font-size: 1.05rem; }
.coupon summary { cursor: pointer; font-weight: 600; }
.mt-8 { margin-top: 8px; }

.big-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
  color: #1a4e8d; /* azul oscuro */
  text-align: left; /* o left si lo quieres alineado a la izquierda */
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a4e8d; /* azul oscuro */
   text-align: left;
}

.section p, 
.section li {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #444; /* gris oscuro para contraste */
  
}
/* 🔴 Mensajes de error */
.error-message {
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
}

/* 🔴 Campos con error */
.af-field input.error,
.af-field select.error {
  border: 2px solid #d9534f !important;
  background-color: #fff3f3;
  transition: 0.2s ease;
}
/* 🟢 Botones */
.af-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 🔵 Espaciado entre los botones */
.af-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* 🟣 Efecto hover */
.af-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
html { scroll-behavior: smooth; }
/* === Sección Cómo funciona PetVive === */

/* ===== Cómo funciona PetVive ===== */
#funciona {
  background: #f9fbfd;
  padding: 4rem 0;
}

#funciona .section-title {
  text-align: left;
  color: #1a4e8d;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.funciona-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.funciona-item {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.funciona-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.funciona-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1a4e8d; /* 💚 Verde PetVive tipo WhatsApp */
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
}

.funciona-text h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a4e8d;
}

.funciona-text p {
  margin: 0.3rem 0 0;
  color: #4a4a4a;
  font-size: 0.95rem;
}
/* ===== Servicios Premium estilo Healing Forest ===== */
.servicios-premium {
  background: #fff;
  text-align: center;
  padding: 5rem 0;
}

.servicios-premium .section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a4e8d;
  margin-bottom: 0.3rem;
}

.servicios-premium .section-subtitle {
  color: #4a4a4a;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.servicio {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 320px;
}

.servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.servicio img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.servicio h3 {
  color: #1a4e8d;
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: 700;
}

.servicio p {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 1.2rem 1.8rem;
}
/* ===== Sección Nuestra Historia ===== */
.historia-section {
  background-color: #f9fafc; /* blanco azulado suave */
  padding: 90px 0;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.02);
  border-top: 1px solid #e6e9ee;
  border-bottom: 1px solid #e6e9ee;
}

.historia-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #333;
  line-height: 1.8;
  padding: 0 20px;
}

.historia-container h2 {
  font-weight: 800;
  font-size: 2.2rem;
  color: #133e75;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.historia-divider {
  width: 80px;
  height: 3px;
  background: #1a4e8d;
  border: none;
  margin: 1rem auto 2rem;
  border-radius: 3px;
}

.historia-container h3 {
  font-size: 1.4rem;
  color: #1a4e8d;
  margin-bottom: 1.5rem;
}

.historia-container p {
  font-size: 1rem;
  margin-bottom: 1.4rem;
  color: #444;
}

.historia-frase {
  font-weight: 700;
  color: #133e75;
  margin-top: 2rem;
  font-size: 1.1rem;
}
.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 30px;
  height: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: #133e75;
  margin-left: -254px; /* ← mueve el texto hacia la izquierda */
}

@media (max-width: 768px) {
  /* Estructura */
  .hero-banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 5% 20px;
    gap: 10px;
  }

  /* Texto */
  .hero-text {
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 60px;       /* antes 80px */
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-text p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  /* Imagen */
  .hero-img {
    position: static;       /* quita el desplazamiento vertical */
    top: auto;
  }

  .hero-img img {
    max-width: 85%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}
/* 📱 Ajuste del paso "Datos de la mascota" para pantallas móviles */
@media (max-width: 768px) {
  .af-step-5 .af-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .af-step-5 .af-field {
    width: 100%;
  }

  .af-step-5 input[type="text"],
  .af-step-5 input[type="date"],
  .af-step-5 select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 10px 12px;
  }

  .af-step-5 .af-label {
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
  }

  .af-step-5 .af-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .af-step-5 .af-actions .af-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}
/* Evita zoom en iPhone y mantiene diseño uniforme */
input,
select,
textarea {
  font-size: 16px !important;
  line-height: 1.4;
  padding: 0.7rem 1rem;
  border-radius: 8px;
}

/* Ajustes visuales coherentes con Petvive */
input[type="radio"] {
  transform: scale(1.2);
  accent-color: #1a4e8d; /* color institucional */
}
label {
  font-size: 16px;
  line-height: 1.4;
}
input, select, textarea {
  font-size: 16px !important;
}
/* === Radios tipo botón para Petvive (compatibles con iOS) === */

.af-radios {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.af-radios label {
  position: relative;
  cursor: pointer;
}

.af-radios input[type="radio"] {
  display: none; /* oculta el radio nativo */
}

.af-radios span {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  font-size: 16px;
  font-weight: 500;
  color: #1c1e21;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

/* Estado seleccionado */
.af-radios input[type="radio"]:checked + span {
  background-color: #1a4e8d;
  color: #fff;
  border-color: #1a4e8d;
}

/* Hover */
.af-radios span:hover {
  border-color: #1a4e8d;
}

/* Label del grupo */
.af-label {
  display: block;
  font-weight: 600;
  color: #1c1e21;
  margin-bottom: 0.4rem;
}