.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero .hero-content {
  position: absolute;
  top: 49px;
  left: 7%;
  z-index: 10;
  width: 50%;
  color: rgb(0, 0, 0);
}
.hero .hero-content h2 {
  margin-bottom: 20px;
  font-size: clamp(20px, 6vw, 100px);
  font-weight: 500;
  line-height: 1.1;
}
.hero .hero-content p {
  font-size: clamp(11px, 3vw, 45px);
  font-weight: 200;
  line-height: 1.4;
}
.hero .hero-image {
  display: flex;
  justify-content: flex-end;
}
.hero .hero-image img {
  display: block;
  width: 90%;
  object-fit: contain;
}
.services {
  width: 100%;
  padding: 60px 0px;
  text-align: center;
}
.services .section-header {
  margin-bottom: 20px;
  padding: 0px 7%;
}
.services .section-header h2 {
  margin-bottom: 15px;
  font-size: clamp(25px, 5.27vw, 70px);
  font-weight: 500;
}
.services .section-header p {
  color: #000000;
  font-size: clamp(15px, 2.26vw, 30px);
  font-weight: 300;
}
.services .cards-container {
  display: grid;
  grid-template-columns: repeat(3, 30%);
  place-items: center;
  justify-content: center;
  column-gap: 20px;
  padding: 0px 5%;
}
.card {
  --margen: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 40px 30px;
  background: #fff;
  border: 3px solid var(--gris);
  border-radius: 60px;
}
.card:nth-child(2) {
  border-color: var(--secundario);
}
.card h3 {
  margin-bottom: var(--margen);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 500;
}
.card h3 .highlight-yellow {
  color: var(--terciario);
}
.card h3 .highlight-blue {
  color: var(--secundario);
}
.card h3 .highlight-green {
  color: var(--primario);
}

.card .price-info {
  margin-bottom: 30px;
}

.card .price-info h4 {
  margin-bottom: var(--margen);
  font-size: clamp(19.85px, 3vw, 39.7px);
  font-weight: 500;
}
.card .price-info .price {
  margin-bottom: var(--margen);
  font-size: clamp(19.85px, 3vw, 39.7px);
  font-weight: 500;
}
.card .price-info .price span {
  font-size: 0.8rem;
}
.card .desc {
  height: 30%;
  margin-bottom: var(--margen);
  color: #000000;
  font-size: clamp(10.585px, 3.5vw, 21.17px);
  font-weight: 200;
}
.card a {
  font-size: clamp(15.25px, 1.7vw, 22.5px);
}
.card .btn-yellow {
  background-color: var(--terciario);
  display: block;
  width: 90%;
  padding: 15px 0;
  border-radius: 30px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}
.card .btn-blue {
  background-color: var(--secundario);
  display: block;
  width: 90%;
  padding: 15px 0;
  border-radius: 30px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}
.card .btn-green {
  background-color: var(--primario);
  display: block;
  width: 90%;
  padding: 15px 0;
  border-radius: 30px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}
@media (max-width: 992px) {
  .card {
    padding: 40px 8px;
  }
  .card .desc {
    height: 25%;
    margin-bottom: 40px;
    font-size: clamp(10.585px, 2vw, 21.17px);
    font-weight: 300;
  }
}
@media (max-width: 768px) {
  .card {
    --margen: 20px;
  }
  .card a {
    font-size: clamp(10.62px, 3.5vw, 23.24px);
  }
  .card h3 {
    font-size: 2.2rem;
    font-weight: 400;
  }
  .card .price-info h4 {
    font-size: 2.2rem;
    font-weight: 400;
  }
  .card .price-info .price {
    margin-bottom: var(--margen);
    font-size: 2.2rem;
    font-weight: 500;
  }

  .card .price-info .plan-tax {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gris);
  }
  .card .desc {
    margin-bottom: var(--margen);
    font-size: 1rem;
    font-weight: 400;
  }
}
.blog {
  padding: 60px 5%;
  margin-bottom: 20px;
  background-color: white;
}
.blog .section-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 0px 1%;
}
.blog .section-header h2 {
  margin-bottom: 15px;
  font-size: clamp(35px, 5.27vw, 70px);
  font-weight: 500;
}
.blog .section-header p {
  color: #000000;
  font-size: clamp(15px, 2.26vw, 30px);
  font-weight: 300;
}
.blog .featured-post a {
  display: flex;
  gap: 40px;
  margin: 0 auto 50px;
  border-radius: 25px;
  transition: var(--transicion-time) ease all;
}
.blog .featured-post a .featured-content {
  display: flex;
  flex: 36%;
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 5px;
}
.blog .featured-post a .featured-content div h2 {
  margin-bottom: 30px;
  font-size: clamp(22.5px, 3.4vw, 45px);
  font-weight: 400;
  text-align: left;
}
.blog .featured-post a .featured-content div .category {
  display: block;
  margin-bottom: 5px;
  color: var(--secundario);
  font-size: clamp(15px, 1.66vw, 22px);
  font-weight: 400;
}
.blog .featured-post a .featured-content div .date {
  display: block;
  margin-bottom: 20px;
  color: var(--gris);
  font-size: clamp(15px, 1.66vw, 22px);
  font-weight: 400;
}
.blog .featured-post a .featured-content .read-more {
  padding-bottom: 5px;
  color: var(--gris);
  font-size: clamp(15px, 1.66vw, 22px);
  font-weight: 400;
}
.blog .featured-post a .featured-content .read-more::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  background-color: var(--gris);
  border-radius: 20px;
}
.blog .featured-post a .featured-image {
  flex: 64%;
  aspect-ratio: 2048 / 1365;
  overflow: hidden;
  border-radius: 25px;
}
.blog .featured-post a .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: 25px;
  transform: scale(102%);
  transition: 0.2s ease-in all;
}
.blog .featured-post a .featured-image img:hover {
  transform: scale(100%);
}
.blog .featured-post a:hover {
  background-color: var(--gris-claro);
}
.blog .featured-post a:hover h2 {
  text-decoration: underline;
}

.blog .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}
.blog .blog-grid .post-card {
  flex: 30%;
  transition: 0.2s ease all;
}
.blog .blog-grid .post-card .post-image {
  width: 100%;
  aspect-ratio: 486.78 / 264.3;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 25px 25px 25px 25px;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  /* Asegura que el contenedor no colapse en Flexbox */
  flex-shrink: 0;
}

.blog .blog-grid .post-card a img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(105%);
  transition: 0.2s ease-in all;
}
.blog .blog-grid .post-card .date {
  display: block;
  padding: 0px 5px;
  color: var(--gris);
  font-size: clamp(15px, 1.5vw, 18px);
}
.blog .blog-grid .post-card .category {
  display: block;
  margin-bottom: 10px;
  padding: 0px 5px;
  color: var(--secundario);
  font-size: clamp(15px, 1.5vw, 18px);
}
.blog .blog-grid .post-card h4 {
  padding: 0px 5px;
  font-size: clamp(20px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.4;
}
.blog .blog-grid .post-card:hover {
  background-color: var(--gris-claro);
}
.blog .blog-grid .post-card:hover img {
  transform: scale(100%);
}
.blog .blog-grid .post-card:hover h4 {
  text-decoration: underline;
}
@media (max-width: 992px) {
  .blog .blog-grid {
    grid-template-columns: repeat(1, 0.8fr);
    place-content: center center;
  }
  .blog .blog-grid .post-card a::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 10px;
    background-color: var(--gris);
    border-radius: 20px;
  }
}
.blog .blog-btn-container {
  justify-self: center;
  text-align: center;
  background-color: var(--primario);
  border-radius: 20px;
}
@media (max-width: 768px) {
  .hero .hero-content {
    top: 3px;
  }
  .hero .hero-content h2 {
    margin-bottom: 5px;
    font-weight: 500;
    line-height: 1.1;
  }
  .services {
    padding: 20px;
  }
  .services .section-header {
    padding: 0px 1%;
  }
  .services .section-header p {
    text-align: justify;
  }
  .services .cards-container {
    grid-template-columns: repeat(1, 100%);
    row-gap: 30px;
  }
  .blog {
    padding: 0px 5%;
  }

  .blog .featured-post a {
    flex-direction: column;
  }
  .blog .featured-post a .featured-content {
    order: 2;
  }

  .blog .featured-post a .featured-image {
    order: 1;
  }
}
