html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================== SUBIR ==================== */

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  background-color: #5e3ca5;

  font-size: 22px;
  cursor: pointer;

  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgb(24 21 54 / 22%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top.is-visible:hover {
  background-color: #4d308b;
  transform: translateY(-4px);
}

.back-to-top:focus-visible {
  outline: 3px solid #9caf87;
  outline-offset: 3px;
}

/* ==================== NAVBAR ==================== */

header {
  width: 100%;
  background-color: #ffffff;
}

.navbar {
  width: 90%;
  margin: 0 auto;
  min-height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.img-nav-container {
  flex-shrink: 0;
}

.img-nav-container img {
  display: block;
  width: 190px;
  height: auto;
}

.links-container {
  display: flex;
  align-items: center;
  gap: 45px;
}

.links-container a {
  color: #181536;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.links-container a:hover {
  color: #6845b8;
  transform: translateY(-2px);
}

/* ==================== PRIMERA SECCIÓN ==================== */

.first-section {
  width: 100%;
  min-height: 640px;
  padding-left: 5%;

  display: grid;
  grid-template-columns: 52% 48%;
  align-items: stretch;

  background-color: #ffffff;
  overflow: hidden;
}

.main-container {
  position: relative;
  z-index: 2;

  /* Los 60px adicionales de abajo reservan el espacio que ocupa
     la superposición de la segunda sección. */
  padding: 55px 30px 105px 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  max-width: 650px;

  color: #181536;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 500;
  line-height: 1.08;
}

.title span {
  color: #63897a;
}

.title::after {
  content: "";
  display: block;

  width: 50px;
  height: 3px;
  margin-top: 22px;

  background-color: #5e3ca5;
}

.main-container > p {
  max-width: 620px;
  margin-top: 28px;

  color: #3f3b51;
  font-size: 17px;
  line-height: 1.7;
}

.main-container > a {
  width: fit-content;
  min-width: 280px;
  margin-top: 28px;
  padding: 15px 30px;

  color: #ffffff;
  background-color: #5e3ca5;

  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;

  border-radius: 30px;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.main-container > a:hover {
  background-color: #4d308b;
  transform: translateY(-2px);
}

.first-icons-container {
  width: 100%;
  max-width: 850px;
  margin-top: 55px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.first-icons-container > div {
  padding: 0 8px;
  text-align: center;
}

.first-icons-container i {
  display: block;
  margin-bottom: 12px;

  color: #6750a4;
  font-size: 36px;
}

.first-icons-container p {
  color: #3f3b51;
  font-size: 17px;
  line-height: 1.45;
}

.img-first-container {
  position: relative;
  z-index: 1;

  width: calc(100% + 140px);
  min-height: 640px;
  margin-left: -140px;

  display: flex;
  align-items: center;

  overflow: visible;
}

.img-first-container img {
  display: block;

  width: 100%;
  height: auto;
}

.first-icons-container i {
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.first-icons-container > div:hover i {
  color: #8062c0;

  text-shadow:
    0 0 7px rgb(128 98 192 / 55%),
    0 0 14px rgb(128 98 192 / 30%);
}

/* ==================== SEGUNDA SECCIÓN ==================== */

.second-section {
  position: relative;
  z-index: 5;

  width: 100%;
  margin-top: -60px;
  padding: 0 5%;
}

.second-section-container {
  position: relative;

  width: 100%;

  display: grid;
  grid-template-columns: 28% 54% 18%;
  align-items: center;

  background-color: #f7f1f8;
  border-radius: 28px;
  overflow: hidden;
}

/* Imagen de la ampolleta */
.second-img-container {
  grid-column: 1;

  width: 100%;
  padding: 12px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.second-img-container img {
  display: block;

  width: 100%;
  max-width: 365px;
  height: auto;
  max-height: 350px;

  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Contenido central */
.second-text-container {
  position: relative;
  z-index: 2;

  grid-column: 2;

  padding: 18px 30px;
}

.second-text-container h2 {
  max-width: 780px;

  color: #181536;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

.second-text-container h2 span {
  color: #63897a;
}

/* Línea decorativa */
.second-text-container h2::after {
  content: "";
  display: block;

  width: 45px;
  height: 3px;
  margin: 12px 0 16px;

  background-color: #63897a;
}

.second-text-container p {
  max-width: 850px;
  margin-bottom: 10px;

  color: #403b50;
  font-size: 17px;
  line-height: 1.45;
}

.second-text-container p:last-child {
  margin-bottom: 0;
}

/* Rama decorativa derecha */
.last-img-container {
  position: absolute;
  z-index: 1;

  top: 0;
  right: 0;
  bottom: 0;

  width: 18%;

  pointer-events: none;
}

.last-img-container img {
  position: absolute;

  right: -18%;
  bottom: -10%;

  display: block;

  width: auto;
  height: 115%;
  max-width: none;

  opacity: 0.5;
}

/* ==================== TERCERA SECCIÓN ==================== */

.third-section {
  width: 100%;
  padding: 30px 5% 20px;

  background-color: #ffffff;
}

.third-section-container {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 25px;
}

.title-container {
  grid-column: 1 / -1;

  margin-bottom: 18px;
  text-align: center;
}

.title-container h2 {
  color: #181536;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.title-container h2 span {
  color: #63897a;
}

.title-container > p {
  max-width: 750px;
  margin: 12px auto 0;

  color: #514d60;
  font-size: 17px;
  line-height: 1.6;
}

.first-card,
.second-card,
.third-card,
.fourth-card {
  min-height: 370px;
  padding: 28px 24px;

  display: flex;
  flex-direction: column;

  background-color: #f8f3f7;
  border: 1px solid #eee6ed;
  border-radius: 22px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.first-card:hover,
.second-card:hover,
.third-card:hover,
.fourth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgb(41 32 67 / 12%);
}

.first-card > div:first-child,
.second-card > div:first-child,
.third-card > div:first-child,
.fourth-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 15px;

  margin-bottom: 24px;
}

.first-card > div:first-child > div:first-child,
.second-card > div:first-child > div:first-child,
.third-card > div:first-child > div:first-child,
.fourth-card > div:first-child > div:first-child {
  width: 62px;
  height: 62px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  border-radius: 50%;
}

.first-card > div:first-child > div:first-child,
.third-card > div:first-child > div:first-child {
  background-color: #5e3ca5;
}

.second-card > div:first-child > div:first-child,
.fourth-card > div:first-child > div:first-child {
  background-color: #63897a;
}

.first-card i,
.second-card i,
.third-card i,
.fourth-card i {
  font-size: 29px;
}

.first-card h3,
.second-card h3,
.third-card h3,
.fourth-card h3 {
  color: #292044;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
}

.first-card > div:nth-child(2),
.second-card > div:nth-child(2),
.third-card > div:nth-child(2),
.fourth-card > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.first-card > div:nth-child(2) > p,
.second-card > div:nth-child(2) > p,
.third-card > div:nth-child(2) > p,
.fourth-card > div:nth-child(2) > p {
  min-height: 55px;
  margin-bottom: 18px;

  color: #514d60;
  font-size: 17px;
  line-height: 1.5;
}

.first-card ul,
.second-card ul,
.third-card ul,
.fourth-card ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.first-card li,
.second-card li,
.third-card li,
.fourth-card li {
  position: relative;

  padding-left: 25px;

  color: #403b50;
  font-size: 17px;
  line-height: 1.45;
}

.first-card li + li,
.second-card li + li,
.third-card li + li,
.fourth-card li + li {
  margin-top: 10px;
}

.first-card li::before,
.second-card li::before,
.third-card li::before,
.fourth-card li::before {
  content: "✓";

  position: absolute;
  top: 0;
  left: 0;

  color: #63897a;
  font-size: 16px;
  font-weight: 700;
}

/* ==================== CUARTA SECCIÓN ==================== */

.fourth-section {
  width: 100%;
  padding: 0 5%;

  background-color: #ffffff;
}

.fourth-section-container {
  width: 100%;
  min-height: 250px;
  padding: 30px 35px;

  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(280px, 1.3fr);
  grid-template-rows: auto 1fr;
  column-gap: 30px;

  background-color: #f8f3f7;
  /* border: 1px solid #eee6ed;
  border-radius: 25px; */
  border-bottom: none;
  border-radius: 25px 25px 0 0;
}

.fourth-section-container > div:first-child {
  grid-column: 1;
  grid-row: 1;
}

.fourth-section-container h2 {
  color: #181536;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.fourth-section-container h2 span {
  color: #63897a;
}

.fourth-section-container > div:nth-child(2) {
  grid-column: 1;
  grid-row: 2;

  margin-top: 28px;

  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.fourth-section-container > div:nth-child(2) > div {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.fourth-section-container > div:nth-child(2) > div > div:first-child {
  width: 58px;
  height: 58px;
  margin-bottom: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #63897a;
  background-color: #ecf0e9;
  border-radius: 50%;
}

.fourth-section-container > div:nth-child(2) i {
  font-size: 27px;
}

.fourth-section-container > div:nth-child(2) p {
  color: #403b50;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.fourth-section-container > div:last-child {
  grid-column: 2;
  grid-row: 1 / 3;

  padding-left: 35px;

  display: flex;
  align-items: center;

  border-left: 1px solid #dcd4df;
}

.fourth-section-container > div:last-child p {
  color: #403b50;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}

/* ==================== QUINTA SECCIÓN ==================== */

.fifth-section {
  width: 100%;
  padding: 0 5% 80px;

  background-color: #ffffff;
}

.fifth-section-container {
  width: 100%;
  min-height: 350px;

  display: grid;
  grid-template-columns: 25% 32% 43%;
  align-items: stretch;

  color: #ffffff;
  background-color: #342468;

  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

.fifth-img-container {
  width: 100%;
  height: 100%;
  min-height: 350px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #342468;
}

.fifth-img-container img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}

.fifth-text-container {
  padding: 45px 35px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fifth-text-container h2 {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
}

.fifth-text-container h2 span {
  color: #9caf87;
}

.fifth-text-container > p {
  margin-top: 16px;

  color: rgb(255 255 255 / 85%);
  font-size: 17px;
  line-height: 1.55;
}

.fifth-values-container {
  padding: 45px 40px 45px 20px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 35px 28px;
}

.fifth-value {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
}

.fifth-value-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #59418c;
  background-color: #f4eef7;

  border-radius: 50%;
}

.fifth-value-icon i {
  font-size: 26px;
}

.fifth-value h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.fifth-value p {
  margin-top: 7px;

  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  line-height: 1.45;
}

/* ==================== FOOTER ==================== */

.site-footer {
  width: 100%;
  padding: 50px 5% 0;

  color: #302a44;
  background-color: #ffffff;
}

.footer-main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 45px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
}

.footer-brand {
  width: 260px;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  text-align: center;
}

.footer-logo {
  display: block;

  width: 220px;
  height: auto;
  margin: 0;
}

.footer-instagram {
  width: 42px;
  height: 42px;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #5e3ca5;
  text-decoration: none;

  border: 1px solid #cfc5dd;
  border-radius: 50%;

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.footer-instagram i {
  font-size: 20px;
}

.footer-instagram:hover {
  color: #ffffff;
  background-color: #5e3ca5;
  transform: translateY(-2px);
}

.footer-contact {
  width: 280px;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: center;
  gap: 16px;
}

.footer-contact h2 {
  width: 100%;
  margin: 0 0 5px;

  color: #181536;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
}

.footer-contact-item {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  color: #514d60;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.footer-contact-item i {
  flex-shrink: 0;

  color: #63897a;
  font-size: 18px;
}

a.footer-contact-item {
  transition: color 0.3s ease;
}

a.footer-contact-item:hover {
  color: #5e3ca5;
}

.footer-bottom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-top: 1px solid #e6e0e9;
}

.footer-bottom p {
  margin: 0;

  color: #777181;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* ==================== NOTEBOOK Y TABLET ==================== */

@media (min-width: 721px) and (max-width: 1100px) {
  body {
    overflow-x: hidden;
  }

  /* Navbar */
  .navbar {
    width: 92%;
    min-height: 88px;
    gap: 28px;
  }

  .img-nav-container img {
    width: 155px;
  }

  .links-container {
    flex: 1;
    justify-content: flex-end;
    gap: clamp(18px, 3vw, 34px);
  }

  .links-container a {
    font-size: 15px;
    white-space: nowrap;
  }

  /* Primera sección */
  .first-section {
    min-height: 0;
    padding: 0 4% 85px;

    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .main-container {
    padding: 48px 0 24px;
    align-items: center;
    text-align: center;
  }

  .title {
    max-width: 780px;
    font-size: clamp(44px, 6vw, 58px);
  }

  .title::after {
    margin: 22px auto 0;
  }

  .main-container > p {
    max-width: 720px;
  }

  .first-icons-container {
    max-width: 760px;
    margin-top: 42px;
    gap: 28px;
  }

  .first-icons-container p {
    font-size: 16px;
  }

  .img-first-container {
    width: min(100%, 850px);
    min-height: 0;
    margin: -5px auto 0;
  }

  .img-first-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Segunda sección */
  .second-section {
    margin-top: -50px;
    padding: 0 4%;
  }

  .second-section-container {
    grid-template-columns: 31% 69%;
  }

  .second-img-container {
    padding: 20px 18px;
  }

  .second-img-container img {
    max-width: 270px;
  }

  .second-text-container {
    grid-column: 2;
    padding: 32px 42px 32px 20px;
  }

  .second-text-container h2 {
    font-size: 30px;
  }

  .second-text-container p {
    font-size: 16px;
  }

  .last-img-container {
    width: 20%;
    opacity: 0.35;
  }

  /* Tercera sección */
  .third-section {
    padding: 55px 4% 28px;
  }

  .third-section-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .title-container {
    margin-bottom: 10px;
  }

  .title-container h2 {
    font-size: 36px;
  }

  .first-card,
  .second-card,
  .third-card,
  .fourth-card {
    min-height: 0;
  }

  /* Cuarta sección */
  .fourth-section {
    padding: 0 4%;
  }

  .fourth-section-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 34px 30px;
  }

  .fourth-section-container > div:first-child,
  .fourth-section-container > div:nth-child(2),
  .fourth-section-container > div:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .fourth-section-container > div:first-child {
    text-align: center;
  }

  .fourth-section-container > div:nth-child(2) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .fourth-section-container > div:last-child {
    margin-top: 30px;
    padding: 26px 8% 0;
    justify-content: center;

    text-align: center;
    border-top: 1px solid #dcd4df;
    border-left: 0;
  }

  /* Quinta sección */
  .fifth-section {
    padding: 0 4% 65px;
  }

  .fifth-section-container {
    grid-template-columns: 34% 66%;
  }

  .fifth-img-container {
    min-height: 320px;
  }

  .fifth-text-container {
    padding: 42px 42px 35px;
  }

  .fifth-values-container {
    grid-column: 1 / -1;
    padding: 12px 42px 45px;
    gap: 28px 36px;
  }

  /* Footer */
  .site-footer {
    padding: 44px 4% 0;
  }

  .footer-main {
    max-width: 720px;
    gap: 70px;
  }
}

@media (min-width: 1101px) and (max-width: 1366px) {
  .navbar,
  .third-section,
  .fourth-section,
  .fifth-section,
  .second-section {
    --notebook-side-space: 4%;
  }

  .main-container {
    min-width: 0;
    padding-right: 32px;
  }

  .navbar {
    width: 92%;
  }

  .first-section {
    padding-left: 4%;
    grid-template-columns: 53% 47%;
  }

  .title,
  .main-container > p {
    max-width: 100%;
  }

  .title {
    font-size: clamp(48px, 4.25vw, 56px);
  }

  .img-first-container {
    width: calc(100% + 80px);
    min-width: 0;
    margin-left: 0;
  }

  .img-first-container img {
    display: block;
    width: 100%;
    height: auto;
  }

  .first-icons-container {
    gap: 16px;
  }

  .first-icons-container p,
  .second-text-container p,
  .title-container > p,
  .first-card > div:nth-child(2) > p,
  .second-card > div:nth-child(2) > p,
  .third-card > div:nth-child(2) > p,
  .fourth-card > div:nth-child(2) > p,
  .first-card li,
  .second-card li,
  .third-card li,
  .fourth-card li,
  .fourth-section-container > div:nth-child(2) p,
  .fourth-section-container > div:last-child p {
    font-size: 16px;
  }

  .second-section,
  .third-section,
  .fourth-section {
    padding-left: 4%;
    padding-right: 4%;
  }

  .fifth-section {
    padding-left: 4%;
    padding-right: 4%;
  }

  .second-section-container {
    grid-template-columns: 26% 58% 16%;
  }

  .second-text-container {
    padding-left: 20px;
    padding-right: 24px;
  }

  .second-text-container h2 {
    font-size: 30px;
  }

  .third-section-container {
    gap: 18px;
  }

  .first-card,
  .second-card,
  .third-card,
  .fourth-card {
    padding: 24px 19px;
  }

  .first-card > div:first-child > div:first-child,
  .second-card > div:first-child > div:first-child,
  .third-card > div:first-child > div:first-child,
  .fourth-card > div:first-child > div:first-child {
    width: 56px;
    height: 56px;
  }

  .first-card h3,
  .second-card h3,
  .third-card h3,
  .fourth-card h3 {
    font-size: 20px;
  }

  .fourth-section-container {
    grid-template-columns: minmax(0, 3.4fr) minmax(240px, 1.25fr);
    padding-left: 28px;
    padding-right: 28px;
    column-gap: 24px;
  }

  .fourth-section-container > div:nth-child(2) {
    gap: 12px;
  }

  .fourth-section-container > div:last-child {
    padding-left: 24px;
  }

  .fifth-section-container {
    grid-template-columns: 24% 31% 45%;
  }

  .fifth-text-container {
    padding-left: 26px;
    padding-right: 26px;
  }

  .fifth-values-container {
    padding-left: 12px;
    padding-right: 28px;
    gap: 30px 20px;
  }
}

/* ==================== CELULAR ==================== */

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  /* Navbar */
  .navbar {
    width: calc(100% - 32px);
    min-height: 0;
    padding: 16px 0 14px;

    flex-direction: column;
    gap: 14px;
  }

  .img-nav-container img {
    width: 150px;
  }

  .links-container {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .links-container a {
    padding: 7px 4px;
    font-size: 14px;
    text-align: center;
  }

  /* Primera sección */
  .first-section {
    min-height: 0;
    padding: 0 16px 55px;

    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .main-container {
    padding: 42px 0 22px;
    align-items: center;
    text-align: center;
  }

  .title {
    max-width: 520px;
    font-size: clamp(36px, 11vw, 46px);
    line-height: 1.08;
  }

  .title::after {
    width: 44px;
    margin: 19px auto 0;
  }

  .main-container > p {
    max-width: 520px;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.6;
  }

  .main-container > a {
    width: 100%;
    min-width: 0;
    max-width: 360px;
    margin-top: 24px;
  }

  .first-icons-container {
    max-width: 520px;
    margin-top: 38px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 14px;
  }

  .first-icons-container > div {
    padding: 0 4px;
  }

  .first-icons-container i {
    font-size: 32px;
  }

  .first-icons-container p {
    font-size: 15px;
    line-height: 1.4;
  }

  .img-first-container {
    width: calc(100% + 20px);
    min-height: 0;
    margin: 0 -10px;
  }

  .img-first-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Segunda sección */
  .second-section {
    margin-top: -34px;
    padding: 0 16px;
  }

  .second-section-container {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .second-img-container {
    grid-column: 1;
    padding: 28px 28px 10px;
  }

  .second-img-container img {
    width: min(100%, 260px);
    max-height: 260px;
  }

  .second-text-container {
    grid-column: 1;
    padding: 14px 22px 30px;
  }

  .second-text-container h2 {
    font-size: 28px;
    text-align: center;
  }

  .second-text-container h2::after {
    margin: 14px auto 18px;
  }

  .second-text-container p {
    font-size: 16px;
    line-height: 1.5;
  }

  .last-img-container {
    display: none;
  }

  /* Tercera sección */
  .third-section {
    padding: 48px 16px 28px;
  }

  .third-section-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .title-container {
    margin-bottom: 8px;
  }

  .title-container h2 {
    font-size: 32px;
  }

  .title-container > p {
    font-size: 16px;
    line-height: 1.55;
  }

  .first-card,
  .second-card,
  .third-card,
  .fourth-card {
    min-height: 0;
    padding: 24px 21px;
  }

  .first-card > div:first-child,
  .second-card > div:first-child,
  .third-card > div:first-child,
  .fourth-card > div:first-child {
    margin-bottom: 19px;
  }

  .first-card > div:first-child > div:first-child,
  .second-card > div:first-child > div:first-child,
  .third-card > div:first-child > div:first-child,
  .fourth-card > div:first-child > div:first-child {
    width: 56px;
    height: 56px;
  }

  .first-card h3,
  .second-card h3,
  .third-card h3,
  .fourth-card h3 {
    font-size: 21px;
  }

  .first-card > div:nth-child(2) > p,
  .second-card > div:nth-child(2) > p,
  .third-card > div:nth-child(2) > p,
  .fourth-card > div:nth-child(2) > p {
    min-height: 0;
    font-size: 16px;
  }

  .first-card li,
  .second-card li,
  .third-card li,
  .fourth-card li {
    font-size: 16px;
  }

  /* Cuarta sección */
  .fourth-section {
    padding: 0 16px;
  }

  .fourth-section-container {
    min-height: 0;
    padding: 30px 20px;

    grid-template-columns: 1fr;
    grid-template-rows: auto;
    border-radius: 22px 22px 0 0;
  }

  .fourth-section-container > div:first-child,
  .fourth-section-container > div:nth-child(2),
  .fourth-section-container > div:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .fourth-section-container > div:first-child {
    text-align: center;
  }

  .fourth-section-container h2 {
    font-size: 29px;
  }

  .fourth-section-container > div:nth-child(2) {
    margin-top: 26px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }

  .fourth-section-container > div:nth-child(2) > div > div:first-child {
    width: 54px;
    height: 54px;
  }

  .fourth-section-container > div:nth-child(2) p,
  .fourth-section-container > div:last-child p {
    font-size: 15px;
  }

  .fourth-section-container > div:last-child {
    margin-top: 28px;
    padding: 24px 4px 0;
    justify-content: center;

    text-align: center;
    border-top: 1px solid #dcd4df;
    border-left: 0;
  }

  /* Quinta sección */
  .fifth-section {
    padding: 0 16px 55px;
  }

  .fifth-section-container {
    min-height: 0;

    grid-template-columns: 1fr;
    border-radius: 0 0 22px 22px;
  }

  .fifth-img-container {
    min-height: 0;
    padding: 26px 20px 0;
  }

  .fifth-img-container img {
    width: min(100%, 360px);
    height: auto;
    max-height: 310px;
  }

  .fifth-text-container {
    padding: 30px 24px 24px;
    text-align: center;
  }

  .fifth-text-container h2 {
    font-size: 32px;
  }

  .fifth-text-container > p {
    font-size: 16px;
  }

  .fifth-values-container {
    padding: 18px 24px 38px;

    grid-template-columns: 1fr;
    gap: 25px;
  }

  .fifth-value {
    grid-template-columns: 54px 1fr;
    gap: 14px;
  }

  .fifth-value-icon {
    width: 54px;
    height: 54px;
  }

  .fifth-value h3 {
    font-size: 16px;
  }

  .fifth-value p {
    font-size: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 42px 16px 0;
  }

  .footer-main {
    padding-bottom: 36px;

    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-logo {
    width: 205px;
  }

  .footer-contact {
    width: min(100%, 280px);
  }

  .footer-contact h2 {
    text-align: center;
  }

  .footer-bottom {
    padding: 20px 6px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;

    width: 44px;
    height: 44px;

    font-size: 19px;
  }
}

/* Reduce animaciones si el dispositivo o la persona lo solicita. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
