
/* === ESTILO BLOG PRO (mantiene tamaño original de letra) === */

.contenido-centrado {
  max-width: 850px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Estructura general */
.entrada-pro {
  font-family: inherit; /* mantiene la fuente y tamaño por defecto */ 
  color: #333;
  line-height: 1.8;
}

.entrada-header {
  text-align: center;
  margin-bottom: 3rem;
}

.entrada-titulo {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--secundario);
  margin-bottom: 0.8rem;
}

.entrada-meta {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entrada-imagen img {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

/* Contenido — se respeta tamaño de letra original */
.entrada-contenido p {
  margin-bottom: 1.5rem;
  font-size: inherit; /* mantiene tu tamaño base */
  line-height: 1.7;
}

.entrada-contenido h2, .entrada-contenido h3 {
  color: var(--negro);
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

/* === BLOQUE DE AUTOR === */
.autor-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(179, 23, 23, 0.04);
}

.autor-avatar img {
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.autor-nombre {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-secundario, #443b4c);
  margin-bottom: 0.3rem;
}

.autor-descripcion {
  color: var(--color-secundario);
  font-size: inherit; /* igual que tu contenido */
  line-height: 1.6;
}

/* === EFECTOS DE ANIMACIÓN === */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease-in forwards;
  animation-delay: 0.3s;
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* Reveal on scroll. // ANIMACION LETRAS CONTENIDO */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: none; /* No animar hasta que sea visible */
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

/* ===============================
   FIX FORMULARIO CONTACTO
   =============================== */

.wpcf7-form p {
  margin-bottom: 1.5rem;
}

.wpcf7-form label {
  display: block;              /* 🔥 fuerza que no se parta */
  width: 100%;
  font-weight: 600;
  margin-bottom: .5rem;
  text-align: left;            /* evita centrados heredados */
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

/* Seguridad extra para tablet */
@media (max-width: 1024px) {
  
  .wpcf7-form label {
    display: block;
    width: 100%;
    text-align: left;
  }

}
/* ===============================
   FIX CHECKBOX CONTACT FORM 7
   =============================== */

.wpcf7-checkbox .wpcf7-list-item {
  display: flex;          /* 🔥 alinea checkbox + texto */
  align-items: flex-start;
  gap: .8rem;
  margin: 0;
}

.wpcf7-checkbox input[type="checkbox"] {
  width: auto;            /* evita que tome 100% */
  margin-top: .3rem;      /* pequeño ajuste visual */
}

.wpcf7-list-item-label {
  display: inline;
  text-align: left;
}

/* Evita centrado heredado */
.wpcf7-form p {
  text-align: left;
}




/* === LAYOUT CON SIDEBAR === */
.layout-blog {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* === Subtítulos y texto destacado dentro del contenido del blog === */
.entrada-contenido strong,
.entrada-contenido b {
  color: var(--negro);
  font-weight: 700;
}

/* Si también quieres que los subtítulos H2 / H3 del contenido tengan ese tono */
.entrada-contenido h2,
.entrada-contenido h3 {
  color: var(--negro);
}


.sidebar-blog {
  background: #fafafa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 2rem;
}

.sidebar-blog .widget {
  margin-bottom: 2rem;
}

.sidebar-blog .widget-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primario, #7a00aa);
  margin-bottom: 1rem;
  text-align: center;
}


/* === SIDEBAR CON ENTRADAS RECIENTES === */
.sidebar-blog {
  background: #fafafa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 2rem;
}

.sidebar-blog .widget-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primario, #7a00aa);
  text-align: center;
  margin-bottom: 1.5rem;
}

.sidebar-recientes {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.sidebar-post {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 0.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.sidebar-thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.sidebar-info {
  flex: 1;
}

.sidebar-title {
  display: block;
  font-size: 1.5rem; /* antes 0.95rem */
  font-weight: 600;
  color: var(--negro);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.sidebar-title:hover {
  color: var(--secundario); /* un tono más oscuro */
  text-decoration: underline;
}


.sidebar-title:hover {
  text-decoration: underline;
}

.sidebar-fecha {
  font-size: 0.8rem;
  color: #888;
}

/* === TÍTULO DEL SIDEBAR ("Entradas recientes") === */
.sidebar-blog .widget-title,
.widget h3,
.sidebar .widget-title {
  font-size: 1.6rem;         /* más grande: aprox 25-26px */
  font-weight: 00;          /* negrita real, no interpolada */
  color: var(--secundario);            /* púrpura legible (ajústalo a tu paleta) */
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;     /* mejora legibilidad */
  text-transform: uppercase; /* opcional: todo en mayúsculas */
  filter: contrast(120%) brightness(110%); /* mejora nitidez */
}

/* Contenedor general del contenido centrado */
.contenido-centrado {
  display: flex;
  justify-content: center;
  padding: 8rem 2rem;
}

/* Contenido interior */
.contenido-centrado .contenedor {
  width: min(90%, 900px);
  margin: 0 auto;
}

/* Imagen destacada centrada */
.contenido-centrado .imagen-destacada {
  text-align: center;
  margin-bottom: 4rem;
}

.contenido-centrado .imagen-destacada img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}


/* Blog contenido centrado si sidebar */
/* Título */
.contenido-centrado .titulo-pagina {
  font-family: var(--fuente-headings);
  font-size: 4.8rem;
  color: var(--secundario);
  text-align: center;
  margin-bottom: 4rem;
}

/* Contenido */
.contenido-centrado .entrada-contenido {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--negro);
}

.contenido-centrado .entrada-contenido h2,
.contenido-centrado .entrada-contenido h3 {
  color: var(--secundario);
  margin-top: 3rem;
}

.sidebar-blog {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.sidebar-blog.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .layout-blog {
    display: block !important; /* Fuerza flujo vertical natural */
  }

  .layout-blog article,
  .layout-blog .sidebar-blog,
  .layout-blog .contenido-centrado-comentarios,
  .layout-blog .cta-servicio {
    width: 100% !important;
    float: none !important;
    clear: both !important;
  }

  .contenido-centrado-comentarios {
    margin-top: 2rem;
    position: relative;
    z-index: 1; /* evita solapamiento */
  }

  .sidebar-blog {
    margin-top: 2rem;
    position: relative;
    z-index: 0;
  }
}


/* Subtitulo o letras en negrilla adaptado para varias líneas */
/* === ESCRITORIO: efecto original === */
@media (min-width: 769px) {
/* Texto en negrilla dorado */
.entrada-contenido strong {
    position: relative;
    display: inline-block;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--negro);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

/* Sombreado dorado detrás del texto */
.entrada-contenido strong::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0%;
    height: 0%;
    background: rgba(223, 205, 102, 0.377); /* sombra dorada suave */
    border-radius: 8px;
    transform: translate(-50%, -50%);
    transition: all 0.8s ease;
    z-index: -1;
}

/* Cuando aparece con animación */
.reveal.is-visible strong {
    opacity: 1;
    transform: scale(1);
}

.reveal.is-visible strong::before {
    width: 100%;
    height: 100%;
}

  /* Quitar el sombreado morado del strong dentro de las propiedades */
.listado-grid strong::before {
    content: none !important;
}


  .reveal.is-visible strong {
    opacity: 1;
    transform: scale(1);
  }

  .reveal.is-visible strong::before {
    width: 100%;
    height: 100%;
  }
}

/* === MÓVILES: flujo de texto adaptativo === */
@media (max-width: 768px) {
  .entrada-contenido strong {
    display: inline;        /* permite que el texto fluya en varias líneas */
    font-size: 1em;         /* opcional, ajuste para móvil */
    line-height: 1.4;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease-out;
    box-decoration-break: clone; /* fondo y bordes se repiten en varias líneas */
      background: rgba(223, 205, 102, 0.377); /* sombra dorada suave */
    border-radius: 6px;
    padding: 0 0.15em;
  }

  .reveal.is-visible strong {
    opacity: 1;
    transform: scale(1);
  }
}
/* Quitar sombreado morado para strong dentro de .listado-grid SOLO en móviles */
@media (max-width: 768px) {
  .listado-grid strong {
       background: none !important;
       padding: 0 !important;
       border-radius: 0 !important;
       box-shadow: none !important;
  }
}

/* Estilo del autor */
.meta-autor-pro {
  display: flex;
  justify-content: center;
  gap: .8rem;
  align-items: center;
  font-size: .85rem;
  color: #777;
  margin: 1rem 0 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.meta-autor-pro .autor {
  color: var(--secondary);
}

.meta-autor-pro .separador {
  opacity: .4;
}

