/* ================================
   Welcome / brand block — index
   Vocabulario de la marca: marca de agua "groff metal" en Nexa
   minúscula gigante, tarjetas naranjas y grises alternadas.
   CSS plano: no depende de una recompilación de Tailwind.
   ================================= */

.gm-welcome {
    --gm-orange: #f36b21;
    --gm-orange-solid: #f16b23;
    --gm-grey: #3e3e3e;
    --gm-grey-card: #615f5f;

    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

/* Marca de agua: el recurso más reconocible de la home anterior. */
.gm-welcome__bg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    pointer-events: none;
    user-select: none;
}

.gm-welcome__bg span {
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 16vw, 11rem);
    line-height: 0.9;
    text-transform: lowercase;
    /* Más suave que en el bloque anterior: ahora hay prosa encima. */
    color: rgba(62, 62, 62, 0.1);
}

.gm-welcome__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .gm-welcome__inner {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 2.5rem;
    }
}

/* ---------- Texto ---------- */

.gm-welcome__copy {
    min-width: 0;
}

.gm-welcome__title {
    margin: 0;
    max-width: 22ch;
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    color: var(--gm-grey);
}

.gm-welcome__title b {
    color: var(--gm-orange);
    font-weight: 700;
}

.gm-welcome__lede {
    margin: 1.1rem 0 0;
    max-width: 58ch;
    font-family: "Nexa", sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.65;
    color: #4a4a4a;
}

.gm-welcome__who {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.gm-welcome__who li {
    position: relative;
    padding-left: 1rem;
    font-family: "Nexa", sans-serif;
    font-weight: 400;
    font-size: 0.98rem;
    color: var(--gm-grey);
}

.gm-welcome__who li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gm-orange);
}

/* ---------- Tarjeta del teléfono ---------- */

.gm-welcome__call {
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 1.5rem;
    background: var(--gm-orange-solid);
    color: #fff;
    box-shadow: 0 18px 40px rgba(243, 107, 33, 0.28);
    text-align: center;
}

@media (min-width: 768px) {
    .gm-welcome__call {
        border-radius: 2rem;
    }
}

.gm-welcome__call-label {
    margin: 0;
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1;
    text-transform: lowercase;
}

.gm-welcome__phone {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    line-height: 1.1;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    border-bottom: 3px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.2s ease;
}

.gm-welcome__phone:hover {
    border-bottom-color: #fff;
}

.gm-welcome__hours {
    margin: 0.9rem 0 0;
    font-family: "Nexa", sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.gm-welcome__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.1rem;
    padding: 0.75rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gm-welcome__btn:hover {
    background: #fff;
    color: var(--gm-orange-solid);
}

/* ---------- Tarjetas de atributos ---------- */

.gm-welcome__cards {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem auto 0;
    width: 100%;
    max-width: 920px;
}

.gm-welcome-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
    min-height: 170px;
    border-radius: 1.5rem;
    background: rgba(97, 95, 95, 0.973);
    color: #2c2c2c;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.gm-welcome-card--primary {
    background: rgba(241, 107, 35, 0.953);
    color: #fff;
}

.gm-welcome-card__icon {
    position: absolute;
    z-index: 0;
    top: 1rem;
    width: 80%;
    height: 80%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gm-welcome-card__title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    line-height: 1.1;
    text-align: center;
    text-transform: lowercase;
}

/* Móvil: dos por fila. Apiladas de una en una la sección se hacía
   larguísima ahora que arriba hay texto y la tarjeta del teléfono. */
@media (max-width: 767.98px) {
    .gm-welcome__cards {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .gm-welcome-card {
        flex: 1 1 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
        min-height: 118px;
        border-radius: 1.25rem;
    }

    .gm-welcome-card__title {
        font-size: 1.35rem;
    }

    /* La marca de agua no se lee a este ancho y ensucia el fondo. */
    .gm-welcome__bg {
        display: none;
    }
}

@media (min-width: 768px) {
    .gm-welcome-card {
        padding: 2.25rem;
        border-radius: 2rem;
        min-height: 200px;
    }

    .gm-welcome-card__icon {
        right: 1rem;
    }
}

@media (min-width: 1024px) {
    .gm-welcome__cards {
        gap: 2.5rem;
    }

    .gm-welcome-card {
        flex: 1 1 calc(25% - 2.5rem);
        max-width: calc(25% - 2.5rem);
    }

    /* Escalonado: el ritmo que tenía el bloque anterior. */
    .gm-welcome-card:nth-child(2n) {
        transform: translateY(1.5rem);
    }

    .gm-welcome-card:nth-child(2n + 1) {
        transform: translateY(-0.75rem);
    }
}

/* ---------- Accesibilidad ---------- */

.gm-welcome__phone:focus-visible,
.gm-welcome__btn:focus-visible {
    outline: 3px solid var(--gm-grey);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .gm-welcome__phone,
    .gm-welcome__btn {
        transition: none;
    }
}
