/*
 * Extrategor – Estilos Globales (mu-plugin)
 * Se cargan en todas las páginas del sitio.
 * Añadir aquí variables CSS, tipografía y utilidades globales.
 */

/* ── Variables de marca ─────────────────────────────────────── */
:root {
    --etg-red:        #e30613;
    --etg-red-dark:   #b0000e;
    --etg-dark:       #1a1a1a;
    --etg-gray:       #555555;
    --etg-light-gray: #f5f5f5;
    --etg-border:     #e0e0e0;

    --etg-font-base:  'Segoe UI', Arial, sans-serif;
    --etg-radius:     6px;
    --etg-transition: 0.2s ease;

    /* Sistema portada / dossier (SPA y catálogos) */
    --h-navy:      #03102b;
    --h-dark:      #0a2348;
    --h-blue:      #006bb3;
    --h-blue-mid:  #0a82d4;
    --h-blue-lt:   #2196d9;
    --h-white:     #ffffff;
    --h-off:       #f4f7fb;
    --h-gray:      #6b7a99;
    --h-text:      #1a2340;
    --h-radius-sm: 8px;
    --h-trans:     0.22s ease;
}

/* ── Reset mínimo ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--etg-font-base);
    color: var(--etg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: color var(--etg-transition);
}

/* ── Utilidades ─────────────────────────────────────────────── */
.etg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ── Hero SPA (alineado con portada home-hero) ─────────────── */
.etg-hero {
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.etg-hero:not(.etg-hero--soft) {
    background: linear-gradient(145deg, var(--h-navy) 0%, #061e47 55%, #0a3570 100%);
    padding: 52px 0 64px;
}

.etg-hero:not(.etg-hero--soft)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 55% at 75% 15%, rgba(0, 107, 179, 0.14), transparent 52%);
    pointer-events: none;
}

.etg-hero--soft {
    background: linear-gradient(135deg, #e8f4fc 0%, #f5fafd 50%, #eef6fb 100%);
    color: var(--etg-dark);
    padding: 40px 0 48px;
}

.etg-hero__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.etg-hero__kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.etg-hero:not(.etg-hero--soft) .etg-hero__kicker {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(33, 150, 217, 0.35);
    background: rgba(33, 150, 217, 0.12);
    border-radius: 20px;
    color: #8ed4f8;
}

.etg-hero--soft .etg-hero__kicker {
    color: var(--h-blue);
    opacity: 1;
}

.etg-hero__title {
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin: 0 0 18px;
}

.etg-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--h-blue-lt), #6ec6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.etg-hero--soft .etg-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.etg-hero--soft .etg-hero__title em {
    -webkit-text-fill-color: var(--h-blue);
    background: none;
}

.etg-hero__lead {
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 auto 28px;
    max-width: 38rem;
}

.etg-hero:not(.etg-hero--soft) .etg-hero__lead {
    color: rgba(255, 255, 255, 0.76);
}

.etg-hero--soft .etg-hero__lead {
    color: var(--etg-gray);
}

.etg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.etg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--h-radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--h-trans), box-shadow var(--h-trans), background var(--h-trans), border-color var(--h-trans);
}

.etg-btn--primary {
    background: var(--h-blue);
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(0, 107, 179, 0.4);
}

.etg-btn--primary:hover {
    background: var(--h-blue-mid);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 107, 179, 0.5);
}

.etg-hero--soft .etg-btn--primary {
    background: linear-gradient(135deg, var(--h-blue), #003f7d);
    color: #fff !important;
}

.etg-btn--outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.35);
}

.etg-btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.etg-hero--soft .etg-btn--outline {
    color: var(--h-blue) !important;
    border-color: var(--h-blue);
}

.etg-hero--soft .etg-btn--outline:hover {
    background: rgba(0, 107, 179, 0.08);
}

/* ── Ficha servicio /servicio/{id}/ ─────────────────────────── */
.etg-servicio-single {
    background: #f1f5f9;
    padding: 32px 0 56px;
}
.etg-servicio-single__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.etg-servicio-single__crumb {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 20px;
}
.etg-servicio-single__crumb a {
    color: #006bb3;
    text-decoration: none;
    font-weight: 600;
}
.etg-servicio-single__crumb a:hover {
    text-decoration: underline;
}
.etg-servicio-single__card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
.etg-servicio-single__media img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}
.etg-servicio-single__body {
    padding: 28px 24px 32px;
}
.etg-servicio-single__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.etg-servicio-single__desc {
    color: #334155;
    line-height: 1.65;
    font-size: 1rem;
}
.etg-servicio-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.etg-servicio-single__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.etg-servicio-single__btn--primary {
    background: linear-gradient(135deg, #006bb3, #003f7d);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 107, 179, 0.35);
}
.etg-servicio-single__btn--ghost {
    background: #fff;
    color: #006bb3 !important;
    border: 2px solid #006bb3;
}
.etg-servicio-single__btn:hover {
    transform: translateY(-2px);
}
