@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

:root {
  --pinkV-dark: #0f0116;
  --pinkV-medium: #270238;
  --pinkV: #93278f;
  --background-Primary: #eedbf7;
  --white-esqueleto: #dce0e2;
  --color-esqueleto-transparent: rgba(239, 243, 245, 0.733);
  --color-esqueleto: rgba(220, 231, 236, 0.979);
  --blue-light: #0b92a7;
  --blue-medium: #0b3f8b;
  --blue-transparent: #082864ce;
  --blue-light-transparent: #0b92a781;
  --blue-suave: #46b7c942;
  --blue-dark: #020d22fa;
  --blue-dark-transparent: #020d22dc;
  --size-title: 2.5rem;
  --grayBlacks: #242425;
  --graylight: #5b5b6b;
  --gray-medium: #373737;
  --gray-dark: #242424;
  --gray-transpárent: #20202049;
  --title: "Kanit", sans-serif;
  --paragraph: "Nunito", sans-serif;
}

body {
  background: var(--color-esqueleto-transparent);
}

/* ****** NAVIGATION ****** */
.menu {
  background-color: #ffffff96;
  height: 70px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  font-family: var(--title);
  font-weight: 600;
  border-radius: 10px;
  border-bottom: 2px solid var(--blue-light);
  top: 20px;
  z-index: 1000;
  position: fixed;
}

.menu__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: 100%;
}

.menu__links {
  display: flex;
  height: 100%;
  transition: transform 0.5s;
}

.menu__item {
  list-style: none;
  height: 100%;
  position: relative;

  --clip: polygon(0 0, 100% 0, 100% 0, 0 0);
  --transform: rotate(-90deg);
}

.menu__item:hover {
  --clip: polygon(0 0, 100% 0, 100% 0, 100% 0% 100%);
  --transform: rotate(0);
}

.menu__link {
  color: var(--blue-medium);
  text-decoration: none;
  padding: 0 30px;
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
  transition: 0.4s;
}

.menu__link:hover {
  background-color: var(--blue-medium);
  color: var(--blue-light);
  border-radius: 6px;
}

.menu__arrow {
  transform: var(--transform);
  transition: transform 0.4s;
  display: block;
  margin-left: 3px;
}

.menu__nesting {
  background-color: var(--color-esqueleto-transparent);
  list-style: none;
  transition: clip-path 3s;
  clip-path: var(--clip);
  position: absolute;
  right: 0;
  bottom: 0;
  border-bottom: solid var(--blue-light);
  border-radius: 10px;
  width: max-content;
  transform: translateY(100%);
}

.menu__link--inside {
  padding: 30px 100px 30px 20px;
  transition: 0.4s;
}

.menu__link--inside:hover {
  background-color: var(--blue-medium);
}

.logo {
  width: 70px;
  margin-left: 30px;
  margin-top: 9px;
}

.menu__hamburguer {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  margin-right: 100px;
  cursor: pointer;
  transition: 0.4s;
  display: none;
}

.menu__hamburguer:hover {
  background-color: var(--blue-medium);
}

.menu__img {
  display: block;
  width: 40px;
}

/***** *CONTENIDO* *****/
/******* *CONTENIDO* *******/
.container__content {
  width: 95%;
  height: 100%;
  max-width: 1200px;
  min-width: 70%;
  padding: 40px;
  margin: 20px auto;
  display: grid;
  grid-gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  padding-top: 100px;

  grid-template-areas: "content content sidebar";
}

.content {
  grid-area: content;
  margin-top: -50px;
  grid-gap: 50px;

  & img {
    width: 95%;
    margin-top: 50px;
  }

  & li {
    width: 90%;
    text-align: left;
    font-family: var(--paragraph);
    margin-bottom: 10px;
    margin-left: 20px;
  }
}

.title {
  text-decoration: none;
  background-image: linear-gradient(60deg, #0b3f8b, #0b92a7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 6rem;
  font-family: var(--title);
  padding: 8px;
  font-size: 2.2rem;
  font-weight: 400;
}

h3 {
  width: 95%;
  font-family: var(--title);
  font-weight: 500;
  color: var(--gray-medium);
  margin-bottom: 5px;
}

/***** *TITULO DE LA LISTA* *****/
.title__list {
  margin-top: 1.2rem;
}

.text {
  width: 95%;
  font-family: var(--paragraph);
  color: var(--gray-medium);
  margin-bottom: 10px;
  text-align: left;
}

hr {
  color: var(--blue-light);
}

.paragraph {
  width: 95%;
  font-family: var(--paragraph);
  color: var(--gray-medium);
  margin-bottom: 10px;
  text-align: left;
}

.list {
  margin-left: 0;
}

span {
  color: var(--blue-medium);
  font-weight: 700;
}

.resumen {
  width: 95%;
  font-family: var(--paragraph);
  font-weight: 500;
  color: var(--gray-medium);
  margin-bottom: 5px;
}

/**** *GALERIA COMPARATIVA (imagenes)* ****/
.compare-gallery {
  width: 95%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.compare-gallery figure {
  flex: 1 1 200px;
  max-width: 260px;
  margin: 0;
  background: #ffffff;
  border-radius: 12px;
  border-bottom: 5px solid var(--blue-medium);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.compare-gallery figure:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--blue-light);
}

/* Selector con el contenedor por delante para ganar por especificidad y no
   por orden: más abajo, en la media query de 768, .container__content & img
   fija margin-top en 10px y pisaría estas reglas */
.container__content .compare-gallery img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #ffffff;
  margin-top: 0;
  padding: 10px;
  display: block;
}

/**** *Contenedor Principal de la Tabla* ****/
.table-container {
  width: 95%;
  margin: 20px 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow-x: auto; /* Permite desplazar la tabla si es más ancha que la pantalla */
}

.table-title {
  font-family: var(--title);
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--blue-dark);
  padding: 1.5rem 1rem;
  margin: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background-color: #2c3e50;
  color: #ffffff;
}

.comparison-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-family: var(--title);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.comparison-table tbody tr:hover {
  background-color: var(--blue-suave);
}

.comparison-table td {
  padding: 1.25rem 1.25rem;
  vertical-align: middle;
  font-family: var(--paragraph);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: #2c3e50;
  font-family: var(--title);
}

/******* *SIDEBAR* *******/
.container__content .sidebar {
  grid-area: sidebar;
  width: 400px;
  color: var(--graylight);
  background-color: #cad0db;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 130px;
  min-height: 200px;
}

.container__content .sidebar h3 {
  width: auto;
  font-size: 1.2rem;
  font-family: var(--paragraph);
  font-weight: 300;
}

/* *******FOOTER******* */
footer {
  position: relative;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  background-color: rgba(255, 255, 255, 0.158);
  border-left: 1px solid rgba(255, 255, 255, 0.664);
  border-top: 1px solid rgba(255, 255, 255, 0.664);
  border: 2px solid #fff;
  width: 100%;
  height: 100%;
}

.footer__container {
  overflow: hidden;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-right: 30px;
}

.partFooter {
  width: 20%;
  text-align: center;
}

.logo-footer {
  width: 150px;
}

.partFooter h4 {
  color: var(--blue-light);
  font-size: 1.3em;
  font-weight: 400;
  font-family: var(--title);
  margin-bottom: 0px;
}

.partFooter a {
  display: block;
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 500;
  transform: color 0.3s ease-in-out;
  margin-bottom: 10px;
  font-family: var(--paragraph);
}

.partFooter a:hover {
  color: var(--blue-transparent);
}

.social__media {
  display: flex;
  justify-content: space-between;
}
.social__media a {
  display: inline-block;
  margin: 0px;
  width: 190px;
  transition: 1s;
  cursor: pointer;
  animation: move 6s ease-in-out infinite;
}

.social__media a img {
  width: 60px;
}

.social__media a:hover {
  box-shadow: 0 0 5px rgba(177, 203, 229, 0.877);
}

@keyframes move {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.footer__copy {
  position: absolute;
  width: 100%;
  height: 50px;
  text-align: center;
  font-size: 1em;
  font-family: var(--paragraph);
  font-weight: 300;
  color: var(--gray-medium);
  border-top: 2px solid #fff;

  & p {
    margin-top: 15px;
  }
}

/**** *RESPOSIVE* ****/
@media screen and (min-width: 992px) {
  /* ******CONTENT****** */
  .container--banner {
    max-width: 95%;
    width: 100%;
    height: 459px;
  }

  .banner--text {
    padding-top: 14%;
    position: relative;
    width: 60%;
  }

  .title--banner a {
    color: #fff;
    font-size: 2rem;
    font-family: var(--title);
    font-weight: 500;
    line-height: 1.2;
  }

  /***** *FOOTER* *****/
  .footer__container {
    margin-right: 30px;
  }

  .partFooter {
    width: 20%;
    text-align: center;
  }

  .logo-footer {
    width: 150px;
  }

  .social__media {
    margin-right: 40px;

    & a img {
      width: 45px;
    }
  }
}

@media screen and (max-width: 768px) {
  /**** *NAVIGATION* ****/
  .menu {
    height: 70px;
    width: 90%;
  }

  .logo {
    margin-left: 20px;
  }

  .menu__hamburguer {
    display: flex;
    height: 80%;
    padding: 0 8px;
    border-radius: 10px;
    margin-top: 10px;
    margin-right: 20px;
    border: 3px solid var(--blue-medium);
  }

  .menu__item {
    --clip: 0;
    overflow: hidden;
  }

  .menu__item--active {
    --transform: rotate(0);
    --background: var(--blue-medium);
  }

  .menu__item--show {
    background-color: var(--background);
  }

  .menu__links {
    position: fixed;
    max-width: 400px;
    width: 100%;
    top: 90px;
    bottom: 0;
    right: 0;
    background-color: var(--color-esqueleto-transparent);
    display: grid;
    grid-auto-rows: max-content;
    transform: translateX(100%);
  }

  .menu__links--show {
    transform: unset;
    width: 100%;
  }

  .menu__link {
    padding: 20px 0;
    padding-left: 30px;
    height: auto;
  }

  .menu__arrow {
    margin-left: 20px;
  }

  .menu__nesting {
    display: grid;
    position: unset;
    width: 100%;
    transform: translateY(0);
    height: 0;
    transition: height 0.3s;
  }

  .menu__link--inside {
    width: 90%;
    margin-left: auto;
    border-left: 1px solid var(--blue-light);
  }

  /******* *CONTENIDO* *******/
  .container__content {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    padding-top: 180px;

    grid-template-areas:
      "content content content"
      "sidebar sidebar sidebar";

    & img {
      margin-top: 10px;
    }
  }

  /******* *SIDEBAR* *******/
  .container__content .sidebar {
    width: 100%;
  }

  .container__content .sidebar h3 {
    font-size: 1.2rem;
    height: 300px;
    text-align: center;
  }

  /***** *FOOTER* *****/
  .footer__container {
    margin-right: 30px;
  }

  .partFooter {
    width: 20%;
    text-align: center;
  }

  .logo-footer {
    width: 150px;
  }

  .social__media {
    margin-right: 40px;

    & a img {
      width: 35px;
    }
  }
}

@media screen and (max-width: 600px) {
  /* ******NAVIGATION****** */
  .menu {
    height: 70px;
    width: 90%;
  }

  /* ****CONTENT**** */
  .title {
    font-size: 1.5rem;
  }

  .text {
    font-size: 0.9rem;
  }

  .paragraph {
    font-size: 0.9rem;
  }

  li {
    font-size: 0.9rem;
  }

  /* ****COMPARATIVE TABLE (vista tarjeta)**** */
  .table-title {
    font-size: 1.5rem;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tr {
    display: block;
    margin: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .comparison-table tbody tr:nth-child(even) {
    background-color: #ffffff;
  }

  .comparison-table td {
    display: block;
    text-align: right;
    padding: 0.9rem 1rem;
    padding-left: 45%;
    position: relative;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  .comparison-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: calc(45% - 1.5rem);
    white-space: nowrap;
    text-align: left;
    font-weight: 600;
    font-family: "Kanit", sans-serif;
    color: #0b3f8b;
  }

  /* *******FOOTER******* */
  .footer__container {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .partFooter {
    width: 100%;
    justify-content: center;
  }

  .menu2 {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo-footer {
    width: 100px;
    margin-left: 25px;
  }

  .partFooter h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-left: 40px;
  }

  .partFooter a {
    font-size: 0.9rem;
    margin-left: 20px;
  }

  .social__media {
    width: 100%;
  }
  .social__media a img {
    width: 40px;
  }
}

@media screen and (max-width: 400px) {
  /* ******NAVIGATION****** */
  .menu {
    height: 70px;
    width: 90%;
  }

  /* ***** CONTENT ***** */
  h3 {
    font-size: 1.1rem;
  }
}
