/* Portada de herramientas: directorio visual inspirado en interfaces de utilidades online */
.home-tools{
  width:min(100%,1280px);
  margin:0 auto;
  padding:20px clamp(18px,4vw,48px) 58px;
}
.home-tools-heading{text-align:center;max-width:780px;margin:0 auto 1.8rem}
.home-tools-heading .eyebrow{margin-bottom:.6rem}
.home-tools-heading h2{margin:.1rem 0 .65rem;font-size:clamp(1.8rem,3.4vw,2.55rem);letter-spacing:-.035em}
.home-tools-heading>p:last-child{margin:0;color:#667085;font-size:1.02rem;line-height:1.65}
.tool-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.tool-directory-card{
  display:flex;min-width:0;min-height:204px;flex-direction:column;align-items:flex-start;
  padding:1.25rem;border:1px solid #d9e0eb;border-radius:17px;background:#fff;
  color:#293241;text-decoration:none;box-shadow:0 2px 7px rgba(23,32,51,.025);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.tool-directory-card:hover{transform:translateY(-3px);border-color:#a9c7f8;box-shadow:0 12px 28px rgba(23,32,51,.09)}
.tool-directory-card:focus-visible{outline:3px solid rgba(11,87,208,.28);outline-offset:3px}
.tool-directory-card strong{margin:.95rem 0 .45rem;color:#252b38;font-size:1.02rem;font-weight:740;line-height:1.3;letter-spacing:-.015em}
.tool-directory-card>span:last-child{color:#687385;font-size:.88rem;line-height:1.5}
.tool-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;font-size:1.5rem;font-weight:800;line-height:1}
.icon-compress{background:#e7f5df;color:#4c942f}
.icon-resize{background:#e0f5fb;color:#168db6}
.icon-crop{background:#dff5fc;color:#168db6}
.icon-convert{background:#fff2bc;color:#b88b00}
.icon-rotate{background:#e4f5e9;color:#348e60}
.icon-text{background:#f6e5f1;color:#a54b8d}
.icon-watermark{background:#e5efff;color:#2864ad}
.icon-create{background:#eee8ff;color:#7050bf}
.home-tools-more{margin:1.5rem 0 0;text-align:center}
.home-tools-more a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.65rem 1rem;border:1px solid #b7c8e4;border-radius:11px;color:#0b57d0;font-weight:720;text-decoration:none}
.home-tools-more a:hover{background:#eef5ff}
.home-explainer{width:min(100%,1180px);margin:0 auto;padding:40px clamp(18px,5vw,58px);display:grid;grid-template-columns:.85fr 1.15fr;gap:2rem;align-items:start}
.home-explainer h2{margin-top:.2rem}
.home-explainer>p,.home-explainer>div>p:not(.eyebrow){margin:.15rem 0 .85rem;color:#475467;line-height:1.75}
.seo-home-content{border-top:1px solid #e5eaf2}
@media(min-width:1450px){.tool-directory{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.tool-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.home-explainer{grid-template-columns:1fr;gap:.6rem}}
@media(max-width:720px){
  .site-header{align-items:center;flex-wrap:wrap;gap:.6rem;padding:.65rem 16px}
  .brand{font-size:.95rem}
  .brand-mark{width:34px;height:34px;flex-basis:34px}
  .top-nav{display:flex;order:2;width:100%;gap:.45rem;overflow-x:auto;padding:.15rem 0 .25rem;scrollbar-width:thin}
  .top-nav a{flex:0 0 auto;padding:.42rem .68rem;border:1px solid #e0e6ef;border-radius:999px;background:#fff;font-size:.8rem;white-space:nowrap}
  .portal-hero{padding-top:44px;padding-bottom:34px}
  .home-tools{padding-top:10px;padding-bottom:42px}
  .home-tools-heading{margin-bottom:1.25rem}
  .tool-directory{gap:.7rem}
  .tool-directory-card{min-height:190px;padding:1rem}
  .tool-directory-card strong{font-size:.96rem;margin-top:.75rem}
  .tool-directory-card>span:last-child{font-size:.84rem}
  .home-explainer{padding-top:32px;padding-bottom:32px}
}
@media(max-width:460px){
  .tool-directory{grid-template-columns:1fr}
  .tool-directory-card{min-height:0}
  .tool-directory-card strong{margin-top:.65rem}
}
@media(prefers-reduced-motion:reduce){.tool-directory-card{transition:none}}

.home-portals{width:min(100%,1280px);margin:0 auto;padding:12px clamp(18px,4vw,48px) 50px}
.home-portals .portal-grid{margin-top:0}
@media(max-width:720px){.home-portals{padding-top:4px;padding-bottom:36px}}

/* Hero visual propio: inspirado en una experiencia creativa, sin copiar recursos de terceros */
.portal-hero{padding-top:54px;padding-bottom:48px}
.home-hero-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:clamp(2rem,5vw,4.2rem);align-items:center}
.home-hero-copy h1{max-width:720px;font-size:clamp(2.5rem,5vw,4.15rem);line-height:1.04;letter-spacing:-.052em}
.home-hero-copy .hero-copy{max-width:660px;font-size:1.08rem}
.home-quick-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin:1.6rem 0 1.1rem}
.home-quick-actions a{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;padding:.75rem 1.1rem;border-radius:12px;text-decoration:none;font-weight:750}
.home-primary-action{background:#0b57d0;color:#fff;box-shadow:0 8px 18px rgba(11,87,208,.18)}
.home-primary-action:hover{background:#083b8f}
.home-secondary-action{border:1px solid #b7c8e4;background:#fff;color:#0b57d0}
.home-secondary-action:hover{background:#eef5ff}
.home-hero-proof{display:flex;flex-wrap:wrap;gap:.55rem 1rem;color:#667085;font-size:.8rem}
.home-hero-proof span{display:inline-flex;align-items:center;gap:.35rem}
.home-hero-proof b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e4f5e9;color:#287c4d;font-size:.72rem}
.home-hero-visual{position:relative;min-width:0;padding:1rem 1.1rem 1.5rem}
.hero-art-window{overflow:hidden;border:1px solid #dce5f2;border-radius:24px;background:#fff;box-shadow:0 24px 60px rgba(29,61,111,.13);transform:rotate(1.2deg)}
.hero-art-toolbar{display:flex;align-items:center;gap:6px;height:48px;padding:0 16px;border-bottom:1px solid #e6ecf4;background:#fff}
.hero-art-dot{width:9px;height:9px;border-radius:50%;background:#d5deeb}
.hero-art-toolbar-label{margin-left:8px;color:#8b96a8;font-size:.75rem;font-weight:650}
.hero-art-photo{position:relative;display:grid;place-items:center;min-height:300px;overflow:hidden;background:linear-gradient(155deg,#e5f3ff 0%,#f4f8ff 45%,#fcefdc 100%)}
.hero-art-sun{position:absolute;top:34px;right:16%;width:76px;height:76px;border-radius:50%;background:#ffd88c;box-shadow:0 0 0 18px rgba(255,216,140,.17)}
.hero-art-hill{position:absolute;right:-8%;bottom:-42px;left:-8%;height:180px;border-radius:50% 50% 0 0}
.hero-art-hill-back{bottom:-74px;left:-15%;background:#a6d4d1;transform:rotate(-8deg)}
.hero-art-hill-front{bottom:-112px;right:-18%;background:#76b6aa;transform:rotate(8deg)}
.hero-art-postcard{position:relative;z-index:2;display:flex;flex-direction:column;gap:.9rem;width:min(76%,330px);padding:1.5rem 1.35rem;border:1px solid rgba(255,255,255,.8);border-radius:17px;background:rgba(255,255,255,.91);box-shadow:0 12px 28px rgba(26,66,88,.12);transform:rotate(-3deg)}
.hero-art-postcard small{color:#0b57d0;font-size:.65rem;font-weight:850;letter-spacing:.12em}
.hero-art-postcard strong{color:#19344a;font-family:Georgia,serif;font-size:clamp(1.1rem,2vw,1.45rem);line-height:1.3}
.hero-art-postcard span{color:#667085;font-size:.75rem}
.hero-art-tool-row{display:flex;justify-content:space-around;gap:.5rem;padding:1rem .65rem;color:#344054;font-size:.76rem;font-weight:700}
.hero-art-tool-row>span{display:flex;align-items:center;gap:.42rem}
.art-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;font-size:1rem;font-style:normal}
.art-compress{background:#e7f5df;color:#4c942f}.art-crop{background:#dff5fc;color:#168db6}.art-convert{background:#fff2bc;color:#b88b00}
.hero-floating-card{position:absolute;z-index:3;display:flex;align-items:center;gap:.65rem;padding:.8rem .95rem;border:1px solid #e2e9f3;border-radius:15px;background:#fff;box-shadow:0 12px 30px rgba(23,32,51,.12)}
.hero-floating-quote{right:-5px;bottom:8px;max-width:225px}
.floating-quote-mark{color:#0b57d0;font-family:Georgia,serif;font-size:2.5rem;line-height:.8}
.hero-floating-quote strong,.hero-floating-quote small{display:block}
.hero-floating-quote strong{color:#172033;font-size:.84rem}
.hero-floating-quote small{color:#667085;font-size:.72rem}
.hero-floating-check{top:58px;left:-2px;font-size:.76rem}
.hero-floating-check>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e4f5e9;color:#287c4d;font-weight:900}
.hero-floating-check strong{color:#344054}
@media(max-width:900px){.home-hero-layout{grid-template-columns:1fr;gap:1.5rem}.home-hero-copy h1{max-width:800px}.home-hero-visual{width:min(100%,620px);margin:0 auto}.hero-art-photo{min-height:280px}}
@media(max-width:720px){.portal-hero{padding-top:38px;padding-bottom:28px}.home-hero-layout{gap:1rem}.home-hero-copy h1{font-size:clamp(2.35rem,9vw,3.35rem)}.home-hero-proof{gap:.45rem .75rem}.home-hero-visual{padding:.5rem .35rem 1.2rem}.hero-art-photo{min-height:245px}.hero-art-postcard{width:78%;padding:1.2rem}.hero-floating-quote{right:-3px;bottom:0}.hero-floating-check{top:30px;left:-5px}}
@media(max-width:440px){.home-quick-actions{display:grid;grid-template-columns:1fr}.home-quick-actions a{width:100%}.hero-art-tool-row{font-size:.68rem}.hero-art-tool-row>span{gap:.25rem}.hero-art-photo{min-height:220px}.hero-art-postcard strong{font-size:1.05rem}.hero-floating-card{padding:.65rem .7rem}.hero-floating-quote{max-width:185px}}


/* Auditoría de accesibilidad: contraste AA para texto pequeño de la cabecera ilustrada */
.hero-art-toolbar-label{color:#667085}


/* Rendimiento móvil: reducir capas de composición costosas sin quitar contenido ni funciones. */
@media (max-width: 720px) {
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .hero-art-window,
  .hero-art-postcard,
  .hero-floating-card {
    transform: none;
    box-shadow: none;
  }
  .hero-art-sun { box-shadow: none; }
  .tool-directory-card { transition: none; box-shadow: none; }
}
