/* ==========================================================================
   Gasomarshal · Home Landing
   Hoja de estilos exclusiva para index.html.
   Reutiliza variables de partner-odoo.css (la página debe enlazar
   AMBAS: partner-odoo.css y home-landing.css).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables locales del home
   -------------------------------------------------------------------------- */
.po-page.hm-page {
    --hm-green:        #82b71d;
    --hm-green-dark:   #5a8a2a;
    --hm-green-darker: #3f6a1c;
    --hm-green-soft:   #f7faf0;
    --hm-ink:          #0f1822;
    --hm-ink-soft:     #1f2937;
    --hm-slate:        #475569;
    --hm-muted:        #8a95a5;
}

/* --------------------------------------------------------------------------
   Hero carousel · imágenes full-bleed con overlay
   -------------------------------------------------------------------------- */
.hm-page .hm-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
.hm-page .hm-hero .carousel,
.hm-page .hm-hero .carousel-inner {
    height: 540px;
    background: var(--hm-ink);
}
.hm-page .hm-hero .carousel-item {
    height: 540px;
    position: relative;
}
.hm-page .hm-hero .carousel-item img.hm-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.55);
}
.hm-page .hm-hero .carousel-item .hm-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(15, 24, 34, 0.85) 0%, rgba(15, 24, 34, 0.45) 55%, rgba(15, 24, 34, 0.15) 100%),
        radial-gradient(closest-side at 14% 80%, rgba(130, 183, 29, 0.35), transparent 70%);
    z-index: 2;
}
.hm-page .hm-hero .carousel-item .container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}
.hm-page .hm-hero .hm-hero-content {
    max-width: 720px;
    color: #ffffff;
    padding: 30px 0;
}
.hm-page .hm-hero .hm-hero-eyebrow {
    color: #c4eb6a;
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}
.hm-page .hm-hero h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.hm-page .hm-hero h1 b {
    color: #c4eb6a;
    font-weight: 800;
}
.hm-page .hm-hero p.hm-hero-text {
    color: #e2e8f0;
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 26px;
    max-width: 620px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}
.hm-page .hm-hero .hm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hm-page .hm-hero .hm-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hm-green);
    color: #ffffff;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: transform .2s ease, background-color .2s ease;
    border: 2px solid var(--hm-green);
}
.hm-page .hm-hero .hm-hero-btn:hover {
    transform: translateY(-2px);
    background: var(--hm-green-dark);
    border-color: var(--hm-green-dark);
    color: #ffffff;
    text-decoration: none;
}
.hm-page .hm-hero .hm-hero-btn.hm-hero-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}
.hm-page .hm-hero .hm-hero-btn.hm-hero-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff;
}

/* Indicadores y controles del carrusel */
.hm-page .hm-hero .carousel-indicators {
    z-index: 5;
    margin-bottom: 22px;
}
.hm-page .hm-hero .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    margin: 0 4px;
    transition: background-color .2s ease, width .2s ease;
}
.hm-page .hm-hero .carousel-indicators .active {
    background-color: var(--hm-green);
    width: 44px;
}
.hm-page .hm-hero .carousel-control-prev,
.hm-page .hm-hero .carousel-control-next {
    width: 5%;
    z-index: 5;
}

/* --------------------------------------------------------------------------
   Trust strip (debajo del hero, fondo claro)
   -------------------------------------------------------------------------- */
.hm-page .hm-trust {
    background: #ffffff;
    padding: 28px 0;
    border-bottom: 1px solid #f1f5f9;
}
.hm-page .hm-trust-item {
    text-align: center;
    padding: 8px 6px;
}
.hm-page .hm-trust-item .hm-trust-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--hm-green-dark);
    line-height: 1;
    letter-spacing: 0.5px;
}
.hm-page .hm-trust-item .hm-trust-lbl {
    color: var(--hm-slate);
    font-size: 12px;
    line-height: 1.4;
    margin-top: 6px;
    display: block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Sectores (grid grande con icono PNG y banda inferior)
   -------------------------------------------------------------------------- */
.hm-page .hm-sector {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 18px 22px;
    height: 100%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 5px solid var(--hm-green);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hm-page .hm-sector:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}
.hm-page .hm-sector .hm-sector-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--hm-green-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}
.hm-page .hm-sector .hm-sector-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.hm-page .hm-sector h5 {
    font-size: 16px;
    font-weight: 800;
    color: var(--hm-ink);
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}
.hm-page .hm-sector p {
    color: var(--hm-slate);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Tarjetas de solución (4 cards grandes con CTA)
   -------------------------------------------------------------------------- */
.hm-page .hm-solution {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    border-top: 6px solid var(--hm-green);
}
.hm-page .hm-solution:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}
.hm-page .hm-solution.hm-solution--red    { border-top-color: #da291c; }
.hm-page .hm-solution.hm-solution--purple { border-top-color: #714b67; }
.hm-page .hm-solution.hm-solution--gold   { border-top-color: #d97706; }
.hm-page .hm-solution .hm-solution-head {
    padding: 26px 26px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.hm-page .hm-solution .hm-solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(130, 183, 29, 0.14);
    color: var(--hm-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.hm-page .hm-solution.hm-solution--red    .hm-solution-icon { background: rgba(218, 41, 28, 0.10); color: #b21f15; }
.hm-page .hm-solution.hm-solution--purple .hm-solution-icon { background: rgba(113, 75, 103, 0.12); color: #714b67; }
.hm-page .hm-solution.hm-solution--gold   .hm-solution-icon { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.hm-page .hm-solution .hm-solution-eyebrow {
    color: var(--hm-green-dark);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.hm-page .hm-solution.hm-solution--red    .hm-solution-eyebrow { color: #b21f15; }
.hm-page .hm-solution.hm-solution--purple .hm-solution-eyebrow { color: #714b67; }
.hm-page .hm-solution.hm-solution--gold   .hm-solution-eyebrow { color: #b45309; }
.hm-page .hm-solution h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--hm-ink);
    margin: 0;
    line-height: 1.2;
}
.hm-page .hm-solution .hm-solution-body {
    padding: 6px 26px 22px;
    flex: 1;
}
.hm-page .hm-solution .hm-solution-body p {
    color: var(--hm-slate);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}
.hm-page .hm-solution .hm-solution-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.hm-page .hm-solution .hm-solution-body ul li {
    padding: 4px 0 4px 22px;
    position: relative;
    font-size: 13px;
    color: var(--hm-ink);
    line-height: 1.45;
}
.hm-page .hm-solution .hm-solution-body ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--hm-green);
    font-weight: 800;
}
.hm-page .hm-solution.hm-solution--red    ul li:before { color: #da291c; }
.hm-page .hm-solution.hm-solution--purple ul li:before { color: #714b67; }
.hm-page .hm-solution.hm-solution--gold   ul li:before { color: #d97706; }
.hm-page .hm-solution .hm-solution-cta {
    padding: 0 26px 24px;
}
.hm-page .hm-solution .hm-solution-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hm-green-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--hm-green);
    padding-bottom: 2px;
    transition: gap .2s ease;
}
.hm-page .hm-solution.hm-solution--red    .hm-solution-cta a { color: #b21f15; border-bottom-color: #da291c; }
.hm-page .hm-solution.hm-solution--purple .hm-solution-cta a { color: #714b67; border-bottom-color: #714b67; }
.hm-page .hm-solution.hm-solution--gold   .hm-solution-cta a { color: #b45309; border-bottom-color: #d97706; }
.hm-page .hm-solution .hm-solution-cta a:hover { gap: 12px; text-decoration: none; }

/* --------------------------------------------------------------------------
   Anexo 21 strip · banda informativa con foto + texto
   -------------------------------------------------------------------------- */
.hm-page .hm-anexo-strip {
    background:
        linear-gradient(115deg, rgba(15, 24, 34, 0.92) 0%, rgba(15, 24, 34, 0.78) 60%, rgba(130, 183, 29, 0.55) 100%),
        url("../img/hero/header02.jpg") center/cover no-repeat;
    border-radius: 22px;
    padding: 44px 38px;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}
.hm-page .hm-anexo-strip h3 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.hm-page .hm-anexo-strip h3 b {
    color: #c4eb6a;
}
.hm-page .hm-anexo-strip p {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 760px;
}
.hm-page .hm-anexo-strip .hm-anexo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.hm-page .hm-anexo-strip .hm-anexo-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(196, 235, 106, 0.5);
    color: #c4eb6a;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}
.hm-page .hm-anexo-strip .hm-anexo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--hm-green-darker);
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: transform .2s ease;
}
.hm-page .hm-anexo-strip .hm-anexo-cta:hover {
    transform: translateY(-2px);
    background: #f0f7d8;
    color: var(--hm-green-darker);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Mapa de cobertura
   -------------------------------------------------------------------------- */
.hm-page .hm-map-wrap {
    text-align: center;
    padding: 14px 0;
}
.hm-page .hm-map-wrap img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Logos clientes (carrusel estilo "marquee" estático en grid)
   -------------------------------------------------------------------------- */
.hm-page .hm-clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.hm-page .hm-clients-grid .hm-client {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 18px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hm-page .hm-clients-grid .hm-client:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    border-color: rgba(130, 183, 29, 0.35);
}
.hm-page .hm-clients-grid .hm-client img {
    max-width: 90%;
    max-height: 60px;
    height: auto;
    object-fit: contain;
}
@media (max-width: 992px) {
    .hm-page .hm-clients-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575px) {
    .hm-page .hm-clients-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Por qué Gasomarshal · diferenciadores
   -------------------------------------------------------------------------- */
.hm-page .hm-diff {
    padding: 6px 0 18px;
}
.hm-page .hm-diff .hm-diff-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(130, 183, 29, 0.12);
    color: var(--hm-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 14px;
}
.hm-page .hm-diff h5 {
    font-size: 17px;
    font-weight: 800;
    color: var(--hm-ink);
    margin: 0 0 8px;
}
.hm-page .hm-diff p {
    color: var(--hm-slate);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Servicios secundarios (UrbanSys, Facturación, etc.)
   -------------------------------------------------------------------------- */
.hm-page .hm-extra {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    color: inherit;
    border-left: 5px solid var(--hm-green);
}
.hm-page .hm-extra:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}
.hm-page .hm-extra .hm-extra-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--hm-green-soft);
    color: var(--hm-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.hm-page .hm-extra .hm-extra-content { flex: 1; }
.hm-page .hm-extra h6 {
    font-size: 15px;
    font-weight: 800;
    color: var(--hm-ink);
    margin: 0 0 4px;
}
.hm-page .hm-extra p {
    color: var(--hm-slate);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}
.hm-page .hm-extra .hm-extra-arrow {
    color: var(--hm-green-dark);
    font-weight: 800;
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.hm-page .hm-cta-band {
    background: linear-gradient(135deg, var(--hm-green) 0%, var(--hm-green-dark) 100%);
    border-radius: 22px;
    padding: 44px 36px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 14px 32px rgba(130, 183, 29, 0.28);
}
.hm-page .hm-cta-band h3 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.hm-page .hm-cta-band p {
    color: #f3fbe6;
    font-size: 16px;
    margin: 0 auto 24px;
    max-width: 720px;
    line-height: 1.55;
}

.hm-page .hm-cta-band .po-btn {
    display: inline-block;
    background: #ffffff;
    color: var(--po-green-dark);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 1px;
    margin: 0 6px 8px;
    transition: transform .2s ease, background-color .2s ease;
    border: 2px solid #ffffff;
    cursor: pointer;
    position: relative;
    z-index: 3;
}
.hm-page .hm-cta-band .po-btn:hover {
    transform: translateY(-2px);
    background: #f0f7d8;
    color: var(--po-green-darker);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hm-page .hm-hero .carousel,
    .hm-page .hm-hero .carousel-inner,
    .hm-page .hm-hero .carousel-item { height: 460px; }
    .hm-page .hm-hero h1 { font-size: 36px; }
}
@media (max-width: 768px) {
    .hm-page .hm-hero .carousel,
    .hm-page .hm-hero .carousel-inner,
    .hm-page .hm-hero .carousel-item { height: 400px; }
    .hm-page .hm-hero h1 { font-size: 28px; }
    .hm-page .hm-hero p.hm-hero-text { font-size: 14px; }
    .hm-page .hm-hero .hm-hero-btn { padding: 11px 22px; font-size: 14px; }
    .hm-page .hm-anexo-strip { padding: 30px 24px; }
    .hm-page .hm-anexo-strip h3 { font-size: 22px; }
    .hm-page .hm-cta-band { padding: 30px 22px; }
    .hm-page .hm-cta-band h3 { font-size: 22px; }
    .hm-page .hm-trust-item .hm-trust-num { font-size: 24px; }
}
