 :root {
      --bg: #f6f8fb;
      --white: #ffffff;
      --text: #313d4c;
      --muted: #8d9aa8;
      --primary: #2f86ad;
      --primary-dark: #286f8f;
      --primary-soft: #e9f4fa;
      --line: #e6edf2;
      --card-shadow: 0 12px 30px rgba(26, 52, 72, 0.06);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 18px;
      --radius-sm: 14px;
      --container: 1220px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Nunito', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.45;
    }

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

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      width: min(var(--container), calc(100% - 40px));
      margin: 0 auto;
    }

    .section {
      padding: 88px 0;
    }

    .section-title {
      text-align: center;
      margin-bottom: 42px;
    }

    .section-title h2 {
      font-size: clamp(2.1rem, 4vw, 3.5rem);
      line-height: 1.04;
      font-weight: 900;
      letter-spacing: -0.03em;
      color: var(--text);
      margin-bottom: 10px;
    }

    .section-title p {
      color: var(--muted);
      font-size: 1.1rem;
      font-weight: 600;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--primary-soft);
      color: var(--primary);
      border-radius: 999px;
      padding: 12px 22px;
      font-weight: 700;
      font-size: 1rem;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(230, 237, 242, 0.9);
      transition: box-shadow .25s ease;
    }

    .topbar.scrolled {
      box-shadow: 0 8px 24px rgba(28, 52, 70, 0.08);
    }

    .header-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      min-height: 96px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-shrink: 0;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: var(--primary);
      display: grid;
      place-items: center;
      color: white;
      box-shadow: 0 8px 18px rgba(47, 134, 173, 0.22);
    }

    .brand-mark svg {
      width: 23px;
      height: 23px;
      fill: currentColor;
    }

    .brand span {
      font-size: 1.95rem;
      font-weight: 900;
      letter-spacing: -0.03em;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 26px;
      margin-left: auto;
    }

    .nav a {
      font-weight: 800;
      color: #617080;
      position: relative;
      transition: color .2s ease;
      font-size: 1rem;
    }

    .nav a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -8px;
      width: 0;
      height: 3px;
      border-radius: 999px;
      background: var(--primary);
      transition: width .25s ease;
    }

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

    .nav a:hover::after,
    .nav a.active::after {
      width: 100%;
    }

    .header-cta {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-shrink: 0;
    }

    .phone-mini {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1.15rem;
      font-weight: 800;
      color: #425262;
      white-space: nowrap;
    }

    .phone-mini svg,
    .btn svg,
    .feature-inline svg,
    .info-box svg,
    .service-icon svg,
    .why-icon svg,
    .rating svg {
      width: 22px;
      height: 22px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 2px solid transparent;
      border-radius: 18px;
      padding: 16px 28px;
      font-size: 1.05rem;
      font-weight: 800;
      transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
      cursor: pointer;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

    .btn-primary {
      background: var(--primary);
      color: #fff;
      box-shadow: 0 12px 26px rgba(47, 134, 173, 0.18);
    }

    .btn-primary:hover {
      background: var(--primary-dark);
    }

    .btn-outline {
      background: transparent;
      border-color: var(--primary);
      color: var(--primary);
    }

    .btn-outline:hover {
      background: rgba(47, 134, 173, 0.06);
    }

    .hero {
      padding: 42px 0 54px;
    }

    .hero-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 0 0 28px 28px;
      padding: 38px 38px 28px;
      display: grid;
      grid-template-columns: 1.02fr .98fr;
      align-items: center;
      gap: 52px;
      box-shadow: 0 8px 22px rgba(32, 52, 70, 0.03);
    }

    .hero-copy h1 {
      margin-top: 22px;
      font-size: clamp(3rem, 6vw, 5.4rem);
      line-height: 0.98;
      font-weight: 900;
      letter-spacing: -0.05em;
      max-width: 650px;
      color: var(--text);
    }

    .hero-copy p {
      margin-top: 24px;
      max-width: 560px;
      font-size: 1.5rem;
      color: var(--muted);
      font-weight: 600;
    }

    .hero-actions {
      margin-top: 34px;
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .hero-features {
      margin-top: 42px;
      display: flex;
      flex-wrap: wrap;
      gap: 24px 28px;
    }

    .feature-inline {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 1rem;
      font-weight: 800;
    }

    .feature-inline strong {
      color: var(--text);
    }

    .feature-inline .star {
      color: #efb118;
      fill: #efb118;
      stroke: #efb118;
    }

    .hero-media {
  min-height: 700px;
   background: linear-gradient(140deg, #dde6ec 0%, #f4f7fa 100%);
  border-radius: 32px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,0));
  z-index: 2;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  z-index: 1;
}

    .cards-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    .why-card,
    .service-card,
    .vet-card,
    .review-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: var(--card-shadow);
      transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    }

    .why-card:hover,
    .service-card:hover,
    .vet-card:hover,
    .review-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 18px 36px rgba(26, 52, 72, 0.08);
      border-color: #d9e7ef;
    }

    .why-card {
      padding: 34px 30px;
      text-align: center;
      min-height: 296px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .why-icon,
    .service-icon,
    .info-icon {
      width: 68px;
      height: 68px;
      border-radius: 20px;
      background: var(--primary-soft);
      color: var(--primary);
      display: grid;
      place-items: center;
      margin-bottom: 24px;
      flex-shrink: 0;
    }

    .why-card h3,
    .service-card h3,
    .info-box h3,
    .vet-card h3,
    .review-author strong {
      font-size: 1.55rem;
      line-height: 1.18;
      font-weight: 900;
      letter-spacing: -0.02em;
      margin-bottom: 14px;
    }

    .why-card p,
    .service-card p,
    .vet-card p,
    .review-card p,
    .info-box p,
    .footer-col p,
    .footer-col li {
      color: var(--muted);
      font-size: 1.1rem;
      font-weight: 600;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .service-card {
      padding: 24px 24px 28px;
      min-height: 255px;
    }

    .service-card h3 {
      margin-bottom: 12px;
      font-size: 1.45rem;
    }

    .service-card p {
      max-width: 90%;
    }

    .vets-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
      max-width: 920px;
      margin: 0 auto;
    }

    .vet-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px auto;
}

    .vet-card {
      padding: 34px 30px 24px;
      min-height: 320px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .vet-placeholder {
      min-height: 125px;
      border-radius: 18px;
      border: 1px dashed #d7e2ea;
      background: linear-gradient(180deg, rgba(244,248,251,0.8), rgba(236,243,248,0.5));
      margin-bottom: 22px;
    }

    .vet-card .role {
      margin-top: 2px;
      margin-bottom: 20px;
    }

    .tag-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      padding: 8px 14px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: var(--primary);
      font-size: .96rem;
      font-weight: 800;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .gallery-item {
      position: relative;
      min-height: 280px;
      border-radius: 22px;
      overflow: hidden;
      background: linear-gradient(140deg, #dfe8ee, #f5f8fb);
      border: 1px solid var(--line);
      box-shadow: var(--card-shadow);
      isolation: isolate;
    }

    .gallery-item::before {
      content: attr(data-label);
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 18px;
      font-size: 1.1rem;
      font-weight: 800;
      color: #8999a7;
      background: repeating-linear-gradient(45deg, rgba(142,160,174,.08) 0 14px, rgba(142,160,174,.04) 14px 28px);
      transition: opacity .28s ease;
      z-index: 0;
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .45s ease, filter .35s ease;
      opacity: 1;
      position: relative;
      z-index: 1;
    }

    .gallery-item:hover img {
      transform: scale(1.06) rotate(.6deg);
      filter: saturate(1.06);
    }

    .gallery-item:hover::after {
      opacity: 1;
    }

    .gallery-item::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(31, 48, 61, .16), transparent 55%);
      opacity: 0;
      transition: opacity .28s ease;
      z-index: 2;
      pointer-events: none;
    }

    .reviews-wrap {
      max-width: 1060px;
      margin: 0 auto;
    }

    .rating-summary {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      margin-bottom: 34px;
    }

    .rating {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 2rem;
      font-weight: 900;
      color: var(--text);
    }

    .rating .star {
      width: 30px;
      height: 30px;
      color: #efb118;
      fill: #efb118;
      stroke: #efb118;
    }

    .rating-summary p {
      color: var(--muted);
      font-weight: 700;
      font-size: 1.08rem;
    }

    .reviews-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }

    .review-card {
      padding: 26px 26px 24px;
      min-height: 214px;
    }

    .stars {
      display: flex;
      gap: 6px;
      color: #efb118;
      margin-bottom: 18px;
    }

    .stars svg {
      width: 22px;
      height: 22px;
      fill: currentColor;
      stroke: currentColor;
    }

    .review-card p {
      font-size: 1.12rem;
      color: #455362;
      margin-bottom: 22px;
    }

    .review-author {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .avatar {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: linear-gradient(135deg, #c9d8e2, #edf3f7);
      border: 1px solid #d6e2ea;
      flex-shrink: 0;
    }

    .contact-section {
      background: linear-gradient(180deg, #2f86ad, #2e7ea2);
      color: #fff;
      padding: 84px 0 0;
      overflow: hidden;
    }

    .contact-section .section-title h2,
    .contact-section .section-title p {
      color: #fff;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: .95fr 1fr;
      gap: 34px;
      align-items: start;
    }

    .info-stack {
      display: grid;
      gap: 24px;
    }

    .info-box {
      display: flex;
      align-items: flex-start;
      gap: 18px;
      padding: 28px 24px;
      border-radius: 22px;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 12px 24px rgba(16, 44, 61, 0.12);
    }

    .info-icon {
      background: rgba(255,255,255,0.16);
      color: #fff;
      margin-bottom: 0;
    }

    .info-box h3,
    .info-box p {
      color: #fff;
    }

    .info-box p {
      opacity: .93;
    }

    .map-box {
      min-height: 500px;
      border-radius: 22px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.15);
      box-shadow: 0 20px 34px rgba(17, 49, 67, 0.18);
      background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
      position: relative;
    }

    .map-box iframe {
      width: 100%;
      height: 100%;
      border: 0;
      min-height: 500px;
    }

    .map-box::before {
      content: 'Aquí puedes insertar tu mapa de Google Maps';
      position: absolute;
      inset: 0;
      display: none;
      place-items: center;
      padding: 20px;
      text-align: center;
      font-size: 1.1rem;
      font-weight: 800;
      color: rgba(255,255,255,0.9);
      background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    }

    .bottom-call {
      margin-top: 28px;
      width: min(100%, 520px);
      background: #fff;
      color: var(--primary);
      box-shadow: 0 14px 30px rgba(15, 42, 59, 0.16);
    }

    footer {
      background: #2f3b49;
      color: #fff;
      padding: 52px 0 28px;
      margin-top: 64px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.3fr 1fr 1fr;
      gap: 34px;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 22px;
    }

    .footer-brand span {
      font-size: 1.95rem;
      font-weight: 900;
      letter-spacing: -0.03em;
    }
    .brand img {
  height: 130px;   
  width: auto;
  object-fit: contain;
  display: block;
}

    .footer-col h4 {
      font-size: 1.8rem;
      margin-bottom: 16px;
      font-weight: 900;
    }

    .footer-col ul {
      list-style: none;
      display: grid;
      gap: 10px;
    }

    .footer-divider {
      height: 1px;
      background: rgba(255,255,255,0.14);
      margin: 34px 0 24px;
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      color: rgba(255,255,255,0.8);
      font-size: 1rem;
      font-weight: 700;
    }

    .footer-links {
      display: flex;
      gap: 26px;
      flex-wrap: wrap;
    }

    .fade-up {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity .55s ease, transform .55s ease;
    }

    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .mobile-menu-btn {
      display: none;
      width: 48px;
      height: 48px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #fff;
      cursor: pointer;
      align-items: center;
      justify-content: center;
    }

    .mobile-menu-btn span,
    .mobile-menu-btn span::before,
    .mobile-menu-btn span::after {
      content: '';
      display: block;
      width: 20px;
      height: 2px;
      background: var(--text);
      border-radius: 999px;
      position: relative;
      transition: .2s ease;
    }

    .mobile-menu-btn span::before {
      position: absolute;
      top: -6px;
      left: 0;
    }

    .mobile-menu-btn span::after {
      position: absolute;
      top: 6px;
      left: 0;
    }

    .only-mobile {
  display: none;
}

.only-desktop {
  display: inline-flex;
}

    @media (max-width: 1160px) {
      .nav {
        gap: 18px;
      }

      .nav a {
        font-size: .94rem;
      }

      .hero-card {
        grid-template-columns: 1fr;
      }

      .hero-media {
        min-height: 520px;
      }

      .services-grid,
      .cards-3,
      .gallery-grid,
      .footer-grid,
      .contact-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .gallery-grid .gallery-item:last-child {
        grid-column: span 2;
      }
    }

    @media (max-width: 920px) {
  .header-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand menu"
      "phone phone";
    align-items: center;
    gap: 10px 12px;
    min-height: auto;
    padding: 12px 0;
  }

  .brand {
    grid-area: brand;
  }

  .mobile-menu-btn {
    grid-area: menu;
    display: inline-flex;
    justify-self: end;
    margin-left: 0;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
    margin-left: 0;
  }

  .nav.open {
    display: flex;
  }

  .header-cta {
    grid-area: phone;
    width: auto;
    justify-content: flex-start;
    order: unset;
    gap: 0;
  }

  .phone-mini {
    font-size: 1rem;
  }

  .only-mobile {
    display: inline-flex;
  }

  .only-desktop {
    display: none;
  }

  .cards-3,
  .services-grid,
  .reviews-grid,
  .gallery-grid,
  .contact-grid,
  .footer-grid,
  .vets-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-item:last-child {
    grid-column: auto;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-copy p {
    font-size: 1.22rem;
  }

  .section {
    padding: 72px 0;
  }

  .contact-section {
    padding-top: 72px;
  }

  .map-box,
  .map-box iframe {
    min-height: 360px;
  }
   .brand img {
    height: 100px;
    width: auto;
    display: block;
  }
}

    @media (max-width: 620px) {
      .container {
        width: min(var(--container), calc(100% - 24px));
      }

      .hero-card {
        padding: 22px 18px 22px;
        gap: 26px;
      }

      .brand span,
      .footer-brand span {
        font-size: 1.55rem;
      }

      .btn {
        width: 100%;
      }

      .hero-actions {
        flex-direction: column;
      }

     

      .hero-media {
        min-height: 340px;
        border-radius: 24px;
      }

      .why-card,
      .service-card,
      .vet-card,
      .review-card,
      .info-box {
        padding-left: 20px;
        padding-right: 20px;
      }

      .why-card {
        min-height: auto;
        padding-top: 28px;
        padding-bottom: 28px;
      }

      .section-title h2 {
        font-size: 2.4rem;
      }

      .section-title p {
        font-size: 1rem;
      }

      .gallery-item {
        min-height: 220px;
      }
    }


    /*Prdocutosssss*/
    .products-section {
  overflow: hidden;
}

.products-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.products-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.products-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.product-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(26, 52, 72, 0.08);
  border-color: #d9e7ef;
}

.product-img-wrap {
  height: 240px;
  background: linear-gradient(140deg, #eef4f8, #f8fbfd);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-info {
  padding: 22px 22px 24px;
}

.product-info h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.product-info p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.products-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(26, 52, 72, 0.08);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  font-size: 1.2rem;
  font-weight: 900;
}

.products-btn:hover {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
}

@media (max-width: 920px) {
  .product-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .product-img-wrap {
    height: 220px;
  }
}

@media (max-width: 620px) {
  .products-slider {
    gap: 10px;
  }

  .product-card {
    flex: 0 0 100%;
  }

  .product-img-wrap {
    height: 220px;
  }

  .products-btn {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}