/*para que card de click*/
.servicio-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}


/* General resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Logo circular */
.logo-circle {
  width: 100px;             /* tamaño que quieras */
  height: 100px;            /* mismo que el ancho */
  border-radius: 50%;      /* círculo perfecto */
  overflow: hidden;
  display: inline-block;   /* importante */
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* cubre todo el contenedor sin deformarse */
  display: block;          /* quita posibles espacios debajo de la imagen */
}


/* Top bar */
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;      /* evita que los elementos se rompan en varias líneas */
}

/* Top right: links */
.top-right {
  display: flex;
  align-items: center;
  gap: 18px;             /* ajusta según lo que necesites */
  flex-wrap: nowrap;      /* fuerza a mantener en 1 línea */
}

/* Media query escritorio */
@media (min-width: 769px) {
  .top-bar .container {
    flex-wrap: nowrap;
  }
}


}
.top-left {
  display: flex;
  align-items: center; /* centra verticalmente el logo con el texto */
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  color: #222;
  background: #f8f8f8;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Top bar */
.top-bar {
  background-color: #318af4;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
  display: flex;
  justify-content: center;
  border-bottom: 3px solid #10e0b8;
}

.top-bar .container {
  max-width: none; /* quitamos el max width */
  width: 100%; /* que ocupe todo */
  padding: 0; /* sin padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-left {
  margin-left: 20px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-small {
  height: 28px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: flex-end; /* que se pegue al final */
  padding-right: 35px; /* menos espacio a la derecha */
}

.top-link {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.top-link:hover {
  text-decoration: underline;
}

/* Nav */
.nav-bar {
  background-color: #10e0b8;
  color: #FFFFFF;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  position: relative;
}

.brand-link {
  font-weight: 700;
  font-size: 22px;
  color: #FFFFFF;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
}

/* Menú principal */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.nav-menu li a:hover {
  text-decoration: underline;
}

/* Hero / Slides */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 2;
}

.hero-content {
  background-color: rgba(49, 138, 244, 0.75);
  color: #FFFFFF;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 550px;
}

.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

.btn-primary {
  background-color: #318af4;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #10e0b8;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #318af4;
  border: 2px solid #318af4;
}

.btn-secondary:hover {
  background-color: #318af4;
  color: #FFFFFF;
}

/* Veterinaria 24 */
.veterinaria-24 {
  background-color: #10e0b8;
  padding: 20px 0;
  color: #FFFFFF;
  font-size: 2.1rem;
  font-weight: 700;
  text-align: left;
  padding-left: 30px;
  margin-top: 20px;
}

/* Servicios */
.section {
  padding: 40px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #318af4;
  font-weight: 700;
  text-align: center; /* esto centra el texto */
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

.servicio-card {
  background: #10e0b8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
}

.servicio-card img {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
}

.servicio-card h3 {
  font-weight: 700;
  margin-bottom: 12px;
  color: #318af4;
  font-size: 1.3rem; /* un poco más grande */
}

.servicio-card p {
  color: #555;
  font-size: 15px;
}

/* Consentidos (Galería) */
.consentidos-grid {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.consentidos-grid img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
}

/* CTA */
.cta {
  background-color: #318af4;
  color: #FFFFFF;
  padding: 30px 0;
  margin: 40px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.car-wrap {
  max-width: 240px;
}

.car-img {
  width: 100%;
  height: auto;
}

/* Footer */
.footer {
  background-color: #10e0b8;
  color: #FFFFFF;
  padding: 30px 0 15px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-grid div {
  max-width: 300px;
}

.footer a {
  color: #FFFFFF;
  font-weight: 700; /* Negrilla fuerte */
  font-size: 1.1em;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.socials a {
  margin-right: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.socials a:hover {
  transform: scale(1.1);
}

.socials svg {
  display: block;
}
/* Ícono de TikTok separado */
.footer .socials a.tiktok {
  color: #000000;
}

.footer .socials a.tiktok:hover {
  color: #ff0050; /* Rojo TikTok al pasar el mouse */
}

}
.copyright a{
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #FFFFFF;
}



/* Responsive */
@media (max-width: 768px) {
  .top-bar .container,
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .top-left,
  .top-right {
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
  }

  .veterinaria-24 {
    text-align: center;
    padding-left: 0;
    font-size: 1.7rem;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .car-wrap {
    max-width: 200px;
    margin: 15px auto 0 auto;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  
  /* Móvil: ocultar menú y mostrar toggle */
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #10e0b8;
    position: absolute;
    top: 55px;
    right: 15px;
    width: 200px;
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
    z-index: 100;
  }
  
  /* Mostrar menú cuando tenga clase show */
  .nav-menu.show {
    display: flex;
  }

  /* Mostrar botón toggle */
  .nav-toggle {
    display: block;
  }
}
