/* ============================================================
   TABLE-HOSTING.CSS – versión final centrada / alineada izquierda
   ============================================================ */

.table-hosting__item {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 20px 60px rgba(15, 0, 40, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.table-hosting__item:hover {
  box-shadow: 0 25px 70px rgba(15, 0, 40, 0.15);
  transform: translateY(-3px);
}

/* --- Columnas base --- */
.table-hosting__col {
  flex: 1;
  padding: 20px;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centradas verticalmente */
  text-align: left;
}

.table-hosting__col:last-child {
  border-right: none;
}

/* --- Columna 1: logo --- */
.table-hosting__col--logo {
  flex: 0 0 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 🔹 Logo escritorio (más ancho y altura automática) */
.table-hosting__logo {
  width: 150px;        /* más ancho en desktop */
  height: auto;        /* alto proporcional */
  margin-bottom: 4px;
  object-fit: contain; /* asegura proporciones sin deformar */
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* ✨ Efecto hover */
.table-hosting__logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 🔹 Título del hosting */
.table-hosting__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #000;
  text-align: center;
}


/* --- Columnas 2 y 3 --- */
.table-hosting__col--features,
.table-hosting__col--details {
  align-items: flex-start; /* alineado interno a la izquierda */
  justify-content: center; /* centradas verticalmente */
}

.table-hosting__col--features {
  flex: 0 0 40%;
}

.table-hosting__col--details {
  flex: 0 0 25%;
}

/* --- Filas tipo ficha técnica --- */
.table-hosting__row {
  display: flex;
  align-items: flex-start;
  margin: 5px 0;
}

.table-hosting__row i {
  color: #007bff;
  font-size: 16px;
  margin-right: 8px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Bloque texto --- */
.table-hosting__info {
  display: block;
  text-align: left;
}

.table-hosting__info dt {
  font-weight: 600;
  color: #000;
  margin: 0;
  display: inline;
}

.table-hosting__info dd {
  margin: 0;
  display: inline;
  color: #333;
  line-height: 1.7;
  white-space: normal;
  text-align: left;
}

/* --- Columna 4 (precio) --- */
.table-hosting__col--price {
  flex: 0 0 20%;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.table-hosting__score {
  font-size: 26px;
  color: #007bff;
  font-weight: 700;
  margin: 0;
}

.table-hosting__rating {
  font-size: 15px;
  color: #28a745;
  margin: 0;
}

.table-hosting__price {
  font-size: 18px;
  color: #d9534f;
  font-weight: 700;
  margin: 0;
}

.table-hosting__discount {
  font-size: 13px;
  color: #28a745;
  margin: 4px 0 10px 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1400px) {
  .table-hosting__item {
    flex-wrap: wrap;
  }

  .table-hosting__col {
    flex: 1 1 100%;
    border-right: none !important;
    border-bottom: 1px solid #e5e5e5;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start; /* se alinea arriba */
  }

  .table-hosting__col--logo {
    align-items: center;
    justify-content: center;
    border-bottom: none;
    text-align: center;
  }

  /* 🔹 Logo tablet (más alto) */
  .table-hosting__logo {
    width: auto;
    height: 80px;
  }

  .table-hosting__col--price {
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .table-hosting__item {
    flex-direction: column;
  }

  .table-hosting__col {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    align-items: flex-start;
    text-align: left;
  }

  /* 🔹 Logo móvil (más alto) */
  .table-hosting__logo {
    width: auto;
    height: 60px;
  }

  .table-hosting__info dt,
  .table-hosting__info dd {
    display: block;
  }

  .table-hosting__col--price {
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
.table-hosting__item a:hover {
  opacity: 0.9;
}


/* ============================================================
   🎨 TARJETAS DEL RANKING HOSTING EN CHILE 2025
   ============================================================ */

/* 🧱 Estructura base de las tarjetas */
.card-hosting-ranking {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 25px 20px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  transition: all 0.3s ease;
}

.card-hosting-ranking:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   🖼️ LOGO
   ============================================================ */
.logo-wrapper-ranking {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  margin-bottom: 4px; /* 🔹 Menor separación respecto al título */
}

.logo-wrapper-ranking img {
  max-height: 110px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-wrapper-ranking img:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

/* ============================================================
   🔤 TÍTULO DE EMPRESA
   ============================================================ */
.card-hosting-ranking h3 {
  margin: 8px 0 10px 0;
}

.card-hosting-ranking h3 a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s ease;
}

.card-hosting-ranking h3 a:hover {
  color: #6c2bd9;
}

/* ============================================================
   📋 LISTAS DE FEATURES
   ============================================================ */
.card-hosting-ranking ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.card-hosting-ranking ul li {
  font-size: 15px;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* ============================================================
   💰 PLANES DE HOSTING (nombre + precio)
   ============================================================ */
.card-hosting-ranking .plan-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 4px;
  row-gap: 0;
  margin-bottom: 2px;
  line-height: 1.15; /* 🔹 Muy compacto pero legible */
}

.card-hosting-ranking .plan-row div:first-child {
  text-align: left;
  font-weight: 500;
  color: #333;
}

.card-hosting-ranking .plan-row div:last-child {
  text-align: right;
  font-weight: 700;
  color: #444;
}

/* ============================================================
   📱 RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .card-hosting-ranking {
    min-height: 520px;
    padding: 20px 15px;
  }

  .logo-wrapper-ranking {
    height: 100px;
  }

  .logo-wrapper-ranking img {
    max-height: 90px;
  }

  .card-hosting-ranking h3 a {
    font-size: 18px;
  }
}
