/* ===== Autor ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.autor-single { background: #f6f7fb; }

/* HERO */
.autor-hero {
  position: relative;
  padding: 36px 0 24px;
}
.autor-hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(1200px 240px at 20% 0%,
              rgba(16,24,40,.45) 0%, rgba(11,16,28,.6) 30%, rgba(11,16,28,.85) 100%),
              url('') no-repeat center/cover;
  /* si quieres fondo fijo, puedes inyectarlo inline desde PHP si tienes banner */
}
.autor-hero__content {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 100%);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center; gap: 16px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}
.autor-hero__avatar img {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  margin-left: 10%;
}
.autor-hero__title {
  margin: 0 0 6px; font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15;
}
.autor-hero__bio {
  margin: 0; opacity: .95; font-weight: 500;
}

/* ARCHIVE (tarjetas) */
.autor-archive-wrap { padding: 24px 0 40px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
@media (max-width: 1024px){ .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .cards-grid { grid-template-columns: 1fr; } }

.post-card {
  border: 1px solid #e9ecf1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(16,24,40,.06);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,24,40,.12); }
.post-card__link { color: inherit; text-decoration: none; display: block; }
.post-card__media img { width: 100%; height: 180px; object-fit: cover; display: block; }
.post-card__body { padding: 12px 14px 14px; }
.post-card__title { margin: 0 0 6px; font-weight: 800; font-size: 18px; line-height: 1.25; }
.post-card__meta { font-size: 13px; color: #667085; margin-bottom: 6px; }
.post-card__ex { margin: 0; color: #101828; }

/* Paginación */
.autor-pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 18px;
}
.autor-pagination a, .autor-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 999px; border: 1px solid #e6e8eb; background: #fff;
  font-weight: 700; text-decoration: none; color: #0f172a;
}
.autor-pagination .current { background: #2563eb; border-color: #2563eb; color: #fff; }

/* Varios */
.autor-empty { background:#fff; border:1px solid #e6e8eb; border-radius: 12px; padding: 18px; }


/*PRIMER FIX*/

/* --- Fix hero: solo dentro del contenedor --- */
.autor-hero { background: transparent; }
.autor-hero__bg { display: none !important; } /* por si queda en el markup */

.autor-hero__content{
  /* mantenemos el look glass/dark dentro del contenedor */
  background: radial-gradient(900px 260px at -10% -40%, rgba(255,255,255,.08), transparent),
              linear-gradient(180deg, #0c2b4f, #0a2546);
  border: 1px solid rgba(255,255,255,.18);
  color: #e9eef7;
}


/*SEGUNDO FIX*/

/* --- Card estilo Noticias/Artículos --- */
.post-card {
  border: 1px solid #e9ecf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16,24,40,.06);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16,24,40,.10); }

.post-card__link { display:block; color:inherit; text-decoration:none; }

.post-card__media img{
  width:100%; height:190px; object-fit:cover; display:block;
}

.post-card__body{ padding: 14px 16px 16px; }

.post-card__badge{
  display:inline-block;
  background:#0b3a63; color:#fff; font-weight:700; font-size:12px;
  border-radius: 999px; padding: 8px 12px;
  box-shadow: 0 6px 18px rgba(11,58,99,.25);
  margin: 0 0 10px;
}

.post-card__title{
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  color: #0f172a;
}

.post-card__meta{
  display:flex; align-items:center; gap:8px;
  color:#64748b; font-size:13px; font-weight:600;
}
.post-card__meta .dot{ opacity:.6; }


/*BOTONES REDES AUTORES*/

/* ======================
   Botones hero (Autor)
   Soporta:
   - .autor-hero__btn autor-hero__btn--ln / --mail
   - .btn-icon .btn-icon--li / --mail
   ====================== */

.autor-hero__actions{
  margin-top:10px;
  display:flex;
  gap:10px;
}

/* Base de botón redondo */
.autor-hero__btn,
.btn-icon{
  position:relative;
  width:38px; height:38px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  background:linear-gradient(180deg,#0ea5e9 0%, #2563eb 100%);
  box-shadow:0 6px 14px rgba(14,165,233,.35);
  color:#fff; text-decoration:none; 
  border:0;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  overflow:hidden;
  font-size:0; /* oculta cualquier texto tipo 'in' o 'mail' que venga en el markup */
}
.autor-hero__btn:hover,
.btn-icon:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(14,165,233,.45);
  filter:brightness(1.02);
}
.autor-hero__btn:focus-visible,
.btn-icon:focus-visible{
  outline:2px solid #93c5fd;
  outline-offset:2px;
}

/* Icono con mascarilla SVG */
.autor-hero__btn::before,
.btn-icon::before{
  content:"";
  width:18px; height:18px;
  background:#fff;
  mask-repeat:no-repeat; -webkit-mask-repeat:no-repeat;
  mask-position:center; -webkit-mask-position:center;
  mask-size:contain; -webkit-mask-size:contain;
  display:block;
}

/* LinkedIn */
.autor-hero__btn--ln::before,
.btn-icon--li::before{
  /* ‘in’ oficial */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M100.28 448H7.4V148.9h92.88zm-46.44-340.7C24.22 107.3 0 83.05 0 53.64A53.64 53.64 0 0 1 53.64 0c29.43 0 53.64 24.22 53.64 53.64 0 29.41-24.21 53.66-53.44 53.66zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.27-79.2-48.3 0-55.7 37.7-55.7 76.6V448H158.6V148.9h88.9v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.4 61.9 111.4 142.3V448z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M100.28 448H7.4V148.9h92.88zm-46.44-340.7C24.22 107.3 0 83.05 0 53.64A53.64 53.64 0 0 1 53.64 0c29.43 0 53.64 24.22 53.64 53.64 0 29.41-24.21 53.66-53.44 53.66zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.27-79.2-48.3 0-55.7 37.7-55.7 76.6V448H158.6V148.9h88.9v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.4 61.9 111.4 142.3V448z'/></svg>");
}

/* Email */
.autor-hero__btn--mail::before,
.btn-icon--mail::before{
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M502.3 190.8 327.4 338.5c-20.1 16.8-50.7 16.8-70.8 0L9.7 190.8C3.9 186 0 178.8 0 171V96c0-35.3 28.7-64 64-64h384c35.3 0 64 28.7 64 64v75c0 7.8-3.9 15-9.7 19.8zM480 176V96c0-17.7-14.3-32-32-32H64C46.3 64 32 78.3 32 96v80l192 160c16.1 13.4 39.9 13.4 56 0L480 176zM480 224v192c0 17.7-14.3 32-32 32H64c-17.7 0-32-14.3-32-32V224l176 146.7c28.1 23.4 69 23.4 97.1 0L480 224z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M502.3 190.8 327.4 338.5c-20.1 16.8-50.7 16.8-70.8 0L9.7 190.8C3.9 186 0 178.8 0 171V96c0-35.3 28.7-64 64-64h384c35.3 0 64 28.7 64 64v75c0 7.8-3.9 15-9.7 19.8zM480 176V96c0-17.7-14.3-32-32-32H64C46.3 64 32 78.3 32 96v80l192 160c16.1 13.4 39.9 13.4 56 0L480 176zM480 224v192c0 17.7-14.3 32-32 32H64c-17.7 0-32-14.3-32-32V224l176 146.7c28.1 23.4 69 23.4 97.1 0L480 224z'/></svg>");
}

/* Variante “oscura” para fondos muy claros (opcional) */
.autor-hero__btn.is-inverted,
.btn-icon.is-inverted{
  background:linear-gradient(180deg,#0b5bd3 0%, #0a3ea9 100%);
  box-shadow:0 6px 14px rgba(37,99,235,.35);
}

/* Ajuste del título debajo del hero */
.autor-archive__title{ margin: 16px 0 18px; }


/* --- Anti-duplicado de iconos en botones del hero --- */
/* Oculta cualquier texto o <i>/<svg>/<span> que el tema meta dentro del <a> */
.autor-hero__btn,
.btn-icon{
  font-size: 0 !important;      /* oculta texto literal tipo "in", "mail" */
  line-height: 0 !important;
}
.autor-hero__btn > i,
.autor-hero__btn > span,
.autor-hero__btn > svg,
.btn-icon > i,
.btn-icon > span,
.btn-icon > svg{
  display: none !important;      /* oculta íconos del tema para evitar el doble */
}

/* Por si algún estilo previo inyecta imágenes de fondo */
.autor-hero__btn::before,
.btn-icon::before{
  background-image: none !important;
}


/*FIX PAR AMOBILE*/

/* ========== Mobile polish (Autor) ========== */

/* Gutter adaptable con safe-area (iPhone con notch, etc.) */
:root{
  --autor-gutter: max(16px, 4vw);
}
@supports(padding:max(0px)){
  :root{
    --autor-gutter: max(16px, 4vw, env(safe-area-inset-left), env(safe-area-inset-right));
  }
}

/* Contenedor autor: padding lateral cómodo en mobile */
@media (max-width: 768px){
  .autor-single .container{
    padding-left: var(--autor-gutter);
    padding-right: var(--autor-gutter);
	margin: 0 5%;
  }
}

/* HERO */
@media (max-width: 768px){
  .autor-hero{ padding: 20px 0 14px; }

  .autor-hero__content{
    grid-template-columns: 1fr;       /* avatar arriba, texto abajo */
    text-align: left;
    gap: 12px;
    padding: 14px 16px;               /* menos denso en móvil */
	text-align: center;
  }

  .autor-hero__avatar img{
    width: 64px; height: 64px;        /* avatar un poco más pequeño */
	margin: 0;
  }

  .autor-hero__title{
    font-size: clamp(20px, 5.5vw, 26px);
    margin-bottom: 4px;
  }
  .autor-hero__bio{
    font-size: 14px;
    line-height: 1.55;
  }

  /* Botones (LinkedIn / Email): área táctil y separación */
  .autor-hero__actions{
    margin-top: 10px;
    gap: 10px;
	justify-content: center;
  }
  .autor-cta,
  .btn-icon{
    width: 44px; height: 44px;        /* target táctil recomendado */
    box-shadow: 0 6px 14px rgba(0,0,0,.10);
  }
}

/* Título del listado */
@media (max-width: 768px){
  .autor-archive__title{
    margin: 12px 0 10px !important;
    padding-left: 2px;                 /* micro-afinación óptica */
    font-size: 18px;
  }
}

/* Grid de tarjetas */
@media (max-width: 1024px){
  .cards-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px){
  .cards-grid{ grid-template-columns: 1fr; gap: 14px; }
  .post-card{ border-radius: 12px; }
  .post-card__media img{ height: 160px; }
  .post-card__body{ padding: 12px 14px 14px; }
  .post-card__title{ font-size: 17px; }
  .post-card__meta{ font-size: 12.5px; }
}

/* Paginación: botones cómodos para el dedo */
@media (max-width: 768px){
  .autor-pagination{ gap: 6px; }
  .autor-pagination a,
  .autor-pagination span{
    min-width: 40px; height: 40px; padding: 0 12px;
    font-size: 14px; border-radius: 999px;
  }
}

/* Reduce/elimina “elevación” exagerada en móviles */
@media (hover: none){
  .post-card:hover{ transform: none; box-shadow: 0 6px 20px rgba(16,24,40,.06); }
}

/* Por si el fondo del hero “sangra” al borde en pantallas muy pequeñas */
@media (max-width: 480px){
  .autor-hero__content{ border-radius: 14px; }
}
