/*
 Theme Name:   Kale Pro - Child
 Template:     kale-pro
 Version:      1.1.0
 Text Domain:  kale-pro-child
*/
/* CONTENEDOR GENERAL */
.bloques-horoscopo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
}


@media (max-width: 768px) {
  .wp-theme-kale-pro .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* BLOQUE GENÉRICO (estructura común) */
.bloque-horoscopo {
  box-sizing: border-box;
  text-align: justify;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  flex: 1 1 100%; /* En móvil, una columna */
}

/* CABECERAS DE BLOQUE (h2 con icono e ítem) */
.bloque-horoscopo h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
}
.entry-content p:not(.has-text-align-left):not(.has-text-align-center):not(.has-text-align-right),
.page-content p:not(.has-text-align-left):not(.has-text-align-center):not(.has-text-align-right) {
    text-align: justify;
    hyphens: none;
}

/* IMÁGENES DE BLOQUE (iconos de sección) */
.bloque-horoscopo img {
  width: 57px;
  height: 57px;
  margin-right: 10px;
  vertical-align: middle;
}

/* DISEÑO EN ESCRITORIO */
@media screen and (min-width: 768px) {
  .bloques-horoscopo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
  }

  /* BLOQUES NORMALES: dos columnas */
  .bloques-horoscopo .bloque-horoscopo {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }

   /* CONSEJO DEL DÍA CENTRADO */
.bloque.consejo-dia {
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bloque.consejo-dia {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0 auto;
  text-align: center;
}


.bloque.consejo-dia p {
  max-width: 600px;
  margin: 10px auto 0 auto;
  font-weight: 600;
}
 /* CONSEJO DEL DÍA CENTRADO */
  .bloques-horoscopo .bloque-horoscopo.bloque-completo {
    margin-left: auto;
    margin-right: auto;
  }
	
	
	#back-to-top {
    position: fixed;
    bottom: 110px; /* ajustado para no pisar reCAPTCHA */
    right: 18px;
    background: #008b94;
    color: #fff;
    font-size: 20px;
    padding: 12px 14px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #00a7b0;
}
	
	   /* MAQUETACION DE TABLAS */

	


/* ===============================
   TABLA COMPARATIVA – ESTILO BASE
   =============================== */

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* ENCABEZADO */
.entry-content table thead th {
  background: #004376;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
}

/* CELDAS */
.entry-content table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid #eaeaea;
  line-height: 1.55;
}

/* PRIMERA COLUMNA (CARACTERÍSTICA) */
.entry-content table tbody td:first-child {
  font-weight: 600;
  color: #004376;
  background: #f2f6f7;
  width: 22%;
}

/* FILAS ALTERNAS */
.entry-content table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.entry-content table tbody tr:nth-child(even) td:first-child {
  background: #eef3f4;
}

/* HOVER SUAVE */
.entry-content table tbody tr:hover td {
  background: #eef6f3;
}

/* ===============================
   VERSIÓN MÓVIL – TARJETAS
   =============================== */

@media (max-width: 768px) {

  /* Reset estructura de tabla */
  .entry-content table,
  .entry-content table thead,
  .entry-content table tbody,
  .entry-content table tr {
    display: block;
    width: 100%;
  }

  .entry-content table thead {
    display: none;
  }

  .entry-content table {
    box-shadow: none;
    border-radius: 0;
  }

  /* Cada fila como tarjeta */
  .entry-content table tbody tr {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
  }

  /* Título de la tarjeta (Característica) */
  .entry-content table tbody td:first-child {
    display: block;
    width: auto;
    max-width: 100%;
    background: none;
    padding: 0;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 16px;
    color: #004376;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  /* Bloques de comparación */
  .entry-content table tbody td:nth-child(2),
  .entry-content table tbody td:nth-child(3) {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  /* Etiqueta + bloque Avena en grano */
  .entry-content table tbody td:nth-child(2) {
    background: #eef6f3;
    border-left: 4px solid #9fcfc3;
  }

  .entry-content table tbody td:nth-child(2)::before {
    content: "Avena en grano";
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #004376;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  /* Etiqueta + bloque Copos */
  .entry-content table tbody td:nth-child(3) {
    background: #f7f7f7;
    border-left: 4px solid #cccccc;
  }

  .entry-content table tbody td:nth-child(3)::before {
    content: "Copos de avena";
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #666666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
	
.wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.wp-block-table td,
.wp-block-table th {
  border-left: none;
  border-right: none;
}
	
