/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
 font-family: 'Montserrat';
  padding-top: 0;
  overflow-x: hidden;
  background-color: #fff;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    url("BACKGROUND_WEB_DIMENSION_80px.svg");
  background-repeat: repeat;
  background-size: 350px 350px;
}

.contact-info {
  background-color: #2a003f;
  color: #fff;
  font-size: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 35px;
  padding: 0 40px;
  z-index: 1000;
  white-space: nowrap; 
}


.contact-container {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  gap: 20px;
}


.contact-info a {
  color: white;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .contact-info {
    font-size: 12px;
    padding: 0 20px;
  }

  .contact-container {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 10px;
    justify-content: flex-end; 
  }
}

.navbar {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 90px;
  position: fixed;
  top: 35px;
  left: 0;
  right: 0;
  height: 110px;
  z-index: 999;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-content {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
   margin-right:22vh; 
}


.logo img {
  height: 75px;
  transition: height 0.3s ease;
    margin-left: 22vh; 
}


.nav-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 50px;
  font-weight: bold;
  justify-content: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #7d2ae8;
}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  margin-left: 5px;
}

.hamburger span {
  background-color: #333;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  transition: all 0.3s ease;
}


.right-content {
  display: flex;
  align-items: center;
  gap: 20px;
}


.sidebar-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  padding: 30px 24px;
  z-index: 1000;
  gap: 20px;
  transition: left 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.sidebar-menu.active {
  left: 0;
  opacity: 1;
}

.sidebar-menu .close-menu {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #7d2ae8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.sidebar-menu .close-menu:hover {
  color: #5c1fd1;
  transform: translateX(-4px);
}

.sidebar-menu .close-menu .arrow-icon {
  font-size: 20px;
  transition: transform 0.3s;
}

.sidebar-menu .close-menu:hover .arrow-icon {
  transform: translateX(-3px);
}


.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu ul li {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideIn 0.5s ease forwards;
}


.sidebar-menu ul li:nth-child(1) { animation-delay: 0.15s; }
.sidebar-menu ul li:nth-child(2) { animation-delay: 0.3s; }
.sidebar-menu ul li:nth-child(3) { animation-delay: 0.45s; }
.sidebar-menu ul li:nth-child(4) { animation-delay: 0.6s; }


.sidebar-menu ul li a {
  color: #111;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.sidebar-menu ul li a:hover {
  color: #7d2ae8;
  transform: translateX(5px);
}


@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



@media (max-width: 1024px) {
  .nav-container {
    display: none;
  }

  .navbar {
    padding: 15px 20px;
    height: auto;
  }

  .navbar-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: flex;
    order: -1; 
  }

  .right-content {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo img {
    height: 55px;
    margin-left: 4vw; 
  }

}

@media (max-width: 768px) {
  .right-content {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }

  .logo img {
    height: 50px;
    margin-left: 20vw; 
  }

}

.featured-section {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #00aaff;
  font-family: 'Arial', sans-serif;
  background: none !important;
}

.featured-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #00aaff;
}

.featured-text p {
  font-size: 1.2rem;
  color: white;
  margin: 0;
}


@media (max-width: 1024px) {
  .featured-section {
    height: 400px;
  }

  .featured-text h1 {
    font-size: 2.2rem;
  }

  .featured-text p {
    font-size: 1rem;
  }

  .featured-text {
    top: 55%;
  }
}

@media (max-width: 768px) {
  .featured-section {
    height: 520px !important;
    position: relative;
    overflow: hidden;
  }

  .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center top !important;
    display: block;
  }

  .featured-text {
    position: absolute;
    top: 60% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 0 1rem;
    text-align: center;
    width: 100%;
  }

  .featured-text h1 {
    font-size: 1.7rem !important;
    line-height: 1.2;
  }

  .featured-text p {
    font-size: 1rem !important;
  }
}


@media (max-width: 480px) {
  .featured-section {
    height: 280px;
  }

  .featured-text h1 {
    font-size: 1.5rem;
  }

  .featured-text p {
    font-size: 0.85rem;
  }

  .featured-text {
    top: 52%;
  }
}


.tarjeta {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.tarjeta img {
  max-width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  object-fit: cover;
  height: 200px;
}


.tarjeta h3 {
  font-size: 1.2rem;
  color: #4b0082; 
  margin-bottom: 0.5rem;
}

.tarjeta p {
  font-size: 0.95rem;
  margin: 0.25rem 0;
}


.tarjeta .acciones {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.tarjeta .btn-editar,
.tarjeta .btn-eliminar {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tarjeta .btn-editar {
  background-color: #4b0082;
  color: white;
}

.tarjeta .btn-eliminar {
  background-color: #dc3545;
  color: white;
}


#lista-articulos,
#lista-categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem auto;
  background-color: #f5f5f5;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: fit-content;
}

.pagination button {
  background: transparent;
  border: none;
  color: #43165F;
  font-weight: bold;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
  font-size: 1.1rem;
}

.pagination button:hover {
  background: #f0e6f5;
  color: #7E2E8C;
}

.pagination button.active {
  background: #7E2E8C;
  color: #fff;
}


.articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 2rem;
  justify-items: center;
  padding: 2rem;
  background: #fff;

  max-width: 1200px;
  margin: 3rem auto 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


.card {
  width: 100%; 
  max-width: 500px; 
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


.card-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.category-tag {
  display: inline-block;
  background-color: #3c0063; 
  color: #fff;
  font-weight: bold;
  font-size: 0.7rem;
  padding: 0.25rem 1rem;
  border-radius: 999px; 
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}



.card h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #33004d;
  margin: 0;
}

.card p {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
}

.read-more {
  display: inline-block;
  color: #7500b5; 
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  margin-top: 1rem;
}

.read-more {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: bold;
  color: #6a00b8; 
  background: transparent;
  border: 2px solid transparent;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
  align-self: flex-start; 
}
.read-more:hover {
  background-color: #7E2E8C;
  color: #fff;
  border-color: #6a00b8;
}


.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #7500b5; 
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left; 
  transition: opacity 0.3s ease, transform 0.4s ease;
}


.card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}


.filter-section {
  background-color: #43165F;
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid #4b006c;
  
}

.filter-section h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-btn {
  padding: 0.7rem 1.5rem;
  background-color: #ffffff10;
  color: #ffffffcc;
  border: 2px solid #a84de6;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(168, 77, 230, 0.2);
}

.category-btn:hover {
  background-color: #7E2E8C;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(168, 77, 230, 0.4);
}

.category-btn.active {
  background-color: #7E2E8C;
  color: #ffffff;
  font-weight: 600;
  transform: scale(1.05);
}



.footer {
  background-image: url('pie de pagina dimension (1).png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  padding: 60px 40px 30px;
  font-family: Arial, sans-serif;
  margin-top: 5rem;

}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-box {
  flex: 1;
  min-width: 280px;
}

.logo-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.footer-logo {
  width: 180px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00cfff;
}

.footer-title {
  color: #00cfff;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #00cfff;
}

.map-container {
  margin-bottom: 10px;
}

.footer-box p {
  font-size: 14px;
  margin: 5px 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 14px;
  color: #ccc;
}


@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    margin-top: 1rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-box {
    width: 100%;
  }

  .logo-box {
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .map-container iframe {
    width: 100%;
  }

  .plan-cards {
    flex-direction: column;
  }
}
