* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: #333;
        background-color: #f8f9fa;
      }


      body {
  background: linear-gradient(135deg, #f7f9fc, #e0ebf5);
}

/*
.btn-primary:hover {
  background: linear-gradient(90deg, #6c88ff, #4b6cb7);  
  transform: scale(1.05);
}
*/



      /* Header y Navegación */
      header {
        /*background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);*/
        /* background: linear-gradient(135deg, #0389e2 0%, #0389e2 100%); */
        background: #4A90E2;
background: linear-gradient(70deg, rgba(74, 144, 226, 1) 0%, rgba(247, 249, 252, 1) 70%);
        color: white;
        padding: 0.2rem 0;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      }

      nav {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
        height: 20vh;
      }

      .logo {
        font-size: 1.5rem;
        font-weight: bold;
        width: 50%;
      }

      .nav-links {
        display: flex;
        list-style: none;
        gap: 2rem;                
      }

      .nav-links a {
        color: #566381;
        text-decoration: none;
        transition: opacity 0.3s;
        font-weight: 500;
        font-size: 1.5rem;
      }

      .nav-links a:hover {
        opacity: 0.9; 
        text-shadow: 2px 2px 2px #4a90e2;
      }

      .menu-toggle {
        display: none;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
      }

      .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: #566381;
        transition: 0.3s;
      }

      /* Sección Inicio */
     
#inicio {
  position: relative;
  margin-top: 50px;  
  background:    
  /* linear-gradient(
      rgba(74, 144, 226, 0.15),
      rgba(53, 122, 189, 0.45)
    ), */    
    url("../images/backimage.jpg") center 10% / cover no-repeat;    

  color: white;
  padding: 150px 2rem 10px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* */

#inicio::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center 10%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 0;  
}

#inicio > * {
  position: relative;
  z-index: 1;
}

#inicio::after {
  background-image: var(--bg);
  opacity: var(--opacity, 0);
}

/* */

/* contenido arriba */
#inicio > * {
  position: relative;
  z-index: 1;
}

@keyframes fade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}


/* */

      .hero-content {
        max-width: 800px;
      }

      .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        animation: fadeInUp 1s;
      }

      .hero-content p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        animation: fadeInUp 1s 0.2s backwards;
      }

      .cta-button {
        background: white;
        color: #4a90e2;
        padding: 1rem 2.5rem;
        text-decoration: none;
        border-radius: 50px;
        font-weight: bold;
        font-size: 1.1rem;
        display: inline-block;
        transition: transform 0.3s, box-shadow 0.3s;
        animation: fadeInUp 1s 0.4s backwards;
      }      

      .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        background-color: #4a90e2;
        color: #fff;
      }

      /* Secciones Generales */
      section {
        padding: 80px 2rem;
        max-width: 1200px;
        margin: 0 auto;
      }

      section h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 3rem;
        color: #357abd;
      }

      /* Quiénes Somos */
      .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
      }

      .about-text p {
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
        text-align: justify;        
      }

      .about-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/veterososede.png") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .consultas-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/consultageneral.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .vacunacion-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/vacunacion.png") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .quirofano-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/quirofano.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .laboratorio-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/laboratorio.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .imagendiagnostica-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/imagendiagnostica.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .medicinapreventiva-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/medicinapreventiva.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .ambulatoria-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/ambulatoria.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .banocanino-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/banocanino.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .concentrado-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/concentrado.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .petshop-image {
        /* background: linear-gradient(135deg, #4A90E2, #8B6F47); */
        background: url("../images/fulls/petshop.jpg") center/cover no-repeat;
        height: 400px;
        /* border-radius: 20px; */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
      }

      .links{
        background: #2c3e50;
        color: white;        
        padding: 2rem;
      }

      .links h2{
        text-align: left;
        color: #fff;
        margin-bottom: 0rem;
      }

      /* ==============================
   Cookie Banner
================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2c3e50;
  color: #ffffff;
  padding: 1rem 1.5rem;
  z-index: 3000;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.cookie-banner .cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner a {
  color: #25d366;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.cookie-accept {
  background: #25d366;
  color: #ffffff;
}

.cookie-reject {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.cookie-buttons button:hover {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 600px) {
  .cookie-banner .cookie-container {
    flex-direction: column;
    text-align: center;
  }  
}

      /* Servicios */
      #servicios {
        background: #f8f9fa;
      }

      .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
      }

      .service-card {
        background: white;
        padding: 0 2rem 2rem 2rem;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s, box-shadow 0.3s;
        text-decoration: none;
      }

      .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
      }

      .service-icon {
        font-size: 6rem;
        margin-bottom: 1rem;
      }

      .service-card h3 {
        color: #357abd;
        margin-bottom: 1rem;
        font-size: 1.5rem;
      }

      /* Formulario de Contacto */
      .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
      }

      .contact-info {
        background: linear-gradient(135deg, #4a90e2, #357abd);
        color: white;
        padding: 3rem;
        border-radius: 15px;
      }

      .contact-info h3 {
        margin-bottom: 2rem;
        font-size: 1.8rem;
      }

      .info-item {
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
      }

      .info-item span {
        font-size: 1.5rem;
      }

      form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
      }

      .form-group {
        display: flex;
        flex-direction: column;
      }

      label {
        margin-bottom: 0.5rem;
        color: #357abd;
        font-weight: 600;
      }

      input,
      textarea {
        padding: 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.3s;
      }

      input:focus,
      textarea:focus {
        outline: none;
        border-color: #4a90e2;
      }

      textarea {
        resize: vertical;
        min-height: 150px;
      }

      button[type="submit"] {
        background: linear-gradient(135deg, #4a90e2, #357abd);
        color: white;
        padding: 1rem 2rem;
        border: none;
        border-radius: 50px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s;
      }

      button[type="submit"]:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(74, 144, 226, 0.4);
      }

      /* Footer */
      footer {
        background: #2c3e50;
        color: white;
        text-align: center;
        padding: 2rem;
      }

      .whatsapp-float {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        background-color: #25d366;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        z-index: 2000;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
      }

      #submitBtn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
      }

      /* spinner */
      .btn-spinner {
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        display: none;
      }

      /* estado loading */
      #submitBtn.loading .btn-text {
        visibility: hidden;
      }

      #submitBtn.loading .btn-spinner {
        display: block;
        position: absolute;
      }

      /* animación */
      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      @media (max-width: 480px) {
        .whatsapp-float {
          width: 55px;
          height: 55px;
          bottom: 20px;
          right: 20px;
        }

      }

      /* Animaciones */
      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Responsive */
      @media (max-width: 768px) {
          header{
          max-width: 768px;
          width: 100%;
        }
        
        #inicio {
          max-width: 100%;
          max-width: 768px;
          background: linear-gradient(
            135deg,
            #4a90e2 0%,
            #357abd 50%,
            #566381 100%
          );
        }

        .menu-toggle {
          display: flex;
        }

        .nav-links {
          position: fixed;
          left: -100%;
          top: 70px;
          flex-direction: column;
          background: #fff;
          color:#566381;
          width: 100%;
          text-align: center;
          transition: 0.3s;
          padding: 2rem 0;
        }

        .nav-links.active {
          left: 0;
          text-shadow: 2px 2px 2px #4a90e2;
        }       

        .hero-content h1 {
          font-size: 2rem;
        }

        .hero-content p {
          font-size: 1.1rem;
        }

        .about-content,
        .contact-container {
          grid-template-columns: 1fr;
        }
        
        .consultas-image 
        .vacunacion-image 
        .quirofano-image 
        .laboratorio-image 
        .imagendiagnostica-image         
        .medicinapreventiva-image 
        .ambulatoria-image 
        .banocanino-image 
        .concentrado-image 
        .petshop-image {
          height: 300px;
        }

        section h2 {
          font-size: 2rem;
        }

        .services-grid {
          grid-template-columns: 1fr;
        }
      }

      @media (max-width: 480px) {
          header{
              max-width: 480px;
          width: 100%;
        }
        
        nav {
          padding: 0 1rem;
        }

        #inicio {
            width: 100%;
            max-width: 480px;
          padding: 150px 1rem 10px;
        }

        section {
          padding: 60px 1rem;
        }

        .hero-content h1 {
          font-size: 1.5rem;
        }

        .contact-info {
          padding: 2rem;
        }
      }

      /* carrusel */

/* Estilo base (fuera de las media queries) */
.carousel {
  width: 100%;       /* Ocupa todo el ancho de su contenedor padre (.about-content) */
  max-width: 600px;  /* Límite para que no crezca demasiado en desktop */
  margin: 0 auto;    /* Centrado */
  overflow: hidden;
}

.track {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;       /* Asegura que el track use el ancho disponible */
}

.track img {
  width: 100%;       /* Cada imagen ocupa exactamente el 100% del contenedor .carousel */
  flex-shrink: 0;
  object-fit: cover; /* Mantiene la proporción sin deformarse */
}


      /* fin carrusel */

      .blog-intro {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.blog-intro h1 {
    text-align: center;
    /* margin-bottom: 2rem; */
}

.blog-intro-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.blog-intro-text {
    flex: 1;
}

.blog-intro-image {
    flex: 1;
    text-align: center;
}

.blog-intro-image img {
    max-width: 100%;
    height: auto;
}

section {
    margin-top: 0;
    /* margin-bottom: 2rem; */
}

/* Segunda section: elimina colapso visual */
section ul {
    margin-top: 0;
    padding-top: 0;
}

.blogsection {
    margin-top: 1rem;
    padding: 1rem;
}


/* Responsive Blog Intro */
@media (max-width: 768px) {
    .blog-intro-content {
        flex-direction: column;
    }

    .blog-intro-image {
        display: none;
    }
}


/* Reset específico para el listado del blog */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul li {
    margin: 0;
    padding: 0;
}

ul li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

ul li h2,
ul li p {
    margin: 0;
    padding: 0;
}

/* --- ESTILOS DE TÍTULOS BLOG (CORREGIDOS) --- */

/* 1. Escritorio (Valores por defecto) */
.blogtitle {
  padding-top: 160px;
  text-align: center;
  color: #566381;
}

.singleblogtitle {
  padding-top: 150px;
  text-align: center;
}

/* 2. Tablet (max 768px) */
@media (max-width: 768px) {
  .blogtitle {
    padding-top: 200px !important;
  }

  .singleblogtitle {
    padding-top: 220px !important;
  }
}

/* 3. Móvil (max 480px) */
@media (max-width: 480px) {
  .blogtitle {
    padding-top: 200px !important;
  }

  .singleblogtitle {
    padding-top: 220px !important;
  }
}

.blogsection {
    margin-top: 1rem;
    padding: 1rem;
}

.blogsection ul li{
  border-radius: 5px;
}

.blogsection ul li:hover{
  box-shadow: 2px 2px 2px #c0c0c0;
}

.blogsection ul li:nth-child(odd) {
  background: #f0f0f0;
  margin-bottom: 6px;
  /* border: 1px solid #aaa;    */
}

.blogsection ul li:nth-child(even) {
  background: #ffffff; 
  margin-bottom: 6px; 
  /* border: 1px solid #aaa;  */
}

.blogsection h2{
  color: #566381;
        text-decoration: none;
        transition: opacity 0.3s;
        font-weight: 500;
        font-size: 1.5rem;
        opacity: 0.9;         
}

.blogsection p{
  padding-left: 10px;
  padding-right: 10px;
}

.singleblogul li{
    padding-left:20px;
    box-shadow: none;
}

.singleblogul li:hover{
    box-shadow: none;
}

