/**
 * Modulo: Diseño (opciones de Personalizar > Configuración General > Diseño)
 * Botón destacado y teléfono en la cabecera, enlace de la barra superior,
 * botones redondeados (.gob-rounded) y ornamento del hero (.gob-ornament).
 */

/* Enlace destacado de la barra superior */
.top-bar-link {
    margin-left: 12px;
    color: var(--color-danger);
    font-weight: 700;
    text-transform: none;
}

/* Botón y teléfono de la cabecera */
.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.header-cta-btn {
    background-color: var(--color-danger);
    color: #fff !important;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta-btn:hover {
    background-color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    /* Menú, teléfono y botón pegados a la derecha, también si bajan a otra línea */
    .main-navigation {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 18px;
        margin-left: auto;
    }
}

@media (max-width: 991px) {
    .header-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 0 5px;
    }

    .header-cta-btn {
        text-align: center;
    }

    .header-phone {
        text-align: center;
    }
}

/* Botones redondeados */
.gob-rounded .gov-btn,
.gob-rounded .header-cta-btn,
.gob-rounded .wp-block-button__link,
.gob-rounded .page-content .ch-cta .wp-block-button__link {
    border-radius: 999px;
}

/* Ornamento: estrella de ocho puntas en trama, sobre la imagen y bajo el texto */
.gob-ornament .hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Crect x='20' y='20' width='32' height='32'/%3E%3Crect x='20' y='20' width='32' height='32' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}
