/* Public marketing homepage (templates/public_homepage/home.html) — scoped to
   .pmh-page only. Standalone page (no base.html/layout.css), same pattern as
   templates/public_landing/landing.html. Namespace: pmh- (Public Marketing
   Homepage). Layout/tokens/breakpoint (880px) match the hifi design handoff
   in designs/homepage_autoimport_mx/. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.pmh-page {
    font-family: 'Manrope', system-ui, sans-serif;
    color: #0f172a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* No default `color` here on purpose — every <a> below sets its own via a
   component class, and a blanket color here would beat those (a class+tag
   selector outranks their single-class selectors), which is exactly what
   made every CTA button's text render in the same blue as its background. */
.pmh-page a { text-decoration: none; }

.pmh-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0891b2;
}

.pmh-eyebrow--cyan { color: #38bdf8; }

.pmh-sec-title {
    margin: 10px 0 0;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
    font-size: 26px;
}

.pmh-sec-title--light { color: #f8fafc; }

@media (min-width: 880px) {
    .pmh-sec-title { font-size: 34px; }
}

/* ---- Nav ---- */
.pmh-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #eef2f7;
}

.pmh-nav__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.pmh-nav__brand { display: flex; align-items: center; }

.pmh-nav__logo {
    height: 30px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
}

.pmh-nav__cta {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 11px;
    background: #0284c7;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
}

.pmh-nav__cta:hover { background: #075985; color: #fff; }

@media (min-width: 880px) {
    .pmh-nav__cta { display: inline-flex; }
}

/* ---- Hero ---- */
.pmh-hero {
    padding: 52px 0 60px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 78%);
}

.pmh-hero__grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}

.pmh-hero__copy { order: 2; }
.pmh-hero__visual { order: 1; }

@media (min-width: 880px) {
    .pmh-hero__grid {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 48px;
        align-items: center;
    }
    .pmh-hero__copy { order: 1; }
    .pmh-hero__visual { order: 2; }
}

.pmh-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #bae6fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0369a1;
    box-shadow: 0 2px 10px -4px rgba(2, 132, 199, 0.35);
}

.pmh-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
}

.pmh-hero__title {
    margin: 18px 0 0;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.04;
    color: #0f172a;
    text-wrap: balance;
    font-size: 34px;
}

@media (min-width: 880px) {
    .pmh-hero__title { font-size: 50px; }
}

.pmh-hero__text {
    margin: 20px 0 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    color: #475569;
    max-width: 520px;
    text-wrap: pretty;
}

.pmh-hero__text b { color: #0f172a; }

.pmh-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pmh-hero__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 24px;
    border-radius: 13px;
    background: #0284c7;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 14px 30px -14px rgba(2, 132, 199, 0.6);
}

.pmh-hero__cta-primary:hover { background: #075985; color: #fff; }

.pmh-hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 22px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.pmh-hero__cta-secondary:hover { border-color: #38bdf8; color: #0369a1; }

.pmh-hero__note {
    margin: 16px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.pmh-hero__visual-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 34px 80px -40px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.pmh-hero__visual-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmh-hero__visual-pill {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.3);
}

.pmh-hero__visual-pill span {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

/* ---- Cómo funciona ---- */
.pmh-steps {
    padding: 64px 0;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    /* offsets the anchor jump from the hero CTA so the sticky nav (64px) doesn't cover the heading */
    scroll-margin-top: 64px;
}

.pmh-steps__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

.pmh-steps__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.pmh-steps__subtitle {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #64748b;
    text-wrap: pretty;
}

.pmh-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 880px) {
    .pmh-steps__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.pmh-step {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 26px 24px;
}

.pmh-step__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pmh-step__number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #0284c7;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmh-step__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.pmh-step__text {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.6;
    color: #475569;
    text-wrap: pretty;
}

.pmh-steps__notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    max-width: 760px;
    margin: 24px auto 0;
    padding: 16px 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #bae6fd;
}

.pmh-steps__notice svg { flex-shrink: 0; margin-top: 1px; }

.pmh-steps__notice p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: #475569;
    text-wrap: pretty;
}

.pmh-steps__notice p b { color: #0f172a; }

/* ---- Licencia / Transparencia ---- */
.pmh-features { padding: 64px 0; }

.pmh-features__grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 880px) {
    .pmh-features__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

.pmh-feature {
    background: linear-gradient(160deg, #f0f9ff, #f8fafc);
    border: 1px solid #e0f2fe;
    border-radius: 20px;
    padding: 32px 30px;
}

.pmh-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px -12px rgba(2, 132, 199, 0.5);
}

.pmh-feature__title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.pmh-feature__text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    color: #475569;
    text-wrap: pretty;
}

.pmh-feature__text b { color: #0f172a; }

.pmh-feature__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e0f2fe;
}

.pmh-feature__badge svg { flex-shrink: 0; }

.pmh-feature__badge span {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* ---- Tecnología de estimación ---- */
.pmh-tech { padding: 12px 0 64px; }

.pmh-tech__panel {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 32px;
    background: #0b1220;
    border-radius: 24px;
    overflow: hidden;
}

@media (min-width: 880px) {
    .pmh-tech__panel { padding: 40px 32px; margin: 0 auto; }
}

.pmh-tech__text {
    margin: 18px 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 640px;
    text-wrap: pretty;
}

.pmh-tech__range { margin-top: 28px; max-width: 560px; }

.pmh-tech__range-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.pmh-tech__range-labels-mid { color: #38bdf8; }

.pmh-tech__range-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

.pmh-tech__range-fill {
    position: absolute;
    left: 28%;
    right: 28%;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
    border-radius: 999px;
    box-shadow: 0 0 22px -2px rgba(56, 189, 248, 0.6);
}

.pmh-tech__range-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #94a3b8;
}

/* ---- Importación 100% legal ---- */
.pmh-legal { padding: 0 0 64px; }

.pmh-legal__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

.pmh-legal__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid rgba(52, 211, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmh-legal__text {
    margin: 18px 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
    color: #475569;
    text-wrap: pretty;
}

.pmh-legal__text b { color: #0f172a; }

.pmh-legal__card {
    max-width: 760px;
    margin: 26px auto 0;
    padding: 0 22px;
    display: flex;
    gap: 14px;
}

.pmh-legal__card > div:last-child {
    padding: 22px 24px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    flex: 1;
    display: flex;
    gap: 14px;
}

.pmh-legal__card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmh-legal__card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.pmh-legal__card-text {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
    color: #64748b;
    text-wrap: pretty;
}

.pmh-legal__card-text:last-child { margin-bottom: 0; }
.pmh-legal__card-text b { color: #0f172a; }

/* ---- B2B ---- */
.pmh-b2b { padding: 0 0 60px; }

.pmh-b2b__panel {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(150deg, #0c1a2e, #0a1220);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 44px 34px;
}

.pmh-b2b__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.pmh-b2b__content { margin-top: 20px; }

.pmh-b2b__text {
    margin: 16px 0 26px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 640px;
    text-wrap: pretty;
}

.pmh-b2b__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 24px;
    border-radius: 13px;
    background: #38bdf8;
    color: #06121f;
    font-size: 15.5px;
    font-weight: 800;
    box-shadow: 0 14px 30px -14px rgba(56, 189, 248, 0.7);
}

.pmh-b2b__cta:hover { background: #22d3ee; color: #06121f; }

/* ---- Contacto ---- */
.pmh-contact {
    padding: 72px 0 80px;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    /* offsets the anchor jump from CTAs linking to #contacto so the sticky nav doesn't cover the heading */
    scroll-margin-top: 64px;
}

.pmh-contact__inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

.pmh-contact__text {
    margin: 16px 0 30px;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.6;
    color: #475569;
}

.pmh-contact__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 30px;
    border-radius: 14px;
    background: #0284c7;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 16px 34px -16px rgba(2, 132, 199, 0.7);
}

.pmh-contact__cta:hover { background: #075985; color: #fff; }

/* ---- Catálogo ---- */
.pmh-catalog { padding: 0 0 64px; }

.pmh-catalog__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

.pmh-catalog__subtitle {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #64748b;
    max-width: 640px;
    text-wrap: pretty;
}

.pmh-catalog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
}

@media (min-width: 640px) {
    .pmh-catalog__grid { grid-template-columns: repeat(3, 1fr); }
}

.pmh-catalog__card {
    display: block;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.12);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pmh-catalog__card:hover {
    box-shadow: 0 14px 30px -14px rgba(15, 23, 42, 0.28);
    transform: translateY(-2px);
}

.pmh-catalog__card-image-wrap {
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}

.pmh-catalog__card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmh-catalog__card-image-empty { width: 100%; height: 100%; }

.pmh-catalog__card-title {
    display: block;
    padding: 12px 14px 14px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.pmh-catalog__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 13px 22px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 800;
}

.pmh-catalog__cta:hover { border-color: #38bdf8; color: #0369a1; }

/* ---- Footer ---- */
.pmh-footer {
    padding: 26px 0;
    border-top: 1px solid #eef2f7;
}

.pmh-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pmh-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pmh-footer__logo {
    display: block;
    height: 22px;
    width: auto;
    mix-blend-mode: multiply;
}

.pmh-footer__copy {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}

.pmh-footer__contact {
    font-size: 13px;
    font-weight: 700;
    color: #0284c7;
}
