/* =========================================================
   TOME PAL PINTO — MODERN LITE 2026
   Gridlove 2.1.2 / Mobile First / SEO + AdSense Safe
   Diseño premium ligero + widgets naranjas
   ========================================================= */

:root {
  --tpp-orange: #ff7a00;
  --tpp-orange-dark: #f05f00;
  --tpp-orange-soft: rgba(255, 122, 0, 0.10);
  --tpp-text: #222222;
  --tpp-text-soft: #555555;
  --tpp-border: #e9e9e9;
  --tpp-white: #ffffff;
  --tpp-radius: 10px;
  --tpp-radius-large: 14px;
  --tpp-shadow: 0 6px 18px rgba(0, 0, 0, 0.055);
  --tpp-shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.085);
}

/* =========================================================
   BASE VISUAL SUAVE
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  transition: color 0.18s ease, opacity 0.18s ease;
}

/* =========================================================
   OCULTAR AUTOR
   ========================================================= */

.blog-post-author {
  display: none !important;
}

/* =========================================================
   IMÁGENES MÁS MODERNAS
   Redondeo suave, sin afectar logos, avatares ni emojis
   ========================================================= */

.single-post .entry-content img:not(.emoji):not(.wp-smiley):not(.avatar),
.page .entry-content img:not(.emoji):not(.wp-smiley):not(.avatar),
.wp-block-image img,
.wp-block-gallery img,
.gallery img,
.wp-post-image,
.entry-image img,
.gridlove-post img,
.gridlove-module img,
.gridlove-cover img,
.gridlove-box img {
  max-width: 100%;
  height: auto;
  border-radius: var(--tpp-radius);
}

/* Contenedores de imagen */
.entry-image,
.gridlove-post .entry-image,
.gridlove-module .entry-image,
.gridlove-cover-area,
.gridlove-cover,
.gridlove-box .entry-image {
  border-radius: var(--tpp-radius);
  overflow: hidden;
}

/* No redondear logos ni elementos de marca */
.custom-logo,
.site-logo img,
.logo img,
.header-logo img,
.gridlove-logo img,
.gridlove-site-branding img,
img.custom-logo,
img.avatar,
img.emoji,
img.wp-smiley {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   CARDS MÁS LIMPIAS, SIN CAMBIAR ESTRUCTURA
   ========================================================= */

.gridlove-box,
.gridlove-post,
.gridlove-module,
.gridlove-post-a,
.gridlove-post-b,
.gridlove-post-c,
.gridlove-post-d {
  border-radius: var(--tpp-radius-large);
  overflow: hidden;
}

.gridlove-box,
.gridlove-post {
  box-shadow: var(--tpp-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (min-width: 768px) {
  .gridlove-box:hover,
  .gridlove-post:hover {
    transform: translateY(-2px);
    box-shadow: var(--tpp-shadow-hover);
  }
}

.gridlove-module {
  margin-bottom: 32px;
}

.gridlove-post {
  margin-bottom: 20px;
}

/* =========================================================
   TÍTULOS MÁS LEGIBLES
   SEO SAFE: no oculta H1, H2 ni títulos
   ========================================================= */

.entry-title,
.gridlove-post .entry-title,
.gridlove-box .entry-title,
.gridlove-module .entry-title {
  line-height: 1.18;
  letter-spacing: -0.2px;
}

.entry-title a,
.gridlove-post .entry-title a,
.gridlove-box .entry-title a {
  text-decoration: none;
}

/* =========================================================
   CATEGORÍAS / ETIQUETAS MÁS FINAS
   ========================================================= */

.entry-category a,
.meta-category a,
.gridlove-cat,
.cat-links a,
.gridlove-post .meta-category a {
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* =========================================================
   SIDEBAR / WIDGETS PREMIUM
   Últimas Noticias, Lo + Leído, Síguenos, etc.
   ========================================================= */

.gridlove-sidebar .widget,
#recent-posts-2,
#top-posts-2,
.widget_recent_entries,
.widget_top-posts,
.widget_popular_posts,
.widget_most_viewed_entries {
  box-sizing: border-box;
  padding: 0;
  background: var(--tpp-white);
  border: 1px solid var(--tpp-border);
  border-radius: var(--tpp-radius-large);
  box-shadow: var(--tpp-shadow);
  overflow: hidden;
}

/* Títulos de widgets estilo premium naranja */
.gridlove-sidebar .widget-title,
#recent-posts-2 .widget-title,
#top-posts-2 .widget-title,
.widget_recent_entries .widget-title,
.widget_top-posts .widget-title,
.widget_popular_posts .widget-title,
.widget_most_viewed_entries .widget-title {
  margin: 0;
  padding: 12px 16px;

  color: #ffffff;
  background: linear-gradient(90deg, var(--tpp-orange-dark) 0%, var(--tpp-orange) 100%);

  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;

  border: 0;
}

/* Listas */
.gridlove-sidebar .widget ul,
#recent-posts-2 ul,
#top-posts-2 ul,
.widget_recent_entries ul,
.widget_top-posts ul,
.widget_popular_posts ul,
.widget_most_viewed_entries ul {
  margin: 0;
  padding: 10px 14px 12px;
  list-style: none;
}

/* Items */
.gridlove-sidebar .widget ul li,
#recent-posts-2 ul li,
#top-posts-2 ul li,
.widget_recent_entries ul li,
.widget_top-posts ul li,
.widget_popular_posts ul li,
.widget_most_viewed_entries ul li {
  position: relative;
  margin: 0;
  padding: 12px 0;
  color: var(--tpp-text-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  border-bottom: 1px solid #eeeeee;
}

/* Último item sin línea */
.gridlove-sidebar .widget ul li:last-child,
#recent-posts-2 ul li:last-child,
#top-posts-2 ul li:last-child,
.widget_recent_entries ul li:last-child,
.widget_top-posts ul li:last-child,
.widget_popular_posts ul li:last-child,
.widget_most_viewed_entries ul li:last-child {
  border-bottom: 0;
}

/* Enlaces */
.gridlove-sidebar .widget ul li a,
#recent-posts-2 ul li a,
#top-posts-2 ul li a,
.widget_recent_entries ul li a,
.widget_top-posts ul li a,
.widget_popular_posts ul li a,
.widget_most_viewed_entries ul li a {
  color: var(--tpp-text);
  text-decoration: none;
  transition: color 0.18s ease;
}

@media (hover: hover) {
  .gridlove-sidebar .widget ul li a:hover,
  #recent-posts-2 ul li a:hover,
  #top-posts-2 ul li a:hover,
  .widget_recent_entries ul li a:hover,
  .widget_top-posts ul li a:hover,
  .widget_popular_posts ul li a:hover,
  .widget_most_viewed_entries ul li a:hover {
    color: var(--tpp-orange);
  }
}

/* =========================================================
   ÚLTIMAS NOTICIAS Y LO MÁS LEÍDO CON NUMERACIÓN PREMIUM
   ========================================================= */

#recent-posts-2 ul,
#top-posts-2 ul,
.widget_recent_entries ul,
.widget_top-posts ul,
.widget_popular_posts ul,
.widget_most_viewed_entries ul {
  counter-reset: tpp-widget-counter;
}

#recent-posts-2 ul li,
#top-posts-2 ul li,
.widget_recent_entries ul li,
.widget_top-posts ul li,
.widget_popular_posts ul li,
.widget_most_viewed_entries ul li {
  padding-left: 40px;
}

#recent-posts-2 ul li::before,
#top-posts-2 ul li::before,
.widget_recent_entries ul li::before,
.widget_top-posts ul li::before,
.widget_popular_posts ul li::before,
.widget_most_viewed_entries ul li::before {
  content: counter(tpp-widget-counter, decimal-leading-zero);
  counter-increment: tpp-widget-counter;

  position: absolute;
  top: 12px;
  left: 0;

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

  width: 28px;
  height: 28px;

  color: #ffffff;
  background: var(--tpp-orange);

  font-size: 12px;
  font-weight: 900;
  line-height: 1;

  border-radius: 8px;
}

/* Fechas o metadatos si aparecen */
#recent-posts-2 .post-date,
#top-posts-2 .post-date,
.widget_recent_entries .post-date,
.widget_top-posts .post-date,
.widget_popular_posts .post-date,
.widget_most_viewed_entries .post-date,
#recent-posts-2 .entry-meta,
#top-posts-2 .entry-meta,
.widget_recent_entries .entry-meta,
.widget_top-posts .entry-meta,
.widget_popular_posts .entry-meta,
.widget_most_viewed_entries .entry-meta {
  display: block;
  margin-top: 5px;
  color: #999999;
  font-size: 11px;
  font-weight: 400;
}

/* Miniaturas si el widget las trae */
#recent-posts-2 img,
#top-posts-2 img,
.widget_recent_entries img,
.widget_top-posts img,
.widget_popular_posts img,
.widget_most_viewed_entries img {
  width: 72px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

/* Botón ver más si existe */
#recent-posts-2 .more-link,
#top-posts-2 .more-link,
.widget_recent_entries .more-link,
.widget_top-posts .more-link,
.widget_popular_posts .more-link,
.widget_most_viewed_entries .more-link,
#recent-posts-2 .widget-more,
#top-posts-2 .widget-more,
.widget_recent_entries .widget-more,
.widget_top-posts .widget-more,
.widget_popular_posts .widget-more,
.widget_most_viewed_entries .widget-more {
  display: block;
  margin: 4px 14px 14px;
  padding: 9px 12px;

  color: #333333;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;

  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

/* =========================================================
   ADSENSE + CORE WEB VITALS
   Reserva espacio para reducir saltos visuales
   ========================================================= */

.adsbygoogle,
ins.adsbygoogle {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

/* Anuncios dentro de notas */
.single-post .entry-content ins.adsbygoogle,
.single-post .entry-content .adsbygoogle {
  min-height: 250px;
  margin: 22px auto;
}

/* Contenedores comunes de anuncios */
.ad,
.ads,
.ad-container,
.ad-wrapper,
.adslot,
.gridlove-ad,
.gridlove-ad-slot {
  max-width: 100%;
  overflow: hidden;
}

/* =========================================================
   BOTÓN WHATSAPP
   ========================================================= */

.whatsapp-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  box-sizing: border-box;
}

.whatsapp-button a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  box-sizing: border-box;

  color: #ffffff;
  background: linear-gradient(90deg, #00e676 0%, #ffa726 100%);

  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;

  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);

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

.whatsapp-icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;

  background-image: url("https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media (hover: hover) {
  .whatsapp-button a:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
  }
}

/* =========================================================
   FOOTER MÁS LIMPIO
   ========================================================= */

.gridlove-footer,
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.gridlove-footer a,
.site-footer a {
  text-decoration: none;
}

/* =========================================================
   MOBILE FIRST
   Mejor lectura y estabilidad en teléfonos
   ========================================================= */

@media (max-width: 767px) {
  .entry-title,
  .gridlove-post .entry-title,
  .gridlove-box .entry-title,
  .gridlove-module .entry-title {
    line-height: 1.2;
    letter-spacing: -0.1px;
  }

  .gridlove-box,
  .gridlove-post,
  .gridlove-module,
  .gridlove-sidebar .widget {
    border-radius: 12px;
  }

  .gridlove-module {
    margin-bottom: 26px;
  }

  .entry-image img,
  .wp-post-image,
  .gridlove-post img,
  .gridlove-module img,
  .gridlove-box img {
    border-radius: 8px;
  }

  .gridlove-sidebar .widget,
  #recent-posts-2,
  #top-posts-2,
  .widget_recent_entries,
  .widget_top-posts,
  .widget_popular_posts,
  .widget_most_viewed_entries {
    padding: 0;
    border-radius: 13px;
  }

  .gridlove-sidebar .widget-title,
  #recent-posts-2 .widget-title,
  #top-posts-2 .widget-title,
  .widget_recent_entries .widget-title,
  .widget_top-posts .widget-title,
  .widget_popular_posts .widget-title,
  .widget_most_viewed_entries .widget-title {
    padding: 11px 14px;
    font-size: 13px;
  }

  .gridlove-sidebar .widget ul,
  #recent-posts-2 ul,
  #top-posts-2 ul,
  .widget_recent_entries ul,
  .widget_top-posts ul,
  .widget_popular_posts ul,
  .widget_most_viewed_entries ul {
    padding: 8px 12px 10px;
  }

  .gridlove-sidebar .widget ul li,
  #recent-posts-2 ul li,
  #top-posts-2 ul li,
  .widget_recent_entries ul li,
  .widget_top-posts ul li,
  .widget_popular_posts ul li,
  .widget_most_viewed_entries ul li {
    padding-left: 38px;
    font-size: 13.5px;
  }

  #recent-posts-2 ul li::before,
  #top-posts-2 ul li::before,
  .widget_recent_entries ul li::before,
  .widget_top-posts ul li::before,
  .widget_popular_posts ul li::before,
  .widget_most_viewed_entries ul li::before {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .single-post .entry-content ins.adsbygoogle,
  .single-post .entry-content .adsbygoogle {
    min-height: 280px;
    margin: 20px auto;
  }

  .whatsapp-button a {
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* =========================================================
   ACCESIBILIDAD Y RENDIMIENTO
   Reduce animaciones cuando el dispositivo lo solicita
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}