/* ========== RESET GENERAL ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== BODY Y FUENTE ========== */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  color: #222;
  background: #f8f8f8;
}

/* ========== CONTENEDOR ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== LOGO CIRCULAR ========== */
.logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== TOP BAR ====== */
/* ====== TOP BAR (FONDO BLANCO, TEXTO AZUL, LOGO GRANDE) ====== */
.top-bar {
  background-color: #ffffff; /* fondo blanco */
  padding: 6px 25px;
  font-family: 'Poppins', sans-serif;
  border-bottom: 1px solid #e0e0e0; /* línea sutil para separar */
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==== Logo y nombre ==== */
.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0; /* totalmente pegado a la izquierda */
}

.logo-circle {
  width: 90px; /* logo más grande */
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.logo-small {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand {
  font-size: 1.6rem;
  font-weight: 600;
  color: #318af4; /*azul */
}

/* ==== Enlaces derecha ==== */
.top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  flex: 1;
  margin-right: 10px;
}

.top-right a {
  color: #318af4; /* texto azul */
  font-size: 0.95rem;
  font-weight: 700; /* ← agrega esto para que estén en negrilla */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}

.top-right a:hover {
  opacity: 0.8;
}

/* Ícono de WhatsApp */
.top-right .whatsapp-icon {
  color: #25d366; /* verde oficial WhatsApp */
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .logo-circle {
    width: 70px;
    height: 70px;
  }

  .brand {
    font-size: 1.3rem;
  }

  .top-right {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
}



/* ========== NAVEGACIÓN ========== */
.nav-bar {
  background-color: #10e0b8;
  color: #fff;
}

.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: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.nav-menu li a:hover {
  text-decoration: underline;
}

/* ========== HERO / SLIDES ========== */
.hero {
  position: relative;
  height: auto;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(49, 138, 244, 0.7);
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  color: #fff;
}



/* ========== SECCIÓN VETERINARIA 24H ========== */
.veterinaria-24 {
  background-color: #10e0b8;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  padding: 20px 30px;
  margin-top: 20px;
}

/* ========== SERVICIOS ========== */
.section {
  padding: 40px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #318af4;
  font-weight: 700;
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.servicio-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1ya 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Imagen ajustada al tamaño de la tarjeta */
.servicio-card img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain; /* Cambia de 'cover' a 'contain' */
  border-radius: 10px;
  margin: 0 auto 15px;
  display: block;
  transition: transform 0.3s ease;
}

/* Efecto zoom en hover */
.servicio-card:hover img {
  transform: scale(1.05);
}

.servicio-card h3 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #318af4;
  font-size: 1.2rem;
}

.servicio-card p {
  color: #555;
  font-size: 15px;
}

.ver-mas {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #318af4;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 10;
  transition: background 0.3s;
}

.ver-mas:hover {
  background: #10e0b8;
}

.servicio-card {
  position: relative; /* necesario para posicionar el botón */
}

/* ========== FOOTER ========== */
.footer {
  background-color: #10e0b8;
  color: #fff;
  padding: 30px 0 15px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.footer a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* ========== REDES SOCIALES FLOTANTES ========== */
.social-floating {
  position: fixed;
  right: 20px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.social-floating a {
  background-color: #ffffff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: bounceIn 0.9s ease both;
}

.social-floating a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.social-floating img {
  width: 28px;
  height: 28px;
}

/* Animación de rebote suave */
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ========== MODAL (INFO DE SERVICIOS) ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  animation: fadeZoom 0.4s ease;
}

@keyframes fadeZoom {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 25px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease;
  text-align: center;
}

.modal-content h3 {
  color: #318af4;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 16px;
  color: #444;
}

.modal-img {
  width: 80%;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 15px;
  display: block;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

/* === Botones flotantes dentro del modal (idénticos al externo) === */
.modal-floating-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20000;
}

.btn-float {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
}

.btn-float img {
  width: 28px;
  height: 28px;
}

.btn-float:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .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 rgba(0,0,0,0.15);
    z-index: 100;
  }
  .nav-menu.show { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 480px) {
  .social-floating {
    right: 10px;
    bottom: 20px;
    gap: 10px;
  }
  .social-floating a {
    width: 45px;
    height: 45px;
  }
  .social-floating img {
    width: 22px;
    height: 22px;
  }
  .servicio-card img {
    height: 140px;
  }
}

