﻿/* ================================
   HERO MIN (CT) - Blanco / Compacto (FINAL)
   - Botón verde con ancho estable (no cambia con el texto)
   ================================ */
.ct-hero-min {
    --hero-offset: 4.2rem; /* 👈 ajustá esto por tu barra superior */
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding-top: calc(var(--hero-offset) + 1rem);
    padding-bottom: 1rem;
    margin-bottom: 1cm; /* aire con destacadas */
}

.ct-hero-wrap {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.ct-hero-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-hero-logo {
    width: 86px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.08));
}

/* Texto */
.ct-hero-copy {
    flex: 1 1 auto;
    min-width: 220px;
}

.ct-hero-title {
    margin: 0 0 .2rem 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .2px;
    color: #0f172a;
}

    .ct-hero-title span {
        color: #0f766e;
    }

.ct-hero-subtitle {
    margin: 0 0 .55rem 0;
    font-size: .92rem;
    color: #475569;
    line-height: 1.25rem;
}

/* CTA azul */
.ct-hero-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ct-hero-cta {
    border-radius: 999px;
    padding: .34rem .9rem;
    font-weight: 700;
}

/* ================================
   Botón verde - ancho FIJO (estable)
   ================================ */
.ct-hero-mainbtn {
    flex: 0 0 520px; /* ✅ fijo, evita saltos */
    width: 520px; /* ✅ fijo */
    max-width: 520px; /* ✅ fijo */
}

.ct-hero-pubbtn {
    width: 100%;
    border-radius: 18px;
    padding: .8rem .95rem;
    box-shadow: 0 10px 22px rgba(2,6,23,.10);
}

/* Reuso/compatibilidad */
.hero-option {
    position: relative;
    border: none;
    display: flex;
    align-items: center;
    gap: .75rem;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .hero-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(2,6,23,.14);
    }

.hero-option-main {
    background: linear-gradient(135deg, #0f766e, #22c55e);
    color: #f9fafb;
}

.hero-option-icon {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .hero-option-icon img {
        width: 34px;
        height: 34px;
        object-fit: contain;
        filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
    }

/* ✅ CLAVE: permite que el texto se recorte sin empujar el layout */
.hero-option-body {
    flex: 1 1 auto;
    min-width: 0; /* ✅ evita reflow por texto largo en flexbox */
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.hero-option-label {
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .2px;
}

/* ✅ Texto dinámico estable (1 línea, sin mover ancho del botón) */
.ct-hero-pubbtn .hero-option-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-option-text {
    font-size: .84rem;
    color: rgba(255,255,255,.90);
    line-height: 1.1rem;
}

.hero-option-arrow {
    flex: 0 0 auto;
    color: rgba(255,255,255,.95);
    font-size: 1rem;
}

/* Fade texto dinámico */
.hero-fade {
    transition: opacity .25s ease;
}

    .hero-fade.hidden {
        opacity: 0;
    }

/* ============ Responsive ============ */
@media (max-width: 991.98px) {
    .ct-hero-wrap {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    /* En tablet/mediano: ocupa todo el ancho y sigue estable */
    .ct-hero-mainbtn {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }
}
@media (max-width: 767.98px) {

    /* Contenedor: filas con wrap */
    .ct-hero-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: .55rem .75rem !important;
    }

    /* Columna 1: logo (izquierda) */
    .ct-hero-brand {
        order: 1 !important;
        flex: 0 0 62px !important; /* ancho fijo para que quede como columna */
        justify-content: flex-start !important;
    }

    .ct-hero-logo {
        width: 56px !important;
        height: auto !important;
    }

    /* Columna 2: textos (derecha del logo) */
    .ct-hero-copy {
        order: 2 !important;
        flex: 1 1 calc(100% - 80px) !important; /* ocupa el resto */
        min-width: 0 !important;
    }

    .ct-hero-title {
        margin: 0 !important;
        font-size: .98rem !important;
        line-height: 1.06rem !important;
    }

    .ct-hero-subtitle {
        margin: .12rem 0 0 0 !important;
        font-size: .82rem !important;
        line-height: 1.06rem !important;
    }

    /* Opcional: si querés compactar aún más, ocultá el CTA azul */
    /* .ct-hero-actions{ display:none !important; } */

    /* Botón verde: debajo, ancho completo */
    .ct-hero-mainbtn {
        order: 3 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: none !important;
        margin-top: .35rem !important;
    }

    .ct-hero-pubbtn {
        width: 100% !important;
    }

        /* Texto dinámico: 1 línea sin deformar botón */
        .ct-hero-pubbtn .hero-option-text {
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }
}
