/* TP AUTOR PREVIEW V1 START */

body.page-id-4984{
  background:#f3f6f8;
}

body.page-id-4984 .site-content,
body.page-id-4984 .content-area,
body.page-id-4984 .site-main,
body.page-id-4984 .site-main > article,
body.page-id-4984 .site-main > article > .inside-article,
body.page-id-4984 .site-main > article > .inside-article > .entry-content{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

body.page-id-4984 .site.grid-container{
  width:100%!important;
  max-width:none!important;
}

body.page-id-4984 .entry-content > *{
  margin-top:0;
}

.tp-author-page{
  --navy:#06283f;
  --navy-soft:#0d3d5b;
  --blue:#357aa2;
  --blue-soft:#e8f1f5;
  --ink:#102b3c;
  --copy:#3c5361;
  --line:#d6e1e7;
  --paper:#ffffff;
  --warm:#f6f1e9;

  color:var(--copy);
  font-size:17px;
  line-height:1.68;
}

.tp-author-page *{
  box-sizing:border-box;
}

.tp-author-shell{
  width:min(1180px,calc(100% - 48px));
  margin-inline:auto;
}

.tp-author-label,
.tp-author-kicker{
  margin:0 0 13px;
  color:#6d91a5;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.tp-author-page h1,
.tp-author-page h2,
.tp-author-page h3{
  color:var(--ink);
  font-weight:500;
  letter-spacing:-.035em;
}

.tp-author-page h2{
  margin:0;
  font-size:clamp(38px,4vw,55px);
  line-height:1.08;
}

.tp-author-page h3{
  margin:0;
  font-size:25px;
  line-height:1.2;
}

.tp-author-hero{
  position:relative;
  overflow:hidden;
  padding:74px 0 82px;
  background:
    radial-gradient(circle at 75% 20%,rgba(87,155,191,.26),transparent 35%),
    var(--navy);
}

.tp-author-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(2,26,43,.22),
      transparent 55%
    );
}

.tp-author-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(390px,.88fr);
  gap:72px;
  align-items:center;
}

.tp-author-hero-copy{
  max-width:690px;
}

.tp-author-kicker{
  color:#b9d4e1;
}

.tp-author-hero h1{
  max-width:760px;
  margin:0;
  color:#fff;
  font-size:clamp(48px,5.2vw,76px);
  line-height:1.02;
  letter-spacing:-.052em;
}

.tp-author-lead{
  max-width:670px;
  margin:28px 0 0;
  color:#d9e6ec;
  font-size:21px;
  line-height:1.56;
}

.tp-author-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:36px;
}

.tp-author-button{
  display:inline-flex;
  min-height:52px;
  align-items:center;
  justify-content:center;
  padding:13px 21px;
  border:1px solid transparent;
  border-radius:7px;
  font-size:15px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none!important;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.tp-author-button:hover{
  transform:translateY(-2px);
}

.tp-author-button-primary{
  background:#fff;
  color:var(--navy)!important;
}

.tp-author-button-primary:hover{
  background:#eaf2f5;
}

.tp-author-button-secondary{
  border-color:rgba(255,255,255,.48);
  color:#fff!important;
}

.tp-author-button-secondary:hover{
  border-color:#fff;
  background:rgba(255,255,255,.08);
}

.tp-author-portrait{
  position:relative;
  margin:0;
}

.tp-author-portrait::before{
  content:"";
  position:absolute;
  top:-20px;
  right:-20px;
  width:58%;
  height:58%;
  border-top:1px solid rgba(255,255,255,.45);
  border-right:1px solid rgba(255,255,255,.45);
  pointer-events:none;
}

.tp-author-portrait img{
  display:block;
  width:100%;
  height:510px;
  object-fit:cover;
  object-position:center;
  border-radius:4px;
  box-shadow:0 30px 70px rgba(0,0,0,.3);
}

.tp-author-portrait figcaption{
  margin-top:13px;
  color:#aec8d5;
  font-size:13px;
  letter-spacing:.04em;
}

.tp-author-intro{
  padding:100px 0;
  background:#fff;
}

.tp-author-intro-grid{
  display:grid;
  grid-template-columns:minmax(280px,.73fr) minmax(0,1.27fr);
  gap:90px;
}

.tp-author-section-heading{
  max-width:480px;
}

.tp-author-intro-copy > p{
  max-width:760px;
  margin:0 0 22px;
}

.tp-author-text-large{
  color:var(--ink);
  font-size:26px;
  line-height:1.48;
}

.tp-author-roles{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
  margin-top:46px;
}

.tp-author-roles article{
  min-height:205px;
  padding:27px 24px;
  border-top:3px solid #76a7c1;
  background:#f5f8fa;
}

.tp-author-roles span,
.tp-author-number,
.tp-author-link-card > span{
  color:#7197aa;
  font-size:12px;
  font-weight:800;
  letter-spacing:.1em;
}

.tp-author-roles h3{
  margin-top:20px;
  font-size:23px;
}

.tp-author-roles p{
  margin:12px 0 0;
  font-size:15px;
  line-height:1.55;
}

.tp-author-principles{
  padding:100px 0;
  background:#edf3f6;
}

.tp-author-centered-heading{
  max-width:790px;
  margin:0 auto 50px;
  text-align:center;
}

.tp-author-centered-heading > p:last-child{
  margin:22px auto 0;
  max-width:720px;
  font-size:19px;
}

.tp-author-principle-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.tp-author-principle{
  min-height:330px;
  padding:38px 34px;
  background:#fff;
  border:1px solid #d6e2e8;
  box-shadow:0 15px 35px rgba(22,55,72,.05);
}

.tp-author-principle h3{
  margin-top:45px;
}

.tp-author-principle p{
  margin:17px 0 0;
}

.tp-author-quote{
  padding:88px 0;
  background:var(--navy);
}

.tp-author-quote blockquote{
  max-width:970px;
  margin:0 auto;
  padding:0;
  border:0;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(31px,3.5vw,49px);
  font-style:normal;
  line-height:1.28;
  text-align:center;
}

.tp-author-books{
  padding:102px 0;
  background:#fff;
}

.tp-author-books-heading{
  max-width:760px;
  margin-bottom:50px;
}

.tp-author-books-heading > p:last-child{
  margin:22px 0 0;
  max-width:680px;
  font-size:19px;
}

.tp-author-book-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}

.tp-author-book-card{
  display:flex;
  min-height:430px;
  flex-direction:column;
  padding:44px 40px;
  border:1px solid var(--line);
  background:#f7f9fa;
}

.tp-author-book-card-dark{
  border-color:var(--navy);
  background:var(--navy);
}

.tp-author-book-meta{
  margin:0;
  color:#6b91a4;
  font-size:12px;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.tp-author-book-card h3{
  margin-top:27px;
  font-size:38px;
}

.tp-author-book-card > p:not(.tp-author-book-meta){
  margin:20px 0 0;
  font-size:18px;
}

.tp-author-book-card-dark h3{
  color:#fff;
}

.tp-author-book-card-dark > p:not(.tp-author-book-meta){
  color:#d6e4ea;
}

.tp-author-card-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-top:auto;
  padding-top:38px;
}

.tp-author-card-actions a{
  color:var(--blue)!important;
  font-weight:800;
  text-decoration:none!important;
}

.tp-author-book-card-dark .tp-author-card-actions a{
  color:#fff!important;
}

.tp-author-card-actions a::after{
  content:" →";
}

.tp-author-beyond{
  padding:100px 0;
  background:var(--warm);
}

.tp-author-link-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.tp-author-link-card{
  display:flex;
  min-height:330px;
  flex-direction:column;
  padding:33px 31px;
  border:1px solid #ded8cf;
  background:#fff;
  color:var(--copy)!important;
  text-decoration:none!important;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.tp-author-link-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(53,43,27,.1);
}

.tp-author-link-card h3{
  margin-top:34px;
}

.tp-author-link-card p{
  margin:17px 0 0;
}

.tp-author-link-card strong{
  margin-top:auto;
  padding-top:28px;
  color:var(--blue);
  font-size:15px;
}

.tp-author-link-card strong::after{
  content:" →";
}

.tp-author-final{
  padding:84px 0;
  background:#fff;
}

.tp-author-final-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:65px;
  align-items:center;
  padding:55px 58px;
  background:var(--navy);
}

.tp-author-final h2{
  max-width:720px;
  color:#fff;
  font-size:clamp(37px,4.2vw,55px);
}

.tp-author-final p:not(.tp-author-label){
  max-width:730px;
  margin:19px 0 0;
  color:#d8e5eb;
  font-size:18px;
}

.tp-author-final .tp-author-button{
  min-width:205px;
}

@media(max-width:980px){
  .tp-author-hero-grid{
    grid-template-columns:minmax(0,1fr) 360px;
    gap:42px;
  }

  .tp-author-hero h1{
    font-size:53px;
  }

  .tp-author-intro-grid{
    grid-template-columns:1fr;
    gap:45px;
  }

  .tp-author-section-heading{
    max-width:720px;
  }

  .tp-author-roles,
  .tp-author-principle-grid,
  .tp-author-link-grid{
    grid-template-columns:1fr;
  }

  .tp-author-roles article,
  .tp-author-principle,
  .tp-author-link-card{
    min-height:0;
  }
}

@media(max-width:760px){
  .tp-author-shell{
    width:calc(100% - 36px);
  }

  .tp-author-hero{
    padding:54px 0 60px;
  }

  .tp-author-hero-grid{
    grid-template-columns:1fr;
    gap:42px;
  }

  .tp-author-hero h1{
    font-size:clamp(42px,11vw,56px);
  }

  .tp-author-lead{
    font-size:19px;
  }

  .tp-author-portrait{
    order:-1;
  }

  .tp-author-portrait img{
    height:390px;
  }

  .tp-author-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .tp-author-button{
    width:100%;
  }

  .tp-author-intro,
  .tp-author-principles,
  .tp-author-books,
  .tp-author-beyond{
    padding:70px 0;
  }

  .tp-author-roles,
  .tp-author-book-grid{
    grid-template-columns:1fr;
  }

  .tp-author-book-card{
    min-height:0;
    padding:35px 27px;
  }

  .tp-author-quote{
    padding:65px 0;
  }

  .tp-author-final{
    padding:60px 0;
  }

  .tp-author-final-box{
    grid-template-columns:1fr;
    gap:34px;
    padding:40px 28px;
  }
}

/* TP AUTOR PREVIEW V1 END */

/* TP AUTOR PREVIEW V1.1 START */

/*
 * La imagen se conserva como destacada para metadatos,
 * pero no debe mostrarse encima del hero.
 */
body.page-id-4984 .featured-image,
body.page-id-4984 .page-header-image,
body.page-id-4984 .page-header-image-single,
body.page-id-4984 .post-image{
  display:none!important;
}

/*
 * Asegurar que el hero sea el primer elemento visible
 * después de la cabecera.
 */
body.page-id-4984 .site-content{
  padding-top:0!important;
}

body.page-id-4984 .tp-author-page{
  margin-top:0!important;
}

/*
 * Recuperar expresamente el espaciado de los componentes
 * que utilizan elementos article.
 */
body.page-id-4984 .tp-author-roles article{
  padding:27px 24px!important;
}

body.page-id-4984 .tp-author-principle{
  padding:38px 34px!important;
}

body.page-id-4984 .tp-author-book-card{
  padding:44px 40px!important;
}

@media(max-width:760px){
  body.page-id-4984 .tp-author-book-card{
    padding:35px 27px!important;
  }
}

/* TP AUTOR PREVIEW V1.1 END */


/* TP AUTOR PREVIEW V1.2 START */

/* Hero integrado con la imagen como fondo */
body.page-id-4984 .tp-author-hero{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:
    linear-gradient(
      90deg,
      rgba(5,34,61,.98) 0%,
      rgba(7,46,78,.96) 26%,
      rgba(9,56,92,.88) 44%,
      rgba(11,69,109,.68) 62%,
      rgba(12,82,126,.36) 80%,
      rgba(12,82,126,.18) 100%
    ),
    url("https://tomasperanton.es/wp-content/uploads/2026/03/autor-og.jpg") no-repeat 78% center / cover!important;
}

body.page-id-4984 .tp-author-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.04) 0%,
      rgba(255,255,255,0) 28%
    );
  pointer-events:none;
  z-index:0;
}

body.page-id-4984 .tp-author-hero > *{
  position:relative;
  z-index:1;
}

body.page-id-4984 .tp-author-hero .tp-author-hero-grid,
body.page-id-4984 .tp-author-hero .tp-author-hero-inner{
  display:grid!important;
  grid-template-columns:minmax(0,560px) 1fr!important;
  gap:0!important;
  align-items:center!important;
}

body.page-id-4984 .tp-author-hero .tp-author-hero-copy{
  max-width:560px!important;
  padding:clamp(58px,7vw,92px) 0!important;
}

body.page-id-4984 .tp-author-hero .tp-author-hero-copy p{
  max-width:560px!important;
}

/* Ocultar la columna visual antigua para evitar duplicidad */
body.page-id-4984 .tp-author-hero .tp-author-hero-media,
body.page-id-4984 .tp-author-hero .tp-author-hero-visual,
body.page-id-4984 .tp-author-hero .tp-author-hero-figure,
body.page-id-4984 .tp-author-hero .tp-author-hero-photo,
body.page-id-4984 .tp-author-hero figure{
  opacity:0!important;
  visibility:hidden!important;
  width:0!important;
  min-width:0!important;
  height:0!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

/* Botones */
body.page-id-4984 .tp-author-hero .tp-author-actions{
  display:flex!important;
  gap:16px!important;
  align-items:center!important;
  flex-wrap:wrap!important;
}

body.page-id-4984 .tp-author-hero .tp-author-button,
body.page-id-4984 .tp-author-hero .tp-author-actions a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:52px!important;
  padding:0 26px!important;
  border-radius:14px!important;
  text-align:center!important;
}

@media (max-width:1100px){
  body.page-id-4984 .tp-author-hero{
    background-position:72% center!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-hero-grid,
  body.page-id-4984 .tp-author-hero .tp-author-hero-inner{
    grid-template-columns:minmax(0,520px) 1fr!important;
  }
}

@media (max-width:820px){
  body.page-id-4984 .tp-author-hero{
    background:
      linear-gradient(
        180deg,
        rgba(5,34,61,.94) 0%,
        rgba(7,46,78,.92) 32%,
        rgba(10,63,101,.78) 62%,
        rgba(10,63,101,.56) 100%
      ),
      url("https://tomasperanton.es/wp-content/uploads/2026/03/autor-og.jpg") no-repeat 70% center / cover!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-hero-grid,
  body.page-id-4984 .tp-author-hero .tp-author-hero-inner{
    grid-template-columns:1fr!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-hero-copy{
    max-width:none!important;
    padding:42px 0 48px!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-hero-copy p{
    max-width:34rem!important;
  }
}

@media (max-width:640px){
  body.page-id-4984 .tp-author-hero{
    background:
      linear-gradient(
        180deg,
        rgba(5,34,61,.96) 0%,
        rgba(7,46,78,.94) 42%,
        rgba(10,63,101,.78) 100%
      ),
      url("https://tomasperanton.es/wp-content/uploads/2026/03/autor-og.jpg") no-repeat 68% top / cover!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-actions{
    gap:12px!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-button,
  body.page-id-4984 .tp-author-hero .tp-author-actions a{
    min-height:50px!important;
    padding:0 22px!important;
  }
}

/* TP AUTOR PREVIEW V1.2 END */


/* TP AUTOR PREVIEW V1.3 START */

/*
 * HERO
 * Menor altura, texto algo más contenido y fotografía
 * más visible a partir de la zona central.
 */
body.page-id-4984 .tp-author-hero{
  min-height:590px!important;
  padding:0!important;

  background:
    linear-gradient(
      90deg,
      rgba(4,31,54,.99) 0%,
      rgba(5,36,62,.98) 27%,
      rgba(7,46,77,.90) 39%,
      rgba(8,56,91,.67) 51%,
      rgba(9,67,105,.36) 65%,
      rgba(10,76,116,.15) 82%,
      rgba(10,76,116,.06) 100%
    ),
    url("https://tomasperanton.es/wp-content/uploads/2026/03/autor-og.jpg") no-repeat center 43% / cover!important;
}

body.page-id-4984 .tp-author-hero .tp-author-hero-grid{
  min-height:590px!important;
  grid-template-columns:minmax(0,520px) 1fr!important;
}

body.page-id-4984 .tp-author-hero .tp-author-hero-copy{
  width:100%!important;
  max-width:520px!important;
  padding:58px 0 62px!important;
}

body.page-id-4984 .tp-author-hero h1{
  max-width:520px!important;
  font-size:clamp(48px,4.65vw,68px)!important;
  line-height:1.035!important;
}

body.page-id-4984 .tp-author-hero .tp-author-lead{
  max-width:510px!important;
  margin-top:24px!important;
  font-size:19px!important;
  line-height:1.58!important;
}

body.page-id-4984 .tp-author-hero .tp-author-actions{
  margin-top:30px!important;
}

body.page-id-4984 .tp-author-hero .tp-author-button,
body.page-id-4984 .tp-author-hero .tp-author-actions a{
  min-height:50px!important;
  padding:0 23px!important;
  border-radius:9px!important;
}

/*
 * QUIÉN SOY
 * Dos columnas para titular y texto, seguidas por una
 * franja de tres tarjetas que ocupa todo el ancho.
 */
body.page-id-4984 .tp-author-intro{
  padding:82px 0 88px!important;
}

body.page-id-4984 .tp-author-intro-grid{
  grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr)!important;
  column-gap:78px!important;
  row-gap:42px!important;
  align-items:start!important;
}

body.page-id-4984 .tp-author-section-heading{
  max-width:440px!important;
}

body.page-id-4984 .tp-author-intro-copy{
  width:100%!important;
  max-width:none!important;
}

body.page-id-4984 .tp-author-intro-copy > p{
  max-width:720px!important;
}

body.page-id-4984 .tp-author-text-large{
  margin-bottom:18px!important;
  font-size:24px!important;
  line-height:1.46!important;
}

body.page-id-4984 .tp-author-roles-wide{
  grid-column:1 / -1!important;

  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;

  width:100%!important;
  margin:2px 0 0!important;
}

body.page-id-4984 .tp-author-roles-wide article{
  min-height:168px!important;
  padding:24px 26px 25px!important;
}

body.page-id-4984 .tp-author-roles-wide h3{
  margin-top:15px!important;
  font-size:22px!important;
}

body.page-id-4984 .tp-author-roles-wide p{
  margin-top:9px!important;
  font-size:15px!important;
  line-height:1.52!important;
}

/*
 * Acercar ligeramente la siguiente sección para mantener
 * un ritmo vertical continuo.
 */
body.page-id-4984 .tp-author-principles{
  padding:84px 0 90px!important;
}

body.page-id-4984 .tp-author-centered-heading{
  margin-bottom:42px!important;
}

@media(max-width:980px){
  body.page-id-4984 .tp-author-hero{
    min-height:550px!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-hero-grid{
    min-height:550px!important;
    grid-template-columns:minmax(0,500px) 1fr!important;
  }

  body.page-id-4984 .tp-author-intro-grid{
    grid-template-columns:1fr!important;
    row-gap:34px!important;
  }

  body.page-id-4984 .tp-author-section-heading{
    max-width:720px!important;
  }

  body.page-id-4984 .tp-author-roles-wide{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  body.page-id-4984 .tp-author-hero{
    min-height:auto!important;
    padding:0!important;

    background:
      linear-gradient(
        180deg,
        rgba(4,31,54,.92) 0%,
        rgba(5,38,65,.91) 35%,
        rgba(7,51,84,.84) 67%,
        rgba(8,61,97,.77) 100%
      ),
      url("https://tomasperanton.es/wp-content/uploads/2026/03/autor-og.jpg") no-repeat 68% top / cover!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-hero-grid{
    min-height:auto!important;
    grid-template-columns:1fr!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-hero-copy{
    max-width:none!important;
    padding:54px 0 58px!important;
  }

  body.page-id-4984 .tp-author-hero h1{
    max-width:580px!important;
    font-size:clamp(42px,11vw,55px)!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-lead{
    max-width:34rem!important;
    font-size:18px!important;
  }

  body.page-id-4984 .tp-author-intro{
    padding:66px 0 70px!important;
  }

  body.page-id-4984 .tp-author-roles-wide{
    grid-template-columns:1fr!important;
    gap:15px!important;
  }

  body.page-id-4984 .tp-author-roles-wide article{
    min-height:0!important;
  }

  body.page-id-4984 .tp-author-principles{
    padding:68px 0 72px!important;
  }
}

/* TP AUTOR PREVIEW V1.3 END */


/* TP AUTOR PREVIEW V1.4 START */

/*
 * Evitar la línea aislada «aventura» en escritorio.
 */
body.page-id-4984 .tp-author-hero .tp-author-hero-grid{
  grid-template-columns:minmax(0,590px) 1fr!important;
}

body.page-id-4984 .tp-author-hero .tp-author-hero-copy{
  max-width:590px!important;
}

body.page-id-4984 .tp-author-hero h1{
  max-width:590px!important;
  font-size:clamp(48px,4.45vw,66px)!important;
}

/*
 * Tarjetas de recursos reconstruidas.
 */
body.page-id-4984 .tp-author-link-grid-v2{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;
}

body.page-id-4984 .tp-author-link-grid-v2 .tp-author-link-card{
  display:flex!important;
  min-height:310px!important;
  flex-direction:column!important;
  padding:33px 31px!important;
}

body.page-id-4984 .tp-author-link-grid-v2 .tp-author-link-action{
  display:inline-flex!important;
  align-items:center!important;
  align-self:flex-start!important;

  margin-top:auto!important;
  padding-top:28px!important;

  color:var(--blue)!important;
  font-size:15px!important;
  font-weight:800!important;
  text-decoration:none!important;
}

body.page-id-4984 .tp-author-link-grid-v2 .tp-author-link-action::after{
  content:" →";
}

/*
 * Móvil: proteger el texto y alejar el rostro del centro
 * del titular. Ambos botones ocupan todo el ancho.
 */
@media(max-width:760px){
  body.page-id-4984 .tp-author-hero{
    background-position:center,38% center!important;
  }

  body.page-id-4984 .tp-author-hero::after{
    background:
      linear-gradient(
        90deg,
        rgba(2,27,47,.62) 0%,
        rgba(2,31,53,.46) 58%,
        rgba(2,31,53,.18) 100%
      )!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-button,
  body.page-id-4984 .tp-author-hero .tp-author-actions a{
    width:100%!important;
    max-width:none!important;
  }

  body.page-id-4984 .tp-author-link-grid-v2{
    grid-template-columns:1fr!important;
    gap:15px!important;
  }

  body.page-id-4984 .tp-author-link-grid-v2 .tp-author-link-card{
    min-height:0!important;
  }
}

/* TP AUTOR PREVIEW V1.4 END */


/* TP AUTOR PREVIEW V1.5 START */

/*
 * HERO
 * La imagen se separa del fondo principal para poder
 * desplazarla a la derecha sin afectar al degradado.
 */
body.page-id-4984 .tp-author-hero{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  background:#06283f!important;
}

body.page-id-4984 .tp-author-hero::before{
  content:""!important;

  position:absolute!important;
  z-index:0!important;

  inset:-7%!important;

  background:
    url("https://tomasperanton.es/wp-content/uploads/2026/03/autor-og.jpg")
    no-repeat
    center 43% /
    cover!important;

  transform:
    translateX(8%)
    scale(1.055)!important;

  transform-origin:center center!important;

  pointer-events:none!important;
}

body.page-id-4984 .tp-author-hero::after{
  content:""!important;

  position:absolute!important;
  z-index:1!important;

  inset:0!important;

  background:
    linear-gradient(
      90deg,
      rgba(4,31,54,.995) 0%,
      rgba(5,36,62,.985) 27%,
      rgba(7,46,77,.92) 39%,
      rgba(8,56,91,.69) 51%,
      rgba(9,67,105,.37) 66%,
      rgba(10,76,116,.14) 83%,
      rgba(10,76,116,.05) 100%
    )!important;

  pointer-events:none!important;
}

body.page-id-4984 .tp-author-hero > *{
  position:relative!important;
  z-index:2!important;
}

/*
 * Dos botones exactamente iguales.
 */
body.page-id-4984 .tp-author-hero .tp-author-actions{
  display:grid!important;
  grid-template-columns:repeat(2,196px)!important;
  grid-auto-rows:52px!important;

  align-items:stretch!important;
  justify-content:start!important;

  gap:16px!important;
}

body.page-id-4984 .tp-author-hero .tp-author-button,
body.page-id-4984 .tp-author-hero .tp-author-actions a{
  display:flex!important;

  width:100%!important;
  min-width:0!important;
  max-width:none!important;

  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;

  align-items:center!important;
  justify-content:center!important;

  margin:0!important;
  padding:0 18px!important;

  line-height:1.2!important;
  text-align:center!important;
  white-space:nowrap!important;
}

/*
 * MIS LIBROS
 * El encabezado deja de funcionar como una columna
 * limitada y utiliza todo el ancho disponible.
 */
body.page-id-4984 .tp-author-books-heading{
  display:block!important;

  width:100%!important;
  max-width:none!important;

  margin-right:0!important;
  margin-bottom:50px!important;
}

body.page-id-4984 .tp-author-books-heading h2{
  width:100%!important;
  max-width:none!important;
}

body.page-id-4984 .tp-author-books-heading > p:last-child{
  width:100%!important;
  max-width:none!important;

  margin-right:0!important;

  text-wrap:pretty!important;
}

/*
 * Enlaces concretos del Pastelero.
 */
body.page-id-4984 .tp-author-book-card
.tp-author-card-actions a{
  display:inline-flex!important;
  align-items:center!important;

  line-height:1.4!important;
}

/*
 * TABLET
 */
@media(max-width:980px){
  body.page-id-4984 .tp-author-hero::before{
    inset:-6%!important;

    transform:
      translateX(7%)
      scale(1.06)!important;
  }
}

/*
 * MÓVIL
 */
@media(max-width:760px){
  body.page-id-4984 .tp-author-hero::before{
    inset:-5%!important;

    background-position:
      center 35%!important;

    transform:
      translateX(11%)
      scale(1.08)!important;
  }

  body.page-id-4984 .tp-author-hero::after{
    background:
      linear-gradient(
        90deg,
        rgba(3,29,50,.94) 0%,
        rgba(4,34,58,.88) 54%,
        rgba(5,42,70,.64) 100%
      )!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-actions{
    grid-template-columns:1fr!important;
    grid-auto-rows:50px!important;

    width:100%!important;
    gap:11px!important;
  }

  body.page-id-4984 .tp-author-hero .tp-author-button,
  body.page-id-4984 .tp-author-hero .tp-author-actions a{
    width:100%!important;

    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;

    white-space:normal!important;
  }
}

/* TP AUTOR PREVIEW V1.5 END */


/* TP AUTOR PREVIEW V1.6 START */

/*
 * ESCRITORIO
 * Alejar el rostro de la zona ocupada por el titular.
 */
body.page-id-4984 .tp-author-hero::before{
  inset:-9%!important;

  transform:
    translateX(14%)
    scale(1.07)!important;

  transform-origin:center center!important;
}

/*
 * Botones idénticos y perfectamente centrados.
 */
body.page-id-4984 .tp-author-hero .tp-author-actions{
  display:grid!important;

  grid-template-columns:
    repeat(2,minmax(0,196px))!important;

  grid-auto-rows:52px!important;

  width:auto!important;
  align-items:stretch!important;
  justify-content:start!important;

  gap:16px!important;
}

body.page-id-4984 .tp-author-hero
.tp-author-actions .tp-author-button,
body.page-id-4984 .tp-author-hero
.tp-author-actions a{
  display:flex!important;

  width:196px!important;
  min-width:196px!important;
  max-width:196px!important;

  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;

  align-items:center!important;
  justify-content:center!important;

  margin:0!important;
  padding:0 16px!important;

  line-height:1!important;
  text-align:center!important;
  white-space:nowrap!important;
}

/*
 * TABLETA
 */
@media(max-width:980px){
  body.page-id-4984 .tp-author-hero::before{
    inset:-9%!important;

    transform:
      translateX(17%)
      scale(1.08)!important;
  }
}

/*
 * MÓVIL
 *
 * La regla V1.4 de escritorio estaba ganando por orden
 * al antiguo media query y mantenía dos columnas.
 * La columna invisible de la fotografía ocupaba la
 * primera; el texto acababa en la segunda.
 */
@media(max-width:760px){

  body.page-id-4984 .tp-author-hero{
    min-height:auto!important;
  }

  body.page-id-4984 .tp-author-hero
  .tp-author-hero-grid{
    display:block!important;

    width:100%!important;
    max-width:none!important;
    min-height:auto!important;

    grid-template-columns:1fr!important;

    margin-left:auto!important;
    margin-right:auto!important;
  }

  body.page-id-4984 .tp-author-hero
  .tp-author-portrait,
  body.page-id-4984 .tp-author-hero
  figure{
    display:none!important;

    order:initial!important;

    width:0!important;
    min-width:0!important;
    max-width:0!important;

    height:0!important;
    min-height:0!important;

    margin:0!important;
    padding:0!important;
  }

  body.page-id-4984 .tp-author-hero
  .tp-author-hero-copy{
    display:block!important;

    grid-column:1 / -1!important;

    width:100%!important;
    max-width:none!important;

    margin:0!important;
    padding:46px 0 52px!important;

    text-align:left!important;
  }

  body.page-id-4984 .tp-author-hero
  .tp-author-kicker,
  body.page-id-4984 .tp-author-hero h1,
  body.page-id-4984 .tp-author-hero
  .tp-author-lead{
    width:100%!important;
    max-width:none!important;

    margin-left:0!important;
    margin-right:0!important;

    text-align:left!important;
  }

  body.page-id-4984 .tp-author-hero h1{
    font-size:
      clamp(39px,10.2vw,49px)!important;

    line-height:1.045!important;
    letter-spacing:-.045em!important;
  }

  body.page-id-4984 .tp-author-hero
  .tp-author-lead{
    font-size:17px!important;
    line-height:1.58!important;
  }

  /*
   * Mover la fotografía a la derecha.
   */
  body.page-id-4984 .tp-author-hero::before{
    inset:-11%!important;

    background-position:
      center 36%!important;

    transform:
      translateX(24%)
      scale(1.12)!important;

    transform-origin:center center!important;
  }

  /*
   * Mantener una zona oscura estable detrás del texto.
   */
  body.page-id-4984 .tp-author-hero::after{
    background:
      linear-gradient(
        90deg,
        rgba(3,28,49,.97) 0%,
        rgba(4,34,58,.93) 48%,
        rgba(5,43,72,.70) 76%,
        rgba(6,52,84,.42) 100%
      )!important;
  }

  /*
   * Dos botones, uno junto al otro.
   */
  body.page-id-4984 .tp-author-hero
  .tp-author-actions{
    display:grid!important;

    grid-template-columns:
      repeat(2,minmax(0,1fr))!important;

    grid-auto-rows:50px!important;

    width:100%!important;
    max-width:none!important;

    align-items:stretch!important;
    justify-content:stretch!important;

    gap:10px!important;
    margin-top:28px!important;
  }

  body.page-id-4984 .tp-author-hero
  .tp-author-actions .tp-author-button,
  body.page-id-4984 .tp-author-hero
  .tp-author-actions a{
    display:flex!important;

    width:100%!important;
    min-width:0!important;
    max-width:none!important;

    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;

    align-items:center!important;
    justify-content:center!important;

    margin:0!important;
    padding:0 9px!important;

    font-size:13px!important;
    line-height:1.1!important;

    text-align:center!important;
    white-space:nowrap!important;
  }
}

/*
 * Pantallas móviles especialmente estrechas:
 * los botones siguen juntos y reducen ligeramente
 * la tipografía para evitar saltos.
 */
@media(max-width:390px){
  body.page-id-4984 .tp-author-hero
  .tp-author-actions{
    gap:8px!important;
  }

  body.page-id-4984 .tp-author-hero
  .tp-author-actions .tp-author-button,
  body.page-id-4984 .tp-author-hero
  .tp-author-actions a{
    padding:0 5px!important;
    font-size:12px!important;
  }
}

/* TP AUTOR PREVIEW V1.6 END */


/* TP AUTOR PREVIEW V1.7 START */

/*
 * BOTONES DEL HERO
 *
 * Flexbox sustituye a todas las rejillas anteriores.
 * Los dos enlaces permanecen en una única fila.
 */
body.page-id-4984
.tp-author-hero
.tp-author-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;

  width:auto!important;
  max-width:100%!important;

  align-items:stretch!important;
  justify-content:flex-start!important;

  gap:16px!important;
  margin-top:30px!important;
}

body.page-id-4984
.tp-author-hero
.tp-author-actions > a{
  display:flex!important;
  flex:0 0 196px!important;

  width:196px!important;
  min-width:196px!important;
  max-width:196px!important;

  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;

  box-sizing:border-box!important;

  align-items:center!important;
  justify-content:center!important;

  margin:0!important;
  padding:0 14px!important;

  line-height:1.15!important;
  text-align:center!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}

/*
 * MÓVIL
 *
 * Cada botón ocupa exactamente la mitad del ancho
 * disponible, descontando el espacio entre ambos.
 */
@media(max-width:760px){

  body.page-id-4984
  .tp-author-hero
  .tp-author-actions{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;

    width:100%!important;
    max-width:100%!important;

    gap:10px!important;
    margin-top:27px!important;
  }

  body.page-id-4984
  .tp-author-hero
  .tp-author-actions > a{
    display:flex!important;
    flex:1 1 0!important;

    width:0!important;
    min-width:0!important;
    max-width:none!important;

    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;

    align-items:center!important;
    justify-content:center!important;

    margin:0!important;
    padding:0 7px!important;

    font-size:12.5px!important;
    line-height:1.1!important;

    text-align:center!important;
    white-space:nowrap!important;
  }
}

@media(max-width:390px){

  body.page-id-4984
  .tp-author-hero
  .tp-author-actions{
    gap:7px!important;
  }

  body.page-id-4984
  .tp-author-hero
  .tp-author-actions > a{
    padding:0 4px!important;
    font-size:11.5px!important;
  }
}

/* TP AUTOR PREVIEW V1.7 END */


/* TP AUTOR PREVIEW V1.8 START */

/*
 * Mantener íntegramente la geometría de V1.7.
 * Solo se centra el contenido interior.
 */
body.page-id-4984
.tp-author-hero
.tp-author-actions > a
.tp-author-button-label{
  display:flex!important;

  width:100%!important;
  height:100%!important;

  flex:1 1 auto!important;

  align-items:center!important;
  justify-content:center!important;

  margin:0!important;
  padding:0!important;

  line-height:1!important;
  text-align:center!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}

@media(max-width:390px){
  body.page-id-4984
  .tp-author-hero
  .tp-author-actions > a
  .tp-author-button-label{
    font-size:11.5px!important;
  }
}

/* TP AUTOR PREVIEW V1.8 END */




/* TP AUTOR PREVIEW V2.2 START */

@media(max-width:760px){

  /*
   * Contenido del hero dentro del viewport.
   */
  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-shell.tp-author-hero-grid{
    display:block!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    margin:0!important;
    padding:0!important;

    box-sizing:border-box!important;
  }

  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-hero-copy{
    display:block!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    margin:0!important;
    padding:46px 12px 52px!important;

    box-sizing:border-box!important;
    text-align:left!important;
  }

  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-kicker,
  body.page-id-4984
  .tp-author-page
  .tp-author-hero h1,
  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-lead{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    margin-left:0!important;
    margin-right:0!important;

    box-sizing:border-box!important;
    text-align:left!important;
  }

  /*
   * Fila de dos columnas idénticas.
   */
  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-actions{
    display:grid!important;

    grid-template-columns:
      repeat(2,minmax(0,1fr))!important;

    grid-auto-flow:row!important;
    grid-auto-rows:50px!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    gap:10px!important;

    margin:27px 0 0!important;
    padding:0!important;

    box-sizing:border-box!important;
  }

  /*
   * Neutralizar cualquier envoltorio introducido
   * por WordPress alrededor de los enlaces.
   */
  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-actions > *{
    grid-column:auto!important;
    grid-row:auto!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;

    margin:0!important;
    padding:0!important;

    box-sizing:border-box!important;
  }

  /*
   * Funciona tanto si el enlace es hijo directo
   * como si está dentro de un p o un div.
   */
  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-actions > a,

  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-actions > p > a,

  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-actions > div > a{
    display:flex!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;

    align-items:center!important;
    justify-content:center!important;

    float:none!important;
    position:static!important;
    transform:none!important;

    margin:0!important;
    padding:0 6px!important;

    box-sizing:border-box!important;

    font-size:12.5px!important;
    line-height:1!important;

    text-align:center!important;
    white-space:nowrap!important;
  }

  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-actions
  .tp-author-button-label{
    display:flex!important;

    width:100%!important;
    height:100%!important;

    align-items:center!important;
    justify-content:center!important;

    margin:0!important;
    padding:0!important;

    line-height:1!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}

@media(max-width:390px){

  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-hero-copy{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-actions{
    gap:7px!important;
  }

  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-actions a,
  body.page-id-4984
  .tp-author-page
  .tp-author-hero
  .tp-author-button-label{
    font-size:11.5px!important;
  }
}

/* TP AUTOR PREVIEW V2.2 END */
