/* ServiHogar V14: inicio directo, oficios compactos y cercania automatica. */

/* La bienvenida deja de competir con un formulario que ya no es necesario. */
body.is-home-page .home-intro{min-height:0;padding-block:clamp(34px,6vw,58px)}
body.is-home-page .home-intro::after{opacity:.42}
body.is-home-page .home-intro .home-welcome{max-width:780px}
body.is-home-page .home-intro .home-welcome h1{
  max-width:18ch;margin:9px 0 13px;font-size:clamp(2.25rem,8.5vw,4.35rem);line-height:.98
}
body.is-home-page .home-intro .home-welcome p{max-width:650px;font-size:clamp(1rem,2.4vw,1.14rem)}
body.is-home-page .nearby-context{
  display:inline-flex;align-items:center;gap:7px;margin-top:17px;padding:8px 12px;
  border:1px solid #cbdced;border-radius:999px;background:rgba(255,255,255,.72);
  color:#405b76;font-size:.82rem;font-weight:720
}
body.is-home-page .nearby-context svg{width:16px;height:16px;color:#0b61bc}

/* Seis accesos compactos: una fotografia discreta, un nombre y una flecha. */
body.is-home-page .category-section{padding-top:clamp(38px,6vw,58px);padding-bottom:28px}
body.is-home-page .category-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.is-home-page .category-card-photo{
  display:grid;grid-template-columns:58px minmax(0,1fr) 18px;align-items:center;gap:11px;
  min-height:82px;padding:10px;border:1px solid #d6e0eb;border-radius:18px;background:#fffefa;
  box-shadow:0 7px 22px rgba(19,53,88,.055)
}
body.is-home-page .category-card-photo::before,
body.is-home-page .category-card-photo::after{display:none}
body.is-home-page .category-photo{
  display:block;width:58px;height:58px;overflow:hidden;border-radius:14px;background:#eaf1f7
}
body.is-home-page .category-photo img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.86) contrast(.98)}
body.is-home-page .category-card-label{
  min-width:0;color:#123255;font-size:clamp(.88rem,3.5vw,1rem);font-weight:820;line-height:1.16
}
body.is-home-page .category-card-photo .category-arrow{position:static;align-self:center;color:#1764b0}
body.is-home-page .category-card-photo:hover,
body.is-home-page .category-card-photo:focus-visible{border-color:#8bb4dd;transform:translateY(-2px);box-shadow:0 12px 26px rgba(19,71,122,.1)}
body.is-home-page .category-card-photo.is-locating{opacity:.72;pointer-events:none}
body.is-home-page .category-card-photo.is-locating .category-arrow{animation:v14-locating .7s linear infinite}
@keyframes v14-locating{to{transform:rotate(360deg)}}

/* Invitacion profesional breve, cerca del momento en que la persona reconoce su oficio. */
body.is-home-page .professional-invite{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;
  margin-block:18px clamp(42px,7vw,72px);padding:clamp(20px,4vw,34px);
  overflow:hidden;border:1px solid #bfd4eb;border-radius:26px;
  background:linear-gradient(125deg,#edf6ff,#fffefa 66%,#fff2e8);box-shadow:0 18px 46px rgba(18,64,108,.09)
}
body.is-home-page .professional-invite::before{
  content:"";position:absolute;right:-55px;top:-75px;width:190px;height:190px;
  border:32px solid rgba(21,101,184,.07);border-radius:50%;pointer-events:none
}
body.is-home-page .professional-invite-copy{position:relative;z-index:1;max-width:670px}
body.is-home-page .professional-invite h2{max-width:20ch;margin:7px 0 9px;color:#0d315d;font-size:clamp(1.65rem,5vw,2.35rem)}
body.is-home-page .professional-invite p{max-width:60ch;margin:0 0 14px;color:#48617a}
body.is-home-page .professional-invite-benefits{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:17px}
body.is-home-page .professional-invite-benefits span{
  display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #d0ddea;
  border-radius:999px;background:rgba(255,255,255,.76);color:#405872;font-size:.75rem;font-weight:720
}
body.is-home-page .professional-invite-benefits svg{width:14px;height:14px;color:#17704f}
body.is-home-page .professional-invite-photos{position:relative;z-index:1;display:flex;align-items:center;padding-right:5px}
body.is-home-page .professional-invite-photos img{
  width:72px;height:72px;object-fit:cover;border:4px solid #fff;border-radius:50%;box-shadow:0 8px 22px rgba(16,53,91,.16);filter:saturate(.88)
}
body.is-home-page .professional-invite-photos img+img{margin-left:-18px}
body.is-home-page .featured-nearby{padding-top:clamp(34px,5vw,48px);padding-bottom:clamp(38px,5vw,52px)}

/* Resultados directos: no quedan restos visuales del panel de filtros. */
body.servihogar-app:not(.is-admin-route) .filter-toggle,
body.servihogar-app:not(.is-admin-route) #search-filters{display:none!important}
body.servihogar-app:not(.is-admin-route) .search-layout-simple{display:block;max-width:980px}
body.servihogar-app:not(.is-admin-route) .search-heading-simple{max-width:980px;margin-bottom:22px}
body.servihogar-app:not(.is-admin-route) .search-heading-simple .text-link{flex:0 0 auto;margin-top:8px}

/* Los tres pasos forman una unica secuencia compacta, no tres tarjetas vacias. */
body.is-home-page .steps-section{padding-block:clamp(34px,5vw,52px)}
body.is-home-page .steps-section .section-heading{margin-bottom:14px}
body.is-home-page .steps-section .section-heading h2{font-size:clamp(1.55rem,5.8vw,2.15rem)}
body.is-home-page .steps{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;overflow:hidden;
  border:1px solid #ccd9e7;border-radius:20px;background:#fffefa;
  box-shadow:0 10px 28px rgba(17,55,93,.065)
}
body.is-home-page .steps li{
  display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:7px;
  min-height:0;padding:15px 13px;border:0;border-right:1px solid #d9e3ec;border-radius:0;
  background:transparent;box-shadow:none;overflow:visible
}
body.is-home-page .steps li:last-child{border-right:0}
body.is-home-page .steps li:hover{transform:none;box-shadow:none;background:#f7faff}
body.is-home-page .steps li>span{width:32px;height:32px;box-shadow:none;font-size:.84rem}
body.is-home-page .steps h3{margin:0;color:#143658;font-size:.95rem;line-height:1.1}
body.is-home-page .steps p{grid-column:1/-1;margin:2px 0 0;color:#5a6e82;font-size:.76rem;line-height:1.25}

/* La confianza se explica con hechos que la plataforma puede demostrar. */
body.is-home-page .trust-section{
  padding-block:clamp(44px,7vw,72px);background:linear-gradient(145deg,#edf6ff,#fffefa 58%,#fff3e9)
}
body.is-home-page .trust-heading{max-width:760px;margin-bottom:22px}
body.is-home-page .trust-heading h2,
body.is-home-page .faq-heading h2{margin-top:7px;color:#0d315d;font-size:clamp(1.8rem,5vw,2.7rem)}
body.is-home-page .trust-heading p,
body.is-home-page .faq-heading p{max-width:650px;margin:8px 0 0;color:#48617a}
body.is-home-page .home-trust-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.is-home-page .home-trust-grid article{
  display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:start;padding:18px;
  border:1px solid #cbdbea;border-radius:20px;background:rgba(255,255,255,.88);box-shadow:0 9px 25px rgba(16,55,94,.06)
}
body.is-home-page .home-trust-grid article>span{
  display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#e5f1ff;color:#0759b2
}
body.is-home-page .home-trust-grid article:nth-child(2)>span{background:#e9f6ef;color:#126447}
body.is-home-page .home-trust-grid article:nth-child(3)>span{background:#fff1e6;color:#9a3a08}
body.is-home-page .home-trust-grid article:nth-child(4)>span{background:#f1edff;color:#5846a0}
body.is-home-page .home-trust-grid svg{width:23px;height:23px}
body.is-home-page .home-trust-grid h3{margin:1px 0 5px;color:#123255;font-size:1.03rem}
body.is-home-page .home-trust-grid p{margin:0;color:#536980;font-size:.88rem;line-height:1.45}
body.is-home-page .home-trust-note{
  max-width:820px;margin:16px 0 0;padding-left:12px;border-left:3px solid #d65a18;color:#536980;font-size:.8rem
}

/* Preguntas reales, sin un asistente ni otra pantalla que aprender. */
body.is-home-page .faq-section{padding-block:clamp(44px,7vw,70px);scroll-margin-top:92px}
body.is-home-page .faq-heading{max-width:720px;margin-bottom:22px}
body.is-home-page .faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
body.is-home-page .faq-grid details{
  align-self:start;overflow:hidden;border:1px solid #cfdae7;border-radius:17px;background:#fff;box-shadow:0 7px 20px rgba(17,55,93,.05)
}
body.is-home-page .faq-grid summary{
  position:relative;min-height:58px;display:flex;align-items:center;padding:15px 48px 15px 17px;color:#123255;
  font-weight:800;line-height:1.3;cursor:pointer;list-style:none
}
body.is-home-page .faq-grid summary::-webkit-details-marker{display:none}
body.is-home-page .faq-grid summary::after{
  content:"+";position:absolute;right:17px;top:50%;width:27px;height:27px;display:grid;place-items:center;
  border-radius:50%;background:#e8f2ff;color:#075bb9;font-size:1.15rem;line-height:1;transform:translateY(-50%)
}
body.is-home-page .faq-grid details[open] summary::after{content:"−"}
body.is-home-page .faq-grid details[open] summary{background:#f5f9ff}
body.is-home-page .faq-grid summary:focus-visible{outline:3px solid #064aa8;outline-offset:-3px}
body.is-home-page .faq-grid details p{margin:0;padding:0 17px 17px;color:#526981;font-size:.88rem;line-height:1.48}

/* Instalacion visible al final: el selector evita instrucciones equivocadas. */
.servihogar-app .app-install-dock{display:none!important}
.servihogar-app .install-center{
  margin-block:clamp(42px,7vw,72px);padding:clamp(18px,3vw,26px);
  border:1px solid #cad9e9;border-radius:24px;background:linear-gradient(135deg,#f4f8fd,#fffefa);
  box-shadow:0 14px 34px rgba(15,51,87,.07)
}
.servihogar-app .install-center-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}
.servihogar-app .install-center-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e5f1ff;color:#0759b2}
.servihogar-app .install-center-mark svg{width:25px;height:25px}
.servihogar-app .install-center h2{margin:3px 0 4px;color:#10325a;font-size:clamp(1.35rem,4vw,1.85rem)}
.servihogar-app .install-center p{margin:0;color:#526981}
.servihogar-app .install-device-options{margin-top:20px;padding-top:18px;border-top:1px solid #d7e2ed}
.servihogar-app .install-device-options>p{margin-bottom:10px;color:#173a63;font-weight:790}
.servihogar-app .install-device-options>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.servihogar-app .install-device-button{
  display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 10px;min-height:72px;padding:12px;
  border:1px solid #cbdbea;border-radius:17px;background:#fff;color:#153658;text-align:left;cursor:pointer
}
.servihogar-app .install-device-button>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#edf5ff;color:#075bb9}
.servihogar-app .install-device-button svg{width:21px;height:21px}
.servihogar-app .install-device-button strong{font-size:.98rem}
.servihogar-app .install-device-button small{color:#5a6f85;font-size:.73rem}
.servihogar-app .install-device-button:hover,.servihogar-app .install-device-button:focus-visible{border-color:#78a8d8;background:#f7fbff}
.servihogar-app .install-device-guide{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr) auto;align-items:center;gap:16px;margin-top:16px;padding:16px;border:1px solid #c8dcef;border-radius:18px;background:#edf6ff}
.servihogar-app .install-device-guide[hidden]{display:none}
.servihogar-app .install-device-guide strong{color:#103b6b}
.servihogar-app .install-device-guide p{margin-top:4px;font-size:.84rem}
.servihogar-app .install-device-guide ol{display:flex;gap:12px;margin:0;padding:0;list-style:none}
.servihogar-app .install-device-guide li{display:flex;align-items:center;gap:6px;color:#405b76;font-size:.78rem}
.servihogar-app .install-device-guide li b{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:#0b63bf;color:#fff}

@media (min-width:600px){
  body.is-home-page .category-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.is-home-page .category-card-photo{grid-template-columns:66px minmax(0,1fr) 20px;min-height:94px;padding:12px}
  body.is-home-page .category-photo{width:66px;height:66px}
}

@media (min-width:1000px){
  body.is-home-page .category-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  body.is-home-page .category-card-photo{grid-template-columns:72px minmax(0,1fr) 20px;min-height:102px;padding:14px}
  body.is-home-page .category-photo{width:72px;height:72px}
}

@media (max-width:599px){
  body.is-home-page .professional-invite{grid-template-columns:1fr;padding:20px 18px}
  body.is-home-page .professional-invite-copy{display:grid}
  body.is-home-page .professional-invite .button{width:100%}
  body.is-home-page .professional-invite-photos{display:none}
  body.is-home-page .professional-invite .eyebrow{max-width:none}
  body.is-home-page .professional-invite h2{max-width:19ch;padding-right:0}
  body.servihogar-app:not(.is-admin-route) .search-heading-simple{display:block}
  body.servihogar-app:not(.is-admin-route) .search-heading-simple .text-link{display:inline-flex;margin-top:12px}
  .servihogar-app .install-center-main{grid-template-columns:auto minmax(0,1fr)}
  .servihogar-app .install-center-main>.button{grid-column:1/-1;width:100%}
  .servihogar-app .install-device-options>div{grid-template-columns:1fr}
  .servihogar-app .install-device-guide{grid-template-columns:1fr}
  .servihogar-app .install-device-guide ol{display:grid;gap:9px}
  .servihogar-app .install-device-guide>.button{width:100%}
  body.is-home-page .steps-section{padding-block:32px 38px}
  body.is-home-page .steps-section .section-heading{margin-bottom:12px}
  body.is-home-page .steps{border-radius:17px}
  body.is-home-page .steps li{grid-template-columns:28px minmax(0,1fr);gap:6px;padding:12px 9px}
  body.is-home-page .steps li>span{width:28px;height:28px;font-size:.76rem}
  body.is-home-page .steps h3{font-size:.84rem}
  body.is-home-page .steps p{font-size:.68rem}
  .servihogar-app .install-center{margin-block:34px;padding:16px;border-radius:20px}
  .servihogar-app .install-center[hidden]{display:none!important}
  body.is-home-page .featured-nearby{padding-block:34px 38px}
  body.is-home-page .home-trust-grid,
  body.is-home-page .faq-grid{grid-template-columns:1fr}
  body.is-home-page .home-trust-grid article{grid-template-columns:42px minmax(0,1fr);padding:15px}
  body.is-home-page .home-trust-grid article>span{width:42px;height:42px}
  body.is-home-page .trust-section,
  body.is-home-page .faq-section{padding-block:38px}
}

@media (max-width:379px){
  body.is-home-page .category-card-photo{grid-template-columns:50px minmax(0,1fr) 16px;gap:8px;min-height:72px;padding:8px}
  body.is-home-page .category-photo{width:50px;height:50px;border-radius:12px}
  body.is-home-page .category-card-label{font-size:.82rem}
}

@media (prefers-reduced-motion:reduce){
  body.is-home-page .category-card-photo.is-locating .category-arrow{animation:none}
}
