/*
 * ServiHogar V4
 * Capa visual premium sobre V3. Mantiene el markup y los flujos existentes,
 * usa solamente activos locales y reserva el naranja para acciones y señales.
 */
:root{
  --ink:#10233f;
  --ink-soft:#405471;
  --muted:#5f7087;
  --line:#d7e1ee;
  --line-strong:#adbed3;
  --surface:#fff;
  --surface-soft:#f4f7fc;
  --surface-tint:#eaf2ff;
  --brand:#064aa8;
  --brand-dark:#052f72;
  --brand-deep:#031f4d;
  --brand-bright:#1d6fd0;
  --brand-light:#dbeaff;
  --accent:#f87524;
  --accent-dark:#c84a0a;
  --accent-ink:#b63d05;
  --accent-soft:#fff0e5;
  --success:#126447;
  --success-soft:#e8f7f0;
  --warning:#7a5100;
  --warning-soft:#fff5d9;
  --danger:#a62f3d;
  --danger-soft:#fff0f2;
  --info:#245e89;
  --violet:#6451b8;
  --violet-soft:#f0edff;
  --cyan:#087d83;
  --cyan-soft:#e6f8f8;
  --rose:#a74469;
  --rose-soft:#fff0f6;
  --shadow-xs:0 1px 2px rgba(3,31,77,.05),0 4px 12px rgba(3,31,77,.04);
  --shadow:0 12px 30px rgba(3,31,77,.08),0 2px 8px rgba(3,31,77,.04);
  --shadow-strong:0 26px 64px rgba(3,31,77,.14),0 5px 18px rgba(3,31,77,.08);
  --shadow-float:0 20px 46px rgba(3,31,77,.13),0 3px 10px rgba(3,31,77,.05);
  --radius:22px;
  --radius-lg:28px;
  --radius-sm:13px;
  --shell:1200px;
  --ease:cubic-bezier(.2,.72,.25,1);
}

*{scrollbar-color:#aebfd5 #edf2f8}
html{background:#f6f8fc;color-scheme:light;accent-color:var(--brand)}
body{
  min-width:320px;
  background:
    radial-gradient(circle at 4% 12%,rgba(29,111,208,.055),transparent 24rem),
    radial-gradient(circle at 96% 34%,rgba(248,117,36,.045),transparent 22rem),
    #fff;
  color:var(--ink);
  font-feature-settings:"kern" 1,"liga" 1,"calt" 1;
  font-synthesis:none;
}
body.has-mobile-nav{padding-bottom:82px}
::selection{background:#cfe1fb;color:var(--brand-deep)}
.site-main{position:relative;isolation:isolate;overflow:clip}
.shell{width:min(calc(100% - 24px),var(--shell))}
h1,h2,h3{color:var(--ink);text-wrap:balance}
h1{font-weight:850;letter-spacing:-.045em}
h2{font-weight:820;letter-spacing:-.035em}
p{max-width:72ch}
a{transition:color .18s ease,text-decoration-color .18s ease}
a:hover{text-decoration-color:var(--accent)}
hr{border-color:var(--line);opacity:.9}
.icon{display:inline-block;width:1.25em;height:1.25em;flex:0 0 auto;vertical-align:-.2em}
.button>.icon,button.button>.icon{width:20px;height:20px}

.page-progress{position:fixed;z-index:1000;inset:0 0 auto;height:3px;overflow:hidden;pointer-events:none}
.page-progress>span{display:block;width:100%;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-bright) 68%,var(--accent));box-shadow:0 0 10px rgba(248,117,36,.35);transform:scaleX(var(--page-progress,0));transform-origin:left;transition:transform .12s linear}
.skip-link{min-height:48px;display:flex;align-items:center;background:var(--brand-deep);box-shadow:var(--shadow-strong)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}

/* Acciones y superficies */
.button,button.button{
  min-height:48px;
  padding:11px 19px;
  border-radius:14px;
  border-color:var(--brand);
  background:linear-gradient(135deg,var(--brand-bright),var(--brand) 58%,var(--brand-dark));
  box-shadow:0 8px 18px rgba(6,74,168,.17),inset 0 1px 0 rgba(255,255,255,.18);
  font-weight:800;
  letter-spacing:-.01em;
  transition:transform .18s var(--ease),box-shadow .18s var(--ease),background-color .18s ease,border-color .18s ease;
}
.button:hover,button.button:hover{background:linear-gradient(135deg,#277bd8,var(--brand) 58%,#042963);box-shadow:0 13px 28px rgba(6,74,168,.24);transform:translateY(-2px)}
.button:active,button.button:active{box-shadow:0 5px 12px rgba(6,74,168,.15);transform:translateY(0) scale(.985)}
.button-small{min-height:48px;padding:9px 14px}
.button-large{min-height:56px;padding:14px 24px;border-radius:16px}
.button-secondary{background:#fff;color:var(--brand);border-color:#abc0db;box-shadow:var(--shadow-xs)}
.button-secondary:hover{background:#edf4ff;color:var(--brand-dark);border-color:#86a9d4;box-shadow:0 10px 22px rgba(3,31,77,.1)}
.button-ghost{background:transparent;color:var(--brand);border-color:transparent;box-shadow:none}
.button-ghost:hover{background:#edf3fc;color:var(--brand-dark);box-shadow:none}
.button-light{background:#fff;color:var(--brand-dark);border-color:#fff;box-shadow:0 10px 25px rgba(2,18,46,.18)}
.button-light:hover{background:#fff7f1;color:var(--accent-ink);border-color:#fff7f1}
.button-danger-ghost{background:#fff;color:var(--danger);border-color:#e3b5bc;box-shadow:none}
.button-danger-ghost:hover{background:var(--danger-soft);border-color:#d5909a}
.whatsapp-button{background:linear-gradient(135deg,#22865b,#126447);border-color:#126447;box-shadow:0 8px 18px rgba(18,100,71,.17)}
.link-button,.icon-button,.alert-close{min-width:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px}
.link-button:hover,.icon-button:hover,.alert-close:hover{background:var(--surface-tint)}
.card,.admin-panel{
  border-color:rgba(172,190,212,.72);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  background:rgba(255,255,255,.98);
}

/* Navegación */
.site-header{
  min-height:74px;
  background:rgba(255,255,255,.9);
  border-bottom:1px solid rgba(145,169,199,.28);
  box-shadow:0 8px 28px rgba(3,31,77,.055);
  backdrop-filter:blur(18px) saturate(145%);
}
.site-header.is-scrolled{background:rgba(255,255,255,.96);box-shadow:0 12px 32px rgba(3,31,77,.09)}
.header-inner{height:74px}
.brand-logo-header{width:116px;height:64px;filter:drop-shadow(0 4px 7px rgba(0,50,122,.08))}
.brand{transition:transform .2s var(--ease)}
.brand:hover{transform:translateY(-1px)}
.nav-toggle,.admin-menu-toggle{width:48px;height:48px;border:1px solid var(--line);border-radius:14px;background:#f5f8fc;color:var(--brand-dark);box-shadow:var(--shadow-xs)}
.nav-toggle-icon{display:grid;place-items:center}
.nav-toggle-icon .icon{width:25px;height:25px}
.main-nav{inset:74px 0 auto;padding:12px 12px 20px;border-color:var(--line);border-radius:0 0 20px 20px;box-shadow:0 18px 42px rgba(3,31,77,.13)}
.nav-link,.notification-link{position:relative;min-height:48px;padding:10px 13px;border-radius:12px;font-weight:740}
.nav-link:hover,.nav-link.is-active,.notification-link:hover,.notification-link.is-active{background:#edf4ff;color:var(--brand-dark)}
.nav-link.is-active::after{content:"";position:absolute;inset:auto 13px 6px;height:2px;background:linear-gradient(90deg,var(--brand),var(--accent));border-radius:10px}
.notification-link{min-width:48px;justify-content:center}
.notification-link>.icon{width:23px;height:23px}
.notification-count{top:2px;left:auto;right:1px;min-width:20px;height:20px;background:var(--accent-dark);box-shadow:0 2px 6px rgba(200,74,10,.25)}
.demo-banner{padding:7px 16px;background:linear-gradient(90deg,#fff2e8,#fff8ee);border-bottom-color:#f1c7a8;color:#713405;font-weight:650}
.mobile-nav{min-height:72px;background:rgba(255,255,255,.94);border-color:#cdd9e8;padding:7px 5px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -14px 38px rgba(3,31,77,.13);backdrop-filter:blur(18px) saturate(140%)}
.mobile-nav a{min-height:54px;justify-content:center;border-radius:14px;font-weight:750;transition:background-color .18s ease,color .18s ease,transform .18s var(--ease)}
.mobile-nav a>span{width:27px;height:27px;display:grid;place-items:center}
.mobile-nav a>span .icon{width:23px;height:23px}
.mobile-nav a.is-active{background:#edf4ff;color:var(--brand-dark);transform:translateY(-1px)}
.mobile-nav b{background:var(--accent-dark);box-shadow:0 2px 6px rgba(200,74,10,.22)}

/* Mensajes y jerarquía */
.flash-stack{padding-top:14px}
.alert{position:relative;overflow:hidden;min-height:58px;padding:14px 14px 14px 17px;border-radius:16px;box-shadow:var(--shadow-xs);animation:v4-rise .3s var(--ease) both}
.alert::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:currentColor;opacity:.8}
.alert-success{background:#effaf5;border-color:#addbc6;color:#155d43}
.alert-danger{background:#fff3f4;border-color:#e7b7bd;color:#8c2634}
.alert-warning{background:#fff8e7;border-color:#ebd18e;color:#704900}
.alert-info{background:#eef7fc;border-color:#b8d7e9;color:#245b7d}
.alert-close .icon{width:20px;height:20px}
.eyebrow{width:max-content;margin-bottom:10px;padding:5px 10px;background:#e9f1ff;border:1px solid #ccdcf2;border-radius:999px;color:var(--brand);font-size:.71rem;letter-spacing:.11em}
.eyebrow-light{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:#fff}
.section-heading,.page-heading,.dashboard-header,.panel-heading{margin-bottom:28px}
.text-link{min-height:48px;display:inline-flex;align-items:center;color:var(--brand);text-decoration:none}
.text-link::after{content:"\2192";margin-left:7px;color:var(--accent-ink);transition:transform .18s ease}
.text-link:hover::after{transform:translateX(3px)}

/* Inicio */
.hero{
  position:relative;
  isolation:isolate;
  padding:54px 0 50px;
  background:
    radial-gradient(circle at 86% 22%,rgba(248,117,36,.2),transparent 17rem),
    radial-gradient(circle at 72% 88%,rgba(29,111,208,.14),transparent 24rem),
    linear-gradient(142deg,#eef5ff 0,#fafcff 48%,#fff7f0 100%);
}
.hero::before{content:"";position:absolute;z-index:-1;inset:0;background-image:linear-gradient(rgba(6,74,168,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(6,74,168,.035) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to right,#000,transparent 78%);pointer-events:none}
.hero::after{right:-72px;bottom:-102px;width:300px;height:300px;border:50px solid rgba(6,74,168,.055)}
.hero-copy h1{max-width:800px;margin-bottom:20px;color:var(--brand-deep);text-shadow:0 1px 0 #fff}
.hero-copy>p{font-size:clamp(1.02rem,2.3vw,1.18rem);line-height:1.65}
.home-search{position:relative;overflow:hidden;margin-top:28px;padding:18px;border:1px solid rgba(155,177,204,.7);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 24px 58px rgba(3,31,77,.13);backdrop-filter:blur(12px)}
.home-search::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--brand),var(--brand-bright) 65%,var(--accent))}
.trust-row{gap:9px}
.trust-row span{min-height:34px;padding:5px 11px;border-color:#cbd9e9;box-shadow:0 3px 9px rgba(3,31,77,.035);font-weight:650}
.trust-row span::first-letter{color:var(--success)}
.hero-visual{min-height:275px;perspective:900px}
.visual-home{background:linear-gradient(145deg,var(--brand-bright),var(--brand) 56%,var(--brand-dark));border:1px solid rgba(255,255,255,.2);box-shadow:0 34px 70px rgba(3,47,114,.27);animation:v4-home .58s var(--ease) both}
.visual-home::after{content:"";position:absolute;z-index:3;inset:16px auto auto 18px;width:34%;height:2px;background:rgba(255,255,255,.24);border-radius:10px}
.visual-roof{background:linear-gradient(145deg,var(--brand-bright),var(--brand) 62%,var(--brand-dark))}
.visual-door{background:linear-gradient(180deg,#ff9a56,var(--accent));box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.visual-window{background:#eaf3ff;border-color:var(--brand-dark);box-shadow:0 0 0 4px rgba(255,255,255,.12)}
.floating-card{min-width:146px;padding:12px 15px 12px 34px;border-color:#bfd0e5;border-radius:15px;box-shadow:0 19px 42px rgba(3,31,77,.17);backdrop-filter:blur(9px)}
.floating-card::before{content:"";position:absolute;left:14px;top:17px;width:9px;height:9px;background:var(--accent);border:3px solid #ffe2d0;border-radius:50%}
.floating-card b{font-size:.95rem}
.category-grid{gap:13px}
.category-card{
  --tile:var(--brand);
  --tile-soft:var(--surface-tint);
  min-height:160px;
  padding:18px;
  border-color:#d1ddec;
  border-radius:22px;
  background:linear-gradient(155deg,#fff 55%,var(--tile-soft));
  box-shadow:0 9px 24px rgba(3,31,77,.055);
}
.category-card:nth-child(6n+1){--tile:#145ab5;--tile-soft:#e9f2ff}
.category-card:nth-child(6n+2){--tile:#cb570f;--tile-soft:#fff0e6}
.category-card:nth-child(6n+3){--tile:#087b82;--tile-soft:#e5f8f8}
.category-card:nth-child(6n+4){--tile:#6652b7;--tile-soft:#f0edff}
.category-card:nth-child(6n+5){--tile:#9d3c64;--tile-soft:#fff0f6}
.category-card:nth-child(6n){--tile:#1c7253;--tile-soft:#eaf8f2}
.category-card::before{height:5px;background:var(--tile)}
.category-card::after{content:"";position:absolute;right:-28px;bottom:-36px;width:100px;height:100px;border:18px solid var(--tile);border-radius:50%;opacity:.06;transition:transform .24s var(--ease)}
.category-card:hover{border-color:var(--tile);box-shadow:0 18px 40px rgba(3,31,77,.12);transform:translateY(-5px)}
.category-card:hover::after{transform:scale(1.13)}
.category-icon{width:52px;height:52px;background:var(--tile-soft);border-color:transparent;color:var(--tile);box-shadow:inset 0 0 0 1px rgba(3,31,77,.07)}
.category-icon .icon{width:28px;height:28px}
.category-card:hover .category-icon{background:#fff;transform:translateY(-2px) scale(1.05)}
.category-arrow{color:var(--tile);font-weight:900}
.category-arrow .icon{width:20px;height:20px}
.professional-card{border-radius:20px;background:linear-gradient(155deg,#fff,#fbfdff);box-shadow:var(--shadow-xs)}
.professional-card:hover{border-color:#9db8d9;box-shadow:var(--shadow-float);transform:translateY(-4px)}
.avatar{background:linear-gradient(145deg,#dceaff,#fff1e7);border:3px solid #fff;box-shadow:0 0 0 1px #bdcfe4,0 7px 18px rgba(3,31,77,.11)}
.steps{counter-reset:v4-step}
.steps li{counter-increment:v4-step;min-height:132px;padding:19px;border-radius:20px;background:linear-gradient(155deg,#fff,#f8fbff);box-shadow:var(--shadow-xs)}
.steps li>span,.form-section-heading>span{background:linear-gradient(145deg,var(--brand-bright),var(--brand));box-shadow:0 8px 18px rgba(6,74,168,.22)}
.steps li:nth-child(2)>span{background:linear-gradient(145deg,#b63d05,#8f2f00)}
.steps li:nth-child(3)>span{background:linear-gradient(145deg,#126447,#0b4d38)}
.cta-band{padding:54px 0;background:linear-gradient(130deg,var(--brand-deep),var(--brand-dark) 64%,#073e88)}
.cta-band::before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 14% 130%,rgba(248,117,36,.22),transparent 25rem),linear-gradient(120deg,transparent 68%,rgba(255,255,255,.04));pointer-events:none}
.cta-band::after{border-color:rgba(248,117,36,.15)}
.cta-band h2{color:#fff}
.cta-band p{color:#dbe8f8}
.trust-row>span,.professional-card-copy small,.card-meta>span{display:inline-flex;align-items:center;gap:5px}
.trust-row .icon{width:17px;height:17px;color:var(--success)}
.professional-card-copy small .icon{width:15px;height:15px}
.card-meta>span>.icon{width:17px;height:17px;color:#8a5a00}

/* Formularios, acceso y selección */
.auth-section,.centered-page,.search-page,.profile-page,.form-page,.dashboard-page,.legal-page{
  background:
    radial-gradient(circle at 8% 8%,rgba(29,111,208,.08),transparent 20rem),
    radial-gradient(circle at 95% 84%,rgba(248,117,36,.06),transparent 22rem),
    #f5f8fc;
}

.no-js-category-picker,.no-js-category-lock{margin:18px 0;padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow-xs)}
.no-js-category-picker .field{margin-bottom:14px}
.no-js-category-lock{display:flex;align-items:center;justify-content:space-between;gap:16px}
.field-error{display:block;color:var(--danger);font-weight:750}
html.no-js .profile-edit-grid.needs-server-category{display:none}
html.no-js .profile-edit-grid.has-server-category .trade-field{display:none}
.auth-section{padding:15px 0 42px}
.auth-aside{background:linear-gradient(145deg,var(--brand-deep),var(--brand-dark) 58%,#084998);border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 58px rgba(3,31,77,.19)}
.auth-aside::before{background:rgba(248,117,36,.28)}
.auth-aside::after{border-color:rgba(255,255,255,.1)}
.auth-aside h1{color:#fff}
.auth-aside p{color:#e3ecfa}
.auth-card{border-color:#c9d7e8;border-radius:24px;background:rgba(255,255,255,.98);box-shadow:0 24px 58px rgba(3,31,77,.12)}
.field{gap:7px}
.field label,.field>label,.field-label{color:var(--ink);font-weight:780}
.field input,.field select,.field textarea,.settings-grid input,.settings-grid select,.settings-grid textarea,.admin-edit-row input,.admin-edit-row select,.simple-admin-list input,.simple-admin-list select{
  min-height:50px;
  border-color:#b9c9dc;
  border-radius:13px;
  background:#fff;
  box-shadow:inset 0 1px 2px rgba(3,31,77,.025);
  padding:11px 13px;
  transition:border-color .17s ease,box-shadow .17s ease,background-color .17s ease;
}
.field textarea,.settings-grid textarea{min-height:110px}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#8facd0}
.field input:focus,.field select:focus,.field textarea:focus,.settings-grid input:focus,.settings-grid select:focus,.settings-grid textarea:focus{border-color:var(--brand-bright);box-shadow:0 0 0 4px rgba(29,111,208,.12);outline:0}
.field input:user-invalid,.field select:user-invalid,.field textarea:user-invalid{border-color:#bf5260;box-shadow:0 0 0 4px rgba(166,47,61,.09)}
.input-action,.password-field,.money-input{min-height:50px;border-color:#b9c9dc;border-radius:13px;box-shadow:inset 0 1px 2px rgba(3,31,77,.025)}
.input-action:focus-within,.password-field:focus-within,.money-input:focus-within{border-color:var(--brand-bright);box-shadow:0 0 0 4px rgba(29,111,208,.12)}
.check-label{min-height:48px;padding:8px;border-radius:12px}
.check-label:hover{background:#f5f8fc}
.check-label input,.check-card input,.urgent-option input,.switch input{width:21px;height:21px;accent-color:var(--brand)}
.identity-visibility-note{border-color:#c4d7ef;border-radius:15px;background:linear-gradient(135deg,#edf5ff,#f8fbff)}
.identity-visibility-note>span{background:linear-gradient(145deg,var(--brand-bright),var(--brand));box-shadow:0 6px 13px rgba(6,74,168,.2)}
.status-illustration{background:linear-gradient(145deg,#e8f2ff,#fff2e8);box-shadow:0 12px 30px rgba(3,31,77,.08)}
.status-illustration .icon{width:32px;height:32px}
.progress{height:9px;background:#dfe7f1;box-shadow:inset 0 1px 2px rgba(3,31,77,.08)}
.progress>span{position:relative;background:linear-gradient(90deg,var(--brand),var(--brand-bright) 76%,var(--accent));box-shadow:0 0 12px rgba(29,111,208,.24)}
.choice-card{min-height:182px;padding:22px;border-color:#cbd8e8;border-radius:20px;box-shadow:var(--shadow-xs);transition:transform .2s var(--ease),box-shadow .2s var(--ease),border-color .2s ease,background-color .2s ease}
.choice-card:hover{border-color:#7fa3cf;background:linear-gradient(145deg,#fff,#edf5ff);box-shadow:var(--shadow-float);transform:translateY(-4px)}
.choice-card:active{transform:translateY(-1px) scale(.99)}
.choice-card.is-pressing,.category-card.is-pressing,.favorite-button.is-pressing{transform:scale(.975)!important}
.choice-icon{width:54px;height:54px;border:1px solid #c5d8ef;border-radius:16px;background:linear-gradient(145deg,#edf5ff,#fff);box-shadow:var(--shadow-xs);font-size:1.55rem}
.choice-icon .icon{width:27px;height:27px}
.choice-action{color:var(--brand);font-weight:820}
.segmented-options label span{min-height:50px;border-color:#bdccde;border-radius:13px;background:#fff;font-weight:680}
.segmented-options label:has(input:checked) span,.segmented-options label.is-selected span,.segmented-options label input:checked+span{border-color:var(--brand);background:linear-gradient(145deg,#edf5ff,#fff);color:var(--brand-dark);box-shadow:0 6px 16px rgba(6,74,168,.09),inset 0 0 0 1px var(--brand)}
.segmented-options label input:focus-visible+span{outline:3px solid var(--brand);outline-offset:3px}
.check-card{min-height:54px;border-radius:14px}
.check-card:has(input:checked),.check-card.is-selected,.select-professional:has(input:checked),.select-professional.is-selected{background:linear-gradient(135deg,#edf5ff,#fff);border-color:var(--brand);box-shadow:inset 4px 0 0 var(--brand),0 7px 16px rgba(6,74,168,.07)}
.category-prompt{border-radius:15px;background:linear-gradient(135deg,#f6f9fd,#fff);border-color:#9eb2ca}
.category-prompt>span{display:grid;place-items:center;color:var(--brand)}
.category-prompt>span .icon{width:25px;height:25px}
.urgent-option{min-height:58px;border-radius:15px;background:linear-gradient(135deg,#fff0e5,#fff8f2);border-color:#edb48e}
.file-drop{min-height:154px;display:grid;place-items:center;border-color:#91a9c6;border-radius:18px;background:linear-gradient(145deg,#fbfdff,#f1f6fc);transition:border-color .18s ease,background-color .18s ease,transform .18s var(--ease)}
.file-drop:hover,.file-drop:focus-within{border-color:var(--brand);background:#edf5ff;transform:translateY(-2px)}
form.is-submitting{cursor:progress}
form.is-submitting .button[type="submit"],form.is-submitting button[type="submit"]{filter:saturate(.8);box-shadow:0 5px 13px rgba(6,74,168,.13)}

/* Perfil profesional progresivo: sin JS, estas ayudas siguen ocultas y el formulario se ve completo. */
.profile-privacy-action{display:flex;justify-content:flex-end;margin:-13px 0 20px}
.profile-wizard-progress{
  grid-column:1/-1;
  padding:18px 20px;
  border:1px solid #c8d7e9;
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),#f2f7ff);
  box-shadow:var(--shadow-xs);
}
.profile-wizard-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.profile-wizard-progress-copy .eyebrow{margin:0}
.profile-wizard-progress-copy strong{color:var(--brand-dark);font-size:.9rem}
.profile-wizard-meter{height:10px;margin-bottom:14px}
.profile-wizard-meter>span{transition:width .3s var(--ease)}
.profile-wizard-markers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;list-style:none;margin:0;padding:0}
.profile-wizard-markers li{min-width:0;display:flex;align-items:center;gap:7px;color:var(--muted)}
.profile-wizard-markers li>span{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #b9c9dc;border-radius:50%;background:#fff;color:var(--muted);font-size:.76rem;font-weight:850;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s var(--ease)}
.profile-wizard-markers small{min-width:0;font-size:.69rem;font-weight:720;line-height:1.15}
.profile-wizard-markers li.is-active{color:var(--brand-dark)}
.profile-wizard-markers li.is-active>span{border-color:var(--brand);background:var(--brand);color:#fff;box-shadow:0 5px 13px rgba(6,74,168,.2);transform:scale(1.06)}
.profile-wizard-markers li.is-complete>span{border-color:var(--success);background:var(--success-soft);color:var(--success)}
.profile-edit-grid.wizard-ready:not(.is-final-step){grid-template-columns:minmax(0,760px);justify-content:center}
.profile-edit-grid.wizard-ready:not(.is-final-step) .profile-wizard-progress{grid-column:1}
.profile-edit-grid.wizard-ready .form-main{min-width:0}
.profile-edit-grid.wizard-ready [data-profile-step]{scroll-margin-top:104px}
.profile-edit-grid.wizard-ready [data-profile-step]:not([hidden]){animation:v4-wizard-step .3s var(--ease) both}
.profile-edit-grid.wizard-ready [data-profile-step] h2:focus{outline:3px solid var(--brand);outline-offset:5px;border-radius:5px}
.profile-wizard-navigation{margin-top:2px;padding:15px;border:1px solid #cfdae8;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:var(--shadow-xs)}
.profile-wizard-navigation>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.profile-wizard-error{margin:0 0 11px;padding:9px 11px;border-left:4px solid var(--danger);border-radius:8px;background:var(--danger-soft);color:var(--danger);font-size:.84rem;font-weight:720}
.profile-edit-grid.is-final-step .publish-card{border-color:#a9c2df;box-shadow:0 18px 42px rgba(3,31,77,.11)}
@keyframes v4-wizard-step{from{opacity:.35;transform:translateX(10px)}to{opacity:1;transform:none}}

/* Resultados y perfil */
.filters{border-radius:20px;background:rgba(255,255,255,.98);box-shadow:var(--shadow)}
.result-list{gap:14px}
.result-card{overflow:hidden;border-color:#cfdae8;border-radius:22px;box-shadow:var(--shadow-xs);transition:border-color .2s ease,box-shadow .2s var(--ease),transform .2s var(--ease)}
.result-card::after{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(var(--brand),var(--brand-bright));opacity:0;transition:opacity .18s ease}
.result-card:hover,.result-card:focus-within{border-color:#9eb6d4;box-shadow:var(--shadow-float);transform:translateY(-3px)}
.result-card:hover::after,.result-card:focus-within::after,.result-card.is-local::after{opacity:1}
.result-card.is-local{border-left-color:transparent}
.result-main{min-height:150px;padding:18px}
.result-title strong{color:var(--ink);font-size:1.16rem}
.trade{color:var(--brand);font-weight:760}
.chips{gap:6px}
.chips>span,.verified,.urgent-chip,.demo-chip,.env-chip{min-height:27px;padding:4px 9px;border-radius:999px;font-weight:760}
.verified{background:#eaf8f1;border-color:#a8d7c0;color:#0f6142}
.verified .icon{width:14px;height:14px}
.urgent-chip{background:#fff0e5;border-color:#edb48e;color:#8e3c09}
.demo-chip{background:var(--violet-soft);border-color:#cec5f4;color:#56449f}
.favorite-button{width:48px;height:48px;border-color:#c7d4e4;box-shadow:var(--shadow-xs);transition:transform .18s var(--ease),color .18s ease,background-color .18s ease,box-shadow .18s ease}
.favorite-button:hover{background:#fff2f5;color:#b8324a;box-shadow:0 8px 18px rgba(166,47,61,.12);transform:scale(1.06)}
.favorite-button:active{transform:scale(.96)}
.empty-state{border-radius:22px}
.empty-state>span{background:linear-gradient(145deg,#e6f1ff,#fff0e5);box-shadow:0 10px 24px rgba(3,31,77,.08)}
.pagination a{min-height:48px;display:inline-flex;align-items:center}
.breadcrumbs{min-height:34px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.breadcrumbs::-webkit-scrollbar{display:none}
.profile-hero{border-radius:var(--radius-lg);background:linear-gradient(155deg,#fff 68%,#f2f7ff);box-shadow:0 24px 58px rgba(3,31,77,.11)}
.profile-hero::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--brand),var(--brand-bright) 70%,var(--accent))}
.profile-hero::after{border-color:rgba(248,117,36,.08)}
.profile-section,.sticky-card{border-radius:22px}
.profile-stats{border-color:#d5e0ec;background:#f8fafd;border-radius:16px;overflow:hidden}
.profile-stats>div{border-color:#d5e0ec}
.profile-stats strong{color:var(--brand-dark);font-size:1.25rem}
.details-grid>div,.task-list li{border:1px solid #dce5ef;background:linear-gradient(145deg,#f8fafd,#fff)}
.task-list li{border-left:4px solid var(--brand);border-radius:11px}
.task-list li{display:flex;align-items:center;gap:8px}.task-list li .icon{width:18px;height:18px;color:var(--success)}
.credential-note,.privacy-note,.privacy-callout,.accepted-contact{border:1px solid #c9d9e9;border-radius:15px;background:linear-gradient(135deg,#f3f8ff,#fff)}
.profile-location,.location,.rating,.service-card-body small,.professional-card-copy small{display:flex;align-items:center;gap:5px}
.request-preview>span:nth-child(2),.request-row>div>span{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:5px}
.profile-location .icon,.location .icon,.rating .icon,.service-card-body small .icon,.professional-card-copy small .icon,.request-preview .icon,.request-row .icon{width:16px;height:16px;flex:0 0 auto}
.profile-stats span .icon,.mini-stats dd .icon{width:15px;height:15px;vertical-align:-.15em}
.favorite-button .icon{width:20px;height:20px}
.privacy-callout>span .icon,.accepted-contact>span .icon,.credential-note>span .icon,.location-summary>span .icon{width:23px;height:23px}
.identity-disclaimer{border-left-color:var(--accent);color:#52647b}

/* Paneles y estados */
.summary-card,.metric-card{position:relative;overflow:hidden;border-color:#d3deeb;border-radius:19px;background:linear-gradient(150deg,#fff,#f7faff);box-shadow:var(--shadow-xs)}
.summary-card::before,.metric-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--brand)}
.summary-grid>*:nth-child(2)::before,.metric-grid>*:nth-child(2)::before{background:var(--accent)}
.summary-grid>*:nth-child(3)::before,.metric-grid>*:nth-child(3)::before{background:var(--cyan)}
.summary-grid>*:nth-child(4)::before,.metric-grid>*:nth-child(4)::before{background:var(--violet)}
.summary-grid>*:nth-child(5)::before,.metric-grid>*:nth-child(5)::before{background:var(--rose)}
.summary-grid>*:nth-child(6)::before,.metric-grid>*:nth-child(6)::before{background:var(--success)}
.summary-link{transition:transform .18s var(--ease),box-shadow .18s ease,border-color .18s ease}
.summary-link:hover{border-color:#96afd0;box-shadow:var(--shadow);transform:translateY(-2px)}
.mini-stats{border:1px solid var(--line);border-radius:16px;background:#f8fafd;overflow:hidden}
.service-card,.request-preview,.request-row,.notification-item,.credential-row{border-radius:18px;transition:transform .18s var(--ease),box-shadow .18s ease,border-color .18s ease}
.service-card:hover,.request-preview:hover,.request-row:hover,.notification-item:hover,.credential-row:hover{border-color:#adc0d8;box-shadow:var(--shadow);transform:translateY(-2px)}
.status{min-height:28px;align-items:center;padding:4px 9px;border:1px solid #d1dbe7;border-radius:999px;font-weight:780}
.status-pending,.status-warning,.status-review{background:var(--warning-soft);border-color:#ead08a;color:#704900}
.status-accepted,.status-active,.status-approved,.status-paid,.status-completed{background:var(--success-soft);border-color:#add9c3;color:#115f43}
.status-cancelled,.status-expired,.status-rejected,.status-failed,.status-blocked{background:var(--danger-soft);border-color:#e3b2b9;color:#8f2937}
.status-paused,.status-suspended,.status-not_completed{background:var(--violet-soft);border-color:#cec5ef;color:#56469a}
.tabs{gap:7px;padding:5px;border:1px solid #d4dfec;border-radius:16px;background:rgba(255,255,255,.75)}
.tabs a{min-height:48px;display:inline-flex;align-items:center;border-radius:12px}
.tabs a.active{background:linear-gradient(135deg,var(--brand-bright),var(--brand));box-shadow:0 7px 15px rgba(6,74,168,.16)}
.quota strong{color:var(--brand)}
.requirement-list li{border-bottom:1px solid #e3e9f1}
.requirement-list li:last-child{border-bottom:0}
.plan-current,.price-card,.plan-rules,.credential-info,.account-status,.privacy-card{border-radius:22px}
.price-card{transition:transform .2s var(--ease),box-shadow .2s ease,border-color .2s ease}
.price-card:hover{border-color:#9bb5d5;box-shadow:var(--shadow-float);transform:translateY(-4px)}
.price-card.recommended{border-color:var(--brand);box-shadow:0 18px 42px rgba(6,74,168,.12)}
.recommend-label{background:linear-gradient(90deg,var(--brand),var(--brand-bright));box-shadow:0 6px 14px rgba(6,74,168,.19)}

/* Administración */
.admin-page{background:#f3f6fb}
.admin-shell{min-height:100vh}
.admin-sidebar{background:linear-gradient(180deg,#031d48,#052d68 68%,#073b82);box-shadow:14px 0 38px rgba(3,31,77,.13)}
.admin-sidebar::after{content:"";position:absolute;inset:auto -70px -90px auto;width:180px;height:180px;border:28px solid rgba(248,117,36,.09);border-radius:50%;pointer-events:none}
.admin-sidebar nav a{min-height:48px;border-radius:13px;color:#dce8f8;font-weight:680;transition:background-color .18s ease,color .18s ease,transform .18s var(--ease)}
.admin-sidebar nav a:hover,.admin-sidebar nav a.active{background:rgba(255,255,255,.12);color:#fff;transform:translateX(2px)}
.admin-sidebar nav a.active{box-shadow:inset 3px 0 0 var(--accent)}
.admin-content{min-width:0}
.admin-topbar{padding-bottom:17px;border-bottom:1px solid #d8e1ec}
.admin-panel{padding:19px;box-shadow:var(--shadow-xs)}
.admin-panel:hover{border-color:#b8c9dc}
.table-wrap{border:1px solid #d5e0ec;border-radius:16px;background:#fff;box-shadow:var(--shadow-xs)}
.table-wrap table{border-collapse:separate;border-spacing:0}
.table-wrap th{background:#edf3fa;color:var(--brand-dark);font-size:.72rem;letter-spacing:.045em;text-transform:uppercase}
.table-wrap th,.table-wrap td{padding:12px;border-bottom:1px solid #e3e9f1}
.table-wrap tr:last-child td{border-bottom:0}
.bar-chart i{background:#e3eaf3;border-radius:999px;overflow:hidden}
.bar-chart i b{background:linear-gradient(90deg,var(--brand),var(--brand-bright) 70%,var(--accent));border-radius:inherit}
.health-dot{box-shadow:0 0 0 4px rgba(148,164,184,.12)}
.health-dot.ok{box-shadow:0 0 0 4px rgba(18,100,71,.1)}
.quick-actions a,.backup-list>div,.audit-list>div,.campaign-list article,.catalog-readonly-item,.catalog-group{border-color:#d5e0ec;border-radius:15px;background:linear-gradient(145deg,#fff,#f8fafd);transition:transform .18s var(--ease),border-color .18s ease,box-shadow .18s ease}
.quick-actions a:hover,.backup-list>div:hover,.campaign-list article:hover,.catalog-readonly-item:hover{border-color:#a9bed8;box-shadow:var(--shadow);transform:translateY(-2px)}
.catalog-readonly-icon{background:linear-gradient(145deg,#e7f1ff,#fff1e7);box-shadow:var(--shadow-xs)}
.channel-options label{min-height:52px;border-radius:14px}
.switch,.select-professional,.action-menu>summary,
.action-menu button,.simple-admin-list button,.review-actions button,
.add-panel>summary{min-height:48px}
.action-menu button,.simple-admin-list button,.review-actions button{padding:10px 12px;border-radius:11px}
.message-preview,.cron-box{border-radius:16px;background:linear-gradient(145deg,#f7faff,#fff)}

/* Pie */
.site-footer{position:relative;overflow:hidden;background:linear-gradient(145deg,#02183c,#052d68);color:#fff}
.site-footer::before{content:"";position:absolute;right:-100px;top:-120px;width:280px;height:280px;border:44px solid rgba(248,117,36,.1);border-radius:50%;pointer-events:none}
.site-footer a{color:#fff}
.site-footer p,.site-footer small{color:#d5e2f3}
.footer-install{min-height:48px}
.brand-logo-footer{filter:drop-shadow(0 8px 18px rgba(0,0,0,.18))}

/* Movimiento: entradas únicas y respuestas directas, nunca loops. */
[data-reveal].reveal-ready{opacity:.01;transform:translateY(16px) scale(.992);transition:opacity .42s var(--ease),transform .42s var(--ease);transition-delay:calc(var(--reveal-order,0) * 42ms)}
[data-reveal].reveal-ready.is-visible{opacity:1;transform:none}
.v4-ready .metric-card,.v4-ready .summary-card{animation:v4-rise .36s var(--ease) both;animation-delay:calc(var(--reveal-order,0) * 35ms)}
@keyframes v4-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes v4-home{from{opacity:.5;transform:translateY(18px) rotateX(5deg) scale(.96)}to{opacity:1;transform:none}}

/* Mobile first: comodidad real desde 320 px. */
@media (max-width:599px){
  .section{padding-block:46px}
  .section-heading,.page-heading,.dashboard-header,.panel-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .section-heading .button,.page-heading .button,.dashboard-header .button{width:100%}
  .hero{padding-top:42px}
  .hero-copy h1{font-size:clamp(2.25rem,12vw,3.25rem)}
  .home-search{padding:16px}
  .hero-visual{margin-inline:auto;width:min(100%,320px)}
  .floating-card{min-width:132px;padding-left:32px}
  .result-main{grid-template-columns:64px minmax(0,1fr);padding:16px}
  .result-main .avatar-large{width:64px;height:64px}
  .result-price{align-items:flex-start;flex-direction:column}
  .result-price .button{width:100%}
  .profile-actions-inline>*{flex:1 1 100%}
  .profile-actions-inline .button,.profile-actions-inline button{width:100%}
  .service-card-head,.request-detail-head{align-items:flex-start;flex-direction:column}
  .service-actions .button,.service-actions form{width:100%}
  .service-actions form .button{flex:1}
  .request-data{grid-template-columns:1fr}
  .admin-content{padding:14px 12px 28px}
  .admin-panel{padding:15px}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-filters,.admin-plan-form,.settings-grid{grid-template-columns:1fr}
  .table-wrap{margin-inline:-3px}
  .button-row>.button{flex:1 1 100%}
  .profile-privacy-action{margin:-10px 0 17px}
  .profile-privacy-action .button{width:100%}
  .profile-wizard-progress{padding:15px 13px;border-radius:18px}
  .profile-wizard-progress-copy{align-items:flex-start;flex-direction:column;gap:7px}
  .profile-wizard-markers{gap:3px}
  .profile-wizard-markers li{flex-direction:column;gap:4px;text-align:center}
  .profile-wizard-markers small{font-size:.62rem}
  .profile-wizard-navigation{padding:12px}
  .profile-wizard-navigation>div{align-items:stretch}
  .profile-wizard-navigation .button{flex:1;padding-inline:10px}
}

@media (min-width:600px){
  .shell{width:min(calc(100% - 40px),var(--shell))}
  .home-search{padding:20px}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (min-width:860px){
  body.has-mobile-nav{padding-bottom:0}
  .site-header{min-height:78px}
  .header-inner{height:78px}
  .main-nav{gap:3px;background:transparent;backdrop-filter:none}
  .nav-link.is-active::after{inset:auto 13px 4px}
  .hero{padding:86px 0 76px}
  .hero-grid{grid-template-columns:minmax(0,1.24fr) minmax(330px,.76fr);gap:48px}
  .hero-visual{min-height:420px}
  .auth-section{padding:52px 0 64px}
  .auth-grid{gap:24px}
  .auth-aside{min-height:670px;padding:44px;border-radius:30px}
  .auth-card{padding:36px;border-radius:28px}
  .search-layout{grid-template-columns:278px minmax(0,1fr);gap:24px}
  .filters{top:98px;padding:20px}
  .profile-grid{grid-template-columns:minmax(0,1fr) 350px;gap:22px}
  .profile-sidebar .sticky-card,.form-sidebar .sticky-card{top:98px}
  .admin-content{padding:28px}
  .admin-sidebar{width:250px}
  .admin-shell{grid-template-columns:250px minmax(0,1fr)}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (min-width:1100px){
  .category-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .category-card{min-height:176px}
  .admin-sidebar{width:270px}
  .admin-shell{grid-template-columns:270px minmax(0,1fr)}
  .admin-content{padding:32px}
}

@media (hover:none){
  .category-card:hover,.professional-card:hover,.result-card:hover,.choice-card:hover,.price-card:hover,.service-card:hover,.summary-link:hover{transform:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition-duration:.01ms!important;transition-delay:0ms!important}
  [data-reveal].reveal-ready{opacity:1!important;transform:none!important}
  .page-progress>span{transition:none!important}
}

@media print{
  .page-progress{display:none!important}
  body{background:#fff!important}
}
