body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.8;
}

/* Hero */
.article-hero {
    background: url('../img/tips.jpg') center/cover no-repeat;
    padding: 100px 20px;
    color: white;
    text-align: center;
    height: 400px;
}

.article-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000; /* Borde negro */
}

.article-hero p {
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000; /* Borde negro */

}

/* Article content */
.article-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.article-container h2 {
    margin-top: 30px;
    font-size: 1.8rem;
    color: #6AB187;
}

.article-container p {
    margin-top: 10px;
    font-size: 1rem;
}

/* Author */
.article-author {
    margin-top: 50px;
    font-style: italic;
    text-align: center;
    color: #555;
}

/* Share buttons */
.article-share {
    margin-top: 30px;
    text-align: center;
}

.article-share p {
    margin-bottom: 10px;
    font-weight: bold;
}

.article-share a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: #6AB187;
    transition: color 0.3s;
}

.article-share a:hover {
    color: #4CAF50;
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 20px;
    background-color: #6AB187;
    color: white;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2rem;
    }

    .article-hero p {
        font-size: 1rem;
    }
}

.more-articles {
    text-align: center;
    margin: 50px 0;
}

.btn-more-articles {
    display: inline-block;
    padding: 12px 25px;
    background-color: #6AB187;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-more-articles:hover {
    background-color: #4CAF50;
    transform: translateY(-3px);
}


/*  blog  */

/* Blog Cards */
.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }
  
  .blog-content {
    padding: 20px;
    text-align: center;
  }
  
  .blog-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .blog-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
  }
  
  .blog-content .btn {
    padding: 10px 20px;
    background-color: #85C88A;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .blog-content .btn:hover {
    background-color: #6fa673;
  }
  
  /* Responsive */
  @media (min-width: 768px) {
    .blog-card {
      flex-direction: row;
      align-items: center;
    }
  
    .blog-card img {
      width: 40%;
      height: 100%;
    }
  
    .blog-content {
      width: 60%;
      padding: 30px;
    }
  }
  

  /* Mascota animada en el footer */
.footer-pet {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 30px;
    animation: wag-tail 1s infinite alternate;
}

@keyframes wag-tail {
    from { transform: rotate(-10deg); }
    to { transform: rotate(10deg); }
}

/* footer */

footer {
    background-color: #6AB187; /* Color principal de la web */
    padding: 40px 20px;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 25px;
}

/* Secciones del footer */
.footer-section {
    flex: 1;
    min-width: 250px;
}

/* Títulos de cada sección */
.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

/* Textos de contacto y enlaces */
.footer-section p,
.footer-section a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Documentos legales en una sola línea pero con dos líneas de texto */
.legal-documents {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Espacio entre los enlaces */
    padding: 0;
    margin-top: 10px;
    list-style: none;
    text-align: center;
}

.legal-documents li {
    flex: 1 1 auto;
    max-width: 200px; /* Ajustamos el ancho para forzar dos líneas */
    text-align: center;
    word-wrap: break-word;
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 0;
    justify-content: center;
    margin-bottom: 25px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    transition: background-color 0.3s, transform 0.2s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .legal-documents {
        gap: 20px;
        flex-wrap: wrap;
    }

    .legal-documents li {
        max-width: 100px;
    }
}

/* HEADER */
#blog-hero{
    height: 550px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    
}

/* Ajusta texto en movimiento del slider */
#hero-text {
    font-size: 3rem; /* Ajusta según prefieras */
    font-weight: 800;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000; /* Borde negro */
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000;
    margin: 0;
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000;
    margin-top: 10px;
}


.btn {
    background: #4CAF50;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* NAVBAR */

.nav-links a.active {
    color: #fff;
    font-weight: bold;
}
.navbar .nav-links a.active::after {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;  /* Reducimos el padding lateral */
    background-color: #6AB187;
    position: fixed;
    width: 100%;
    max-width: 100vw; /* Evita que sobrepase el ancho de la pantalla */
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box; /* Asegura que los márgenes no sobrepasen el ancho */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;  /* Reducimos el espacio entre los enlaces */
    flex-wrap: nowrap; /* Evita que los enlaces bajen de línea */
    overflow: hidden; /* Evita que se desborden */
}

.nav-links li a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Efecto de la barra */
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px; /* Grosor de la barra */
    background-color: white;
    transition: width 0.3s ease-out;
}

/* Al pasar el cursor */
.navbar .nav-links a:hover::after {
    width: 100%;
}

/* MENU HAMBURGUESA PARA MÓVILES */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* RESPONSIVE: Navbar en móviles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #6AB187;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}
@media (max-width: 1024px) { /* Para tablets y móviles */
    .nav-links {
        display: none; /* Ocultamos los enlaces en móviles */
        flex-direction: column;
        background: #6AB187;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: white;
        padding: 10px;
    }
}
