
/* =======================================================
   Red Eyed Coyote - Site Theme
   Paleta: carmesi + casi negro + blanco
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --lh-primary:       #C41E3A;
    --lh-primary-dark:  #8B0000;
    --lh-primary-light: #E8465A;
    --lh-blue:          #C41E3A;
    --lh-green:         #E8465A;
    --lh-soft-blue:     #FDF0F2;
    --lh-ink:           #1A1A1A;
    --lh-muted:         #6B5B5D;
    --lh-border:        #E5DADA;
    --lh-white:         #FFFFFF;
    --lh-hero-bg:       #0D0608;
    --lh-card-shadow:   0 2px 16px rgba(196,30,58,.10);
    --lh-radius-lg:     .75rem;
    --lh-radius-xl:     1rem;
    --cms-spacing-scale: 1;
}

/* -- Base -- */
body.public-site {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--lh-ink);
    background: var(--lh-white);
}

/* -- Contrato estructural del CMS --
   Clases que emite CmsSectionStyle para TODOS los bloques. Viajan con el tema
   porque solo se sirve el CSS del tema activo. */
.section-space,
.cms-section {
    padding: calc(5rem * var(--cms-spacing-scale)) 0;
    position: relative;
}

.bg-soft-blue { background: var(--lh-soft-blue); }

.section-heading {
    font-size: clamp(1.9rem, 2.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

/* max-width sin centrar: centrarlo siempre descuadraba el parrafo del hero,
   que va alineado a la izquierda bajo su titulo. */
.section-lead {
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 46rem;
}

.text-center .section-lead,
.cms-cta-banner .section-lead { margin-left: auto; margin-right: auto; }

.content-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--lh-white);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-xl);
    box-shadow: var(--lh-card-shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.content-card:hover { transform: translateY(-4px); }

.cta-section  { background: linear-gradient(135deg, var(--lh-primary-dark), var(--lh-primary) 65%, var(--lh-primary-light)); }
.hero-section { background: linear-gradient(180deg, var(--lh-hero-bg), #2A0D11); color: #fff; }
.gallery-tile { border-radius: var(--lh-radius-lg); overflow: hidden; box-shadow: var(--lh-card-shadow); }

/* Hero oscuro con profundidad */
.cms-hero.bg-dark {
    background:
        radial-gradient(1100px 520px at 12% -20%, rgba(196,30,58,.38), transparent 62%),
        radial-gradient(800px 420px at 92% 120%, rgba(232,70,90,.16), transparent 60%),
        #0D0608 !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.cms-hero .display-5 {
    font-size: clamp(2.3rem, 4.6vw, 3.5rem);
    letter-spacing: -.03em;
    line-height: 1.06;
}

.cms-hero .section-lead { font-size: 1.12rem; }

/* Hero: migas de pan legibles sobre fondo oscuro */
.cms-hero .breadcrumb { margin-bottom: 0; }
.cms-section.bg-dark .breadcrumb-item a,
.cms-section.hero-section .breadcrumb-item a { color: rgba(255,255,255,.7); }
.cms-section.bg-dark .breadcrumb-item.active,
.cms-section.hero-section .breadcrumb-item.active { color: rgba(255,255,255,.5); }
.cms-section.bg-dark .breadcrumb-item + .breadcrumb-item::before,
.cms-section.hero-section .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* Grid: masonry */
.cms-masonry { column-gap: 1.5rem; column-count: 1; }
@media (min-width: 576px) { .cms-masonry { column-count: 2; } }
@media (min-width: 992px) { .cms-masonry { column-count: 3; } }
.cms-masonry__item { break-inside: avoid; margin-bottom: 1.5rem; }

/* Grid: carousel */
.cms-carousel-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; }
.cms-carousel-track__item { flex: 0 0 auto; width: min(320px, 80%); scroll-snap-align: start; }

/* Tarjeta sobre superficie oscura */
.cms-card--dark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.cms-card--dark .card-title,
.cms-card--dark h5 { color: #fff; }

/* -- Navbar principal -- */
.site-header .navbar {
    background: var(--lh-hero-bg) !important;
    border-bottom: 2px solid var(--lh-primary);
}
.site-header .navbar-brand,
.site-header .nav-link {
    color: rgba(255,255,255,.92) !important;
    font-weight: 500;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: var(--lh-primary-light) !important; }
.site-header .navbar-toggler { border-color: rgba(255,255,255,.3); }
.site-header .dropdown-menu { background: #1a0709; border: 1px solid var(--lh-primary-dark); }
.site-header .dropdown-item { color: rgba(255,255,255,.85); }
.site-header .dropdown-item:hover { background: var(--lh-primary-dark); color: #fff; }

/* -- Barra de area (segunda navegacion) --
   Mismo patron que las subnav de MD Forge y Coyote Arcade, en paleta de marca.
   La sirve _CmsAreaSubnavPartial desde el menu CMS "area-{segmento}". */
.area-subnav {
    background: linear-gradient(135deg, #1A0709 0%, #2A0D11 55%, #0D0608 100%);
    border-bottom: 2px solid var(--lh-primary);
}

.area-subnav .nav-link {
    color: rgba(255,255,255,.75);
    font-size: .875rem;
    padding: .4rem .85rem;
    border-radius: .375rem;
    transition: background .15s, color .15s;
}

.area-subnav .nav-link:hover,
.area-subnav .nav-link.active {
    color: #fff;
    background: rgba(196,30,58,.30);
}

.area-subnav .area-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.area-subnav .area-brand i { color: var(--lh-primary-light); }

.area-subnav .nav-separator {
    width: 1px;
    background: rgba(255,255,255,.2);
    height: 1.25rem;
    margin: 0 .5rem;
}

.area-subnav .dropdown-menu { background: #1a0709; border: 1px solid var(--lh-primary-dark); }
.area-subnav .dropdown-item { color: rgba(255,255,255,.85); font-size: .875rem; }
.area-subnav .dropdown-item:hover,
.area-subnav .dropdown-item.active { background: var(--lh-primary-dark); color: #fff; }

/* -- Footer -- */
footer.border-top {
    background: var(--lh-hero-bg);
    border-color: var(--lh-primary-dark) !important;
    color: rgba(255,255,255,.65);
}
footer a { color: var(--lh-primary-light); text-decoration: none; }

/* -- Botones -- */
.btn-primary {
    background: var(--lh-primary) !important;
    border-color: var(--lh-primary) !important;
    color: #fff !important;
}
.btn-primary:hover {
    background: var(--lh-primary-dark) !important;
    border-color: var(--lh-primary-dark) !important;
}
.btn-outline-primary {
    color: var(--lh-primary) !important;
    border-color: var(--lh-primary) !important;
}
.btn-outline-primary:hover { background: var(--lh-primary) !important; color: #fff !important; }

/* -- Fondos de seccion -- */
.cms-section-bg-dark    { background: var(--lh-hero-bg); color: #fff; }
.cms-section-bg-primary { background: var(--lh-primary); color: #fff; }
.cms-section-bg-light   { background: #F9F3F4; }

/* -- Tarjetas -- */
.card { border-color: var(--lh-border); box-shadow: var(--lh-card-shadow); border-radius: .75rem; }
.card:hover { box-shadow: 0 6px 28px rgba(196,30,58,.18); transform: translateY(-2px); transition: .2s; }

.cms-info-panel-icon,
.cms-value-icon { color: var(--lh-primary); }

a { color: var(--lh-primary); }
a:hover { color: var(--lh-primary-dark); }

.blog-article-card:hover .blog-article-title { color: var(--lh-primary); }
.blog-tag { background: var(--lh-soft-blue); color: var(--lh-primary); }

/* ===========================================================
   Componentes de diseño propio (bloques Html del CMS)
   =========================================================== */

/* Etiqueta superior reutilizable */
.rc-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lh-primary-light);
    margin-bottom: .75rem;
}

/* ---------- Las tres areas (portada) ---------- */
.rc-areas {
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(196,30,58,.20), transparent 60%),
        #0A0507 !important;
    color: #fff;
}

.rc-areas__title {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
    margin-bottom: .75rem;
}

.rc-areas__lead {
    color: rgba(255,255,255,.66);
    font-size: 1.05rem;
    max-width: 44rem;
    margin: 0 auto;
}

.rc-area {
    --accent: #C41E3A;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.1rem;
    border-radius: 1.35rem;
    background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 55%), #100609;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.rc-area::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent 70%);
    opacity: .9;
}

.rc-area:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 28px 70px rgba(0,0,0,.6);
}

.rc-area__icon {
    width: 58px;
    height: 58px;
    border-radius: 1.1rem;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(140deg, var(--accent), rgba(255,255,255,.06));
    box-shadow: 0 14px 34px -12px var(--accent);
}

.rc-area__kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}

.rc-area h3 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0;
}

.rc-area p {
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    margin: 0;
}

.rc-area__actions {
    margin-top: auto;
    padding-top: .5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.rc-area__cta {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    transition: gap .16s ease, filter .16s ease;
}

.rc-area__cta:hover { gap: .9rem; filter: brightness(1.12); color: #fff; }

.rc-area__ghost {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.22);
    transition: background .16s ease, color .16s ease;
}

.rc-area__ghost:hover { background: rgba(255,255,255,.09); color: #fff; }

.rc-chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.rc-chip {
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .8rem;
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.14);
}

/* Tarjeta destacada: dos columnas en pantallas grandes */
.rc-area--featured { padding: 2.4rem; }

.rc-area--featured .rc-area__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .rc-area--featured .rc-area__grid { grid-template-columns: 1.08fr .92fr; gap: 2.75rem; }
}

.rc-area--featured .rc-area__col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.rc-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }

.rc-mini li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: .9rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.rc-mini i {
    color: var(--accent);
    font-size: 1.05rem;
    margin-top: .15rem;
    width: 1.4rem;
    text-align: center;
    flex: 0 0 auto;
}

.rc-mini strong { display: block; color: #fff; font-size: .97rem; }
.rc-mini span   { display: block; color: rgba(255,255,255,.6); font-size: .86rem; }

/* ---------- Banda oscura a dos columnas (ERP, herramientas propias) ---------- */
.rc-band {
    background:
        radial-gradient(800px 420px at 8% 0%, rgba(196,30,58,.32), transparent 62%),
        linear-gradient(135deg, #16070A, #0D0608 65%) !important;
    color: #fff;
}

.rc-band__grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; align-items: center; }

@media (min-width: 992px) {
    .rc-band__grid { grid-template-columns: 1fr 1fr; gap: 3.25rem; }
}

.rc-band h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
    margin-bottom: 1rem;
}

.rc-band p { color: rgba(255,255,255,.72); line-height: 1.8; margin-bottom: 1.5rem; }

.rc-mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }

.rc-mod {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem .95rem;
    border-radius: .85rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.88);
    font-size: .9rem;
    font-weight: 600;
}

.rc-mod i { color: var(--lh-primary-light); width: 1.3rem; text-align: center; flex: 0 0 auto; }

/* ---------- Tira de instituciones ---------- */
.rc-orgs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

.rc-org {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.13);
}

.rc-org i { color: var(--lh-primary-light); }

/* ---------- Sectores atendidos ---------- */
.rc-sectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.rc-sector {
    padding: 1.6rem;
    border-radius: 1.1rem;
    background: var(--lh-white);
    border: 1px solid var(--lh-border);
    box-shadow: var(--lh-card-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.rc-sector:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(196,30,58,.18); }

.rc-sector__icon {
    width: 44px;
    height: 44px;
    border-radius: .85rem;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(140deg, var(--lh-primary), var(--lh-primary-light));
    margin-bottom: .9rem;
}

.rc-sector h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: .5rem; }
.rc-sector p  { color: var(--lh-muted); font-size: .92rem; line-height: 1.65; margin: 0; }

.rc-sector__names {
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px dashed var(--lh-border);
    font-size: .86rem;
    color: var(--lh-muted);
}

/* ---------- Stack tecnologico ---------- */
.rc-tech { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }

.rc-tech__item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--lh-ink);
    background: var(--lh-white);
    border: 1px solid var(--lh-border);
    box-shadow: var(--lh-card-shadow);
}

.rc-tech__item i { color: var(--lh-primary); }

/* -- Bloques largos del ERP: acordeon, tabla y linea de tiempo -- */
.erp-accordion .accordion-item {
    border: 1px solid var(--lh-border);
    border-radius: .75rem;
    margin-bottom: .75rem;
    overflow: hidden;
}

.erp-accordion .accordion-button {
    font-weight: 600;
    background: var(--lh-white);
    color: var(--lh-ink);
}

.erp-accordion .accordion-button:not(.collapsed) {
    background: var(--lh-soft-blue);
    color: var(--lh-primary-dark);
    box-shadow: none;
}

.erp-accordion .accordion-button:focus {
    border-color: var(--lh-primary);
    box-shadow: 0 0 0 .2rem rgba(196,30,58,.20);
}

.erp-accordion .accordion-button i { color: var(--lh-primary); }

.erp-accordion .accordion-body ul { margin-bottom: 0; padding-left: 1.1rem; }
.erp-accordion .accordion-body li { margin-bottom: .45rem; color: var(--lh-muted); }

.erp-table th { border-color: var(--lh-primary-dark); }
.erp-table td { color: var(--lh-muted); }
.erp-table td strong { color: var(--lh-ink); }

.erp-timeline {
    list-style: none;
    counter-reset: erp-step;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--lh-border);
}

.erp-timeline li {
    counter-increment: erp-step;
    position: relative;
    padding: 0 0 1.75rem 2rem;
}

.erp-timeline li::before {
    content: counter(erp-step);
    position: absolute;
    left: -1.05rem;
    top: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--lh-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.erp-timeline li:last-child { padding-bottom: 0; }
.erp-timeline h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.erp-timeline p  { margin-bottom: 0; }

/* -- Modo oscuro -- */
[data-bs-theme="dark"] {
    --lh-ink:         #E8E0E1;
    --lh-muted:       #A89899;
    --lh-border:      #3A2A2C;
    --lh-white:       #0D0608;
    --lh-soft-blue:   #1C0D10;
    --lh-card-shadow: 0 2px 16px rgba(0,0,0,.45);
}

[data-bs-theme="dark"] body.public-site { background: #0D0608 !important; color: #E8E0E1 !important; }

[data-bs-theme="dark"] body.public-site h1,
[data-bs-theme="dark"] body.public-site h2,
[data-bs-theme="dark"] body.public-site h3,
[data-bs-theme="dark"] body.public-site h4,
[data-bs-theme="dark"] body.public-site h5,
[data-bs-theme="dark"] body.public-site h6,
[data-bs-theme="dark"] .section-heading { color: #F0EAEB; }

[data-bs-theme="dark"] .card { background: #1A0709; border-color: #3A2A2C; }
[data-bs-theme="dark"] .card:hover { box-shadow: 0 6px 28px rgba(196,30,58,.35); }
[data-bs-theme="dark"] .content-card { background: #1A0709; color: #E8E0E1; border-color: #3A2A2C; }

[data-bs-theme="dark"] a { color: var(--lh-primary-light); }
[data-bs-theme="dark"] a:hover { color: #fff; }

[data-bs-theme="dark"] .cms-section-bg-light { background: #140609; }
[data-bs-theme="dark"] .cms-section.bg-white,
[data-bs-theme="dark"] .cms-section.bg-light { background: #0D0608 !important; }
[data-bs-theme="dark"] .cms-section .bg-white { background-color: #1A0709 !important; color: #E8E0E1; }
[data-bs-theme="dark"] .cms-section.bg-soft-blue { background: #1C0D10 !important; }

[data-bs-theme="dark"] .rc-sector,
[data-bs-theme="dark"] .rc-tech__item { background: #1A0709; border-color: #3A2A2C; color: #E8E0E1; }

[data-bs-theme="dark"] .blog-tag { background: #2A0D11; color: var(--lh-primary-light); }

[data-bs-theme="dark"] .erp-accordion .accordion-button { background: #1A0709; color: #E8E0E1; }
[data-bs-theme="dark"] .erp-accordion .accordion-button:not(.collapsed) { background: #2A0D11; color: #fff; }
[data-bs-theme="dark"] .erp-accordion .accordion-button::after { filter: invert(1) grayscale(100%) brightness(200%); }
[data-bs-theme="dark"] .erp-accordion .accordion-body { background: #140609; }

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1A0709;
    border-color: #3A2A2C;
    color: #E8E0E1;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #200C10;
    border-color: var(--lh-primary);
    color: #E8E0E1;
    box-shadow: 0 0 0 .2rem rgba(196,30,58,.25);
}

[data-bs-theme="dark"] .input-group-text {
    background-color: #200C10;
    border-color: #3A2A2C;
    color: #A89899;
}
