/* ==================================================================
   Diseno metodoh — views/index/metodoh/index2026.tpl (landing)
                    views/index/metodoh/indexowleditp.tpl (editor)
   Colores solo por tokens (tokens.css, tema activo en Css 2026).
   Clases con prefijo mh- para no chocar con test.min.css.
   ================================================================== */

/* ---------- base ---------- */
.mh-section {
    padding: 5rem 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
}
.mh-section-surface { background: var(--surface); }
.mh-section-dark {
    background: var(--dark);
    color: var(--hero-title);
}
.mh-section-dark .mh-section-sub,
.mh-section-dark .mh-text { color: var(--hero-text); }

.mh-head { margin-bottom: 3rem; max-width: 760px; }
.mh-head.text-center { margin-left: auto; margin-right: auto; }

.mh-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: inherit;
}
.mh-section-sub {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted-text);
    max-width: 680px;
    margin-bottom: 0;
}
.mh-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .6rem;
    color: inherit;
}
.mh-text {
    color: var(--muted-text);
    line-height: 1.65;
    margin-bottom: 0;
}
.mh-eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.mh-eyebrow-light { color: var(--gold); }

/* ---------- botones ---------- */
.mh-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.mh-btn:hover { transform: translateY(-1px); }
.mh-btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.mh-btn-gold   { background: var(--gold); color: var(--dark); }
.mh-btn-gold:hover { background: var(--hero-title); color: var(--dark); }
.mh-btn-dark   { background: var(--primary); color: var(--bg); }
.mh-btn-dark:hover { background: var(--accent); color: var(--bg); }
.mh-btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.mh-btn-outline:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.mh-btn-ghost  { background: transparent; color: var(--hero-title); border-color: var(--hero-text); }
.mh-btn-ghost:hover { background: var(--hero-title); color: var(--dark); }

/* ---------- hero ---------- */
.mh-hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: var(--dark);
    font-family: var(--font-body);
}
.mh-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.mh-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(var(--primary-rgb), .94) 0%,
        rgba(var(--primary-rgb), .80) 55%,
        rgba(var(--primary-rgb), .45) 100%);
}
.mh-hero-inner { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 6rem; }
.mh-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--hero-title);
    max-width: 820px;
    margin-bottom: 1.5rem;
}
.mh-hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--hero-text);
    max-width: 640px;
    margin-bottom: 2.25rem;
}

/* ---------- confianza ---------- */
.mh-trust {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
}
.mh-trust-list {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;
}
.mh-trust-list li {
    position: relative;
    padding-left: 1.6rem;
    font-weight: 500;
    color: var(--fg);
    line-height: 1.4;
}
.mh-trust-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3rem;
    width: .9rem;
    height: .5rem;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

/* ---------- servicios ---------- */
.mh-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.mh-feature {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    transition: transform .2s, box-shadow .2s;
}
.mh-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), .08);
}
.mh-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.mh-feature-icon .ho2-icon { width: 26px; height: 26px; display: block; }
.mh-feature-icon svg,
.mh-icon-dot svg { width: 100%; height: 100%; }

/* ---------- desarrollos ---------- */
.mh-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.mh-split-media img {
    width: 100%;
    border-radius: 12px;
    display: block;
}
.mh-media-empty {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: rgba(var(--bg-rgb), .06);
    border: 1px dashed rgba(var(--bg-rgb), .2);
}
.mh-icon-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.mh-icon-list li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .55rem 0;
    color: var(--hero-title);
}
.mh-icon-dot {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(var(--gold-rgb), .5);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
}
.mh-icon-dot .ho2-icon { width: 100%; height: 100%; display: block; }

/* ---------- como trabajamos ---------- */
.mh-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.mh-step {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 10px;
    padding: 2rem 1.5rem;
}
.mh-step-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: .75rem;
}

/* ---------- cierre ---------- */
.mh-cta { background: var(--bg); border-top: 1px solid var(--border); }
.mh-cta .mh-btn-row { margin-top: 2rem; }

/* ---------- editor (indexowleditp.tpl) ---------- */
.mh-admin-bar {
    position: sticky;
    top: 56px;
    z-index: 1040;
    background: var(--dark);
    color: var(--hero-title);
    padding: .6rem 0;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
}
.mh-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: .35rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--dark);
    font-size: 13px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
}
.mh-edit:hover { background: var(--hero-title); border-color: var(--hero-title); }
.mh-slot {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    color: var(--fg);
    max-width: 520px;
}
.mh-slot-head { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .5rem; }
.mh-slot-head code { color: var(--muted-text); }
.mh-slot-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: var(--muted-bg);
}
.mh-slot-pics { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.mh-slot-pic img {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--border);
    display: block;
}
.mh-slot-pic.is-active img { border-color: var(--primary); }
.mh-slot-actions { display: flex; gap: 2px; margin-top: 2px; }
.mh-mini {
    width: 20px;
    height: 18px;
    padding: 0;
    font-size: .65rem;
    line-height: 1;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
}
.mh-mini.is-active { background: var(--primary); color: var(--bg); }
.mh-mini-del { background: var(--sale-red); border-color: var(--sale-red); color: var(--bg); }
.mh-slot .mh-btn { margin-top: .5rem; color: var(--fg); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .mh-steps { grid-template-columns: repeat(2, 1fr); }
    .mh-split { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .mh-section { padding: 3.5rem 0; }
    .mh-hero { min-height: 520px; }
    .mh-hero-inner { padding-top: 4rem; padding-bottom: 4rem; }
    .mh-trust-list,
    .mh-three,
    .mh-steps { grid-template-columns: 1fr; }
    .mh-btn-row .mh-btn { width: 100%; }
}

/* ---------- navbar logo ----------
   Under this design the LOGO image from .env is hidden and the lockup is drawn
   as a mask: color from --primary, the H cut out of the square shows the navbar.
   Text in a mask SVG uses the system font (Segoe UI / Arial), not web fonts. */
#mysNavbarA #logo { display: none; }
#mysNavbarA .navbar-brand.lefty::before {
    content: "";
    display: block;
    width: 146px;
    height: 42px;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 26 652 188'%3E%3Cdefs%3E%3Cmask id='h'%3E%3Crect x='472' y='30' width='180' height='180' fill='white'/%3E%3Cg transform='translate(494,52) scale(0.68)' fill='black'%3E%3Cpath d='M144 24 L161 24 Q170 24 170 33 L170 176 L153 176 Q144 176 144 167 Z'/%3E%3Cpath d='M39 24 L56 24 L56 87 L117 87 A13 13 0 0 1 117 113 L30 113 L30 33 Q30 24 39 24 Z'/%3E%3Crect x='30' y='132' width='26' height='44' rx='9'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Ctext x='8' y='140' font-family='Segoe UI,Arial,sans-serif' font-size='68' font-weight='300' letter-spacing='12'%3EM%C3%89TODO%3C/text%3E%3Crect x='10' y='168' width='420' height='3'/%3E%3Crect x='472' y='30' width='180' height='180' mask='url(%23h)'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 26 652 188'%3E%3Cdefs%3E%3Cmask id='h'%3E%3Crect x='472' y='30' width='180' height='180' fill='white'/%3E%3Cg transform='translate(494,52) scale(0.68)' fill='black'%3E%3Cpath d='M144 24 L161 24 Q170 24 170 33 L170 176 L153 176 Q144 176 144 167 Z'/%3E%3Cpath d='M39 24 L56 24 L56 87 L117 87 A13 13 0 0 1 117 113 L30 113 L30 33 Q30 24 39 24 Z'/%3E%3Crect x='30' y='132' width='26' height='44' rx='9'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Ctext x='8' y='140' font-family='Segoe UI,Arial,sans-serif' font-size='68' font-weight='300' letter-spacing='12'%3EM%C3%89TODO%3C/text%3E%3Crect x='10' y='168' width='420' height='3'/%3E%3Crect x='472' y='30' width='180' height='180' mask='url(%23h)'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 991.98px) {
    #mysNavbarA .navbar-brand.lefty::before { width: 111px; height: 32px; }
}

/* card headings: test.css fixes 'Playfair Display'; use the theme font.
   Framework bug — the proper fix belongs in H's test.css. */
.card h1, .card h2, .card h3, .card h4, .card h5 { font-family: var(--font-serif); }

/* about (views/about/metodoh/aboutcontent.tpl) — same treatment as deco.css.
   Styled by position (p:first-child) because the Quill editor drops classes. */
.about-section { background: var(--bg); padding: clamp(3rem, 7vw, 6rem) 0; }
.about-eyebrow {
    font-size: 10px; font-weight: 600; letter-spacing: .3em;
    text-transform: uppercase; color: var(--muted-text);
    text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    display: flex; align-items: center; justify-content: center; gap: 12px;
}
.about-eyebrow::before, .about-eyebrow::after {
    content: ''; width: 34px; height: 1px; background: var(--gold);
}
.about-body { max-width: 720px; margin: 0 auto; text-align: center; }
.about-body p {
    font-size: 1.02rem; line-height: 1.85; color: var(--muted-text);
    margin: 0 0 1.15rem;
}
.about-body p:first-child {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 3.1rem);
    font-weight: 700; line-height: 1.18; color: var(--fg);
    margin-bottom: 1.6rem;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body h1, .about-body h2, .about-body h3 {
    font-family: var(--font-serif); color: var(--fg);
    font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 2rem 0 .9rem;
}
.about-body img { max-width: 100%; height: auto; border-radius: 10px; }

/* about: band picture at the bottom */
.about-band { line-height: 0; }
.about-band img {
    width: 100%;
    height: clamp(180px, 22vw, 300px);
    object-fit: cover;
    display: block;
}

/* footer: the layout uses 3 columns; test.css grid has 4 (leaves a gap) */
@media (min-width: 768px) {
    .footer-inner-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- footer logo: icon (navy square, white H) ---------- */
.footer-brand-col img { display: none; }
.footer-brand-col > a::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    background: url("../img/def/metodo-h-icon-512.png") center / contain no-repeat;
}
