/* ============================================================
   YourHausly Consent - Modal de Cookies/Términos (frontend)
   Diseño monocromático oscuro, consistente con el resto del sitio
   ============================================================ */

.yhc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background-color: rgba(5, 5, 7, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

html.yhc-consent-pending .yhc-overlay {
    display: flex;
}

html.yhc-consent-pending body {
    overflow: hidden !important;
}

.yhc-modal {
    background-color: #16161a;
    border: 1px solid #2a2a30;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 40px 35px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    box-sizing: border-box;
    animation: yhc-pop-in 0.3s ease;
}

@keyframes yhc-pop-in {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.yhc-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #1b1b20;
    border: 1px solid #2a2a30;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.yhc-modal-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yhc-modal-icon .dashicons {
    color: #ffffff;
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.yhc-modal-title {
    color: #ffffff;
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 14px;
}

.yhc-modal-message {
    color: #b8b8c0;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 20px;
}

.yhc-modal-links {
    margin-bottom: 26px;
    font-size: 0.85em;
}

.yhc-modal-links a {
    color: #a0a0a8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.yhc-modal-links a:hover {
    color: #ffffff;
}

.yhc-links-sep {
    color: #3a3a40;
    margin: 0 8px;
}

.yhc-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#yhc-overlay .yhc-btn-pill {
    flex: 1 1 140px;
    padding: 15px 24px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 0.95em !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: inherit !important;
}

#yhc-overlay .yhc-btn-solid {
    background-color: #ffffff !important;
    color: #0d0d0f !important;
    border-color: #ffffff !important;
}

#yhc-overlay .yhc-btn-solid:hover,
#yhc-overlay .yhc-btn-solid:focus {
    background-color: #e5e5e5 !important;
    color: #0d0d0f !important;
    border-color: #e5e5e5 !important;
    transform: translateY(-1px);
}

#yhc-overlay .yhc-btn-ghost {
    background-color: transparent !important;
    color: #d0d0d5 !important;
    border-color: #2a2a30 !important;
}

#yhc-overlay .yhc-btn-ghost:hover,
#yhc-overlay .yhc-btn-ghost:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .yhc-overlay {
        padding: 14px;
        align-items: flex-end;
    }

    .yhc-modal {
        max-width: 100%;
        width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        padding: 28px 20px 24px;
        border-radius: 18px;
        -webkit-overflow-scrolling: touch;
    }

    .yhc-modal-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 16px;
    }

    .yhc-modal-icon .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }

    .yhc-modal-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .yhc-modal-message {
        font-size: 0.9em;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .yhc-modal-links {
        font-size: 0.8em;
        margin-bottom: 20px;
    }

    #yhc-overlay .yhc-btn-pill {
        padding: 14px 20px !important;
        font-size: 0.92em !important;
    }
}

@media (max-width: 360px) {
    .yhc-modal {
        padding: 24px 16px 20px;
    }

    .yhc-modal-title {
        font-size: 1.1em;
    }
}
