/* =========================================
   01. VARIABLES
   ========================================= */

:root{
    --asg-ink:#071D33;
    --asg-navy:#0A2A4A;
    --asg-navy-soft:#164E7A;
    --asg-blue:#0056A6;
    --asg-blue-dark:#003F7A;
    --asg-cyan:#1497C9;
    --asg-cyan-dark:#087FA9;
    --asg-red:#D71920;
    --asg-red-dark:#B9151B;
    --asg-green:#198754;
    --asg-warning:#D78A12;
    --asg-canvas:#F4F7FA;
    --asg-surface:#FFFFFF;
    --asg-border:#D9E2EA;
    --asg-text:#10263E;
    --asg-text-soft:#627286;
    --asg-radius:14px;
    --asg-shadow:0 10px 28px rgba(10,42,74,.10);
    --asg-shadow-lg:0 20px 45px rgba(10,42,74,.16);
    --asg-shadow-btn:0 10px 22px rgba(15,42,74,.28);
    --asg-shadow-btn-hover:0 14px 28px rgba(15,42,74,.34);
    --asg-amber:var(--asg-warning);
    --asg-coral:var(--asg-red);
}

/* =========================================
   02. BASE DEL PORTAL
   ========================================= */

.asg-download-button{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:linear-gradient(135deg,var(--asg-cyan-dark),var(--asg-navy));
    color:#fff!important;
    text-decoration:none!important;
    border-radius:9px;
    padding:11px 18px;
    margin-top:20px;
    font-weight:700;
    box-shadow:0 8px 18px rgba(15,140,161,.28);
    transition:transform .15s ease,box-shadow .15s ease;
}

.asg-download-button:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(15,140,161,.36);
}

.asg-summary-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    margin:22px 0 30px;
}

.asg-summary-card{
    display:flex;
    flex-direction:column;
    gap:8px;
    background:var(--asg-surface);
    color:var(--asg-ink)!important;
    border:1px solid var(--asg-border);
    border-radius:var(--asg-radius);
    padding:26px;
    text-decoration:none!important;
    box-shadow:var(--asg-shadow);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.asg-summary-card:hover{
    border-color:var(--asg-cyan);
    transform:translateY(-3px);
    box-shadow:var(--asg-shadow-lg);
}

.asg-summary-card__title{
    font-size:1.1rem;
    font-weight:700;
    color:var(--asg-text-soft);
}

.asg-summary-card strong{
    font-size:2.4rem;
    line-height:1;
    background:linear-gradient(135deg,var(--asg-navy),var(--asg-cyan-dark));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.asg-forgot-link{
    display:inline-block;
    margin-top:16px;
}

.asg-secondary-button{
    display:inline-block;
    background:var(--asg-ink);
    color:#fff!important;
    border-radius:9px;
    padding:11px 18px;
    text-decoration:none!important;
    font-weight:700;
    transition:background .15s ease;
}

.asg-secondary-button:hover{
    background:var(--asg-navy);
}

.asg-card-action{
    margin-top:20px;
}

.asg-history-section{
    background:var(--asg-surface);
    border:1px solid var(--asg-border);
    border-radius:var(--asg-radius);
    padding:24px;
    margin:20px 0;
    box-shadow:var(--asg-shadow);
}

.asg-history-section h3{
    margin-top:0;
    color:var(--asg-navy);
}

.asg-history-list{
    display:grid;
    gap:8px;
}

.asg-history-list div{
    display:flex;
    justify-content:space-between;
    gap:20px;
    border-bottom:1px solid var(--asg-border);
    padding:10px 0;
}

.asg-history-list div:last-child{
    border-bottom:0;
}

body.home .wp-block-post-title{
    display:none;
}

.asg-history-list small{
    display:block;
    margin-top:3px;
    color:var(--asg-text-soft);
}

main,
.wp-site-blocks main{
    padding-top:10px!important;
}

.asg-registration-honeypot{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(1px,1px,1px,1px)!important;
    white-space:nowrap!important;
}

.asg-secondary-link-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 15px;
    border:1.5px solid var(--asg-blue);
    border-radius:9px;
    background:#fff;
    color:var(--asg-blue)!important;
    text-decoration:none!important;
    font-weight:800;
    transition:background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.asg-secondary-link-button:hover{
    background:var(--asg-blue);
    color:#fff!important;
    transform:translateY(-1px);
}

.asg-portal-page .wp-block-post-title{
    display:none!important;
}

.asg-portal-page .wp-site-blocks > main{
    margin-top:0!important;
    padding-top:0!important;
}

.asg-portal-page .wp-block-post-content{
    margin-top:0!important;
    padding-top:0!important;
}

.asg-portal-page main > .wp-block-group{
    margin-top:0!important;
    padding-top:0!important;
}

.asg-portal-page main,
.asg-portal-page .wp-site-blocks main{
    padding-top:24px!important;
    margin-top:0!important;
}

/* =========================================
   03. HEADER
   ========================================= */

.asg-history-header{
    margin-bottom:26px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.asg-history-header a{
    font-weight:600;
}

.asg-history-header h2{
    margin:6px 0 0;
    color:var(--asg-ink);
}

.asg-report-card__header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:20px;
}

.asg-report-card__header h3{
    margin:0;
    color:var(--asg-ink);
    font-size:1.3rem;
}

.asg-order-card__header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}

.asg-order-card__header h3{
    margin:0;
    color:var(--asg-ink);
    font-size:1.35rem;
}

.asg-list-toolbar,
.asg-equipment-grid,
.asg-order-list,
.asg-report-grid,
.asg-equipment-profile,
.asg-equipment-register-header,
.asg-service-form{
    position:relative;
    box-sizing:border-box;
}

.asg-list-toolbar,
.asg-equipment-filter-bar,
.asg-equipment-grid{
    width:min(1180px,calc(100vw - 64px));
    margin-left:auto;
    margin-right:auto;
    box-sizing:border-box;
}

header.wp-block-template-part,
.wp-site-blocks > header{
    padding-top:10px!important;
    padding-bottom:10px!important;
}

header.wp-block-template-part .wp-block-group,
.wp-site-blocks > header .wp-block-group{
    min-height:auto!important;
}

header.wp-block-template-part img,
.wp-site-blocks > header img{
    max-height:90px;
    width:auto;
}

.asg-logout-button,
a[href*="logout"]{
    padding:12px 18px!important;
    border-radius:9px!important;
    font-size:.95rem!important;
}

.asg-portal-page header.wp-block-template-part,
.asg-portal-page .wp-site-blocks > header{
    background:#fff;
    border-bottom:1px solid #E6ECF2;
    padding:14px 0!important;
}

.asg-portal-page header.wp-block-template-part .wp-block-group,
.asg-portal-page .wp-site-blocks > header .wp-block-group{
    width:min(1440px,calc(100vw - 64px));
    margin:0 auto!important;
    min-height:auto!important;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:34px;
}

.asg-portal-page header img{
    max-height:86px;
    width:auto;
}

.asg-portal-page header nav{
    flex:1;
    display:flex;
    justify-content:center;
}

.asg-portal-page header nav ul{
    display:flex;
    align-items:center;
    gap:28px;
    margin:0;
}

.asg-portal-page header nav a{
    color:var(--asg-ink)!important;
    text-decoration:none!important;
    font-weight:600;
    font-size:.98rem;
    position:relative;
    padding:10px 0;
}

.asg-portal-page header nav a:hover{
    color:var(--asg-blue)!important;
}

.asg-portal-page header nav a::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:2px;
    height:2px;
    background:var(--asg-red);
    transform:scaleX(0);
    transform-origin:center;
    transition:transform .18s ease;
}

.asg-portal-page header nav a:hover::after{
    transform:scaleX(1);
}

.asg-portal-page header .asg-logout-button,
.asg-portal-page header a[href*="logout"]{
    background:var(--asg-navy)!important;
    color:#fff!important;
    padding:12px 18px!important;
    border-radius:10px!important;
    text-decoration:none!important;
    font-weight:700;
    white-space:nowrap;
}

.asg-portal-page header .asg-logout-button:hover,
.asg-portal-page header a[href*="logout"]:hover{
    background:var(--asg-blue-dark)!important;
}


.asg-menu-cliente,
.asg-menu-tecnico,
.asg-menu-admin{
    display:none !important;
}

.asg-role-client .asg-menu-cliente{
    display:block !important;
}

.asg-role-technician .asg-menu-tecnico{
    display:block !important;
}

.asg-role-admin .asg-menu-admin{
    display:block !important;
}
/* =========================================
   04. DASHBOARD
   ========================================= */

.asg-equipment-grid,
.asg-order-list,
.asg-report-grid,
.asg-technician-list,
.asg-summary-grid,
.asg-dashboard,
.asg-login-shell,
.asg-history-section,
.asg-service-form,
.asg-portal-message{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    color:var(--asg-text);
}

.asg-equipment-grid a,
.asg-order-list a,
.asg-report-grid a,
.asg-technician-list a,
.asg-summary-grid a,
.asg-dashboard a,
.asg-login-shell a,
.asg-history-section a,
.asg-portal-message a{
    color:var(--asg-cyan-dark);
    text-decoration:underline;
    text-decoration-color:rgba(15,140,161,.35);
    text-underline-offset:3px;
    font-weight:600;
    transition:color .15s ease,text-decoration-color .15s ease;
}

.asg-equipment-grid a:hover,
.asg-order-list a:hover,
.asg-report-grid a:hover,
.asg-technician-list a:hover,
.asg-summary-grid a:hover,
.asg-dashboard a:hover,
.asg-login-shell a:hover,
.asg-history-section a:hover,
.asg-portal-message a:hover{
    color:var(--asg-navy);
    text-decoration-color:currentColor;
}

.asg-equipment-grid a:focus-visible,
.asg-order-list a:focus-visible,
.asg-report-grid a:focus-visible,
.asg-technician-list a:focus-visible,
.asg-summary-grid a:focus-visible,
.asg-dashboard a:focus-visible,
.asg-login-shell a:focus-visible,
.asg-history-section a:focus-visible,
.asg-portal-message a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
    outline:3px solid rgba(26,175,199,.55);
    outline-offset:2px;
}

.asg-dashboard{
    --asg-navy-x:var(--asg-navy);
    display:grid;
    gap:22px;
    max-width:none!important;
    margin:24px auto 56px!important;
    width:calc(100vw - 28px);
    margin-top:10px!important;
}

.asg-dashboard-hero{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:32px;
    width:100%;
    box-sizing:border-box;
    padding:28px 32px;
    background:linear-gradient(
            125deg,
            var(--asg-ink) 0%,
            var(--asg-navy) 55%,
            var(--asg-cyan-dark) 130%
        );
    color:#fff;
    border-radius:18px;
    box-shadow:0 18px 42px rgba(10,27,46,.22);
}

.asg-dashboard-hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(
            circle at 88% 12%,
            rgba(26,175,199,.35),
            transparent 55%
        );
    pointer-events:none;
}

.asg-dashboard-hero > div{
    position:relative;
    flex:1;
    max-width:720px;
    z-index:1;
}

.asg-dashboard-hero h1{
    position:relative;
    margin:0 0 10px;
    color:#fff;
    font-size:clamp(2rem,3vw,2.5rem);
    line-height:1.05;
    overflow-wrap:anywhere;
}

.asg-dashboard-hero p{
    line-height:1.55;
    position:relative;
    margin:0;
    color:#CBDCEC;
    max-width:720px;
    font-size:1rem;
}

.asg-dashboard-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}

.asg-dashboard-stats > a{
    display:grid;
    grid-template-columns:56px 1fr;
    align-items:center;
    gap:16px;
    background:var(--asg-surface);
    border:1px solid var(--asg-border);
    border-radius:18px;
    text-decoration:none!important;
    color:var(--asg-ink)!important;
    box-shadow:var(--asg-shadow);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position:relative;
    overflow:hidden;
    min-height:96px;
    padding:18px 20px;
}

.asg-dashboard-stats > a::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:var(--asg-blue);
}

.asg-dashboard-stats > a:nth-child(2)::before{
    background:var(--asg-red);
}

.asg-dashboard-stats > a:nth-child(3)::before{
    background:var(--asg-cyan-dark);
}

.asg-stat-icon{
    display:grid;
    place-items:center;
    width:50px;
    height:50px;
    border-radius:16px;
    font-size:1.05rem;
    font-weight:800;
    letter-spacing:.03em;
    color:#fff;
}

.asg-dashboard-stats strong{
    display:block;
    font-size:1.9rem;
    line-height:1;
    margin:0;
    color:var(--asg-navy);
    font-weight:800;
}

.asg-dashboard-stats div span{
    display:block;
    margin-top:0;
    color:var(--asg-text-soft);
    font-size:1rem;
    line-height:1.3;
    font-weight:600;
}

.asg-dashboard-grid{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);
    gap:20px;
}

.asg-dashboard-hero .asg-dashboard-eyebrow,
.asg-login-intro .asg-dashboard-eyebrow{
    color:#FFFFFF;
    opacity:.85;
}

.asg-dashboard-hero>a{
    position:relative;
    z-index:1;
    flex:0 0 auto;
    width:auto;
    min-width:220px;
    padding:14px 20px;
    background:var(--asg-red);
    color:#fff!important;
    border-radius:10px;
    text-decoration:none!important;
    text-align:center;
    font-weight:800;
    white-space:nowrap;
    box-shadow:0 10px 24px rgba(215,25,32,.28);
    transition:transform .15s ease,
        background .15s ease;
}

.asg-dashboard-hero>a:hover{
    background:var(--asg-red-dark);
    transform:translateY(-2px);
}

.asg-dashboard-stats>a:hover{
    border-color:var(--asg-cyan);
    transform:translateY(-3px);
    box-shadow:var(--asg-shadow-lg);
}

.asg-dashboard-stats>a:nth-child(1) .asg-stat-icon{
    background:linear-gradient(135deg,var(--asg-cyan),var(--asg-cyan-dark));
}

.asg-dashboard-stats>a:nth-child(2) .asg-stat-icon{
    background:linear-gradient(135deg,var(--asg-amber),#C97C1E);
}

.asg-dashboard-stats>a:nth-child(3) .asg-stat-icon{
    background:linear-gradient(135deg,var(--asg-green),#137A44);
}

.asg-dashboard-stats > a > div{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.asg-dashboard-panel{
    background:var(--asg-surface);
    border:1px solid var(--asg-border);
    border-radius:16px;
    padding:28px;
    box-shadow:var(--asg-shadow);
}

.asg-panel-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.asg-panel-heading h2,
.asg-quick-panel h2{
    margin:0 0 18px;
    font-size:1.4rem;
    color:var(--asg-ink);
}

.asg-panel-heading>a{
    font-weight:700;
}

.asg-recent-list{
    display:grid;
}

.asg-recent-list>div{
    display:grid;
    grid-template-columns:12px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:16px 0;
    border-bottom:1px solid var(--asg-border);
}

.asg-recent-list>div:last-child{
    border-bottom:0;
}

.asg-recent-list small{
    display:block;
    color:var(--asg-text-soft);
    margin-top:3px;
}

.asg-recent-marker{
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--asg-cyan);
    box-shadow:0 0 0 4px rgba(26,175,199,.2);
}

.asg-quick-panel>a{
    display:block;
    background:var(--asg-canvas);
    border-radius:12px;
    padding:15px 17px;
    margin-top:10px;
    text-decoration:none!important;
    color:var(--asg-ink)!important;
    transition:background .15s ease,transform .15s ease;
}

.asg-quick-panel>a:hover{
    background:#E1EBF3;
    transform:translateX(3px);
}

.asg-quick-panel>a strong,
.asg-quick-panel>a span{
    display:block;
}

.asg-quick-panel>a span{
    font-size:.86rem;
    color:var(--asg-text-soft);
    margin-top:3px;
}

.asg-dashboard,
.asg-list-toolbar{
    margin-top:0;
}

.asg-portal-page .wp-block-post-content > .asg-dashboard{
    margin-top:20px!important;
}

body .asg-dashboard{
    width:calc(100% - 48px)!important;
    max-width:1180px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    box-sizing:border-box!important;
}

.asg-dashboard-insights{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.asg-insight-card{
    padding:24px;
}

.asg-insight-card h2{
    margin:0 0 22px;
    color:var(--asg-ink);
    font-size:1.35rem;
}

.asg-progress-list{
    display:grid;
    gap:20px;
}

.asg-progress-row{
    display:grid;
    gap:8px;
}

.asg-progress-row__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.asg-progress-row__top span{
    color:var(--asg-text);
    font-weight:700;
}

.asg-progress-row__top strong{
    color:var(--asg-navy);
    font-size:1.05rem;
}

.asg-progress-track{
    width:100%;
    height:9px;
    background:#E8EEF4;
    border-radius:999px;
    overflow:hidden;
}

.asg-progress-fill{
    height:100%;
    border-radius:999px;
}

.asg-progress-fill--good{
    background:var(--asg-green);
}

.asg-progress-fill--warning{
    background:var(--asg-warning);
}

.asg-progress-fill--blue{
    background:var(--asg-blue);
}

.asg-progress-fill--cyan{
    background:var(--asg-cyan-dark);
}

.asg-progress-link{
    text-decoration:none!important;
    color:inherit!important;
    padding:6px 8px;
    margin:-6px -8px;
    border-radius:10px;
    transition:background .15s ease,
        transform .15s ease;
}

.asg-progress-link:hover{
    background:#F5F8FB;
    transform:translateX(3px);
}

.asg-progress-fill--danger{
    background:var(--asg-red);
}

.asg-progress-fill--neutral{
    background:#7B8794;
}

/* =========================================
   05. TÍTULOS Y TOOLBARS
   ========================================= */

.asg-toolbar-actions{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}

.asg-toolbar-actions input[type=search]{
    flex:1 1 100%;
    width:min(900px,100%);
    max-width:900px;
}

.asg-list-toolbar{
    justify-content:space-between;
    margin:0 0 22px;
    padding:18px 20px;
    background:linear-gradient(135deg,#fff,#F4F8FC);
    border:1px solid var(--asg-border);
    border-radius:14px;
    box-shadow:0 8px 28px rgba(15,42,74,.06);
    align-items:stretch;
    flex-direction:column;
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}

.asg-list-toolbar>div{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.asg-list-toolbar strong{
    font-size:18px;
    color:var(--asg-ink);
}

.asg-list-toolbar input[type=search]{
    min-height:46px;
    margin:0;
    padding:10px 15px;
    border:1px solid #CBD7E3;
    border-radius:10px;
    background:#fff;
    color:var(--asg-text);
    box-shadow:none;
    display:block;
    width:min(900px,100%);
    max-width:900px;
    margin-left:auto;
    margin-right:auto;
}

.asg-list-toolbar input[type=search]:focus{
    border-color:var(--asg-cyan);
    outline:3px solid rgba(29,111,176,.14);
}

.asg-toolbar-actions .asg-primary-button{
    flex:0 0 auto;
}

.asg-page-heading{
    position:relative;
    margin:0 0 22px!important;
    box-sizing:border-box;
}

.asg-page-heading h1{
    display:block;
    width:100%;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    color:var(--asg-ink);
    font-size:clamp(2rem,3vw,2.7rem);
    line-height:1.1;
    font-weight:500;
    letter-spacing:-.025em;
}

/* =========================================
   06. MIS EQUIPOS
   ========================================= */


.asg-equipment-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:20px!important;
}
.asg-equipment-grid > .asg-equipment-card{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    margin:0 !important;

    position:relative !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;

    box-sizing:border-box !important;
}


.asg-equipment-card,
.asg-order-card,
.asg-report-card,
.asg-technician-card{
    position:relative;
    background:var(--asg-surface);
    border:1px solid var(--asg-border);
    border-radius:var(--asg-radius);
    padding:24px 24px 24px 28px;
    box-shadow:var(--asg-shadow);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.asg-equipment-card::before,
.asg-order-card::before,
.asg-report-card::before,
.asg-technician-card::before{
    content:"";
    position:absolute;
    top:16px;
    bottom:16px;
    left:0;
    width:4px;
    border-radius:0 4px 4px 0;
    background:linear-gradient(
            180deg,
            var(--asg-blue),
            var(--asg-red)
        );
}

.asg-equipment-card:hover,
.asg-order-card:hover,
.asg-report-card:hover,
.asg-technician-card:hover{
    transform:translateY(-2px);
    border-color:#B7CCE0;
    box-shadow:0 13px 32px rgba(15,42,74,.1);
}

.asg-equipment-card__top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:16px;
}

.asg-equipment-card h3,
.asg-order-card h3,
.asg-report-card h3,
.asg-technician-card h3{
    font-size:1.2rem;
    margin:0;
    color:var(--asg-ink);
    letter-spacing:-.01em;
}

.asg-equipment-status{
    background:linear-gradient(135deg,var(--asg-navy),var(--asg-cyan-dark));
    color:#fff;
    border-radius:999px;
    font-size:.72rem;
    font-weight:700;
    padding:6px 12px;
    white-space:nowrap;
    box-shadow:0 4px 10px rgba(15,42,74,.25);
}

.asg-equipment-card dl,
.asg-equipment-card dl div,
.asg-order-card dl,
.asg-order-card dl div,
.asg-report-card dl,
.asg-report-card dl div{
    margin:0;
}

.asg-equipment-card dl div,
.asg-order-card dl div,
.asg-report-card dl div{
    display:grid;
    grid-template-columns:150px minmax(0,1fr);
    gap:16px;
    padding:9px 0;
    border-bottom:1px solid var(--asg-border);
}

.asg-equipment-card dl div:last-child,
.asg-order-card dl div:last-child,
.asg-report-card dl div:last-child{
    border-bottom:0;
}

.asg-equipment-card dt,
.asg-order-card dt,
.asg-report-card dt{
    font-weight:700;
    color:var(--asg-text-soft);
    font-size:.92rem;
}

.asg-equipment-card dd,
.asg-order-card dd,
.asg-report-card dd{
    margin:0;
    overflow-wrap:anywhere;
    font-weight:600;
}

.asg-equipment-actions{
    display:flex;
    justify-content:flex-end;
    margin:-8px 0 20px;
}

.asg-criticality{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:5px 10px;
    border-radius:999px;
    font-size:.74rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.asg-criticality--baja{
    background:#E4F4EB;
    color:#17663A;
}

.asg-criticality--media{
    background:#E5F0FA;
    color:#155A91;
}

.asg-criticality--alta{
    background:#FFF0D6;
    color:#8A5300;
}

.asg-criticality--critica{
    background:#FDE5E7;
    color:var(--asg-red-dark);
}

.asg-equipment-card{
    width:100%;
    min-width:0;
    box-sizing:border-box;
}

.asg-equipment-card h3{
    font-size:1.28rem;
}

.asg-equipment-card dl{
    margin-top:8px;
}

.asg-equipment-card dl div{
    padding:10px 0;
}

.asg-equipment-card dt{
    font-size:.82rem;
    text-transform:uppercase;
    letter-spacing:.035em;
}

.asg-equipment-card dd{
    color:var(--asg-ink);
}

.asg-equipment-status.asg-status--nueva,
.asg-equipment-status.asg-status--asignada,
.asg-equipment-status.asg-status--programada{
    background:#E8F1FF;
    color:#155AA8;
}

.asg-equipment-status.asg-status--en-proceso{
    background:#FFF1D8;
    color:#9A5700;
}

.asg-equipment-status.asg-status--pendiente,
.asg-equipment-status.asg-status--pendiente-del-cliente{
    background:#FFF6C9;
    color:#755B00;
}

.asg-equipment-status.asg-status--completada,
.asg-equipment-status.asg-status--cerrada,
.asg-equipment-status.asg-status--normal,
.asg-equipment-status.asg-status--operativo{
    background:#DDF6E8;
    color:#17663A;
}

.asg-equipment-status.asg-status--cancelada,
.asg-equipment-status.asg-status--critico,
.asg-equipment-status.asg-status--critica,
.asg-equipment-status.asg-status--alerta{
    background:#FFE4E4;
    color:#A32626;
}

.asg-equipment-card dl div,
.asg-order-card dl div,
.asg-report-card dl div,
.asg-technician-card dl div{
    grid-template-columns:1fr;
    gap:3px;
}

.asg-equipment-location{
    margin-top:16px;
    padding:13px 14px;
    background:var(--asg-canvas);
    border-radius:10px;
}

.asg-equipment-location span{
    display:block;
    font-size:.72rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--asg-text-soft);
}

.asg-equipment-location strong{
    display:block;
    margin-top:4px;
    color:var(--asg-ink);
    line-height:1.35;
}

.asg-equipment-criticality-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:14px;
}

.asg-equipment-criticality-row > span:first-child{
    color:var(--asg-text-soft);
    font-size:.78rem;
    font-weight:800;
    text-transform:uppercase;
}

/* =========================================
   07. FILTROS
   ========================================= */

.asg-filter-hidden{
    display:none!important;
}

.asg-active-filter{
    margin:0 auto 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:13px 16px;
    background:#F2F7FB;
    border:1px solid var(--asg-border);
    border-left:4px solid var(--asg-blue);
    border-radius:10px;
}

.asg-active-filter > div{
    display:flex;
    align-items:center;
    gap:8px;
}

.asg-active-filter span{
    color:var(--asg-text-soft);
    font-size:.85rem;
}

.asg-active-filter strong{
    color:var(--asg-ink);
}

.asg-active-filter a{
    color:var(--asg-blue)!important;
    text-decoration:none!important;
    font-weight:700;
}

.asg-active-filter a:hover{
    text-decoration:underline!important;
}

.asg-equipment-filter-bar{
    margin:0 auto 22px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    padding:16px 18px;
    background:#fff;
    border:1px solid var(--asg-border);
    border-radius:12px;
    box-shadow:0 6px 18px rgba(10,42,74,.05);
    box-sizing:border-box;
}

.asg-equipment-filter-form{
    display:flex;
    align-items:center;
    gap:12px;
}

.asg-equipment-filter-form label{
    font-weight:700;
    color:var(--asg-ink);
    white-space:nowrap;
}

.asg-equipment-filter-form select{
    min-width:230px;
    min-height:44px;
    padding:9px 38px 9px 12px;
    border:1px solid var(--asg-border);
    border-radius:9px;
    background:#fff;
    color:var(--asg-text);
    font:inherit;
    cursor:pointer;
}

.asg-equipment-filter-form select:focus{
    outline:none;
    border-color:var(--asg-blue);
    box-shadow:0 0 0 3px rgba(0,86,166,.10);
}

.asg-clear-filter{
    color:var(--asg-blue)!important;
    text-decoration:none!important;
    font-weight:700;
    white-space:nowrap;
}

.asg-clear-filter:hover{
    text-decoration:underline!important;
}

.asg-empty-filter-result{
    margin:0 auto 30px;
    padding:38px 26px;
    text-align:center;
    background:#fff;
    border:1px dashed #BFCEDB;
    border-radius:14px;
    box-sizing:border-box;
}

.asg-empty-filter-result strong{
    display:block;
    margin-bottom:6px;
    color:var(--asg-ink);
    font-size:1.2rem;
}

.asg-empty-filter-result span{
    display:block;
    margin-bottom:18px;
    color:var(--asg-text-soft);
}

.asg-empty-filter-result a{
    display:inline-block;
    padding:10px 16px;
    background:var(--asg-navy);
    color:#fff!important;
    border-radius:9px;
    text-decoration:none!important;
    font-weight:700;
}

/* =========================================
   08. ÓRDENES
   ========================================= */

.asg-order-list,
.asg-report-grid{
    display:grid;
    gap:20px;
    margin:26px 0;
}

.asg-order-list{
    display:grid;
    grid-template-columns:1fr;
    gap:22px;
}

.asg-order-card{
    background:#fff;
    border:1px solid var(--asg-border);
    border-radius:18px;
    padding:26px;
    box-shadow:var(--asg-shadow);
    position:relative;
    overflow:hidden;
}

.asg-order-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:5px;
    height:100%;
    background:linear-gradient(
        180deg,
        var(--asg-blue),
        var(--asg-red)
    );
}

.asg-order-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}

.asg-order-summary>div{
    background:var(--asg-canvas);
    border-radius:12px;
    padding:14px;
}

.asg-order-summary span,
.asg-order-description span,
.asg-order-result__content span{
    display:block;
    font-size:.72rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--asg-text-soft);
}

.asg-order-summary strong{
    display:block;
    margin-top:5px;
    color:var(--asg-ink);
    line-height:1.35;
}

.asg-order-description{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid var(--asg-border);
}

.asg-order-description p{
    margin:6px 0 0;
    line-height:1.6;
    color:var(--asg-text);
}

.asg-order-result{
    margin-top:18px;
    border-top:1px solid var(--asg-border);
    padding-top:16px;
}

.asg-order-result summary{
    cursor:pointer;
    font-weight:800;
    color:var(--asg-blue);
    list-style:none;
}

.asg-order-result summary::-webkit-details-marker{
    display:none;
}

.asg-order-result summary::after{
    content:" +";
}

.asg-order-result[open] summary::after{
    content:" −";
}

.asg-order-result__content{
    display:grid;
    gap:18px;
    margin-top:18px;
}

.asg-order-result__content>div{
    background:#F8FAFC;
    border-radius:12px;
    padding:16px;
}

.asg-order-result__content p{
    margin:6px 0 0;
    line-height:1.6;
}

.asg-order-actions{
    display:flex;
    justify-content:flex-end;
    margin-top:18px;
}

/* =========================================
   09. INFORMES
   ========================================= */

.asg-report-grid{
    display:grid;
    grid-template-columns:repeat(
        auto-fit,
        minmax(360px,1fr)
    );
    gap:22px;
}

.asg-report-card{
    background:#fff;
    border:1px solid var(--asg-border);
    border-radius:18px;
    padding:26px;
    box-shadow:var(--asg-shadow);
    position:relative;
    overflow:hidden;
}

.asg-report-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:5px;
    height:100%;
    background:linear-gradient(
        180deg,
        var(--asg-blue),
        var(--asg-red)
    );
}

.asg-report-summary{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.asg-report-summary>div{
    background:var(--asg-canvas);
    border-radius:11px;
    padding:13px;
}

.asg-report-summary span,
.asg-report-description span{
    display:block;
    font-size:.72rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--asg-text-soft);
}

.asg-report-summary strong{
    display:block;
    margin-top:5px;
    color:var(--asg-ink);
}

.asg-report-description{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid var(--asg-border);
}

.asg-report-description p{
    margin:6px 0 0;
    line-height:1.6;
    color:var(--asg-text);
}

.asg-report-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.asg-report-actions .asg-download-button{
    margin-top:0;
}

/* =========================================
   10. FICHA DE EQUIPO
   ========================================= */

.asg-equipment-profile{
    margin:0 auto 50px;
}

.asg-equipment-profile__back{
    margin-bottom:18px;
}

.asg-equipment-profile__back a{
    font-weight:700;
}

.asg-equipment-profile__hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:28px;
    padding:34px 38px;
    border-radius:22px;
    color:#fff;
    background:linear-gradient(
            125deg,
            var(--asg-ink),
            var(--asg-navy) 55%,
            var(--asg-cyan-dark)
        );
    box-shadow:var(--asg-shadow-lg);
}

.asg-equipment-profile__hero h1{
    margin:4px 0 8px;
    color:#fff;
    font-size:clamp(2rem,4vw,2.8rem);
}

.asg-equipment-profile__hero p{
    margin:0;
    color:#D5E3EF;
}

.asg-equipment-profile__badges{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.asg-equipment-tabs{
    display:flex;
    gap:8px;
    margin:24px 0;
    padding:6px;
    background:#fff;
    border:1px solid var(--asg-border);
    border-radius:14px;
    box-shadow:var(--asg-shadow);
    overflow-x:auto;
}

.asg-equipment-tab{
    border:0;
    background:transparent;
    padding:11px 18px;
    border-radius:9px;
    cursor:pointer;
    font-weight:700;
    color:var(--asg-text-soft);
    white-space:nowrap;
}

.asg-equipment-tab:hover{
    background:var(--asg-canvas);
}

.asg-equipment-tab.is-active{
    background:var(--asg-navy);
    color:#fff;
}

.asg-equipment-tab-panel{
    display:none;
}

.asg-equipment-tab-panel.is-active{
    display:block;
}

.asg-equipment-profile-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.asg-equipment-profile-card{
    background:#fff;
    border:1px solid var(--asg-border);
    border-radius:16px;
    padding:26px;
    box-shadow:var(--asg-shadow);
}

.asg-equipment-profile-card h2{
    margin:0 0 18px;
    color:var(--asg-ink);
}

.asg-equipment-profile-card dl{
    margin:0;
}

.asg-equipment-profile-card dl div{
    display:grid;
    grid-template-columns:160px minmax(0,1fr);
    gap:20px;
    padding:11px 0;
    border-bottom:1px solid var(--asg-border);
}

.asg-equipment-profile-card dl div:last-child{
    border-bottom:0;
}

.asg-equipment-profile-card dt{
    color:var(--asg-text-soft);
    font-size:.8rem;
    font-weight:800;
    text-transform:uppercase;
}

.asg-equipment-profile-card dd{
    margin:0;
    font-weight:700;
    color:var(--asg-ink);
}

.asg-equipment-observations{
    line-height:1.65;
    margin-bottom:0;
}

.asg-equipment-history-summary{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,160px));
    gap:14px;
    margin-bottom:20px;
}

.asg-equipment-history-summary>div{
    padding:16px;
    background:var(--asg-canvas);
    border-radius:12px;
}

.asg-equipment-history-summary strong{
    display:block;
    font-size:1.8rem;
    color:var(--asg-navy);
}

.asg-equipment-history-summary span{
    color:var(--asg-text-soft);
}

.asg-equipment-timeline{
    display:grid;
}

.asg-equipment-timeline-item{
    display:grid;
    grid-template-columns:14px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:16px 0;
    border-bottom:1px solid var(--asg-border);
}

.asg-equipment-timeline-item:last-child{
    border-bottom:0;
}

.asg-equipment-timeline-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:var(--asg-blue);
    box-shadow:0 0 0 4px rgba(0,86,166,.12);
}

.asg-equipment-timeline-item small,
.asg-equipment-timeline-item strong,
.asg-equipment-timeline-item span{
    display:block;
}

.asg-equipment-timeline-item small{
    color:var(--asg-red);
    font-weight:800;
    text-transform:uppercase;
    font-size:.7rem;
}

.asg-equipment-timeline-item strong{
    margin-top:3px;
    color:var(--asg-ink);
}

.asg-equipment-timeline-item div span{
    color:var(--asg-text-soft);
    margin-top:3px;
}

.asg-equipment-report-list{
    display:grid;
}

.asg-equipment-report-list>div{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:15px 0;
    border-bottom:1px solid var(--asg-border);
}

.asg-equipment-report-list>div:last-child{
    border-bottom:0;
}

.asg-equipment-report-list strong,
.asg-equipment-report-list span{
    display:block;
}

.asg-equipment-report-list span{
    margin-top:4px;
    color:var(--asg-text-soft);
}

.asg-equipment-report-list .asg-download-button{
    margin-top:0;
}

/* =========================================
   11. FORMULARIOS, LOGIN Y REGISTRO
   ========================================= */

.asg-login-card{
    max-width:460px;
    margin:40px auto;
    background:var(--asg-surface);
    border:1px solid var(--asg-border);
    border-radius:18px;
    padding:32px;
    color:var(--asg-ink);
    box-shadow:var(--asg-shadow-lg);
}

.asg-login-card h2{
    margin-top:0;
}

.asg-login-card label{
    display:block;
    font-weight:700;
    margin-bottom:6px;
    color:var(--asg-text);
}

.asg-login-card input[type=text],
.asg-login-card input[type=password],
.asg-login-card input[type=email],
.asg-login-card input[type=tel]{
    box-sizing:border-box;
    width:100%;
    border:1.5px solid var(--asg-border);
    border-radius:9px;
    padding:12px 14px;
    transition:border-color .15s ease,box-shadow .15s ease;
}

.asg-login-card input[type=text]:focus,
.asg-login-card input[type=password]:focus,
.asg-login-card input[type=email]:focus,
.asg-login-card input[type=tel]:focus{
    border-color:var(--asg-cyan);
    box-shadow:0 0 0 4px rgba(26,175,199,.15);
    outline:none;
}

.asg-login-card .login-remember label{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:400;
}

.asg-login-card input[type=submit],
.asg-primary-button{
    display:inline-block;
    background:linear-gradient(
            135deg,
            var(--asg-navy),
            var(--asg-blue)
        );
    color:#fff!important;
    border:0;
    border-radius:9px;
    padding:12px 20px;
    font-weight:700;
    text-decoration:none!important;
    cursor:pointer;
    box-shadow:var(--asg-shadow-btn);
    transition:transform .15s ease,box-shadow .15s ease;
}

.asg-login-card input[type=submit]:hover,
.asg-primary-button:hover{
    transform:translateY(-2px);
    box-shadow:var(--asg-shadow-btn-hover);
}

.asg-service-form{
    display:grid;
    gap:20px;
    background:var(--asg-surface);
    border:1px solid var(--asg-border);
    border-radius:var(--asg-radius);
    padding:28px;
    margin:26px 0;
    box-shadow:var(--asg-shadow);
}

.asg-service-form label{
    display:block;
    font-weight:700;
    margin-bottom:6px;
    color:var(--asg-text);
}

.asg-service-form input,
.asg-service-form select,
.asg-service-form textarea{
    box-sizing:border-box;
    width:100%;
    border:1.5px solid var(--asg-border);
    border-radius:9px;
    padding:12px 14px;
    background:var(--asg-canvas);
    font-family:inherit;
    transition:border-color .15s ease,box-shadow .15s ease;
}

.asg-service-form input:focus,
.asg-service-form select:focus,
.asg-service-form textarea:focus{
    border-color:var(--asg-cyan);
    box-shadow:0 0 0 4px rgba(26,175,199,.15);
    outline:none;
    background:var(--asg-surface);
}

.asg-service-form button{
    justify-self:start;
    background:linear-gradient(
            135deg,
            var(--asg-navy),
            var(--asg-blue)
        );
    color:#fff;
    border:0;
    border-radius:9px;
    padding:12px 22px;
    font-weight:700;
    cursor:pointer;
    box-shadow:var(--asg-shadow-btn);
    transition:transform .15s ease,box-shadow .15s ease;
}

.asg-service-form button:hover{
    transform:translateY(-2px);
    box-shadow:var(--asg-shadow-btn-hover);
}

.asg-login-page .wp-block-post-title,
.asg-register-page .wp-block-post-title{
    display:none;
}

.asg-login-shell{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
    max-width:980px;
    margin:30px auto 60px;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 26px 65px rgba(10,27,46,.28);
    background:var(--asg-surface);
}

.asg-login-intro{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:linear-gradient(150deg,var(--asg-ink),var(--asg-cyan-dark));
    color:#fff;
    padding:34px 26px;
}

.asg-login-intro::after{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 20% 110%,rgba(231,162,58,.28),transparent 55%);
    pointer-events:none;
}

.asg-login-intro h1{
    position:relative;
    font-size:clamp(2rem,4vw,3.1rem);
    line-height:1.05;
    margin:8px 0 20px;
}

.asg-login-intro p{
    position:relative;
    color:#CBDCEC;
    line-height:1.65;
}

.asg-login-intro ul{
    position:relative;
    display:grid;
    gap:13px;
    padding:0;
    margin:26px 0 0;
    list-style:none;
}

.asg-login-intro li{
    display:flex;
    align-items:center;
}

.asg-login-intro li:before{
    content:"\2713";
    display:inline-grid;
    place-items:center;
    width:24px;
    height:24px;
    border-radius:50%;
    background:var(--asg-amber);
    color:#1c1206;
    font-weight:900;
    font-size:.8rem;
    margin-right:10px;
    flex-shrink:0;
}

.asg-custom-login-form{
    display:grid;
    gap:18px;
}

.asg-custom-login-form label{
    display:block;
    margin-bottom:6px;
    font-weight:700;
    color:var(--asg-text);
}

.asg-custom-login-form input[type=text],
.asg-custom-login-form input[type=password]{
    box-sizing:border-box;
    width:100%;
    min-height:46px;
    border:1.5px solid var(--asg-border);
    border-radius:9px;
    padding:12px 14px;
    background:#fff;
    color:var(--asg-text);
    font:inherit;
}

.asg-custom-login-form input[type=text]:focus,
.asg-custom-login-form input[type=password]:focus{
    border-color:var(--asg-cyan);
    outline:none;
    box-shadow:0 0 0 4px rgba(26,175,199,.15);
}

.asg-login-remember{
    display:flex!important;
    align-items:center;
    gap:8px;
    margin:0!important;
    font-weight:400!important;
}

.asg-login-remember input{
    width:auto!important;
    margin:0;
}

.asg-login-submit{
    width:100%;
    min-height:48px;
}

.asg-login-error{
    margin-bottom:20px;
}

.asg-login-shell .asg-login-card{
    max-width:none;
    margin:0;
    background:var(--asg-surface);
    border:0;
    border-radius:0;
    padding:34px 26px;
    box-shadow:none;
}

.asg-login-shell .asg-login-card h2{
    font-size:1.8rem;
    margin:5px 0 12px;
    color:var(--asg-ink);
}

.asg-login-shell .asg-login-card>p{
    color:var(--asg-text-soft);
    margin-bottom:26px;
}

.asg-login-shell .asg-login-card input[type=submit]{
    width:100%;
    padding:14px;
}

.asg-login-shell .asg-login-card>small{
    display:block;
    color:#7A8794;
    margin-top:24px;
    line-height:1.5;
}

.asg-register-button{
    display:block;
    box-sizing:border-box;
    width:100%;
    margin-top:12px;
    padding:13px 18px;
    border:2px solid var(--asg-navy);
    border-radius:9px;
    color:var(--asg-navy)!important;
    background:#fff;
    text-align:center;
    text-decoration:none!important;
    font-weight:800;
    transition:background .15s ease,color .15s ease,transform .15s ease;
}

.asg-register-button:hover{
    background:var(--asg-navy);
    color:#fff!important;
    transform:translateY(-1px);
}

.asg-register-form{
    display:grid;
    gap:17px;
    margin-top:22px;
}

.asg-register-grid{
    display:grid;
    gap:16px;
    grid-template-columns:1fr;
}

.asg-register-form label{
    display:block;
    margin-bottom:6px;
    color:var(--asg-text);
    font-weight:700;
}

.asg-register-form input{
    box-sizing:border-box;
    width:100%;
    min-height:46px;
    border:1.5px solid var(--asg-border);
    border-radius:9px;
    padding:11px 13px;
    background:#fff;
    color:var(--asg-text);
    font:inherit;
}

.asg-register-form input:focus{
    border-color:var(--asg-cyan);
    outline:none;
    box-shadow:0 0 0 4px rgba(26,175,199,.15);
}

.asg-register-submit{
    width:100%;
    margin-top:4px;
}

.asg-register-login{
    margin-top:20px;
    color:var(--asg-text-soft);
    text-align:center;
}

.asg-register-login-button{
    margin-top:22px;
}

/* =========================================
   12. MENSAJES Y ESTADOS
   ========================================= */

.asg-file-pending{
    display:inline-block;
    color:var(--asg-text-soft);
    margin-top:18px;
    font-size:.9rem;
    font-style:italic;
}

.asg-service-result{
    margin-top:22px;
    padding-top:20px;
    border-top:2px dashed var(--asg-border);
}

.asg-service-result h4{
    margin:0 0 14px;
    font-size:1.05rem;
    color:var(--asg-navy);
}

.asg-service-result p{
    margin:5px 0 14px;
    line-height:1.55;
}

.asg-portal-message.asg-success{
    border-left-color:var(--asg-green);
}

.asg-portal-message.asg-error{
    border-left-color:var(--asg-coral);
}

.asg-empty-state{
    color:var(--asg-text-soft);
}

.asg-portal-message{
    background:var(--asg-canvas);
    border-left:4px solid var(--asg-cyan-dark);
    padding:19px 22px;
    border-radius:8px;
    color:var(--asg-text);
}

/* =========================================
   13. TÉCNICO
   ========================================= */

.asg-technician-list{
    display:grid;
    gap:20px;
    margin:26px 0;
}

.asg-technician-card dl,
.asg-technician-card dl div{
    margin:0;
}

.asg-technician-card dl div{
    display:grid;
    grid-template-columns:130px minmax(0,1fr);
    gap:16px;
    padding:9px 0;
    border-bottom:1px solid var(--asg-border);
}

.asg-technician-card dt{
    font-weight:700;
    color:var(--asg-text-soft);
    font-size:.92rem;
}

.asg-technician-card dd{
    margin:0;
    font-weight:600;
}

.asg-technician-action{
    margin-top:20px;
}

.asg-evidence-links{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
}

.asg-evidence-links strong{
    width:100%;
    color:var(--asg-text-soft);
}

.asg-evidence-links a{
    background:var(--asg-amber);
    color:#1c1206!important;
    border-radius:7px;
    padding:9px 14px;
    text-decoration:none!important;
    font-weight:700;
    font-size:.9rem;
    box-shadow:0 6px 14px rgba(231,162,58,.32);
    transition:transform .15s ease;
}

.asg-evidence-links a:hover{
    transform:translateY(-2px);
}


/* =========================================
   ACTIVIDAD RECIENTE
   ========================================= */

.asg-recent-list{
    display:grid;
}

.asg-recent-item{
    display:grid;
    grid-template-columns:12px minmax(0,1fr) auto;

    align-items:center;

    gap:14px;

    padding:16px 8px;

    border-bottom:1px solid var(--asg-border);

    color:inherit!important;
    text-decoration:none!important;

    border-radius:10px;

    transition:
        background .15s ease,
        transform .15s ease;
}

.asg-recent-item:last-child{
    border-bottom:0;
}

.asg-recent-item:hover{
    background:#F5F8FB;
    transform:translateX(3px);
}

.asg-recent-item__content strong{
    display:block;
    color:var(--asg-ink);
}

.asg-recent-item__content span{
    display:block;

    margin-top:3px;

    color:var(--asg-text);
}

.asg-recent-item__content small{
    display:block;

    margin-top:4px;

    color:var(--asg-text-soft);
}

.asg-recent-item__meta{
    display:flex;
    flex-direction:column;
    align-items:flex-end;

    gap:7px;
}

.asg-recent-item__meta small{
    color:var(--asg-text-soft);
    white-space:nowrap;
}

@media(max-width:700px){

    .asg-recent-item{
        grid-template-columns:12px minmax(0,1fr);
    }

    .asg-recent-item__meta{
        grid-column:2;
        align-items:flex-start;
    }

}



/* =========================================
   14. RESPONSIVE
   ========================================= */

@media(max-width:800px){

    .asg-dashboard{
        width:calc(100vw - 28px);
    }

    .asg-dashboard-hero{
        flex-direction:column;
        align-items:flex-start;
        padding:26px 22px;
    }

    .asg-dashboard-hero > a{
        box-sizing:border-box;
        width:100%;
        padding:12px 18px;
    }

    .asg-dashboard-stats,
    .asg-dashboard-grid{
        grid-template-columns:1fr;
    }

    .asg-toolbar-actions{
        width:100%;
        flex-direction:column;
        align-items:stretch;
    }

    .asg-toolbar-actions input[type=search],
    .asg-toolbar-actions .asg-primary-button{
        width:100%;
    }

    .asg-equipment-profile__hero{
        flex-direction:column;
        align-items:flex-start;
        padding:28px 24px;
    }

    .asg-equipment-profile-grid{
        grid-template-columns:1fr;
    }

    .asg-equipment-profile-card dl div{
        grid-template-columns:1fr;
        gap:4px;
    }

    .asg-equipment-timeline-item{
        grid-template-columns:12px minmax(0,1fr);
    }

    .asg-equipment-timeline-item > .asg-equipment-status{
        grid-column:2;
        justify-self:start;
    }

    .asg-equipment-report-list>div{
        align-items:flex-start;
        flex-direction:column;
    }

    .asg-dashboard-insights{
        grid-template-columns:1fr;
    }

}

@media(max-width:850px){

    .asg-report-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:700px){

    .asg-dashboard-stats{
        grid-template-columns:1fr;
    }

    .asg-summary-grid,
    .asg-dashboard-stats,
    .asg-dashboard-grid,
    .asg-login-shell{
        grid-template-columns:1fr;
    }

    .asg-equipment-grid,
    .asg-report-grid{
        grid-template-columns:1fr;
    }

    .asg-list-toolbar input[type=search],
    .asg-toolbar-actions input[type=search]{
        width:100%;
        max-width:none;
    }

    body .asg-dashboard{
        width:calc(100% - 28px)!important;
        max-width:none!important;
    }

    .asg-active-filter{
        box-sizing:border-box;
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
    }

    .asg-equipment-filter-bar{
        flex-direction:column;
        align-items:stretch;
    }

    .asg-equipment-filter-form{
        flex-direction:column;
        align-items:stretch;
    }

    .asg-equipment-filter-form select{
        width:100%;
        min-width:0;
    }
    .asg-equipment-grid{
        grid-template-columns:1fr !important;
    }
    .asg-list-toolbar,
    .asg-equipment-filter-bar,
    .asg-equipment-grid{
        width:calc(100vw - 28px);
    }

}

@media(max-width:900px){

    .asg-order-summary{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}

@media(max-width:600px){

    .asg-order-summary{
        grid-template-columns:1fr;
    }

    .asg-order-card__header{
        flex-direction:column;
    }

}

@media(max-width:1000px){

    .asg-portal-page header.wp-block-template-part .wp-block-group,
    .asg-portal-page .wp-site-blocks > header .wp-block-group{
        width:calc(100vw - 28px);
        gap:18px;
        flex-wrap:wrap;
    }

    .asg-portal-page header nav{
        order:3;
        width:100%;
        overflow-x:auto;
        justify-content:flex-start;
    }

    .asg-portal-page header nav ul{
        gap:18px;
        white-space:nowrap;
    }

    .asg-equipment-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

}


/* Alineación horizontal definitiva de las páginas internas */
/* =========================================
   ALINEACIÓN HORIZONTAL PÁGINAS INTERNAS
   ========================================= */

.asg-list-toolbar,
.asg-page-heading,
.asg-equipment-grid,
.asg-equipment-filter-bar,
.asg-active-filter,
.asg-empty-filter-result,
.asg-order-list,
.asg-report-grid,
.asg-equipment-profile,
.asg-equipment-register-header,
.asg-service-form{
    width:min(1180px,calc(100vw - 64px))!important;
    max-width:1180px!important;

position:relative!important;
left:auto!important;
right:auto!important;
transform:none!important;

margin-left:auto!important;
margin-right:auto!important;

    box-sizing:border-box!important;
}

@media(max-width:700px){

    .asg-list-toolbar,
    .asg-page-heading,
    .asg-equipment-grid,
    .asg-equipment-filter-bar,
    .asg-active-filter,
    .asg-empty-filter-result,
    .asg-order-list,
    .asg-report-grid,
    .asg-equipment-profile,
    .asg-equipment-register-header,
    .asg-service-form{
        width:calc(100vw - 28px)!important;
        max-width:none!important;
    }

}

@media(prefers-reduced-motion:reduce){
    .asg-equipment-card,
    .asg-order-card,
    .asg-report-card,
    .asg-technician-card,
    .asg-summary-card,
    .asg-dashboard-stats>a,
    .asg-quick-panel>a,
    .asg-primary-button,
    .asg-download-button,
    .asg-service-form button,
    .asg-dashboard-hero>a{
        transition:none;
    }
}


.asg-pickup-photo{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid var(--asg-border);
}

.asg-pickup-photo > span{
    display:block;
    margin-bottom:10px;
    font-size:.78rem;
    font-weight:800;
    text-transform:uppercase;
    color:var(--asg-text-soft);
}

.asg-pickup-photo__image{
    display:block;
    width:100%;
    max-width:320px;
    height:auto;
    border-radius:12px;
    object-fit:cover;
}

/* =========================================================
   TARJETA DE ORDEN - CLIENTE
   ========================================================= */

.asg-role-client .asg-order-card{
    background:#ffffff;
    border:1px solid #d9e3ec;
    border-left:4px solid #193b5b;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 28px rgba(18,47,72,.08);
}

/* Cotización */
.asg-role-client .asg-quotation-panel{
    margin-top:22px;
    padding:24px;
    background:#f7f9fb;
    border:1px solid #dde6ee;
    border-radius:16px;
}

.asg-role-client .asg-quotation-panel__title{
    margin:0 0 18px;
    font-size:1.05rem;
    font-weight:800;
    color:#193b5b;
}

/* Datos técnicos */
.asg-role-client .asg-quotation-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.asg-role-client .asg-quotation-item{
    padding:16px;
    background:#ffffff;
    border:1px solid #e3e9ef;
    border-radius:12px;
}

.asg-role-client .asg-quotation-item--full{
    grid-column:1 / -1;
}

.asg-role-client .asg-quotation-item span{
    display:block;
    margin-bottom:6px;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.03em;
    text-transform:uppercase;
    color:#667b8e;
}

.asg-role-client .asg-quotation-item p{
    margin:0;
    color:#162b3c;
}

/* Total */
.asg-role-client .asg-quotation-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-top:16px;
    padding:18px;
    background:#193b5b;
    color:#ffffff;
    border-radius:12px;
}

.asg-role-client .asg-quotation-total span{
    font-size:.78rem;
    font-weight:700;
    text-transform:uppercase;
}

.asg-role-client .asg-quotation-total strong{
    font-size:1.35rem;
}

/* PDF */
.asg-role-client .asg-quotation-document{
    margin-top:14px;
}

.asg-role-client .asg-quotation-document .asg-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:11px 18px;
    border-radius:10px;
    background:#ffffff;
    border:1px solid #193b5b;
    color:#193b5b;
    font-weight:700;
    text-decoration:none;
}

.asg-role-client .asg-quotation-document .asg-button:hover{
    background:#193b5b;
    color:#ffffff;
}

/* Zona aprobación */
.asg-role-client .asg-quotation-approval{
    margin-top:20px;
    padding:22px;
    background:#ffffff;
    border:1px solid #dce5ed;
    border-radius:14px;
}

.asg-role-client .asg-quotation-approval h4{
    margin:0 0 12px;
    font-size:1rem;
    color:#193b5b;
}

/* Botones */
.asg-role-client .asg-quotation-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:16px;
}

@media(max-width:700px){

    .asg-role-client .asg-quotation-grid{
        grid-template-columns:1fr;
    }

    .asg-role-client .asg-quotation-item--full{
        grid-column:auto;
    }

    .asg-role-client .asg-quotation-total{
        align-items:flex-start;
        flex-direction:column;
    }

    .asg-role-client .asg-quotation-actions{
        flex-direction:column;
    }

    .asg-role-client .asg-quotation-actions button{
        width:100%;
    }
}

/* =========================================================
   OBSERVACIÓN DEL CLIENTE
   ========================================================= */

.asg-role-client .asg-quotation-approval label{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    font-size:.95rem;
    font-weight:700;
    color:#193b5b;
}

.asg-role-client .asg-quotation-approval label > span{
    font-size:.85rem;
    font-weight:400;
    color:#6b7c8c;
}

.asg-role-client .asg-quotation-approval textarea{
    display:block !important;
    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;
    min-height:110px;
    margin-top:10px !important;
    padding:14px 16px !important;
    box-sizing:border-box !important;

    border:1px solid #ccd8e2;
    border-radius:10px;

    background:#f8fafc;
    color:#162b3c;

    font-family:inherit;
    font-size:.95rem;
    line-height:1.5;

    resize:vertical;
}

.asg-role-client .asg-quotation-approval textarea:focus{
    outline:none;
    border-color:#193b5b;
    box-shadow:0 0 0 3px rgba(25,59,91,.08);
}

.asg-role-client .asg-quotation-approval textarea::placeholder{
    color:#8191a0;
    opacity:1;
}


/* =========================================================
   ORDEN DE COMPRA - CLIENTE
   ========================================================= */

.asg-purchase-order-panel {
    margin-top: 22px;
    padding: 26px;
    background: #f6f9fc;
    border: 1px solid #dce6ef;
    border-radius: 16px;
}

.asg-purchase-order-panel__header {
    margin-bottom: 24px;
}

.asg-purchase-order-panel__header h3 {
    margin: 5px 0 7px;
    color: #003f7d;
    font-size: 24px;
    font-weight: 700;
}

.asg-purchase-order-panel__header p {
    margin: 0;
    max-width: 760px;
    color: #516273;
    font-size: 15px;
    line-height: 1.6;
}

.asg-purchase-order-form {
    display: grid;
    gap: 20px;
}

.asg-purchase-order-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.asg-purchase-order-field > label {
    color: #24384b;
    font-size: 14px;
    font-weight: 700;
}

.asg-purchase-order-field input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #cbd9e5;
    border-radius: 9px;
    color: #162a3d;
    font-size: 15px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.asg-purchase-order-field input[type="text"]:focus {
    outline: none;
    border-color: #005aa7;
    box-shadow: 0 0 0 3px rgba(0, 90, 167, .10);
}

.asg-purchase-order-field input[type="text"]::placeholder {
    color: #9aa8b5;
}

.asg-purchase-order-upload {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px dashed #b8c9d9;
    border-radius: 12px;
}

.asg-purchase-order-upload__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 10px;
    background: #e9f2fa;
    color: #005394;
    font-size: 13px;
    font-weight: 800;
}

.asg-purchase-order-upload__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.asg-purchase-order-upload__content strong {
    color: #24384b;
    font-size: 15px;
}

.asg-purchase-order-upload__content > span {
    margin-bottom: 8px;
    color: #758596;
    font-size: 13px;
}

.asg-purchase-order-upload input[type="file"] {
    width: 100%;
    color: #657688;
    font-size: 13px;
}

.asg-purchase-order-upload input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 14px;
    border: 0;
    border-radius: 7px;
    background: #edf3f8;
    color: #004d8f;
    font-weight: 700;
    cursor: pointer;
}

.asg-purchase-order-upload input[type="file"]::file-selector-button:hover {
    background: #dfeaf3;
}

.asg-purchase-order-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.asg-purchase-order-actions .asg-primary-button {
    min-height: 46px;
    padding: 0 22px;
}

@media (max-width: 700px) {

    .asg-purchase-order-panel {
        padding: 20px;
    }

    .asg-purchase-order-upload {
        align-items: flex-start;
    }

}


.asg-equipment-card{
    overflow:hidden;
    padding-top:0!important;
}

.asg-equipment-card__image{
    margin:
        0
        -24px
        20px
        -28px;
    height:210px;
    background:#eef3f7;
    overflow:hidden;
    border-bottom:1px solid var(--asg-border);
}

.asg-equipment-card__photo{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.asg-equipment-card__no-photo{
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    color:var(--asg-text-soft);
}

.asg-equipment-card__no-photo span{
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#dfeaf3;
    color:var(--asg-blue);
    font-weight:800;
    font-size:1.1rem;
}

.asg-equipment-card__no-photo small{
    font-size:.8rem;
}

.asg-equipment-card__top{
    margin-top:4px;
}



/* Panel del técnico: órdenes asignadas */
.asg-technician-toolbar {
    width: min(940px, calc(100vw - 32px));
    margin: 24px auto 0;
    padding: 28px 32px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(115deg, #102d49 0%, #155b78 100%);
    box-shadow: 0 14px 32px rgba(16, 45, 73, .16);
}

.asg-technician-toolbar .asg-dashboard-eyebrow {
    color: #b9e7f5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.asg-technician-toolbar strong {
    color: #fff;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -.025em;
}

.asg-technician-toolbar input[type="search"] {
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #c9d9e7;
    border-radius: 10px;
    font-size: 15px;
}

.asg-technician-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    position: static;
    left: auto;
    transform: none;
    width: min(1180px, calc(100vw - 64px));
    max-width: 1180px;
    margin: 24px auto 48px;
    gap: 20px;
}

.asg-technician-board .asg-technician-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.asg-technician-board .asg-pickup-photo__image {
    max-width: 100%;
}

@media (max-width: 900px) {
    .asg-technician-board {
        grid-template-columns: 1fr;
    }
}

.asg-technician-board .asg-technician-card {
    padding: 28px 32px;
    border: 1px solid #d4e2ef;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(16, 45, 73, .07);
}

.asg-technician-board .asg-technician-card::before {
    top: 20px;
    bottom: 20px;
    width: 5px;
    background: #1582ad;
}

.asg-technician-board .asg-equipment-card__top {
    padding-bottom: 18px;
    border-bottom: 1px solid #dbe6f0;
}

.asg-technician-board .asg-equipment-card__top .asg-dashboard-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #52708b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.asg-technician-board .asg-technician-card h3 {
    color: #102d49;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 750;
}

.asg-technician-board .asg-technician-card dl div {
    grid-template-columns: 170px minmax(0, 1fr);
    padding: 13px 0;
}

@media (max-width: 600px) {
    .asg-technician-toolbar,
    .asg-technician-board {
        width: calc(100vw - 24px);
    }

    .asg-technician-toolbar {
        padding: 22px 18px;
    }

    .asg-technician-board .asg-technician-card {
        padding: 22px 18px;
    }

    .asg-technician-board .asg-technician-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Estado vacío del panel técnico */
.asg-technician-empty {
    box-sizing: border-box;
    width: min(760px, calc(100vw - 32px));
    margin: 36px auto 90px;
    padding: 38px 42px;
    border: 1px solid #d4e2ef;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f2f8fc 100%);
    box-shadow: 0 12px 32px rgba(16, 45, 73, .07);
    color: #102d49;
    text-align: center;
}

.asg-technician-empty__label {
    display: inline-block;
    margin-bottom: 18px;
    color: #145b83;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.asg-technician-empty__count {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 20px;
    background: #e2f2f9;
    color: #12658b;
    font-size: 34px;
    font-weight: 800;
}

.asg-technician-empty h2 {
    margin: 0 0 12px;
    color: #102d49;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.asg-technician-empty p {
    max-width: 540px;
    margin: 0 auto;
    color: #52677a;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .asg-technician-empty {
        margin-top: 24px;
        padding: 30px 22px;
    }
}

.asg-technician-history-link a {
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.asg-technician-list-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 32px;
    border: 1px solid #d4e2ef;
    border-radius: 14px;
    background: #f4f9fc;
    color: #425b72;
    text-align: center;
}

.asg-technician-board .asg-pickup-photo__image {
    width: auto;
    max-width: min(180px, 100%);
    max-height: 140px;
    height: auto;
    object-fit: contain;
}

/* Solicitud de recogida del cliente */
.asg-pickup-request-heading.asg-page-heading,
.asg-pickup-request-form.asg-service-form {
    width: min(980px, calc(100vw - 32px)) !important;
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.asg-pickup-request-heading {
    margin-top: 26px !important;
    padding: 34px 38px;
    border-radius: 18px;
    background: linear-gradient(115deg, #102d49 0%, #155b78 100%);
    box-shadow: 0 14px 32px rgba(16, 45, 73, .15);
    color: #fff;
}

.asg-pickup-request-heading .asg-dashboard-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #b9e7f5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.asg-pickup-request-heading.asg-page-heading h1 {
    margin: 0 0 14px !important;
    color: #fff;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 750;
    text-align: left !important;
}

.asg-pickup-request-heading p {
    max-width: 730px;
    margin: 0;
    color: #e4f1f7;
    font-size: 16px;
    line-height: 1.6;
}

.asg-pickup-request-form {
    gap: 24px;
    margin-top: 20px !important;
    padding: 34px 38px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(16, 45, 73, .07);
}

.asg-pickup-request-form label {
    margin-bottom: 10px;
    color: #102d49;
    font-size: 16px;
}

.asg-pickup-request-form textarea {
    min-height: 150px;
    padding: 15px 17px;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
}

.asg-pickup-request-form input[type="file"] {
    min-height: 62px;
    padding: 10px;
    border: 1.5px dashed #9bbbd0;
    border-radius: 12px;
    background: #f4f9fc;
    cursor: pointer;
}

.asg-pickup-request-form input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #e1eef7;
    color: #102d49;
    font-weight: 700;
    cursor: pointer;
}

.asg-pickup-request-form button[type="submit"] {
    min-height: 48px;
    padding: 13px 24px;
    font-size: 15px;
}

@media (max-width: 600px) {
    .asg-pickup-request-heading,
    .asg-pickup-request-form {
        padding: 24px 20px;
    }
}

.asg-pickup-photo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
    gap: 12px;
}

.asg-pickup-photo > span {
    grid-column: 1 / -1;
}

.asg-pickup-photo__image {
    width: 100%;
    max-width: 180px;
    max-height: 150px;
    height: auto;
    object-fit: contain;
    background: #f4f8fb;
}

/* Cabecera de Mis equipos */
.asg-equipment-catalog-header {
    box-sizing: border-box;
    width: min(1180px, calc(100vw - 64px));
    max-width: 1180px;
    margin: 26px auto 20px;
    padding: 32px 36px;
    border-radius: 18px;
    background: linear-gradient(115deg, #102d49 0%, #155b78 100%);
    box-shadow: 0 14px 32px rgba(16, 45, 73, .15);
    color: #fff;
}

.asg-equipment-catalog-header .asg-dashboard-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #b9e7f5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.asg-equipment-catalog-header h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.asg-equipment-catalog-header p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #e4f1f7;
    font-size: 16px;
    line-height: 1.5;
}

.asg-equipment-catalog-header .asg-toolbar-actions {
    display: block;
}

.asg-equipment-catalog-header input[type="search"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #c9d9e7;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
}

.asg-equipment-catalog-filter {
    padding: 18px 22px;
    border-radius: 14px;
    background: #f5f9fc;
}

@media (max-width: 700px) {
    .asg-equipment-catalog-header {
        width: calc(100vw - 28px);
        padding: 24px 20px;
    }

    .asg-equipment-catalog-filter {
        padding: 16px;
    }
}

/* Inicio de sesión: diseño destacado */
body.asg-login-page .wp-site-blocks > main,
body.asg-login-page .wp-block-post-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.asg-login-page .wp-block-post-content > .wp-block-spacer {
    display: none;
}

body.asg-login-page .asg-login-shell {
    box-sizing: border-box;
    width: min(1080px, calc(100vw - 32px));
    max-width: none;
    grid-template-columns: 1fr 1fr;
    margin: 18px auto 48px !important;
    border: 1px solid #dce8f2;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 75px rgba(16, 45, 73, .18);
}

body.asg-login-page .asg-login-intro {
    isolation: isolate;
    justify-content: center;
    min-height: 570px;
    padding: 54px 52px;
background:
    radial-gradient(circle at 88% 12%, rgba(0, 86, 179, .38), transparent 30%),
    linear-gradient(145deg, #102a45 5%, #123f79 62%, #0056b3 100%);
}

body.asg-login-page .asg-login-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -95px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    box-shadow:
        0 0 0 58px rgba(255, 255, 255, .055),
        0 0 0 118px rgba(255, 255, 255, .035);
}

body.asg-login-page .asg-login-intro::after {
    background: linear-gradient(0deg, rgba(5, 29, 50, .28), transparent 48%);
}

body.asg-login-page .asg-login-intro .asg-dashboard-eyebrow {
    align-self: flex-start;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
}

body.asg-login-page .asg-login-intro h1 {
    max-width: 520px;
    margin: 24px 0 20px;
    color: #fff;
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

body.asg-login-page .asg-login-intro p {
    max-width: 430px;
    margin: 0;
    color: #e0edf5;
    font-size: 17px;
    line-height: 1.6;
}

body.asg-login-page .asg-login-intro ul {
    gap: 13px;
    margin-top: 34px;
}

body.asg-login-page .asg-login-intro li {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

body.asg-login-page .asg-login-intro li::before {
    width: 27px;
    height: 27px;
    margin-right: 12px;
    background: #d71920;
    color: #fff;

}
body.asg-login-page .asg-login-shell .asg-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 52px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

body.asg-login-page .asg-login-card .asg-dashboard-eyebrow {
color: #d71920;    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

body.asg-login-page .asg-login-shell .asg-login-card h2 {
    margin: 12px 0 10px;
    font-size: clamp(27px, 2.3vw, 34px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

body.asg-login-page .asg-login-shell .asg-login-card > p {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.55;
}

body.asg-login-page .asg-custom-login-form {
    gap: 17px;
}

body.asg-login-page .asg-custom-login-form label {
    margin-bottom: 8px;
    font-size: 14px;
}

body.asg-login-page .asg-custom-login-form input[type=text],
body.asg-login-page .asg-custom-login-form input[type=password] {
    min-height: 52px;
    border-color: #cdddeb;
    border-radius: 12px;
    background: #fff;
}

body.asg-login-page .asg-login-submit,
body.asg-login-page .asg-register-button {
    min-height: 52px;
    border-radius: 12px;
}

body.asg-login-page .asg-register-button {
    margin-top: 13px;
}

@media (max-width: 760px) {
    body.asg-login-page .asg-login-shell {
        grid-template-columns: 1fr;
    }

    body.asg-login-page .asg-login-intro {
        min-height: 0;
        padding: 34px 26px;
    }

    body.asg-login-page .asg-login-intro h1 {
        font-size: 32px;
    }

    body.asg-login-page .asg-login-intro ul {
        margin-top: 22px;
    }

    body.asg-login-page .asg-login-shell .asg-login-card {
        padding: 36px 26px;
    }
}


/* Crear cuenta: misma identidad visual que el acceso */
body.asg-register-page .wp-site-blocks > main,
body.asg-register-page .wp-block-post-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.asg-register-page .wp-block-post-content > .wp-block-spacer {
    display: none;
}

body.asg-register-page .asg-register-shell {
    box-sizing: border-box;
    width: min(1080px, calc(100vw - 32px));
    max-width: none;
    grid-template-columns: 1fr 1fr;
    margin: 18px auto 48px !important;
    border: 1px solid #dce8f2;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 75px rgba(16, 45, 73, .18);
}

body.asg-register-page .asg-register-shell .asg-login-intro {
    isolation: isolate;
    justify-content: flex-start;
    padding: 70px 52px;
    background:
        radial-gradient(circle at 88% 12%, rgba(0, 86, 179, .38), transparent 30%),
        linear-gradient(145deg, #102a45 5%, #123f79 62%, #0056b3 100%);
}

body.asg-register-page .asg-register-shell .asg-login-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -95px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    box-shadow:
        0 0 0 58px rgba(255, 255, 255, .055),
        0 0 0 118px rgba(255, 255, 255, .035);
}

body.asg-register-page .asg-register-shell .asg-login-intro::after {
    background: linear-gradient(0deg, rgba(5, 29, 50, .28), transparent 48%);
}

body.asg-register-page .asg-register-shell .asg-login-intro .asg-dashboard-eyebrow {
    align-self: flex-start;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
}

body.asg-register-page .asg-register-shell .asg-login-intro h1 {
    margin: 24px 0 20px;
    color: #fff;
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

body.asg-register-page .asg-register-shell .asg-login-intro p {
    margin: 0;
    color: #e0edf5;
    font-size: 17px;
    line-height: 1.6;
}

body.asg-register-page .asg-register-shell .asg-login-intro ul {
    gap: 13px;
    margin-top: 34px;
}

body.asg-register-page .asg-register-shell .asg-login-intro li {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

body.asg-register-page .asg-register-shell .asg-login-intro li::before {
    width: 27px;
    height: 27px;
    margin-right: 12px;
    background: #d71920;
    color: #fff;
}

body.asg-register-page .asg-register-shell .asg-register-card {
    padding: 54px 52px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

body.asg-register-page .asg-register-card > .asg-dashboard-eyebrow {
    color: #d71920;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

body.asg-register-page .asg-register-card h2 {
    margin: 12px 0 10px;
    font-size: clamp(27px, 2.3vw, 34px);
    line-height: 1.15;
}

body.asg-register-page .asg-register-card > p {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.55;
}

body.asg-register-page .asg-register-form {
    gap: 17px;
    margin-top: 0;
}

body.asg-register-page .asg-register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.asg-register-page .asg-register-form label {
    margin-bottom: 8px;
    font-size: 14px;
}

body.asg-register-page .asg-register-form input {
    min-height: 52px;
    border-color: #cdddeb;
    border-radius: 12px;
    background: #fff;
}

body.asg-register-page .asg-register-form input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, .14);
}

@media (max-width: 760px) {
    body.asg-register-page .asg-register-shell {
        grid-template-columns: 1fr;
    }

    body.asg-register-page .asg-register-shell .asg-login-intro {
        padding: 34px 26px;
    }

    body.asg-register-page .asg-register-shell .asg-login-intro h1 {
        font-size: 32px;
    }

    body.asg-register-page .asg-register-shell .asg-login-intro ul {
        margin-top: 22px;
    }

    body.asg-register-page .asg-register-shell .asg-register-card {
        padding: 36px 26px;
    }

    body.asg-register-page .asg-register-grid {
        grid-template-columns: 1fr;
    }
}

/* Panel del cliente: distribución compacta y colores ASG */
.asg-dashboard .asg-dashboard-insights {
    align-items: start;
}

.asg-dashboard .asg-dashboard-insights > .asg-insight-card {
    min-width: 0;
}

.asg-dashboard .asg-dashboard-stats > a:nth-child(1) .asg-stat-icon {
    background: linear-gradient(135deg, #0056b3, #123f79);
}

.asg-dashboard .asg-dashboard-stats > a:nth-child(2) .asg-stat-icon {
    background: linear-gradient(135deg, #d71920, #aa1520);
}

.asg-dashboard .asg-dashboard-stats > a:nth-child(3) .asg-stat-icon {
    background: linear-gradient(135deg, #123f79, #0056b3);
}

.asg-dashboard .asg-dashboard-stats > a:nth-child(3)::before {
    background: #0056b3;
}

.asg-dashboard .asg-recent-marker {
    background: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, .14);
}

@media (min-width: 1200px) {
    .asg-dashboard .asg-dashboard-insights > .asg-insight-card:nth-child(2)
    .asg-progress-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 16px;
    }
}

@media (max-width: 1199px) {
    .asg-dashboard .asg-dashboard-insights > .asg-insight-card:nth-child(2)
    .asg-progress-list {
        grid-template-columns: 1fr;
    }
}


/* Panel administrativo de OC: tarjetas adaptables */
.asg-administrativa {
    width: min(1180px, calc(100vw - 32px));
    max-width: none !important;
    margin: 0 auto 72px !important;
    box-sizing: border-box;
}

body.asg-portal-page .wp-block-post-content:has(.asg-administrativa) {
    width: 100% !important;
    max-width: none !important;
}

.asg-administrativa__hero {
    padding: 28px 32px;
    margin-bottom: 24px;
    color: #fff;
    background: linear-gradient(115deg, #0e2945, #0b5478);
    border-radius: 20px;
    box-shadow: 0 16px 35px rgba(14, 41, 69, .16);
}

.asg-administrativa__hero span {
    color: #a9d9ef;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.asg-administrativa__hero h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
}

.asg-administrativa__hero p {
    margin: 0;
    color: #e3f0f7;
}

.asg-administrativa__list {
    overflow: visible;
}

.asg-administrativa__table,
.asg-administrativa__table tbody {
    display: block;
    width: 100%;
}

.asg-administrativa__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.asg-administrativa__table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.asg-administrativa__table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #d5e3ed;
    border-top: 4px solid #0056b3;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(14, 41, 69, .08);
}

.asg-administrativa__table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.asg-administrativa__table td::before {
    display: block;
    margin-bottom: 7px;
    color: #60758b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.asg-administrativa__table td:nth-child(1),
.asg-administrativa__table td:nth-child(6) {
    grid-column: 1 / -1;
}

.asg-administrativa__table td:nth-child(1) {
    padding-bottom: 14px;
    border-bottom: 1px solid #dce7ef;
    color: #0e2945;
    font-size: 24px;
    font-weight: 800;
}

.asg-administrativa__table td:nth-child(1)::before { content: "Orden de compra"; }
.asg-administrativa__table td:nth-child(2)::before { content: "Cliente"; }
.asg-administrativa__table td:nth-child(3)::before { content: "Órdenes de servicio"; }
.asg-administrativa__table td:nth-child(4)::before { content: "Fecha recibida"; }
.asg-administrativa__table td:nth-child(5)::before { content: "Documento"; }
.asg-administrativa__table td:nth-child(6)::before { content: "Facturación"; }

.asg-administrativa__table td:nth-child(6) {
    padding: 18px;
    background: #f3f7fa;
    border-radius: 12px;
}

.asg-administrativa__table td:nth-child(6) input[type="text"],
.asg-administrativa__table td:nth-child(6) input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.asg-administrativa__table td:nth-child(6) button {
    min-height: 42px;
    padding: 9px 16px;
    color: #fff;
    background: #0056b3;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.asg-administrativa__table td:nth-child(6) ul {
    margin: 8px 0 14px;
    padding-left: 20px;
}

@media (max-width: 980px) {
    .asg-administrativa__table tbody {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .asg-administrativa__hero,
    .asg-administrativa__table tbody tr {
        padding: 20px;
    }

    .asg-administrativa__table tbody tr {
        grid-template-columns: 1fr;
    }
}

/* Identidad del título en el encabezado */
body.asg-portal-page header .wp-block-site-title,
body.asg-login-page header .wp-block-site-title {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin: 0;
    padding: 12px 18px 16px;
    color: #0056b3;
    background: linear-gradient(135deg, #f0f6ff, #fff);
    border: 1px solid #dce8f7;
    border-radius: 12px;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    white-space: nowrap;
}

body.asg-portal-page header .wp-block-site-title a,
body.asg-login-page header .wp-block-site-title a {
    color: inherit;
    text-decoration: none;
}

body.asg-portal-page header .wp-block-site-title::after,
body.asg-login-page header .wp-block-site-title::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 18px;
    width: 36px;
    height: 3px;
    background: #df1525;
    border-radius: 3px;
}

.asg-footer-colombia {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 280px;
}

.asg-footer-colombia::before {
    content: none;
}

.asg-footer-colombia::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 270px;
    height: 270px;
    background: url("https://portal.asgsas.com/wp-content/uploads/2026/10/Imagen-de-ChatGPT-21-oct-2026-15_31_17.png") right bottom / contain no-repeat;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 600px) {
    .asg-footer-colombia::after {
        width: 150px;
        height: 150px;
        opacity: .8;
    }
}