/* ============================================================
   Home — rediseño moderno, corporativo, orientado a conversión
   (captar y activar socios). Reutiliza el tema institucional
   global (--inst-*) y los componentes de productos-modern.css
   (.pr-card, .pr-section-title, .pr-reveal, [data-count]).
   ============================================================ */

.hm-page {
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

    .hm-page h1, .hm-page h2, .hm-page h3, .hm-page h4 {
        font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
        font-weight: 700;
    }

/* Utilidad para grids (.hm-steps, .hm-quick-actions, .hm-value-grid, ...) que en
   una página concreta solo tienen 3 elementos: fuerza 3 columnas SOLO en
   escritorio, sin pisar las media queries mobile de cada componente (a
   diferencia de un style inline, que gana en todos los anchos). */
@media (min-width: 992px) {
    .hm-force-3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Autogestión: accesos rápidos ---------- */
.hm-quick-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 991px) { .hm-quick-actions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .hm-quick-actions { grid-template-columns: repeat(2, 1fr); } }

.hm-quick-action {
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    border-radius: 14px;
    padding: 22px 14px;
    text-align: center;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hm-quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 83, 45, 0.12);
    border-color: var(--inst-accent);
}

@media (prefers-reduced-motion: reduce) {
    .hm-quick-action:hover { transform: none; }
}

.hm-quick-action .icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--inst-muted);
    color: var(--inst-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.hm-quick-action span {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--inst-primary);
    line-height: 1.3;
}

/* ---------- Carruseles de productos destacados y noticias ---------- */
.featured-products-slider .owl-stage,
.news-teaser-slider .owl-stage {
    display: flex;
}

.featured-products-slider .owl-item,
.news-teaser-slider .owl-item {
    display: flex;
    height: auto;
}

.featured-products-slider .pr-card,
.news-teaser-slider .pr-card {
    width: 100%;
}

/* ---------- Hero ---------- */
.hm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, var(--inst-primary-dark) 0%, var(--inst-primary) 55%, var(--inst-secondary) 100% );
    padding: 40px 0 50px;
    color: #fff;
}

    .hm-hero::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.09);
        top: -200px;
        right: -100px;
    }

    .hm-hero::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.09);
        bottom: -140px;
        left: 4%;
    }

.hm-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .hm-hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #FED7AA;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.hm-hero h1 {
    font-size: 36px;
    line-height: 1.15;
     margin-bottom: 12px;
    color: #FFFFFF;
}

.hm-hero h1 span {
    color: var(--inst-accent);
}

.hm-hero p {
    color: #D9EDE1;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 520px;
}

@media (max-width: 991px) {
    .hm-hero p { margin-left: auto; margin-right: auto; }
}

.hm-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 991px) {
    .hm-hero-ctas { justify-content: center; }
}

.hm-btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    transition: background 200ms ease, border-color 200ms ease;
}

.hm-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.hm-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 991px) {
    .hm-hero-trust { justify-content: center; }
}

.hm-hero-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #EAF6EF;
    font-size: 13px;
    font-weight: 500;
}

.hm-hero-trust i {
    color: var(--inst-accent);
    font-size: 18px;
}

.hm-hero {
    position: relative;
    overflow: hidden;
}

.hm-hero-visual {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    overflow: visible;
 
}

    .hm-hero-visual img {
        position: absolute;
        /*right: -210px;*/
        bottom: -50px;
        max-height: 650px;
        width: auto;
        transform: scale(1.3);
        transform-origin: bottom right;
     
    }
@media (min-width: 1701px) {

    .hm-hero-visual img {
        right: -300px;
    }
}
@media (max-width: 1700px) and (min-width: 1481px) {

    .hm-hero-visual img {
        right: -160px;
    }
}
@media (max-width: 1480px) and (min-width: 1400px) {

    .hm-hero-visual img {
        right: -80px;
    }
}

@media (max-width: 1399px) and (min-width: 1001px) {

    .hm-hero-visual img {
        right: -130px;
    }
}

@media (max-width: 1000px) {

    .hm-hero-visual {
        display: none;
    }

    .hm-hero-grid {
        grid-template-columns: 1fr;
    }

    .hm-hero-ctas,
    .hm-hero-trust {
        justify-content: center;
    }
}
.hm-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: -70px;
    transform: translateX(-50%);
    color: #FFFFFF;
    opacity: 0.7;
    font-size: 22px;
    animation: hm-bounce 1.8s infinite;
    z-index: 2;
}

@keyframes hm-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
    .hm-scroll-cue { animation: none; }
}

/* ---------- Stats strip ---------- */
.hm-stats-strip {
    position: relative;
    margin: 20px 0 60px;
}

.hm-stats-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(20, 83, 45, 0.16);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
    .hm-stats-card { grid-template-columns: repeat(2, 1fr); }
}

.hm-stat {
    text-align: center;
    padding: 30px 16px;
    border-right: 1px solid var(--inst-border);
}

.hm-stat:last-child { border-right: none; }

@media (max-width: 767px) {
    .hm-stat:nth-child(2n) { border-right: none; }
    .hm-stat:nth-child(1), .hm-stat:nth-child(2) { border-bottom: 1px solid var(--inst-border); }
}

.hm-stat i {
    font-size: 26px;
    color: var(--inst-accent);
    margin-bottom: 10px;
    display: inline-block;
}

.hm-stat .hm-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--inst-primary);
}

.hm-stat p {
    color: var(--inst-muted-fg);
    font-size: 13.5px;
    margin: 4px 0 0;
    font-weight: 500;
}

/* ---------- Value props ---------- */
.hm-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

@media (max-width: 991px) { .hm-value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .hm-value-grid { grid-template-columns: 1fr; } }

.hm-value-card {
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.hm-value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 83, 45, 0.12);
    background: var(--inst-primary);
}

.hm-value-card:hover h3, .hm-value-card:hover p {
    color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
    .hm-value-card:hover { transform: none; }
}

.hm-value-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--inst-muted);
    color: var(--inst-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    transition: background 240ms ease;
}

.hm-value-card:hover .icon {
    background: rgba(255, 255, 255, 0.15);
}

.hm-value-card h3 {
    font-size: 18px;
    color: var(--inst-primary);
    margin-bottom: 8px;
    transition: color 240ms ease;
}

.hm-value-card p {
    font-size: 14.5px;
    color: var(--inst-muted-fg);
    margin: 0;
    transition: color 240ms ease;
}

/* ---------- Steps: cómo hacerte socio ---------- */
.hm-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

@media (max-width: 991px) { .hm-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .hm-steps { grid-template-columns: 1fr; } }

.hm-step {
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    border-radius: 14px;
    padding: 28px 22px;
    position: relative;
    text-align: center;
}

.hm-step .hm-step-number {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background: var(--inst-accent);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 16px;
}

.hm-step h3 {
    font-size: 16.5px;
    color: var(--inst-primary);
    margin-bottom: 8px;
}

.hm-step p {
    font-size: 13.5px;
    color: var(--inst-muted-fg);
    margin: 0;
}

.hm-steps-cta {
    text-align: center;
    margin-top: 36px;
}

/* ---------- Trust strip ---------- */
.hm-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    padding: 36px 0;
}

.hm-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--inst-primary);
    font-weight: 600;
    font-size: 14.5px;
}

.hm-trust-item i {
    font-size: 26px;
    color: var(--inst-accent);
}

/* ---------- Final CTA banner ---------- */
.hm-cta-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--inst-primary) 0%, var(--inst-primary-dark) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: #FFFFFF;
}

    .hm-cta-banner::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.09);
        top: -140px;
        right: -60px;
    }

    .hm-cta-banner h2 {
        font-size: 30px;
        margin-bottom: 12px;
        position: relative;
        z-index: 1;
        color: var(--inst-white);
    }

.hm-cta-banner p {
    color: #D9EDE1;
    max-width: 560px;
    margin: 0 auto 26px;
    position: relative;
    z-index: 1;
}

.hm-cta-banner .btn-primary {
    position: relative;
    z-index: 1;
    padding: 14px 34px;
    font-size: 16px;
}

/* ---------- Slider principal (POR_SLIDERS) ---------- */
.hm-slider {
    position: relative;
    overflow: hidden;
}

.hm-slider-track {
    position: relative;
    height: clamp(380px, 52vh, 540px);
}

.hm-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease, visibility 900ms ease;
}

.hm-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
/*
.hm-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 46, 27, 0.86) 0%, rgba(8, 46, 27, 0.55) 55%, rgba(8, 46, 27, 0.2) 100%);
}*/

.hm-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.20) 45%, rgba(0, 0, 0, 0.05) 100% );
}


.hm-slide .container {
    position: relative;
    z-index: 1;
}

.hm-slide-content {
    max-width: 620px;
    color: #FFFFFF;
}

.hm-slide-content h2 {
    color: #FFFFFF;
    font-size: clamp(28px, 4.2vw, 46px);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hm-slide-content p {
    color: #D9EDE1;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Entrada suave del contenido cuando la diapositiva se activa */
.hm-slide-content h2,
.hm-slide-content p,
.hm-slide-content .btn-primary {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.hm-slide.active .hm-slide-content h2 {
    opacity: 1;
    transform: none;
    transition-delay: 250ms;
}

.hm-slide.active .hm-slide-content p {
    opacity: 1;
    transform: none;
    transition-delay: 420ms;
}

.hm-slide.active .hm-slide-content .btn-primary {
    opacity: 1;
    transform: none;
    transition-delay: 580ms;
}

.hm-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease;
}

.hm-slider-arrow.prev { left: 18px; }
.hm-slider-arrow.next { right: 18px; }

.hm-slider-arrow:hover {
    background: var(--inst-accent);
}

.hm-slider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.hm-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}

.hm-slider-dot.active {
    background: var(--inst-accent);
    border-color: var(--inst-accent);
    transform: scale(1.15);
}

@media (max-width: 767px) {
    .hm-slider-track { height: clamp(340px, 62vh, 460px); }
    .hm-slider-arrow { display: none; }
}

/* ---------- Tipos de afiliación (Hazte Socio) ---------- */
.hm-affil-intro {
    color: var(--inst-muted-fg);
    font-size: 15px;
    max-width: 680px;
    margin: -10px auto 30px;
    text-align: center;
}

.hm-affil-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 22px;
}

@media (max-width: 767px) {
    .hm-affil-columns { grid-template-columns: 1fr; }
}

.hm-affil-columns h4 {
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--inst-muted-fg);
    margin-bottom: 16px;
}

.hm-affil-columns h5 {
    font-size: 13px;
    color: var(--inst-primary);
    margin: 18px 0 10px;
}

.hm-affil-columns h5:first-of-type {
    margin-top: 0;
}

.hm-affil-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hm-affil-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.hm-affil-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--inst-primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.hm-affil-steps p {
    margin: 0;
    font-size: 14px;
    color: var(--inst-fg, #16241C);
    line-height: 1.5;
}

.hm-affil-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--inst-accent-soft, #FFF4E8);
    border: 1px solid var(--inst-accent-light, #F8B46C);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 8px;
}

.hm-affil-note i {
    color: var(--inst-accent);
    font-size: 19px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hm-affil-note p {
    margin: 0;
    font-size: 13.5px;
    color: var(--inst-primary);
    font-weight: 500;
    line-height: 1.5;
}


/* ==================================================
   AHORRIN
================================================== */

.hm-ahorrin-section {
    padding: 70px 0;
}

.hm-ahorrin-card {
    background: linear-gradient( 135deg, var(--inst-primary-dark) 0%, var(--inst-primary) 100% );
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 520px;
    position: relative;
}

.hm-ahorrin-mascota {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,.08);
}

    .hm-ahorrin-mascota img {
        max-height: 460px;
        width: auto;
    }

.hm-ahorrin-content {
    padding: 24px 30px;
}

    .hm-ahorrin-content .pr-section-title span {
        color: #FFD089;
    }

    .hm-ahorrin-content .pr-section-title h2 {
        color: #fff;
    }

.hm-ahorrin-intro {
    text-align: center;
    color: #F8FAFC;
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto 40px;
}

.hm-ahorrin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 30px;
}

.hm-ahorrin-benefit {
    display: flex;
    /*align-items: center;*/
    /*gap: 14px;*/
    /*background: rgba(255,255,255,.08);*/
    /*border: 1px solid rgba(255,255,255,.10);*/
    border-radius: 14px;
    padding: 14px;
    transition: .25s ease;
    gap: 10px 15px;
}

    .hm-ahorrin-benefit:hover {
        background: rgba(255,255,255,.15);
        transform: translateY(-3px);
    }

    .hm-ahorrin-benefit img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .hm-ahorrin-benefit span {
        color: #FFF;
        font-size: 13px;
        line-height: 1.3;
        font-weight: 500;
    }

.hm-ahorrin-footer {
    text-align: center;
    color: #FFD089;
    margin-top: 35px;
    font-size: 14px;
}



@media (max-width: 1200px) {
    .hm-ahorrin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hm-ahorrin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hm-ahorrin-grid {
        grid-template-columns: 1fr;
    }
}


.hm-canal-item {
    padding: 10px;
}

.hm-canal-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

.hm-canal-logo {
    height: 110px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--inst-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all .25s ease;
}

.hm-canal-link:hover .hm-canal-logo {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(20,83,45,.12);
    border-color: var(--inst-accent);
}

.hm-canal-logo img {
    max-width: 150px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hm-canal-nombre {
    display: block;
    margin-top: 12px;
    color: var(--inst-primary);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}
