:root{
  --blue:#0b57d0;
  --blue-dark:#083b8f;
  --blue-soft:#eef5ff;
  --ink:#172033;
  --text:#293241;
  --muted:#667085;
  --line:#dbe3ee;
  --surface:#ffffff;
  --soft:#f7f9fc;
  --radius:18px;
  --shadow:0 8px 24px rgba(23,32,51,.07);
  --content:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--surface);
  color:var(--text);
  font-family:"Segoe UI Variable","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
  font-weight:400;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit}
img,svg{max-width:100%}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:68px;
  padding:.85rem max(5vw,18px);
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}
.brand{
  display:flex;
  align-items:center;
  gap:.7rem;
  color:var(--blue);
  font-size:1rem;
  font-weight:750;
  letter-spacing:-.015em;
  text-decoration:none;
}
.brand-mark{
  display:block;
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:50%;
  background:#fff url("/assets/logo-simbolo.svg") center/contain no-repeat;
  border:1px solid #dce8f7;
  box-shadow:0 3px 10px rgba(11,87,208,.10);
  color:transparent;
  font-size:0;
}
.top-nav{display:flex;align-items:center;gap:1.25rem}
.top-nav a{
  color:#344054;
  font-size:.92rem;
  font-weight:650;
  text-decoration:none;
}
.top-nav a:hover{color:var(--blue)}

.hero,.filters-wrap,.gallery-section,.conscious,.seo-hubs{
  width:min(100%,var(--content));
  margin-inline:auto;
  padding-inline:clamp(18px,5vw,58px);
}
.hero{padding-top:72px;padding-bottom:48px}
.seo-hubs{padding-top:10px;padding-bottom:60px}
.gallery-section{padding-top:56px;padding-bottom:56px}
.conscious{padding-top:56px;padding-bottom:72px}

.eyebrow{
  margin:0 0 .55rem;
  color:var(--blue);
  font-size:.76rem;
  line-height:1.4;
  font-weight:800;
  letter-spacing:.105em;
}
h1,h2,h3{
  margin:.1rem 0 .9rem;
  color:var(--ink);
  line-height:1.12;
  letter-spacing:-.035em;
}
h1{
  max-width:860px;
  font-size:clamp(2.15rem,5vw,4rem);
  font-weight:760;
}
h2{
  font-size:clamp(1.55rem,3vw,2.35rem);
  font-weight:730;
}
.hero-copy{
  max-width:760px;
  margin:0;
  color:#475467;
  font-size:clamp(1rem,1.4vw,1.12rem);
  line-height:1.7;
}

.search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.7rem;
  max-width:900px;
  margin:1.8rem 0 2rem;
}
.search-box input,
.filters select,
.dialog-card input,
.dialog-card textarea,
.conscious-box input{
  width:100%;
  min-height:48px;
  border:1px solid #cfd8e6;
  border-radius:12px;
  padding:.78rem .95rem;
  background:#fff;
  color:var(--ink);
  outline:none;
}
.search-box input{min-height:52px;font-size:1rem}
.search-box input::placeholder,
.dialog-card input::placeholder,
.dialog-card textarea::placeholder,
.conscious-box input::placeholder{color:#8a94a6}

.search-box input:focus,
.filters select:focus,
.dialog-card input:focus,
.dialog-card textarea:focus,
.conscious-box input:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(11,87,208,.12);
}

button{
  min-height:44px;
  border:0;
  border-radius:11px;
  padding:.72rem 1rem;
  background:var(--blue);
  color:#fff;
  font-weight:700;
  line-height:1.2;
}
button:hover{background:var(--blue-dark)}
button:focus-visible,
a:focus-visible{
  outline:3px solid rgba(11,87,208,.28);
  outline-offset:3px;
}
.ghost,.actions .secondary{
  border:1px solid #b7c8e4;
  background:#fff;
  color:var(--blue);
}
.ghost:hover,.actions .secondary:hover{background:var(--blue-soft)}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.8rem;
}
.quick-card{
  display:flex;
  align-items:center;
  gap:.85rem;
  min-height:76px;
  padding:.9rem 1rem;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  color:var(--ink);
  text-align:left;
  box-shadow:0 2px 8px rgba(23,32,51,.025);
}
.quick-card:hover{
  border-color:#b6cdf4;
  background:var(--blue-soft);
}
.quick-card .emoji{font-size:1.35rem;line-height:1}
.quick-card strong{
  display:block;
  margin-bottom:.1rem;
  color:var(--ink);
  font-size:.96rem;
  font-weight:720;
}
.quick-card small{
  display:block;
  color:var(--muted);
  font-size:.8rem;
  font-weight:500;
  line-height:1.35;
}

.hub-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.8rem;
  margin-top:1.35rem;
}
.hub-card{
  display:flex;
  min-height:92px;
  flex-direction:column;
  justify-content:center;
  gap:.18rem;
  padding:1rem;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  text-decoration:none;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.hub-card:hover{
  transform:translateY(-2px);
  border-color:#b6cdf4;
  box-shadow:var(--shadow);
}
.hub-card strong{color:var(--ink);font-size:.98rem;font-weight:720}
.hub-card span{color:var(--muted);font-size:.82rem}

.filters-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:1.1rem;
  padding-top:34px;
  padding-bottom:34px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--soft);
}
.filters{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.9rem;
}
.filters label,.dialog-card label,.conscious-box label{
  color:#344054;
  font-size:.86rem;
  font-weight:650;
}
.filters select{display:block;margin-top:.35rem;padding:.68rem .78rem}

.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
}
.muted{color:var(--muted)}

.masonry{
  columns:4 245px;
  column-gap:1rem;
  margin-top:1.35rem;
}
.card{
  break-inside:avoid;
  margin:0 0 1rem;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 3px 14px rgba(23,32,51,.045);
}
.postal{
  display:grid;
  min-height:230px;
  place-items:center;
  padding:1.45rem;
  background:#fff;
  color:var(--ink);
  text-align:center;
}
.postal.azul{
  background:linear-gradient(155deg,#edf5ff 0%,#f8fbff 58%,#fff 100%);
  color:#123f82;
}
.postal.oscuro{background:#182033;color:#fff}
.postal p{
  max-width:19ch;
  margin:0 auto;
  font-size:clamp(1.12rem,1.75vw,1.48rem);
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.018em;
}
.card-body{padding:.95rem}
.card-body>p{
  margin:.05rem 0 .75rem;
  color:#344054;
  font-size:.91rem;
  line-height:1.5;
}
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:.34rem;
  margin-bottom:.85rem;
}
.tag{
  padding:.22rem .48rem;
  border-radius:999px;
  background:var(--blue-soft);
  color:#27569a;
  font-size:.7rem;
  font-weight:650;
}
.actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.48rem;
}
.actions button{
  min-width:0;
  min-height:40px;
  padding:.58rem .5rem;
  font-size:.8rem;
  font-weight:680;
}
.empty{
  padding:1.6rem;
  border:1px dashed #c7d2e3;
  border-radius:15px;
  color:var(--muted);
  text-align:center;
}

.conscious{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:2rem;
  align-items:start;
}
.conscious-box{
  padding:1.2rem;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--soft);
}
.conscious-box input{margin:.45rem 0 .75rem}

footer{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:1.8rem max(5vw,18px);
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.9rem;
}
footer strong{color:var(--blue);font-weight:720}

dialog{
  width:min(560px,calc(100vw - 28px));
  padding:0;
  border:0;
  border-radius:20px;
  box-shadow:0 24px 70px rgba(23,32,51,.28);
}
dialog::backdrop{background:rgba(15,23,42,.58)}
.dialog-card{position:relative;padding:1.4rem}
.dialog-card label{display:block;margin:.75rem 0}
.dialog-card input,.dialog-card textarea{display:block;margin-top:.32rem}
.dialog-close{
  position:absolute;
  top:.75rem;
  right:.75rem;
  min-height:38px;
  padding:.15rem .6rem;
  background:transparent;
  color:var(--ink);
  font-size:1.6rem;
}
.dialog-close:hover{background:var(--soft)}
.preview-phrase{
  padding:.9rem 1rem;
  border-radius:12px;
  background:var(--blue-soft);
  color:var(--ink);
  font-weight:650;
}
.dialog-actions{display:flex;justify-content:flex-end;gap:.55rem;margin-top:1rem}

.collection-page{width:min(100%,var(--content));margin-inline:auto}
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.42rem;
  padding:1.1rem clamp(18px,5vw,58px) 0;
  color:var(--muted);
  font-size:.82rem;
}
.breadcrumbs a{color:var(--blue);text-decoration:none}
.collection-hero{padding:48px clamp(18px,5vw,58px) 14px}
.collection-hero h1{max-width:900px}
.intent-links{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:1.35rem;
}
.intent-link{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.56rem .78rem;
  border:1px solid #b7c8e4;
  border-radius:999px;
  background:#fff;
  color:var(--blue);
  font-size:.85rem;
  font-weight:680;
  text-decoration:none;
}
.intent-link:hover{background:var(--blue-soft)}
.collection-gallery{padding-top:30px}
.collection-note{
  margin:0 clamp(18px,5vw,58px) 64px;
  padding:1.2rem 1.3rem;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--soft);
}
.collection-note h2{font-size:1.4rem;letter-spacing:-.02em}
.collection-note p{margin-bottom:0;color:#475467}
.static-card .actions{grid-template-columns:1fr 1fr}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(max-width:900px){
  .hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .masonry{columns:3 220px}
}

@media(max-width:720px){
  .top-nav{display:none}
  .hero{padding-top:48px;padding-bottom:38px}
  .gallery-section,.conscious{padding-top:42px;padding-bottom:42px}
  .search-box{grid-template-columns:1fr}
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters-wrap{grid-template-columns:1fr}
  .filters{grid-template-columns:1fr}
  .filters-wrap>.ghost{justify-self:start}
  .conscious{grid-template-columns:1fr}
  .masonry{columns:2 220px}
  .section-heading,footer{align-items:flex-start;flex-direction:column}
}

@media(max-width:600px){
  body{font-size:15.5px}
  .quick-grid,.hub-grid{grid-template-columns:1fr}
  .masonry{columns:1}
  .postal{min-height:210px}
  .postal p{font-size:1.25rem}
  .collection-hero{padding-top:34px}
  .collection-note{margin-bottom:42px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}

.generator-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:end}
.generated-output{margin-top:1rem;padding:1rem;border:1px solid #bfd0ea;border-radius:14px;background:#fff}
.generated-output p{margin:0;color:var(--ink);font-size:1.08rem;font-weight:650;line-height:1.55}
.generated-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem}
.generated-actions button{min-height:40px}
.admin-shell{width:min(100%,980px);margin:0 auto;padding:48px clamp(18px,5vw,48px)}
.admin-head{margin-bottom:1.6rem}
.admin-panel{border:1px solid var(--line);border-radius:18px;background:var(--soft);padding:1.2rem}
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}
.admin-panel label{display:block;color:#344054;font-size:.86rem;font-weight:650}
.admin-panel input,.admin-panel select,.admin-panel textarea{width:100%;margin-top:.35rem;min-height:46px;border:1px solid #cfd8e6;border-radius:11px;padding:.72rem .82rem;background:#fff;color:var(--ink);font:inherit}
.admin-panel textarea{min-height:110px;resize:vertical}
.admin-result{margin-top:1rem;padding:1rem;border:1px solid #bfd0ea;border-radius:14px;background:#fff}
.admin-result blockquote{margin:0;color:var(--ink);font-size:1.18rem;font-weight:650;line-height:1.55}
.admin-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}
.admin-note{margin-top:1rem;color:var(--muted);font-size:.88rem}
.draft-list{display:grid;gap:.6rem;margin-top:1rem}
.draft-item{padding:.8rem 1rem;border:1px solid var(--line);border-radius:12px;background:#fff}
.draft-item p{margin:.1rem 0 .4rem}
.draft-item small{color:var(--muted)}
@media(max-width:720px){.generator-row{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr}}

/* Admin conectado */
.admin-warning{border-color:#f2c94c;background:#fffaf0}
.admin-login{max-width:620px;margin:0 auto}
.admin-tabs{display:flex;flex-wrap:wrap;gap:.55rem;margin:0 0 1rem}
.admin-tabs button.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.admin-list{display:grid;gap:.65rem;margin-top:1rem}
.admin-list-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--line);border-radius:12px;background:#fff}
.admin-list-row>div{min-width:0}
.admin-list-row strong{display:block;color:var(--ink);font-size:.93rem;line-height:1.35}
.admin-list-row small{display:block;margin-top:.25rem;color:var(--muted);font-size:.78rem;word-break:break-word}
.variant-list{display:grid;gap:.7rem;margin-top:1rem}
.variant-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.9rem 1rem;border:1px solid var(--line);border-radius:13px;background:#fff}
.variant-item p{margin:0;color:var(--ink);font-weight:600;line-height:1.5}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0}
.stat-card{display:flex;flex-direction:column;padding:1rem;border:1px solid var(--line);border-radius:13px;background:#fff}
.stat-card strong{color:var(--blue);font-size:1.7rem;line-height:1.1}
.stat-card span{margin-top:.25rem;color:var(--muted);font-size:.82rem;text-transform:capitalize}
.admin-stats-grid{align-items:start;margin-top:1.2rem}
.metric-list{display:grid;gap:.45rem}
.metric-row{display:flex;justify-content:space-between;gap:1rem;padding:.55rem .7rem;border-bottom:1px solid var(--line);background:#fff}
.metric-row span{overflow:hidden;text-overflow:ellipsis}
.metric-row strong{color:var(--blue)}
#bookFile{padding:.55rem}
#publishEditor label{display:block;margin:.75rem 0}
@media(max-width:720px){
  .variant-item{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr 1fr}
  .admin-list-row{align-items:flex-start;flex-direction:column}
}
@media(max-width:460px){.stat-grid{grid-template-columns:1fr}}

.library-stats{grid-template-columns:repeat(6,minmax(0,1fr));margin:.9rem 0 1.2rem}
.library-stats .stat-card strong{font-size:1.55rem}
@media(max-width:1100px){.library-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.library-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.study-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:#fff}
.study-item p{margin:0;color:var(--ink);font-weight:600;line-height:1.55}
.study-actions{display:flex;gap:.45rem;flex-wrap:wrap}
#studyEditor{margin-top:1rem}
#studyEditor textarea{width:100%;margin-top:.35rem;min-height:86px;border:1px solid #cfd8e6;border-radius:11px;padding:.72rem .82rem;background:#fff;color:var(--ink);font:inherit;resize:vertical}
#templateRanking .metric-row span{max-width:78%;white-space:normal;line-height:1.35}
@media(max-width:720px){.study-item{grid-template-columns:1fr}.study-actions{justify-content:flex-start}}

.book-type-select{min-height:40px;border:1px solid #cfd8e6;border-radius:10px;padding:.5rem .65rem;background:#fff;color:var(--ink);font:inherit;font-size:.8rem}


/* Contenido TXT + blog */
.card-title{margin:.05rem 0 .35rem;color:var(--ink);font-size:.98rem;line-height:1.3}
.card-description{margin:0 0 .75rem;color:var(--muted);font-size:.88rem;line-height:1.5}
.load-sentinel{height:1px;width:100%;break-inside:avoid}
.blog-home{width:min(100%,1180px);margin:0 auto;padding:54px clamp(18px,5vw,48px)}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.blog-card{padding:1.2rem;border:1px solid var(--line);border-radius:16px;background:#fff}
.blog-card h2,.blog-card h3{margin:.2rem 0 .65rem;line-height:1.25}
.blog-card h2{font-size:1.3rem}
.blog-card h3{font-size:1.12rem}
.blog-card a{color:var(--ink);text-decoration:none}
.blog-card a:hover{text-decoration:underline;text-decoration-color:var(--blue);text-underline-offset:3px}
.blog-card>p:not(.eyebrow){color:var(--muted);line-height:1.6}
.text-link{color:var(--blue);font-weight:700;text-decoration:none}
.text-link:hover{text-decoration:underline}
.article-page{width:min(100%,900px);margin:0 auto;padding:28px clamp(18px,5vw,48px) 70px}
.long-article{padding-top:28px}
.long-article h1{max-width:820px;margin:.2rem 0 .8rem;font-size:clamp(2rem,5vw,3.8rem);line-height:1.04;letter-spacing:-.035em}
.article-lead{max-width:760px;color:var(--muted);font-size:1.12rem;line-height:1.65}
.article-content{max-width:760px;margin-top:2rem}
.article-content h2{margin:2.2rem 0 .7rem;font-size:clamp(1.35rem,3vw,1.8rem)}
.article-content p{margin:.85rem 0;color:#2c3440;font-size:1.04rem;line-height:1.78}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#15171a;color:#fff;padding:10px 16px;border-radius:12px;z-index:99}
@media(max-width:840px){.blog-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){
  .blog-home{padding-top:42px;padding-bottom:42px}
  .blog-grid{grid-template-columns:1fr}
  .actions{gap:.4rem}
  .actions button{flex:1 1 calc(50% - .4rem);min-height:42px}
  .card-body{padding:.9rem}
}


/* Portal principal */
.portal-hero{padding-top:76px;padding-bottom:64px}
.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:2.4rem}
.portal-card{
  position:relative;display:flex;flex-direction:column;min-height:280px;padding:1.35rem;
  border:1px solid var(--line);border-radius:22px;background:#fff;text-decoration:none;
  box-shadow:var(--shadow);overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
.portal-card:hover{transform:translateY(-3px);border-color:#b9cae5;box-shadow:0 14px 34px rgba(23,32,51,.1)}
.portal-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--blue-soft);color:var(--blue);font-size:1.35rem;font-weight:800}
.portal-copy{display:flex;flex-direction:column;gap:.5rem;margin-top:2rem}
.portal-copy small{color:var(--blue);font-size:.7rem;font-weight:800;letter-spacing:.09em}
.portal-copy strong{color:var(--ink);font-size:1.65rem;line-height:1.1}
.portal-copy>span:last-child{color:var(--muted);line-height:1.55}
.portal-arrow{position:absolute;right:1.2rem;bottom:1rem;color:var(--blue);font-size:1.55rem;font-weight:800}
.portal-blog .portal-icon{background:#f4f0ff;color:#6d3bd1}
.portal-postales .portal-icon{background:#fff3e8;color:#b85c00}
.home-explainer{width:min(100%,var(--content));margin:0 auto 72px;padding:1.5rem clamp(18px,5vw,58px);display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:2rem;align-items:start}
.home-explainer>p{margin:.25rem 0 0;color:var(--muted);line-height:1.75}

/* Postales visuales */
.postal-hero{padding-bottom:30px}
.postal-filters{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.5rem}
.postal-filter{background:#fff;color:var(--ink);border:1px solid var(--line);min-height:42px;padding:.6rem .85rem}
.postal-filter:hover,.postal-filter.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.postal-category-link{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.75rem .9rem;border:1px solid var(--line);border-radius:12px;text-decoration:none;background:#fff}
.postal-category-link:hover{border-color:#b7c9e4;color:var(--blue)}
.postal-category-link+ .postal-category-link{margin-top:.45rem}
.postal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.postal-card{border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
.visual-postal{position:relative;isolation:isolate;display:grid;place-items:center;min-height:340px;padding:2rem;background:#fff;overflow:hidden}
.visual-postal::before,.visual-postal::after{content:"";position:absolute;z-index:-1}
.visual-postal p{max-width:88%;margin:0;text-align:center;color:#172033;font-size:clamp(1.18rem,2vw,1.5rem);font-weight:760;line-height:1.38;letter-spacing:-.025em}
.visual-postal small{position:absolute;bottom:16px;left:0;right:0;text-align:center;color:#0b57d0;font-size:.66rem;font-weight:800;letter-spacing:.04em}
.postal-card-body{padding:1rem}
.postal-card-body h2{font-size:1.02rem;margin:.05rem 0 .35rem}
.postal-card-body .actions{margin-top:.8rem}

/* Cumpleaños */
.tpl-cumple-confeti{background:#fff8ed}
.tpl-cumple-confeti::before{width:14px;height:38px;background:#ef476f;top:38px;left:50px;box-shadow:90px 40px #f9c74f,190px -10px #0b57d0,300px 50px #43aa8b,430px 0 #ef476f,550px 45px #f9c74f,690px 5px #0b57d0,30px 260px #43aa8b,650px 270px #ef476f;transform:rotate(18deg)}
.tpl-cumple-velas{background:#fff7e8}
.tpl-cumple-velas::before{top:28px;left:50%;width:220px;height:120px;transform:translateX(-50%);background:repeating-linear-gradient(90deg,#0b57d0 0 24px,#fff7e8 24px 46px,#f59e0b 46px 70px,#fff7e8 70px 92px);border-radius:8px 8px 18px 18px}

/* Amor */
.tpl-amor-corazones{background:#fff3f6}
.tpl-amor-corazones::before{width:115px;height:100px;left:38px;top:40px;background:#ef476f;transform:rotate(45deg);border-radius:22px}
.tpl-amor-corazones::after{width:150px;height:130px;right:-22px;bottom:36px;background:#f7a8bd;transform:rotate(45deg);border-radius:28px}
.tpl-amor-luna{background:#141b35}
.tpl-amor-luna p{color:#fff}
.tpl-amor-luna small{color:#dbeafe}
.tpl-amor-luna::before{width:130px;height:130px;border-radius:50%;background:#fff2b2;right:55px;top:45px;box-shadow:-35px 0 0 7px #141b35}

/* Amistad */
.tpl-amistad-cintas{background:#eef8ff}
.tpl-amistad-cintas::before{width:120%;height:90px;border-top:12px solid #0b57d0;border-radius:50%;top:55px;left:-10%;transform:rotate(-8deg)}
.tpl-amistad-estrellas{background:#f8f5ff}
.tpl-amistad-estrellas::before{content:"✦";color:#7c3aed;font-size:72px;top:25px;left:35px}
.tpl-amistad-estrellas::after{content:"✦";color:#9f7aea;font-size:58px;right:45px;bottom:35px}

/* Familia */
.tpl-familia-hogar{background:#fff8ef}
.tpl-familia-hogar::before{width:150px;height:115px;background:#c87941;left:45px;top:58px;clip-path:polygon(50% 0,100% 42%,100% 100%,0 100%,0 42%)}
.tpl-familia-marco{background:#fffdf8;box-shadow:inset 0 0 0 10px #b7791f,inset 0 0 0 14px #fffdf8,inset 0 0 0 17px #d7b777}

/* Buenos días */
.tpl-buenos-dias-sol{background:linear-gradient(#eef7ff 0 62%,#dff2ff 62%)}
.tpl-buenos-dias-sol::before{width:125px;height:125px;border-radius:50%;background:#fbbf24;right:55px;top:50px;box-shadow:0 0 0 18px rgba(251,191,36,.12)}
.tpl-buenos-dias-cafe{background:#fff8ee}
.tpl-buenos-dias-cafe::before{width:150px;height:105px;border-radius:14px 14px 40px 40px;background:#8b5e3c;right:70px;top:60px;box-shadow:65px 10px 0 -38px #fff8ee,75px 10px 0 -25px #8b5e3c}

/* Viajes */
.tpl-viaje-ruta{background:#eff8f1}
.tpl-viaje-ruta::before{content:"✈";right:58px;top:34px;color:#0b57d0;font-size:78px}
.tpl-viaje-ruta::after{width:180px;height:280px;border-left:7px dashed #52606d;border-radius:50%;left:70px;bottom:-55px;transform:rotate(-24deg)}
.tpl-viaje-maleta{background:#eef5ff}
.tpl-viaje-maleta::before{width:145px;height:170px;border-radius:18px;background:#0b57d0;right:55px;top:55px;box-shadow:inset 0 0 0 12px rgba(255,255,255,.13)}

/* Ánimo */
.tpl-animo-luz{background:radial-gradient(circle at 50% 25%,#fff2a8 0,rgba(255,242,168,.28) 22%,#f8fbff 55%)}
.tpl-animo-camino{background:linear-gradient(180deg,#eef6f3,#f8fbf9)}
.tpl-animo-camino::before{width:360px;height:360px;border:18px solid #7aa88e;border-color:#7aa88e transparent transparent transparent;border-radius:50%;left:50%;bottom:-250px;transform:translateX(-50%) rotate(-10deg)}

/* Salud */
.tpl-salud-flores{background:#f8fff9}
.tpl-salud-flores::before{content:"✿";font-size:90px;color:#86c59d;left:45px;top:35px}
.tpl-salud-flores::after{content:"✿";font-size:110px;color:#f0aabc;right:45px;bottom:35px}
.tpl-salud-hojas{background:#f3faf6}
.tpl-salud-hojas::before{width:180px;height:260px;left:30px;bottom:0;border-left:8px solid #6ea889;transform:rotate(22deg);border-radius:50%}
.tpl-salud-hojas::after{width:65px;height:115px;left:105px;bottom:95px;background:#8ac29d;border-radius:70% 20% 70% 20%;transform:rotate(-25deg)}

@media(max-width:900px){
  .portal-grid,.postal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-explainer{grid-template-columns:1fr}
}
@media(max-width:600px){
  .portal-hero{padding-top:48px}
  .portal-grid,.postal-grid{grid-template-columns:1fr}
  .portal-card{min-height:230px}
  .visual-postal{min-height:300px}
}


/* Design refresh 2026: spacing, typography and responsive polish */
:root{
  --blue:#1558c9;
  --blue-dark:#1047a6;
  --blue-soft:#edf4ff;
  --ink:#172033;
  --text:#344054;
  --muted:#667085;
  --line:#e1e7f0;
  --soft:#f7f9fc;
  --radius:18px;
  --shadow:0 8px 24px rgba(23,32,51,.055);
  --content:1200px;
}
body{
  color:var(--text);
  line-height:1.7;
  letter-spacing:.002em;
}
main{min-width:0}
p{max-width:75ch}
p + p{margin-top:.85rem}
h1,h2,h3,h4{
  text-wrap:pretty;
  overflow-wrap:anywhere;
}
h1{line-height:1.08;letter-spacing:-.04em;margin:.18rem 0 1.1rem}
h2{line-height:1.16;letter-spacing:-.03em;margin:.15rem 0 .85rem}
h3{line-height:1.25;letter-spacing:-.02em;margin:1.5rem 0 .6rem}
.eyebrow{margin:0 0 .8rem;line-height:1.45}
.hero-copy{max-width:68ch;line-height:1.8}
a{ text-underline-offset:3px }
a:not([class]):hover{color:var(--blue-dark)}
button,input,select,textarea{font:inherit}
button,.download,.home-quick-actions a{
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
button:disabled{cursor:wait;opacity:.68}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{
  outline:3px solid rgba(21,88,201,.25);
  outline-offset:3px;
}
.site-header{
  min-height:72px;
  padding:.75rem clamp(16px,4vw,52px);
  gap:1.25rem;
  box-shadow:0 2px 10px rgba(23,32,51,.025);
}
.brand{flex-shrink:0;gap:.7rem;font-size:1.02rem;letter-spacing:-.025em}
.brand-mark{box-shadow:0 4px 10px rgba(21,88,201,.15)}
.top-nav{gap:clamp(.65rem,1.7vw,1.35rem)}
.top-nav a{padding:.45rem 0;color:#344054;font-size:.9rem;white-space:nowrap}
.top-nav a:hover{color:var(--blue-dark)}
.hero{padding-top:clamp(44px,6vw,76px);padding-bottom:clamp(38px,5vw,58px)}
.portal-hero{padding-top:clamp(46px,6vw,76px);padding-bottom:clamp(42px,5vw,64px)}
.portal-grid{gap:clamp(.8rem,1.6vw,1.15rem);margin-top:2rem}
.portal-card{
  min-width:0;
  min-height:260px;
  padding:clamp(1.1rem,2vw,1.5rem);
  border-color:#e1e7f0;
  border-radius:20px;
  box-shadow:0 5px 18px rgba(23,32,51,.045);
}
.portal-card:hover{transform:translateY(-3px);box-shadow:0 15px 32px rgba(23,32,51,.09)}
.portal-icon{flex:0 0 54px;width:54px;height:54px;border-radius:15px}
.portal-copy{gap:.55rem;margin-top:1.5rem}
.portal-copy strong{font-size:clamp(1.35rem,2.2vw,1.65rem);line-height:1.18;overflow-wrap:anywhere}
.portal-copy>span:last-child{font-size:.96rem;line-height:1.7}
.home-quick-actions{gap:.7rem;margin:1.45rem 0 1.2rem}
.home-quick-actions a{min-height:46px;align-items:center;justify-content:center;padding:.78rem 1.05rem;border-radius:12px}
.home-quick-actions a:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(21,88,201,.12)}
.home-explainer{
  gap:clamp(1.2rem,4vw,3.5rem);
  margin-bottom:clamp(42px,6vw,76px);
  padding-top:clamp(1rem,2vw,1.8rem);
}
.home-explainer h2{max-width:18ch}
.home-explainer>p,.home-explainer>div+div{line-height:1.8}
.seo-home-content{border-top:1px solid var(--line);padding-top:2.3rem}
.seo-home-content p{line-height:1.8}
.collection-page,.tools-page,.maker,.blog-home,.article-page,.admin-shell{
  width:min(100%,var(--content));
  margin-inline:auto;
}
.breadcrumbs{padding-top:1.25rem;padding-bottom:.25rem;gap:.5rem;line-height:1.5}
.collection-hero{padding-top:clamp(2.2rem,5vw,3.5rem);padding-bottom:1.4rem}
.collection-hero h1{max-width:22ch}
.collection-hero .hero-copy{margin-top:.3rem}
.gallery-section,.collection-gallery{padding-top:clamp(2rem,4vw,3.25rem);padding-bottom:clamp(2.5rem,5vw,4rem)}
.section-heading{gap:1.25rem;margin-bottom:.3rem}
.section-heading h2{margin-bottom:.15rem}
.section-heading .muted{margin:0 0 .2rem;line-height:1.5}
.filters-wrap{gap:1.25rem;padding:clamp(1.1rem,3vw,2rem);margin-inline:auto}
.filters{gap:1rem}
.filters label,.dialog-card label,.conscious-box label{display:block;line-height:1.5}
.filters select{margin-top:.5rem}
.masonry{column-gap:1.1rem;margin-top:1.5rem}
.card,.portal-card,.hub-card,.blog-card,.postal-card,.tile,.collection-note,.maker-panel,.editor,.admin-panel{
  border-color:#e1e7f0;
}
.card{margin-bottom:1.1rem;border-radius:17px;box-shadow:0 4px 16px rgba(23,32,51,.045)}
.card-body{padding:1.05rem}
.card-body>p{line-height:1.7}
.card-title{line-height:1.4;margin-bottom:.5rem}
.actions{gap:.55rem}
.actions button{min-height:42px;line-height:1.3;white-space:normal}
.tag{line-height:1.5;padding:.25rem .55rem}
.hub-grid{gap:.9rem;margin-top:1.5rem}
.hub-card{min-height:100px;padding:1.1rem;border-radius:16px}
.hub-card strong{line-height:1.35}
.hub-card span{line-height:1.5}
.collection-note{
  margin-top:2rem;
  margin-bottom:clamp(2.5rem,5vw,4rem);
  padding:clamp(1.15rem,3vw,1.8rem);
  border-radius:18px;
  line-height:1.8;
}
.collection-note h2{margin:0 0 .75rem}
.collection-note h2:not(:first-child){margin-top:2rem}
.collection-note h3{margin-top:1.6rem}
.collection-note p{max-width:75ch;line-height:1.8}
.collection-note ul,.article-content ul,.article-content ol{padding-left:1.35rem;line-height:1.85}
.collection-note li+li,.article-content li+li{margin-top:.45rem}
.blog-grid{gap:1.1rem;margin-top:1.5rem}
.blog-card{padding:clamp(1.1rem,2.5vw,1.5rem);border-radius:18px;box-shadow:0 4px 16px rgba(23,32,51,.035)}
.blog-card h2,.blog-card h3{line-height:1.3}
.blog-card>p:not(.eyebrow){line-height:1.75}
.article-page{padding-top:1.5rem;padding-bottom:clamp(3rem,7vw,5.5rem)}
.long-article h1{line-height:1.08;margin:.3rem 0 1rem}
.article-lead{font-size:clamp(1.05rem,1.5vw,1.18rem);line-height:1.8}
.article-content{margin-top:2.3rem}
.article-content h2{margin:2.5rem 0 .8rem;line-height:1.2}
.article-content h3{margin:1.7rem 0 .55rem}
.article-content p{margin:1rem 0;font-size:1.03rem;line-height:1.85}
.tools-page{padding:clamp(2rem,5vw,3.5rem) clamp(16px,4vw,48px)}
.tools-page>h1{max-width:22ch;margin-top:.2rem}
.tools-page .hero-copy{margin-top:.25rem}
.tools-page .privacy{margin:1.5rem 0 1.75rem;padding:1rem 1.1rem;line-height:1.7;border-radius:14px}
#filter{min-height:48px;margin:.25rem 0 .5rem;font:inherit;line-height:1.5}
.tiles{gap:1rem;margin:1.5rem 0 2.5rem}
.tile{
  min-width:0;
  min-height:160px;
  gap:.65rem;
  padding:1.15rem;
  border-radius:16px;
  background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);
  box-shadow:0 3px 12px rgba(23,32,51,.025);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.tile:hover{transform:translateY(-2px);border-color:#b8cbed;box-shadow:0 10px 22px rgba(23,32,51,.07)}
.tile b{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--blue-soft);font-size:1.3rem}
.tile strong{font-size:1rem;line-height:1.35}
.tile span{font-size:.92rem;line-height:1.6}
#editor{scroll-margin-top:115px;margin-top:2rem}
#editor>h2{margin-bottom:1rem}
.editor{padding:clamp(1rem,2.5vw,1.5rem);border-radius:20px;background:#f8faff}
.upload{padding:clamp(1.2rem,3vw,2.2rem);border-color:#b7c8e4;line-height:1.7}
.upload strong{display:block;font-size:1.05rem;line-height:1.4}
.work{gap:1.2rem}
.preview{padding:1rem;border-radius:15px}
.preview img{max-height:520px}
.controls{gap:.9rem}
.controls label{gap:.45rem;line-height:1.45}
.controls input,.controls select{min-height:46px;border-radius:10px}
.btns{gap:.65rem;margin-top:1.1rem}
.btns button,.download,.maker button,.maker a.download{min-height:44px;line-height:1.3}
.status{margin:.65rem 0 0;line-height:1.65;overflow-wrap:anywhere}
.maker{padding:clamp(2rem,5vw,3.5rem) clamp(16px,4vw,48px)}
.maker>h1{max-width:22ch}
.maker-panel{padding:clamp(1rem,2.5vw,1.6rem);border-radius:20px;line-height:1.7}
.maker-grid{gap:1rem}
.maker label{gap:.5rem;line-height:1.5}
.maker input,.maker select,.maker textarea{min-height:46px;padding:.75rem .85rem;line-height:1.5}
.maker textarea{min-height:115px}
.maker-preview{margin-top:1.25rem;padding:clamp(.8rem,2vw,1.2rem);border-radius:15px}
.maker-preview p{margin:.8rem 0 0}
.postal-grid{gap:1.1rem}
.postal-card{border-radius:18px;box-shadow:0 5px 18px rgba(23,32,51,.05)}
.visual-postal{min-height:330px;padding:clamp(1.3rem,3vw,2.1rem)}
.visual-postal p{line-height:1.45;text-wrap:pretty;overflow-wrap:anywhere}
.postal-card-body{padding:1.1rem}
.postal-card-body h2{line-height:1.35}
.postal-card-body .actions{margin-top:1rem}
.postal-filters{gap:.65rem;margin-top:1.6rem}
.postal-filter{min-height:44px;padding:.65rem .9rem;border-radius:999px}
.intent-links{gap:.65rem;margin-top:1.5rem}
.intent-link{min-height:42px;padding:.62rem .85rem}
.dialog-card{padding:clamp(1.15rem,4vw,1.7rem);line-height:1.65}
.dialog-card h2{padding-right:2rem;margin-bottom:1rem}
.dialog-card label{margin:1rem 0}
.dialog-card input,.dialog-card textarea{margin-top:.45rem;min-height:46px}
.dialog-card textarea{resize:vertical}
.dialog-actions{gap:.7rem;margin-top:1.25rem}
footer{
  align-items:center;
  padding:1.5rem clamp(16px,4vw,52px);
  background:#fcfdff;
  line-height:1.6;
}
footer span{max-width:62ch}
.admin-shell{padding:clamp(2rem,5vw,3.5rem) clamp(16px,4vw,48px)}
.admin-head{margin-bottom:1.8rem}
.admin-panel{padding:clamp(1rem,2.5vw,1.5rem);line-height:1.7}
.admin-grid{gap:1rem}
.admin-panel label{line-height:1.5}
.admin-panel input,.admin-panel select,.admin-panel textarea{min-height:46px;line-height:1.5}
.admin-actions{gap:.7rem}
.admin-result{line-height:1.75}
.generated-output{margin-top:1.2rem;padding:1.2rem;line-height:1.75}
.home-explainer a,.seo-home-content a{color:var(--blue);font-weight:650;text-decoration-thickness:1px;text-underline-offset:3px}
.home-explainer a:hover,.seo-home-content a:hover{text-decoration:underline}
@media(max-width:900px){
  .site-header{gap:.9rem}
  .portal-grid,.postal-grid{gap:.85rem}
  .home-explainer{gap:1.25rem}
  .tools-page .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .site-header{
    position:sticky;
    align-items:flex-start;
    flex-direction:column;
    gap:.45rem;
    padding:.65rem 16px .55rem;
  }
  .brand{font-size:.98rem}
  .top-nav{
    display:flex;
    width:100%;
    max-width:100%;
    gap:.35rem;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    padding:.2rem 0 .3rem;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .top-nav a{
    flex:0 0 auto;
    padding:.42rem .62rem;
    border:1px solid #e4eaf3;
    border-radius:999px;
    background:#fff;
    font-size:.82rem;
  }
  .hero{padding-top:2.5rem;padding-bottom:2.3rem}
  .portal-hero{padding-top:2.5rem;padding-bottom:2.5rem}
  .portal-copy{margin-top:1.2rem}
  .portal-card{min-height:230px}
  .home-explainer{padding-top:1rem;padding-bottom:1rem;margin-bottom:2.5rem}
  .section-heading{align-items:flex-start}
  .tools-page{padding-top:2rem}
  .tools-page .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .work{grid-template-columns:1fr}
  .collection-note{margin-inline:16px}
  footer{gap:.4rem}
}
@media(max-width:520px){
  h1{font-size:clamp(2rem,9vw,2.8rem)}
  h2{font-size:clamp(1.45rem,7vw,1.9rem)}
  .hero-copy{font-size:1rem;line-height:1.75}
  .portal-grid,.postal-grid{grid-template-columns:1fr}
  .portal-card{min-height:0;padding:1.2rem}
  .portal-copy{margin-top:1rem}
  .portal-arrow{right:1rem;bottom:.85rem}
  .home-quick-actions{display:grid;grid-template-columns:1fr}
  .home-quick-actions a{width:100%}
  .filters-wrap{border-radius:18px}
  .filters{gap:.85rem}
  .masonry{columns:1}
  .tools-page .tiles{grid-template-columns:1fr}
  .tile{min-height:0}
  .maker-grid{grid-template-columns:1fr}
  .maker .full{grid-column:auto}
  .visual-postal{min-height:285px}
  .section-heading,footer{flex-direction:column}
  .blog-grid{grid-template-columns:1fr}
  .blog-home{padding-top:2.5rem;padding-bottom:2.5rem}
}
@media(prefers-reduced-motion:reduce){
  .portal-card:hover,.tile:hover{transform:none}
}


/* Design refinement: page-specific layouts and home actions */
.portal-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.home-quick-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin:1.45rem 0 1.2rem}
.home-quick-actions a{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;
  padding:.78rem 1.05rem;border:1px solid var(--blue);border-radius:12px;
  background:var(--blue);color:#fff;text-decoration:none;font-weight:750;
}
.home-quick-actions a:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(21,88,201,.12)}
.home-quick-actions a+a{background:var(--blue-soft);color:var(--blue);border-color:#c9d9f2}
.seo-tool .intro{max-width:70ch;font-size:clamp(1.05rem,1.5vw,1.18rem);line-height:1.85}
.seo-tool .cta{min-height:46px;align-items:center;justify-content:center;padding:.8rem 1.15rem}
.seo-tool .notice{margin:1.35rem 0 2.1rem;padding:1.1rem 1.2rem;line-height:1.75}
.seo-tool section+section{margin-top:2.6rem}
.seo-tool .benefits{gap:1rem;margin:1.5rem 0 2rem}
.seo-tool .benefits article,.seo-tool .faq-item{padding:1.2rem;border-radius:16px;box-shadow:0 3px 14px rgba(23,32,51,.035)}
.seo-tool .benefits h3,.seo-tool .faq-item h3{margin:0 0 .65rem;line-height:1.3}
.seo-tool .benefits p,.seo-tool .faq-item p{margin:.3rem 0 0;line-height:1.75}
.seo-tool .steps{gap:.85rem;line-height:1.75}
.seo-tool .steps li{padding:.15rem 0 .15rem .2rem}
.seo-tool .faq{gap:.85rem;margin-top:1.1rem}
.seo-tool .link-list{gap:.6rem;margin:1.5rem 0}
.seo-tool .link-list a{display:inline-flex;align-items:center;min-height:40px;padding:.5rem .75rem;border:1px solid #d8e4f5;border-radius:999px;background:#fff;text-decoration:none}
.seo-tool .link-list a:hover{background:var(--blue-soft)}
.guide article{max-width:74ch;font-size:1.04rem;line-height:1.85}
.guide article h1{max-width:22ch;margin:.25rem 0 1.1rem}
.guide article h2{margin:2.5rem 0 .8rem;line-height:1.22}
.guide article p{margin:1rem 0;line-height:1.85}
.guide article li{margin:.5rem 0;line-height:1.75}
.guide .intro{margin:0 0 1.5rem;font-size:clamp(1.06rem,1.5vw,1.18rem);line-height:1.8}
.guide .related{margin-top:2.5rem;padding:clamp(1.1rem,3vw,1.5rem);border:1px solid #d8e4f5;border-radius:18px;background:#f4f8ff;line-height:1.8}
.guide .related h2{margin:.1rem 0 .75rem;font-size:1.4rem}
.maker .maker-panel{margin-top:1.25rem;padding:clamp(1rem,2.5vw,1.6rem);border-radius:20px;line-height:1.75}
.maker .maker-grid{gap:1rem}
main.maker label{gap:.5rem;line-height:1.5}
.maker .maker-preview{margin-top:1.25rem;padding:clamp(.8rem,2vw,1.2rem);border-radius:16px}
.maker .maker-preview img{max-height:min(68vh,680px);object-fit:contain}
.tools-page .tiles{gap:1rem;margin:1.6rem 0 2.5rem}
.tools-page .tile{
  min-height:160px;padding:1.15rem;gap:.65rem;border-radius:16px;
  background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);
  box-shadow:0 3px 12px rgba(23,32,51,.025);
}
.tools-page .tile:hover{transform:translateY(-2px);border-color:#b8cbed;box-shadow:0 10px 22px rgba(23,32,51,.07)}
.tools-page .tile b{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--blue-soft);font-size:1.3rem}
.tools-page .tile strong{font-size:1rem;line-height:1.35}
.tools-page .tile span{font-size:.92rem;line-height:1.6}
.tools-page .editor{margin-top:1.2rem;padding:clamp(1rem,2.5vw,1.5rem);border-radius:20px}
.tools-page .upload{padding:clamp(1.2rem,3vw,2.2rem);line-height:1.7}
.tools-page .upload strong{display:block;font-size:1.05rem;line-height:1.4}
.tools-page .work{gap:1.2rem}
.tools-page .preview{padding:1rem;border-radius:15px}
.tools-page .controls{gap:.9rem}
.tools-page .controls label{gap:.45rem;line-height:1.45}
.tools-page .btns{gap:.65rem;margin-top:1.1rem}
.tools-page .status{margin:.65rem 0 0;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:720px){
  .seo-tool .benefits{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-quick-actions{gap:.6rem}
}
@media(max-width:520px){
  .home-quick-actions{display:grid;grid-template-columns:1fr}
  .home-quick-actions a{width:100%}
  .seo-tool .benefits{grid-template-columns:1fr}
  .seo-tool .cta{width:100%}
}


/* Final responsive audit: balanced homepage grid */
.portal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.card-title{margin:.05rem 0 .5rem}
.blog-card h2,.blog-card h3{margin:.2rem 0 .7rem}
@media(max-width:900px){
  .portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .portal-grid{grid-template-columns:1fr}
}


/* Pulido global de navegación, lectura y estados interactivos */
:root{--shadow-card:0 8px 24px rgba(23,32,51,.045);--shadow-hover:0 14px 32px rgba(23,32,51,.09)}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{color:var(--text);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
a{transition:color .16s ease}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(11,87,208,.38);outline-offset:3px}
.site-header{position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;gap:1.25rem;min-height:74px;padding:.8rem clamp(16px,4vw,48px);background:rgba(255,255,255,.96);border-bottom:1px solid rgba(219,227,238,.88);box-shadow:0 4px 18px rgba(23,32,51,.035);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.site-header .brand{display:inline-flex;align-items:center;gap:.65rem;flex:0 0 auto;color:var(--ink);font-size:1rem;font-weight:800;letter-spacing:-.025em;text-decoration:none}
.site-header .brand-mark{display:block;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#fff url("/assets/logo-simbolo.svg") center/contain no-repeat;border:1px solid #dce8f7;color:transparent;font-size:0;box-shadow:0 3px 10px rgba(11,87,208,.10)}
.top-nav{display:flex;align-items:center;justify-content:flex-end;gap:.25rem;flex-wrap:wrap}
.top-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:.55rem .75rem;border:1px solid transparent;border-radius:10px;color:#475467;font-size:.88rem;font-weight:650;text-decoration:none;white-space:nowrap}
.top-nav a:hover{background:#f2f6fc;color:var(--blue)}
.top-nav a[aria-current="page"]{background:var(--blue-soft);border-color:#d5e5ff;color:var(--blue)}
.site-header .brand:hover{color:var(--blue)}
main{min-width:0}
main h1{letter-spacing:-.04em;text-wrap:balance}
main h2{letter-spacing:-.025em;text-wrap:balance}
main p{line-height:1.75}
main :is(img,svg,video,canvas){max-width:100%}
:is(.tool-directory-card,.tile,.blog-card,.quote-card,.author-card,.creator-tool-card,.collection-note,.famous-about,.maker-panel){transition:border-color .18s ease,box-shadow .18s ease}
:is(.tool-directory-card,.tile,.blog-card,.quote-card,.author-card,.creator-tool-card):focus-visible{outline:3px solid rgba(11,87,208,.35);outline-offset:3px}
button,.button,.btn,.cta{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}
button:hover,.button:hover,.btn:hover,.cta:hover{filter:brightness(.985)}
footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem 1.25rem;padding:1.5rem clamp(18px,5vw,58px);border-top:1px solid var(--line);background:#fbfcfe;color:var(--muted);font-size:.88rem}
footer strong{color:var(--ink)}
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;color:var(--muted);font-size:.86rem;line-height:1.6}
.breadcrumbs a{color:var(--blue);text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.collection-hero,.famous-hero,.creator-hub-hero{max-width:920px}
.collection-hero h1,.famous-hero h1,.creator-hub-hero h1{line-height:1.1}
.collection-note,.famous-about{box-shadow:var(--shadow-card)}
input,textarea,select{max-width:100%;font:inherit}
img{height:auto}
[hidden]{display:none!important}
@media(max-width:850px){
 .site-header{align-items:flex-start;flex-direction:column;gap:.55rem;padding:.7rem clamp(14px,4vw,28px)}
 .top-nav{justify-content:flex-start;width:100%;gap:.2rem}
 .top-nav a{min-height:38px;padding:.45rem .62rem;font-size:.84rem}
}
@media(max-width:480px){
 .site-header .brand{font-size:.96rem}
 .site-header .brand-mark{width:38px;height:38px;flex-basis:38px}
 .top-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem}
 .top-nav a{padding:.45rem .35rem;white-space:normal;text-align:center;font-size:.78rem;line-height:1.2}
 footer{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* Páginas informativas: mismo ancho de contenedor que el resto del sitio */
.guide{
  width:min(100%,var(--content));
  margin-inline:auto;
  padding:clamp(1.25rem,3.5vw,2.6rem) clamp(18px,5vw,58px) 4rem;
}
.guide .breadcrumbs{margin-bottom:1.6rem}
.guide article{
  width:100%;
  max-width:none;
  margin:0;
  padding:clamp(1.25rem,2.5vw,2rem);
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow);
  font-size:1.02rem;
  line-height:1.8;
}
.guide article h1{max-width:22ch}
.guide article h2{font-size:clamp(1.25rem,2vw,1.55rem)}
.guide article p{max-width:100%;line-height:1.8}
.guide article li{line-height:1.75}
.guide article a{color:var(--blue);text-underline-offset:3px}
.guide article a:hover{color:var(--blue-dark)}
@media(max-width:600px){
  .guide{padding:1rem 14px 2.5rem}
  .guide article{padding:1.1rem;border-radius:15px;font-size:1rem}
  .guide article h1{font-size:clamp(1.8rem,8vw,2.35rem)}
}

/* Pie de página compacto, descriptivo y coherente en todo el sitio */
footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem 1.25rem;padding:1.35rem clamp(18px,5vw,58px);border-top:1px solid var(--line);background:#fbfcfe;color:var(--muted);font-size:.88rem}
footer strong{color:var(--blue);font-weight:750;white-space:nowrap}
footer .footer-description{flex:1 1 320px;max-width:62ch;margin:0;color:var(--muted);font-size:.88rem;line-height:1.55}
footer .legal-footer-links{display:flex;flex-wrap:wrap;gap:.5rem 1rem}
footer .legal-footer-links a{color:var(--blue);font-weight:650;text-decoration:none}
footer .legal-footer-links a:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:720px){footer{align-items:flex-start;flex-direction:column;gap:.45rem}footer .footer-description{flex-basis:auto}}


/* Paso 4 SEO: navegación móvil visible y controles cómodos al tacto */
@media (min-width:481px) and (max-width:720px){
  .top-nav{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    max-width:100%;
    padding:.15rem 0 .45rem;
    gap:.35rem;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .top-nav a{
    flex:0 0 auto;
    min-height:44px;
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
    padding:.55rem .7rem;
  }
}
@media (max-width:480px){
  .top-nav a{min-height:44px;display:flex;align-items:center;justify-content:center}
}
:target{scroll-margin-top:1.25rem}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}


/* Punto 4: navegación móvil visible, desplazable y cómoda al tacto. */
@media(max-width:720px){
  .site-header{
    align-items:center;
    flex-wrap:wrap;
    gap:.55rem;
    padding:.65rem 16px;
  }
  .top-nav{
    display:flex;
    flex:1 0 100%;
    min-width:0;
    max-width:100%;
    gap:.35rem;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    padding:.15rem 0 .35rem;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .top-nav a{
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    min-height:44px;
    padding:.55rem .7rem;
    border-radius:9px;
    background:#f4f7fc;
    font-size:.88rem;
    white-space:nowrap;
  }
  .top-nav a[aria-current="page"]{
    color:#0848ad;
    background:#e8f0fe;
  }
}


/* Accesibilidad: enlace para saltar la navegación con teclado. */
.skip-link{
  position:absolute;
  top:-80px;
  left:12px;
  z-index:1000;
  padding:.75rem 1rem;
  border:2px solid #0848ad;
  border-radius:10px;
  background:#fff;
  color:#0848ad;
  font-weight:750;
  box-shadow:0 3px 12px rgba(16,24,40,.15);
}
.skip-link:focus{top:12px}

/* Paso 4-1: garantizar objetivos táctiles de navegación de al menos 44 px en móvil y tableta. */
@media (max-width:850px){
  .top-nav a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}
